v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBProducts
Update Stock
To update the product's stock with its ID<br>使用商品 ID 更新商品在各個倉庫的庫存
put/products/{id}/stocks
Path parameters
idstring required
Product's id 商品id
Request body
Example request
{
"warehouse_id": "5ee819deab591e00169a4618",
"quantity": 21,
"variation_id": "5d3594c2e95d2f000642e011"
}Response
OK
Example response
{
"id": "5d3594c276e7ec003b7021c0",
"title_translations": {
"en": "testing SL-8049",
"zh-hant": "測試 SL-8049 round 2"
},
"variations": {
"fields_translations": {
"en": [
"Red",
"M"
],
"zh-hant": [
"紅",
"中"
]
}
}
}