Update Commodity SKU Inventory in Bulk

Last Updated on : 2026-06-29 09:06:08Copy for LLMView as MarkdownDownload PDF

Supports updating commodity SKU inventory in bulk.

API address

POST: /v1.0/cloud/ecm/store/admin/api/commodity/sku/stock/save

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
mall_codeStringbodytrueThe code of a specified mall.
site_codeStringbodytrueThe code of a specified site.
sku_stocksListbodytrueThe list of updated SKU inventory.

Description of sku_stocks

Parameter nameTypeINRequiredDescription
skuCodeString trueThe SKU code.
stockInteger trueThe inventory quantity.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

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
    }
  ]
}

Return example

{
    "tid": "58c000bb707a11f18b63267d4a037ef4",
    "result": true,
    "t": 1782380620654,
    "success": true
}

Error code

For more information, see error code.