CreateSKUInAudit
Host: dip-cb.binanceapi.com
POST /mp-api/v1/apps/{appId}/skus
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 |
Body Parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
categories | string | Y | category of this sku. Refer to this list | ["Apparel", "Topup"] |
coverImageFileId | string | Y | fileId for sku cover image. You can get fileID with UploadFile | f7574adb-0ccb-4281-9ed6-943f11a1e85a |
names | {[key:string]: string} | Y | name 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"} | |
skuId | string | Y | id for your sku. Must be unique in your app. Max size is 255. | pubg_point_100 |
originalPrice | number | N | Unit is usd. The amount after cent will be trimmed without error. Ex: 9.9999 will be treated as 9.99 | 9.99 |
sellingPrice | number | Y | 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 | /pages/index/index?foo=bar&baz=qux |
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 |