Skip to main content

CreateSKUInAudit

Host: dip-cb.binanceapi.com

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

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

Body Parameters

ParameterTypeRequiredDescriptionExample
categoriesstringYcategory of this sku. Refer to this list["Apparel", "Topup"]
coverImageFileIdstringYfileId for sku cover image. You can get fileID with UploadFilef7574adb-0ccb-4281-9ed6-943f11a1e85a
names{[key:string]: string}Yname map for this sku.‘key’ is lang code and en is must needed. Max length for each language name is 30.Accepted code: Language Code section { "en": "pubg 100 point"}
skuIdstringYid for your sku. Must be unique in your app. Max size is 255.pubg_point_100
originalPricenumberNUnit is usd. The amount after cent will be trimmed without error. Ex: 9.9999 will be treated as 9.999.99
sellingPricenumberYUnit is usd. The amount after cent will be trimmed. Ex: 9.9999 will be treated as 9.996
discountPercentageintN0~10032
countryWhitelistArray\<String>Ncountries that can display this sku. Use ISO3166-1 alpha-2 code. Can be displayed in all countries if not provided[JP]
countryBlacklistArray\<String>Ncountries that cannot display this sku. Use ISO3166-1 alpha-2 code[CN, GB]
pathstringYpath that directs 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 param
900002Jwt auth failed
900003Unexpected error
900004Invalid fileId
900260Invalid skuId