Gifts

Bulk Update Quantity by SKU

Update all gifts quantity by input SKU<br>更新所有相同商品貨號的贈品庫存數量

put/gifts/update_quantity

Request

  • Base URL
    https://open.shopline.io/v1
  • URL
    https://open.shopline.io/v1/gifts/update_quantity
  • Auth
    HTTP bearer

Request body

skustring required

Gift's SKU<br>贈品的商品貨號

quantityinteger required

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

replaceboolean

Whether replacing the original quantity<br>是否取代原本數量

Example request

{
  "sku": "gift_a",
  "quantity": 8,
  "replace": true
}

Response

OK

idId (unresolved $ref)
skuSku (unresolved $ref)
quantityQuantity (unresolved $ref)
updated_atUpdatedAt (unresolved $ref)

Changes

No recorded changes to this operation across all 2 revisions of this API.