Skip to content

Get Quantity Of Pending Orders

Description

取得待接訂單的數量。

Resource

GET /v1/order/pending_quantity

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Query Parameters

Name Type Description
client_device List[string]
(enum)
客戶端裝置
ALLOWED VALUES:
  • APP
  • KIOSK
  • RETAIL
  • 掃碼下單
  • 掃碼下單後結
  • EC
  • EC_QUICK_ORDER
  • EC_BUY_GOOD
  • EC_8WAY
  • EC_Just_Kitchen
  • UBER_EATS
  • FOODPANDA
  • POS
  • PWA

(optional)
Example : ["APP","KIOSK"]
store_id string 商店編號
start_date string 開始時間
yyyy-mm-dd hh:mm:ss
Example: 2022-04-10 17:14:22
end_date string 結束時間
yyyy-mm-dd hh:mm:ss
Example: 2022-04-10 17:14:22

Request

GET /v1/pending_quantity?client_device=["KIOSK","MPOS","EC_QUICK_ORDER","UBER_EATS","FOODPANDA"] &store_id=0&start_date=2022-04-10 17:14:22&end_date=2023-04-10 17:14:22

Response Body Parameters

Name Type Description
orders Order[] 訂單列表

Response Body Parameters - Order

Name Type Description
client_device string 客戶端裝置
quantity integer 訂單數量

Response

{
  "orders": [
    {
      "client_device": "KIOSK",
      "quantity": 1
    },
    {
      "client_device": "MPOS",
      "quantity": 0
    },
    {
      "client_device": "EC_QUICK_ORDER",
      "quantity": 5
    },
    {
      "client_device": "UBER_EATS",
      "quantity": 2
    },
    {
      "client_device": "FOODPANDA",
      "quantity": 0
    }
  ]
}