Get Restaurant Device Status
Description
取得餐廳裝置接單狀態。
Resource
GET /v1/store/
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Path Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 門市代碼 |
Query Parameters
| Name | Type | Description |
|---|---|---|
| client_device | string | 客戶端裝置 ALLOWED VALUES:
|
Request Example
GET /v1/store/0001/status?client_device=FOODPANDA
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| status | string | 0: 關閉、1: 開啟 |
| suspend_reason | string | 暫停原因 (Option) |
Response Example - Http code = 200
{
"status": "0",
"suspend_reason": "關閉接單"
}