GetSKU
Host: dip-cb.binanceapi.com
GET /mp-api/v1/apps/{appId}/skus?page=1&limit=20&auditStatus=
Header
Parameter | Required | Description |
---|---|---|
X-Mp-Open-Api-Token | Yes | JWT token. Please refer to Description of External Interface Signature Authentication Algorithm |
Path Parameters
Parameter | Description |
---|---|
appId | AppId of the mini program |
page | Designated query page |
limit | Quantity limit per page. The maximum size is 50 |
auditStatus | SKU audit status. Can be 'TODO', 'APPROVED', or 'REJECTED' |
Response
HTTP 200
{
"code": "000000",
"message": null,
"data": {
"skus": [{
"id": "bn_point_100",
"audit": {
"info": {
"id": "bn_point_100",
"defaultName": "BN 100 points",
"names": {
"en": "BN 100 points",
"zh-TW": "BN 100 點",
},
"categories": ["Apparel", "Topup"],
"imageUrl": "https://bn.com/hnCWgai85XJwn7qSRXjiUt.png",
"imageStatus": "UPLOADING",
"originalPrice": 9.99,
"sellingPrice": 9,
"discountPercentage": 30,
"path": "/pages/index/index?foo=bar&baz=qux",
"countryWhitelist": ["TW", "JP"],
"countryBlacklist": ["SG"],
},
"auditStatus": "APPROVED"
},
"online": {
"info": {
"id": "bn_point_100",
"defaultName": "BN 100 points",
"names": {
"en": "BN 100 points",
"zh-TW": "BN 100 點",
},
"categories": ["Apparel", "Topup"],
"imageUrl": "https://bn.com/hnCWgai85XJwn7qSRXjiUt.png",
"imageStatus": "UPLOADING",
"originalPrice": 19.99,
"sellingPrice": 19,
"discountPercentage": 10,
"path": "/pages/index/index?foo=bar&baz=qux",
"countryWhitelist": ["TW", "JP", "ID"],
"countryBlacklist": ["SG"],
},
"availableStatus": "ACTIVE"
},
}]
},
"success": true
}
Response Parameters
Parameter | Description |
---|---|
skus | Array of SKU information |
audit | Audit information for the SKU |
online | Online information for the SKU |
imageStatus | Status of the SKU image, could be 'UPLOADING', 'SUCCESS', 'FAILED', or 'NONEXISTED' |
auditStatus | Audit status of the SKU, could be 'TODO', 'APPROVED', or 'REJECTED' |
availableStatus | Availability status of the SKU, controlled by merchant. Can be 'ACTIVE' or 'DEACTIVE' |
metadata | Pagination information. 'itemCount' is the total count for the current response, 'itemsPerPage' is the total count per page as per the given request |