Update Menu Item Stop Sale
Description
更新菜單項目停售。
Resource
PATCH /manager/v1/product/menu_item_stop_sale
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| company_id | string | 公司編號 |
| shop_id | string | 門市編號ALLOWED VALUES:
|
| client_device | list[string] | 要停售的平台 (option) |
| stop_sale_product_ids | list[string] | 停售商品編號 |
| available_sale_product_ids | list[string] | 恢復銷售商品編號 |
| stop_sale_tastes | Taste Detail | 停售加值 |
| available_sale_tastes | Taste Detail | 恢復銷售加值 |
Request Body Parameters - Taste Detail
| Name | Type | Description |
|---|---|---|
| id | string | 加值編號 |
| taste_item_ids | list[string] | 加值項目編號 |
Request Example
{
"company_id": "18090377",
"shop_id": "000030",
"client_device": [
"UberEats",
"EC-foodpanda",
"KIOSK",
"EC_QUICK_ORDER"
],
"stop_sale_product_ids": [
"UC00000001",
"UC00000002"
],
"available_sale_product_ids": [
"UC00000009"
],
"stop_sale_tastes": [
{
"id": 1,
"item_ids": [
1,
2
]
}
],
"available_sale_tastes": [
{
"id": 2,
"item_ids": [
1,
3
]
},
{
"id": 3,
"item_ids": [
1
]
}
]
}
Response Example
Status-Code: 204 NO CONTENT