Get Combo
Description
取得套餐。
Resource
GET /v1/combos
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| product_id | string | 商品代碼 |
| store_id | string | 門市代碼 (optional) |
Response
{
"combos": [
{
"id": "01",
"title": "套餐",
"product_id": "AE86",
"product_name": "豬排",
"image_url": "https://kiosk.lafresh.com.tw/kiosk/apptest/public/product00/A000000061.jpg",
"quantity": 1,
"price": 120,
"is_default": true,
"is_stop_sale": false,
"is_hidden": false,
"limitations": {
"quantity": 0,
"start_time": "2023-09-14 09:00:00",
"end_time": "2023-09-14 23:00:00"
},
"items": [
{
"product_id": "AE87",
"product_name": "雞排",
"image_url": "https://kiosk.lafresh.com.tw/kiosk/apptest/public/product00/A000000060.jpg",
"quantity": 1,
"price": 120,
"is_stop_sale": false,
"is_hidden": false,
"limitations": {
"quantity": 5,
"start_time": "2023-09-14 09:00:00",
"end_time": "2023-09-14 23:00:00"
}
}
],
"is_multiple_choice": true,
"control_quantity": true,
"group_name": "主餐",
"group_min_quantity": 1,
"group_max_quantity": 3,
"item_max_quantity": 3
},
{
"id": "01",
"title": "豬排套餐",
"product_id": "B002",
"product_name": "紅茶",
"image_url": "",
"quantity": 1,
"price": 0,
"is_default": true,
"is_stop_sale": false,
"is_hidden": false,
"limitations": null,
"items": [
{
"product_id": "B001",
"product_name": "綠茶",
"image_url": "https://kiosk.lafresh.com.tw/kiosk/apptest/public/product00/A000000060.jpg",
"quantity": 1,
"price": 120,
"is_stop_sale": false,
"is_hidden": false,
"limitations": null
}
],
"is_multiple_choice": false,
"control_quantity": false,
"group_name": "飲料",
"group_min_quantity": 0,
"group_max_quantity": 0,
"item_max_quantity": 0
}
]
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| combos | Combo | 套餐列表 |
Response Body Parameters - Combo
| Name | Type | Description |
|---|---|---|
| id | string | 套餐序號 |
| title | string | 商品類別名稱 |
| product_id | string | 商品代碼 |
| product_name | string | 商品名稱 |
| image_url | string | 圖檔URL |
| quantity | int | 數量 |
| price | int | 單價 |
| is_default | boolean | 是否為預設商品 |
| is_stop_sale | boolean | 是否為停售商品 |
| is_hidden | boolean | 是否隱藏商品 |
| items | Combo Item | 套餐項目 |
| is_multiple_choice | boolean | 是否多選 |
| control_quantity | boolean | 控管數量 (若為多選才會判斷此參數) |
| group_name | string | 群組名稱 |
| group_min_quantity | int | 群組最低可選數量 (若為多選才會判斷此參數) |
| group_max_quantity | int | 群組最高可選數量 (若為多選才會判斷此參數) |
| item_max_quantity | int | 品項最高可選數量 (若為多選才會判斷此參數) |
| limitations | string | 限量商品資訊 (optional) |
Response Body Parameters - Item
| Name | Type | Description |
|---|---|---|
| product_id | string | 商品代碼 |
| product_name | string | 商品名稱 |
| image_url | string | 圖檔URL |
| quantity | int | 數量 |
| price | int | 商品價格 |
| is_stop_sale | boolean | 是否為停售商品 |
| is_hidden | boolean | 是否隱藏商品 |
| limitations | string | 限量商品資訊 (optional) |