UpdateSKU
Host: dip-cb.binanceapi.com
PATCH /mp-api/v1/apps/{appId}/skus/{skuId}
Header
Parameter | Required | Description |
---|---|---|
X-Mp-Open-Api-Token | Y | JWT token, please refer to Description of External Interface Signature Authentication Algorithm |
Path Parameters
Parameter | Description |
---|---|
appId | appId of the mini program |
skuId | skuId of this sku |
Body Parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
categories | Array\<String> | N | category of this sku. Refer to this list | ["Apparel", "Topup"] |
coverImageFileId | string | N | fileId for sku cover image. You can get fileID with UploadFile | f7574adb-0ccb-4281-9ed6-943f11a1e85a |
names | {[key:string]: string} | N | name map for this sku.\‘key’ is lang code and \Accepted code: [Language Code section](#_4kw03nu8ebn7) | {
} |
originalPrice | number | N | Unit is usd. The amount after cent will be trimmed. Ex: 9.9999 will be treated as 9.99 | 9.99 |
sellingPrice | number | N | Unit is usd. The amount after cent will be trimmed. Ex: 9.9999 will be treated as 9.99 | 6 |
discountPercentage | int | N | 0~100 | 32 |
countryWhitelist | Array\<String> | N | countries that can display this sku. Use ISO3166-1 alpha-2 code. Can be displayed in all countries if not provided | ["JP"] |
countryBlacklist | Array\<String> | N | countries that cannot display this sku. Use ISO3166-1 alpha-2 code | ["CN", "GB"] |
path | string | Y | path that directs to this sku | /hello/world?foo=bar |
Note:
- All updates are needed to be audited except for
sellingPrice
anddiscountPercentage
- Update to each field will overwrite the whole original value
Request Body
Response
HTTP 200
ErrorCode | Remark |
---|---|
000000 | Success |
900001 | Invalid param |
900002 | Jwt auth failed |
900003 | Unexpected error |
900004 | Invalid fileId |
900260 | Invalid skuId |