Skip to main content

CreateSKUInAudit

Host: dip-cb.binanceapi.com

POST /mp-api/v1/apps/{appId}/skus

Header

ParameterRequiredDescription
X-Mp-Open-Api-TokenYesJWT token. Please refer to Description of External Interface Signature Authentication Algorithm

Path Parameters

ParameterDescription
appIdAppId of the mini program

Body Parameters

ParameterTypeRequiredDescriptionExample
categoriesstringYesCategory of this SKU.["Apparel", "Topup"]
coverImageFileIdstringYesFileId for SKU cover image obtained via UploadFilef7574adb-0ccb-4281-9ed6-943f11a1e85a
names{[key:string]: string}YesName map for this SKU. 'key' is the language code; 'en' is required. Maximum length for each language name is 30. Accepted code can be found in the Language Code section{"en": "PUBG 100 point"}
skuIdstringYesID for the SKU. Must be unique within your app. Maximum size is 255.pubg_point_100
originalPricenumberNoUnit is USD. Amount after cent will be trimmed without indication. E.g., 9.9999 will be treated as 9.99.9.99
sellingPricenumberYesUnit is USD. Amount after cent will be trimmed. E.g., 9.9999 will be treated as 9.99.6
discountPercentageintNo0~10032
countryWhitelistArray\<String>NoCountries eligible to display this SKU. Use ISO3166-1 alpha-2 code. If not provided, SKU can be displayed in all countries.[JP]
countryBlacklistArray\<String>NoCountries that are restricted from displaying this SKU. Use ISO3166-1 alpha-2 code.[CN, GB]
pathstringYesPath that leads to this SKU./pages/index/index?foo=bar&baz=qux

Request Body

{  "categories": ["Apparel", "Topup"],  "coverImageFileId": "f7574adb-0ccb-4281-9ed6-943f11a1e85a",  "names": {       "en": "PUBG 100 points",       "zh-TW": "PUBG 100 點",  },  "skuId": "pubg_point_100",  "originalPrice": 9.99,  "sellingPrice": 9,  "discountPercentage": 30,  "countryWhitelist": ["JP"],  "countryBlacklist": ["CN", "GB"],  "path": "/pages/index/index?foo=bar&baz=qux",}

Response

HTTP 200

{  "code": "000000",  "message": null,  "data": {},  "success": true}
ErrorCodeRemark
000000Success
900001Invalid Parameter
900002JWT Authentication Failed
900003Unexpected Error
900004Invalid FileId
900260Invalid SkuId