v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBAddon Products
Bulk Update Addon Product Quantity by SKU
Update all add-on products quantity by input SKU<br>更新所有相同商品貨號加購品的庫存數量
put/addon_products/update_quantity
Request body
Example request
{
"sku": "addon_product_sku",
"quantity": 10,
"replace": true
}Response
OK
Example response
{
"id": "5892d8679f9a4fc07b008295",
"status": "draft",
"title_translations": {
"en": "Addon Products",
"zh-hant": "加購品"
},
"weight": 10.2,
"quantity": 10,
"medias": {
"id": "5f8e5dc08a8bb70a5c9cd93c",
"alt_translations": {
"en": "Image ALT",
"zh-hant": "圖片ALT"
},
"images": {
"original": {
"width": 800,
"height": 800,
"url": "https://img.example.com/media/1234/thumb.jpg"
}
}
},
"sku": "addon_product_sku",
"created_at": "2019-12-30T09:16:46.142+00:00",
"promotions": [
{
"discounted_price": {
"cents": 999999999,
"currency_symbol": "NT$",
"currency_iso": "TWD",
"label": "NT$999,999,999",
"dollars": 999999999
},
"start_at": "2020-07-09T04:00:00.000+00:00",
"end_at": "2020-07-09T04:00:00.000+00:00"
}
]
}