Get Product Category
Description
取得商品類別。
Resource
GET /v1/product/category
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 門市編號 |
| purchase_type | string (enum) |
購買類型 ALLOWED VALUES:
(optional) |
Request Body Example
GET /v1/product/category?store_id=zzz
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| category | Category[] | 類別資訊 |
Request Body Parameters - Category
| Name | Type | Description |
|---|---|---|
| id | string | 類別編號 |
| name | string | 類別名稱 |
| image_url | string | 圖片路徑 |
| start_time | string | 活動上架時間 |
| end_time | string | 活動下架時間 |
Response Body Example
{
"category": [
{
"id": "food",
"name": "主食",
"image_url": null,
"start_time": null,
"end_time": null
},
{
"id": "drink",
"name": "飲品",
"image_url": null,
"start_time": null,
"end_time": null
}
]
}