Update Stock

To update the product's stock with its ID
使用商品 ID 更新商品在各個倉庫的庫存

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Product's id 商品id

Body Params
string
required

Warehouse’s id
倉庫 id
-----
Only warehouse with status "active" can be updated
只有 status “active” 的 warehouse stock 的可以更新

number
required

Quantity
(新增/減少)商品數量

Negative number is allowed
允許更新庫存為負值

string

Product Variation's id
若更新選項的庫存,請指定選項id

boolean

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

true: replace the product's quantity with the number you provided
取代原本數量

false: increase/decrease the quantity with the number you provided
增加/減少數量

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json