Products

Update Quantity by SKU

Update all products or product variations quantity by input SKU<br>更新所有相同商品貨號的商品或商品規格庫存數量

put/products/update_quantity

Request body

skustring

Product or Product Variation sku<br>商品或商品規格的商品貨號

quantityinteger

This value should be between -9999999 and 9999999.<br> 數值必須在 -9999999 和 9999999 之間。<br>

replaceboolean

Whether replacing the original quantity<br>是否取代原本數量<br> - <br> true: replace the product's quantity with the number you provided<br>取代原本數量<br><br> false: increase/decrease the quantity with the number you provided<br>增加/減少數量"

Example request

{
  "sku": "sku_123345",
  "quantity": 87,
  "replace": true
}

Response

OK

idId — unresolved $ref
skuSku — unresolved $ref
quantityQuantity — unresolved $ref
updated_atstring

Last Updated Time<br>商品或商品最後更新時間

product_idstring

Changes