Gifts

Update Gift Quantity

To update quantity of gifts with open API<br>透過open API 更新贈品數量

put/gifts/{id}/update_quantity

Request

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

Path parameters

idstring required

Gift's ID<br>贈品ID

Request body

quantitynumber

Quantity<br>(新增/減少)贈品數量

replaceboolean

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

Example request

{
  "quantity": 10,
  "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.