接口说明
查询单个订单信息。
接口方法
esales.order.get
传入参数
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| order_id | bigint | false | 平台订单号 |
| out_order_id | string | false | 商家订单号 |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | bigint | 订单号 |
| product_id | int | 商品编号 |
| product_name | string | 商品名称 |
| product_type | int | 商品类型(1:充值,2:卡密) |
| product_price | decimal | 售价 |
| quantity | int | 购买数量 |
| total_price | decimal | 总支付价格 |
| status | int | 订单状态(100:等待发货,200:交易成功,500:交易失败,300:可疑订单) |
| status_info | string | 充值返回信息 |
| created_at | string | 下单时间 |
| cards | array | 卡密,只有卡密商品会返回 |
示例
{
"code": 0,
"message": "",
"data": {
"id": "15649071068",
"product_id": "41924",
"product_name": "官方激活码CDK",
"product_type": "2",
"product_price": "1.0000",
"quantity": "3",
"total_price": "3.0000",
"status": "200",
"status_info": null,
"created_at": "2021-09-15 13:39:53.140",
"cards": [
{
"card_no": "vip009",
"card_password": "DDd2kpCxZosyy7d",
"expiration_date": "2025-05-28"
},
{
"card_no": "vip010",
"card_password": "UwQ4WnAKfi6wby6",
"expiration_date": "2025-05-28"
},
{
"card_no": "vip011",
"card_password": "qKgITDZUuahfmiu",
"expiration_date": "2025-05-28"
}
]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33