Skip to main content

UpdateSKU

Host: dip-cb.binanceapi.com

PATCH /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 this sku

Body Parameters

ParameterTypeRequiredDescriptionExample
categoriesArray\<String>Ncategory of this sku. Refer to this list["Apparel", "Topup"]
coverImageFileIdstringNfileId for sku cover image. You can get fileID with UploadFilef7574adb-0ccb-4281-9ed6-943f11a1e85a
names{[key:string]: string}N

name map for this sku.\‘key’ is lang code and en is required.

\Accepted code: [Language Code section](#_4kw03nu8ebn7)

{

"en": "pubg 100 point"

}

originalPricenumberNUnit is usd. The amount after cent will be trimmed. Ex: 9.9999 will be treated as 9.999.99
sellingPricenumberNUnit 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/hello/world?foo=bar

Note:

  1. All updates are needed to be audited except for sellingPrice and discountPercentage
  2. Update to each field will overwrite the whole original value

Request Body

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

Response

HTTP 200

{  "code": "000000",  "message": null,  "data": {},  "success": true}
ErrorCodeRemark
000000Success
900001Invalid param
900002Jwt auth failed
900003Unexpected error
900004Invalid fileId
900260Invalid skuId