Skip to main content

GetSKU

Host: dip-cb.binanceapi.com

GET /mp-api/v1/apps/{appId}/skus/{skuId}

Header

ParameterRequiredDescription
X-Mp-Open-Api-TokenYJWT token, please refer to Description of External Interface Signature Authentication Algorithm

Path Parameters

ParameterDescription
appIdappId of the mini program
skuIdskuId of the SKU

Response

HTTP 200

{  "code": "000000",  "message": null,  "data": {    "sku": {      "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

ParameterDescription
auditaudit info for this sku
onlineonline info for this sku
imageStatussku image status. UPLOADING, SUCCESS, FAILED, NONEXISTED
auditStatussku audit status. TODO, APPROVED, REJECTED
availableStatussku available status that is controlled by merchants ACTIVE, DEACTIVE
ErrorCodeRemark
000000Success
900001Invalid param
900002Jwt auth failed
900003Unexpected error
900004Invalid fileId
900260Invalid skuId