Get Online Products
Description
取得線上商品。
Resource
GET /v1/product/online
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Query Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 門市代碼 |
| category_id | string | 商品類別編號 |
| sale_status | string | 銷售狀態 ALLOWED VALUES:
|
Request Example
GET /v1/products?store_id=A106&category_id=12&sale_status=ALL
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| products | Product | 商品列表 |
Response Body Parameters - Product
| Name | Type | Description |
|---|---|---|
| id | string | 商品編號 |
| title | string | 商品名稱 |
| img | string | 圖檔URL |
| on_shelve | boolean | 上架 |
Response
{
"products": [
{
"id": "UC00000011",
"title": "椒鹽雞塊(單點)",
"img": "http://40.83.96.208:8080/kiosk/app/public/product00/5839-1-1550816490_s.png",
"on_shelve": true
}
]
}