Skip to main content

UpdateSKU

Host: dip-cb.binanceapi.com

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

Header

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

Path Parameters

ParameterDescription
appIdThe AppId of the mini program
skuIdThe skuId of the SKU

Body Parameters

ParameterTypeRequiredDescriptionExample
categoriesArray<String>NoCategory of this SKU. Refer to this list["Apparel", "Topup"]
coverImageFileIdstringNoFileId for SKU cover image obtained via UploadFilef7574adb-0ccb-4281-9ed6-943f11a1e85a
names{[key:string]: string}NoName map for this SKU. 'key' refers to the language code; 'en' is mandatory.{"en": "pubg 100 point"}
originalPricenumberNoPrice in USD. Please note, the amount after the cent will be trimmed e.g., 9.9999 will be treated as 9.99.9.99
sellingPricenumberNoSelling price in USD. Any amount after the cent will also be trimmed e.g., 9.9999 will be treated as 9.99.6
discountPercentageintNoDiscount percentage, can be between 0 and 100 inclusive.32
countryWhitelistArray<String>NoCountries eligible to display this SKU (using ISO3166-1 alpha-2 code). If empty, SKU can be displayed in all countries.["JP"]
countryBlacklistArray<String>NoCountries restricted from displaying this SKU (using ISO3166-1 alpha-2 code).["CN", "GB"]
pathstringYesPath that leads to this SKU./hello/world?foo=bar

Note:

  1. All updates, except for sellingPrice and discountPercentage, need audit approval.
  2. Updating each field will overwrite its entire original value.

Request Body

​{
"names": {
"en": "PUBG 100 points",
"zh-TW": "PUBG 100 點",
},
"countryWhitelist": ["JP"],
"countryBlacklist": ["CN", "TW"]
}

Response

HTTP 200 in JSON

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