Skip to main content

UpdateSKU

Updates one or more fields of an existing SKU. Fields that require audit approval (e.g. names, category, path) will trigger a review before taking effect; price fields (sellingPrice, originalPrice, discountPercentage) take effect immediately without audit.

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
categorystringNoCategory of this SKU. See Valid Categories below."Games"
coverImageFileIdstringNoFileId for SKU cover image obtained via UploadFilef7574adb-0ccb-4281-9ed6-943f11a1e85a
names{[key:string]: string}NoName map for this SKU. en is required. Maximum length per name is 128 characters.{"en": "pubg 100 point"}
originalPricenumberNoPrice in USD. Must be a positive number. Sub-cent amounts are truncated (e.g., 9.9999 → 9.99).9.99
sellingPricenumberNoSelling price in USD. Must be a positive number. Sub-cent amounts are truncated (e.g., 9.9999 → 9.99).6
discountPercentageintNoDiscount percentage for display only. Valid range: 0–99.32
countryWhitelistArray<String>NoCountries eligible to display this SKU. Use ISO 3166-1 alpha-2 codes. If empty, SKU can be displayed in all countries.["JP"]
countryBlacklistArray<String>NoCountries restricted from displaying this SKU. Use ISO 3166-1 alpha-2 codes.["CN", "GB"]
pathstringNoPath to the SKU page. Maximum length is 1024 characters. Query string parameters (after ?) are parsed and stored separately./hello/world?foo=bar
descriptionstringNoOptional description for this SKU.A virtual top-up item

Note:

  1. All updates, except for sellingPrice, originalPrice, 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

Valid Categories

Category
AI Tools
eSIM
Fashion & Beauty
Food & Grocery
Entertainment
Games
Payments
Shopping
Telecom & Utilities
Travel