Get Product Category
Description
取得商品類別。
Resource
GET /v2/product/category
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 門市編號 |
| language | string (enum) |
語系 ALLOWED VALUES:
|
| purchase_type | string (enum) |
購買類型 ALLOWED VALUES:
(optional) |
| sale_method | string | 銷售方式 (optional) |
| client_device | string | 客戶端裝置 ALLOWED VALUES:
|
| pickup_time | string | 取餐時間 Format: YYYY-MM-DD HH:MM:SS (optional) |
Request Body Example
GET /v2/product/category?store_id=000030
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| category | Category[] | 類別資訊 |
Request Body Parameters - Category
| Name | Type | Description |
|---|---|---|
| id | string | 類別編號 |
| name | string | 類別名稱 |
| image_url | string | 圖片路徑 |
Response Body Example
{
"category": [
{
"id": "food",
"name": "主食",
"image_url": null
},
{
"id": "drink",
"name": "飲品",
"image_url": null
}
]
}