# Check out Small Shop & Standard Trading Components Order Details
# 1. Check order details according to order ID
# Interface Dxplaination
Support Alliance Developer Check order details according to order ID
# Request address
POST https://api.weixin.qq.com/union/promoter/order/info?access_token=ACCESS_TOKEN
# Request parameters
attribute | type | Default values | Required to fill in | Introductions |
---|---|---|---|---|
access_token | string | yes | Interface call credentials | |
orderIdList | Array. | yes | Order id list |
# Return value
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
orderList | Array. | Order List |
Structure of the orderList
attribute | type | Introductions |
---|---|---|
orderId | string | Order ID |
payTime | number | Payment time stamp in s |
confirmReceiptTime | number | Confirmation receipt timestamp, in s, 0 if not |
shopName | string | Store Name |
shopAppid | string | Shop Appid |
productList | Array. | List of Products |
customizeInfo | string | Customizing information |
customUserId | string | Customizing user parameters |
userNickName | string | User nickname |
Structure of productList
attribute | type | Introductions |
---|---|---|
productId | string | Product SPU ID |
skuId | string | sku ID |
title | string | Product Name |
thumbImg | string | Product thumbnail url |
price | string | Total transaction price of goods, front unit ¥ |
productCnt | number | Number of transactions |
ratio | number | The division of wages, one in 10,000 units |
commissionStatus | string | Divisional status |
commissionStatusUpdateTime | string | Commission status update timestamp in s |
profitShardingSucTime | string | Settlement time, when the commission status is settled, the unit is s |
commission | string | Amount of division of commission, front unit ¥ |
estimatedCommission | number | Estimated amount of assignments, in units |
categoryStr | string | Category names, several separated by English comma |
promotionInfo | Promotional information |
Structure of promotionInfo
attribute | type | Introductions |
---|---|---|
promotionSourcePid | string | Generalized bit id |
promotionSourceName | string | Promotional site name |
# Return data example
{
"errcode": 0,
"errmsg": "ok",
"orderList": [
{
"orderId": "1952315038682581",
"payTime": 1612355317,
"shopName": "xxx小商店",
"productList": [
{
"productId": "4085505",
"title": "身体护理",
"thumbImg": "https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥0.20",
"ratio": 9000,
"commissionStatus": "SETTLEMENT_CANCELED",
"commission": "¥0",
"categoryStr": "11",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
},
"customizeInfo": "customizeInfo"
}
]
}
]
}
# Error code
value | Introductions |
---|---|
200002 | OrderIdList is not passed in or orderIdList exceeds the upper limit of 200 |
# 2. Draw the order details according to the order payment time and the order commissioning status
# Interface Dxplaination
Query and filter order lists
# Request address
GET https://api.weixin.qq.com/union/promoter/order/search?access_token=ACCESS_TOKEN
# Request parameters
attribute | type | Default values | Required to fill in | Introductions |
---|---|---|---|---|
access_token | string | yes | Interface call credentials | |
page | number | 1 | no | Page size, starting with 1 |
pageSize | number | 10 | no | Page size, maximum 200 |
startTimestamp | string | no | Initial time stamp, in seconds | |
endTimestamp | string | no | End time stamp, in seconds | |
commissionStatus | string | no | Divisional status | |
sortByCommissionUpdateTime | string | 0 | no | Whether orders are sorted and filtered according to the frequency of commission status update, 1: Yes, 0: No |
startCommissionUpdateTime | string | no | Assignment Status Update Time Initial timestamp, in seconds | |
endCommissionUpdateTime | string | no | Payment Status Update Time End timestamp, in seconds |
# Example of GET data
{
"page": 1
}
Enumeration of commissionStatus
value | type | Introductions |
---|---|---|
SETTLEMENT_PENDING | string | To be settled |
SETTLEMENT_SUCCESS | string | Settled |
SETTLEMENT_CANCELED | string | Cancellation of settlement |
# Return value
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
orderList | Array. | Order List |
pageSize | number | Page size |
totalNum | number | Total Orders |
Structure of the orderList
attribute | type | Introductions |
---|---|---|
orderId | string | Order ID |
payTime | number | Payment time stamp in s |
confirmReceiptTime | number | Confirmation receipt timestamp, in s, 0 if not |
shopName | string | Store Name |
shopAppid | string | Shop Appid |
productList | Array. | List of Products |
customizeInfo | string | Customizing information |
customUserId | string | Customizing user parameters |
userNickName | string | User nickname |
Structure of productList
attribute | type | Introductions |
---|---|---|
productId | string | Product SPU ID |
skuId | string | sku ID |
title | string | Product Name |
thumbImg | string | Product thumbnail url |
price | string | Total transaction price of goods, front unit ¥ |
productCnt | number | Number of transactions |
ratio | number | The division of wages, one in 10,000 units |
commissionStatus | string | Divisional status |
commissionStatusUpdateTime | string | Commission status update timestamp in s |
profitShardingSucTime | string | Settlement time, when the commission status is settled, the unit is s |
commission | string | Amount of division of commission, front unit ¥ |
estimatedCommission | number | Estimated amount of assignments, in units |
categoryStr | string | Category names, several separated by English comma |
promotionInfo | Promotional information | |
customizeInfo | string | Customizing information |
Structure of promotionInfo
attribute | type | Introductions |
---|---|---|
promotionSourcePid | string | Generalized bit id |
promotionSourceName | string | Promotional site name |
# Return data example
{
"errcode": 0,
"errmsg": "ok",
"orderList": [
{
"orderId": "1952315038682581",
"payTime": 1612355317,
"shopName": "xxx小商店",
"productList": [
{
"productId": "4085505",
"title": "身体护理",
"thumbImg": "https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥0.20",
"ratio": 9000,
"commissionStatus": "SETTLEMENT_CANCELED",
"commission": "¥0",
"categoryStr": "11",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
},
"customizeInfo": "customizeInfo"
}
]
},
{
"orderId": "1952881854014581",
"payTime": 1612354844,
"shopName": "xxx小商店",
"productList": [
{
"productId": "4085505",
"title": "身体护理",
"thumbImg": "https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥0.20",
"ratio": 9000,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "11",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1540485153563887",
"payTime": 1612346038,
"shopName": "xxx",
"productList": [
{
"productId": "6363741",
"title": "美工刀",
"thumbImg": "https://store.mp.video.tencent-cloud.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥1.00",
"ratio": 500,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "美工刀",
"promotionInfo": {
"promotionSourcePid": "oqt8u5NJAsZ4TN0eNVDN5J_1KUOs_1497740816",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1140092624903333",
"payTime": 1612345602,
"shopName": "xxx",
"productList": [
{
"productId": "6363741",
"title": "美工刀",
"thumbImg": "https://store.mp.video.tencent-cloud.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥1.00",
"ratio": 500,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "美工刀",
"promotionInfo": {
"promotionSourcePid": "oqt8u5NJAsZ4TN0eNVDN5J_1KUOs_1497740816",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1952328751053581",
"payTime": 1612333478,
"shopName": "xxx小商店",
"productList": [
{
"productId": "4085505",
"title": "身体护理",
"thumbImg": "https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥0.20",
"ratio": 9000,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "11",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1952872372026581",
"payTime": 1612233926,
"shopName": "xxx小商店",
"productList": [
{
"productId": "4085505",
"title": "身体护理",
"thumbImg": "https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥0.20",
"ratio": 9000,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "11",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1508732341607753",
"payTime": 1612233673,
"shopName": "xxx小商店",
"productList": [
{
"productId": "4085505",
"title": "身体护理",
"thumbImg": "https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥0.20",
"ratio": 9000,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "11",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1976456848299426",
"payTime": 1611893169,
"shopName": "xxx小商店",
"productList": [
{
"productId": "5622638",
"title": "垃圾袋",
"thumbImg": "https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥9.90",
"ratio": 200,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "黑色",
"promotionInfo": {
"promotionSourcePid": "oqt8u5NJAsZ4TN0eNVDN5J_1KUOs_1497740816",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1508676280185753",
"payTime": 1611578393,
"shopName": "xxx小商店",
"productList": [
{
"productId": "12432937",
"title": "收纳盒",
"thumbImg": "https://store.mp.video.tencent-cloud.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥1.00",
"ratio": 8000,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "1",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
}
}
]
},
{
"orderId": "1508813362517753",
"payTime": 1611576663,
"shopName": "xxx小商店",
"productList": [
{
"productId": "12432937",
"title": "收纳盒",
"thumbImg": "https://store.mp.video.tencent-cloud.com/161/20304/snscosdownload/SZ/reserved/xxx",
"price": "¥1.00",
"ratio": 8000,
"commissionStatus": "SETTLEMENT_PENDING",
"commission": "-",
"categoryStr": "1",
"promotionInfo": {
"promotionSourcePid": "oqt8u5E4_3XcsaMicK_E2gNyvBfM_1290469201",
"promotionSourceName": "xxx"
}
}
]
}
],
"pageSize": 10,
"totalNum": 133
}