Skip to content

Get Order Status

Description

取得訂單狀態。

Resource

GET /v1/order/{order_id}/status

Authorization

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

Path Parameters

Name Type Description
order_id string 訂單編號

Query Parameters

Name Type Description
store_id string 門市編號
is_external_platform boolean 是否查詢外部平台狀態
ALLOWED VALUES:
  • true
  • false

(optional, default: false)

Request Example

GET /v1/order/00003025100200001/status?store_id=000030&is_external_platform=false

Response Body Parameters

Name Type Description
status string 訂單狀態碼
ALLOWED VALUES:
  • 1: 已建立
  • 2: 已接單
  • 3: 已拒絕
  • 4: 已完成
  • 9: 已取消
  • E: 未知狀態
order_type string 訂單型態
ALLOWED VALUES:
  • omni: 全通路訂單
  • external: 外部平台訂單
    (UberEats、FoodPanda、Nidin)

Response Example

{
    "status": "2",
    "order_type": "external"
}