Supports updating commodity SKU inventory in bulk.
POST: /v1.0/cloud/ecm/store/admin/api/commodity/sku/stock/save
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| mall_code | String | body | true | The code of a specified mall. |
| site_code | String | body | true | The code of a specified site. |
| sku_stocks | List | body | true | The list of updated SKU inventory. |
Description of sku_stocks
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| skuCode | String | true | The SKU code. | |
| stock | Integer | true | The inventory quantity. |
| Parameter name | Type | Description |
|---|---|---|
| result | Boolean | The returned result. |
POST: /v1.0/cloud/ecm/store/admin/api/commodity/sku/stock/save
{
"mallCode": "8h4tiureddm***",
"siteCode": "US",
"skuStocks": [
{
"skuCode": "SKfq6livq01***",
"stock": 100
},
{
"skuCode": "SKfq6livq2j***",
"stock": 10
},
{
"skuCode": "SKfq6lph3mg***",
"stock": 1
}
]
}
{
"tid": "58c000bb707a11f18b63267d4a037ef4",
"result": true,
"t": 1782380620654,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback