List/Delist Commodities in Bulk

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

Supports listing and delisting commodities in bulk.

API address

POST: /v1.0/cloud/ecm/store/admin/api/commodity/publish

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
mall_codeStringbodytrueThe code of a specified mall.
site_codeStringbodytrueThe code of a specified site.
publishBooleanbodyfalseWhether to list a specified commodity. Valid values:
  • true: List the commodity. Default value.
  • false: Delist the commodity.
commodity_codesListbodytrueThe list of commodity code.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

POST: /v1.0/cloud/ecm/store/admin/api/commodity/publish
{
  "mall_code": "8h4tiureddm***",
  "site_code": "US",
  "publish": true,
  "commodity_codes": [
    "CMfq6livpsr***",
    "CMfq6lph231***",
    "CMfq6lreq3o***"
  ]
}

Return example

{
    "tid": "b9664db2706d11f19897b6c6a57637aa",
    "result": true,
    "t": 1782375199029,
    "success": true
}

Error code

For more information, see error code.