v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBAddon Products
Update Addon Product Quantity
To update quantity of add-on products with open API<br>透過open API 更新加購品數量
put/addon_products/{id}/update_quantity
Path parameters
idstring required
AddonProduct's ID<br>加購品ID
Request body
Example request
{
"quantity": 21,
"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"
}
]
}