Skip to content

Get Orders

Description

查詢訂單列表

Resource

GET /manager/v1/order/orders

Authorization

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

Query Parameters

Name Type Description
company_id string 公司編號
shop_id string 門市編號
order_from string 訂單來源
status string 訂單狀態
pay_id string 付款方式
date_type string 日期類別 ( input_date, meal_date)
date_range string 日期區間

Request Example

GET /manager/v1/order/orders?company_id=8WAY&date_type=input_date&date_range=2023-03-30 to 2024-11-01

Response Body Parameters

Name Type Description
orders Orders 訂單列表

Response Body Parameters - Orders

Name Type Description
member_name string 訂購會員
member_mobile string 訂購會員手機
company_id string 公司編號
shop_name string 門市名稱
sync_time string 同步時間
sync_count string
sync_status string
order_from string 訂單來源
pos_id string 機號
input_date string 訂購時間
meal_date string 取餐時間
payment_terms string
total_sales_amount string
total_discount_amount string
status string 狀態
pick_up_name string 取餐姓名
pick_up_phone string 取餐人員手機
delivery_address string 外送地址
remark string 備註
source_id string
last_update string 最後異動時間
total_points string 使用點數
is_sync string
total_discount string
fare string 運費
secretary_id string
uber_eats_order_id string
pay_id string 付款方式
worder_id string
is_paid string

Response Body Example

Status-Code: 200

{
  "orders": [
    {
      "member_name": null,
      "member_mobile": null,
      "shop_name": "台北訓練機",
      "sync_time": null,
      "sync_count": null,
      "sync_status": null,
      "order_from": "EC-8Way",
      "pos_id": null,
      "input_date": "2024-10-30",
      "meal_date": "2024-10-30",
      "payment_terms": 0,
      "total_sales_amount": 749,
      "total_discount_amount": 0,
      "status": "0",
      "pick_up_name": "",
      "pick_up_phone": "",
      "delivery_address": "",
      "remark": "EC_8wayTest1030-1412",
      "source_id": "20241030141100",
      "last_update": "2024-10-30",
      "total_points": 0,
      "is_sync": 0,
      "total_discount": 0,
      "fare": 0,
      "secretary_id": 0,
      "uber_eats_order_id": null,
      "pay_id": "Q023",
      "is_paid": false
    },
    {
      "member_name": null,
      "member_mobile": null,
      "shop_name": "台北訓練機",
      "sync_time": null,
      "sync_count": null,
      "sync_status": null,
      "order_from": "EC-8Way",
      "pos_id": null,
      "input_date": "2024-10-30",
      "meal_date": "2024-10-30",
      "payment_terms": 1,
      "total_sales_amount": 749,
      "total_discount_amount": 0,
      "status": "2",
      "pick_up_name": "",
      "pick_up_phone": "",
      "delivery_address": "",
      "remark": "EC_8wayTest1030-1412",
      "source_id": "20241030141100",
      "last_update": "2024-10-30",
      "total_points": 0,
      "is_sync": 0,
      "total_discount": 0,
      "fare": 0,
      "secretary_id": 0,
      "uber_eats_order_id": null,
      "pay_id": "Q023",
      "is_paid": true
    },
    ...
  ]
}