v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Products

Bulk Publish/Unpublish Product in Retail Store

To bulk publish/unpublish products in Retail Store.<br> 在實體店批量上架/下架商品。

put/products/retail_status/bulk

Request body

Example request

{
  "products": [
    {
      "id": "6152bc92a39f0301818c70ec",
      "retail_status": "active"
    }
  ]
}

Response

OK

updated_product_idsstring[]

The successfully published/unpublished product ids<br>成功上架/下架的商品id

Example response

{
  "updated_product_ids": [
    "613844d3df38c500447ab063",
    "613844d3df38c500447ab064"
  ],
  "errors": [
    {
      "message": "product: 613844d3df38c500447ab064 is a product set, which retail status cannot be updated to active.",
      "id": "6152bc92a39f0301818c70ec"
    }
  ]
}