Skip to content

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:
  • TRADITIONAL_CHINESE: 繁體中文
  • JAPANESE: 日語
  • KOREAN: 韓語
  • ENGLISH: 英語
  • FRENCH: 法語
purchase_type string
(enum)
購買類型
ALLOWED VALUES:
  • RESTAURANT
  • SHOPPING

(optional)
client_device string 客戶端裝置
ALLOWED VALUES:
  • KIOSK
  • PWA
  • EC_QUICK_ORDER
    • (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 圖片路徑
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
    }
  ]
}