Get Post Pay Order Details
Description
WiXGo 掃碼後結:取得點餐明細。回傳格式同 Get Standard Order Details,差異如下:
- 只能查詢由開桌 API 建立的掃碼後結單,其他訂單回 404。
cart.items每個品項多帶點餐人、點餐時間、POS 刪除數量與時間,並依點餐時間(同時間再依品項序號)排序,不分組。- 沒有點餐人的品項是服務生在 POS 代點的,包括併桌搬過來的品項,以及 POS 預結後的品項。
- POS 全部刪除的品項仍會回傳(
quantity為 0),請用cancelled_quantity顯示刪除線。 - 服務費:POS 預結前依門市服務費設定試算,預結後為 POS 計算的金額,實際以櫃台結帳為準;門市不收服務費時不回傳
service_charge。
明細不會主動推送,請在進入明細頁、送單成功後、切回畫面時重新取得。
Resource
GET /v1/order/post-pay/{order_id}
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Path Parameters
| Name | Type | Description |
|---|---|---|
| order_id | string | 訂單編號 |
Query Parameters
| Name | Type | Description |
|---|---|---|
| store_id | string | 門市代號 |
| language | string | 語系,同 Get Standard Order Details (optional) |
Request Example
GET /v1/order/post-pay/11056-202610140001?store_id=11056
Response Body Parameters
除下表外,其餘欄位同 Get Standard Order Details。
Response Body Parameters - Item(新增欄位)
| Name | Type | Description |
|---|---|---|
| orderer | Orderer | 點餐人;服務生代點時為 null (nullable) |
| ordered_at | string | 點餐時間 YYYY-MM-DD HH:MM:SS(nullable) |
| cancelled_quantity | integer | POS 刪除的數量,未刪除為 0 |
| cancelled_at | string | POS 刪除時間;同一品項分多次刪除時為最後一次 (nullable) |
Response Body Parameters - Orderer
| Name | Type | Description |
|---|---|---|
| participant_id | integer | 參與者編號 |
| nickname | string | 暱稱 |
| avatar_id | string | 頭像編號 |
Response Body Parameters - Service Charge
| Name | Type | Description |
|---|---|---|
| amount | number | 服務費(預結前為試算) |
| currency_code | string | 貨幣代碼 ISO 4217 code |
| formatted_amount | string | 顯示用金額 |
| service_rate | integer | 服務費倍率(%) |
Response
HTTP-Status-Code: 200(節錄)
{
"table_number": "D07",
"service_charge": {
"amount": 70,
"currency_code": "TWD",
"formatted_amount": "70",
"service_rate": 10
},
"cart": {
"items": [
{
"id": "P001",
"title": "牛五花",
"serial_number": "1",
"quantity": 2,
"orderer": {"participant_id": 123, "nickname": "葡萄", "avatar_id": "grape"},
"ordered_at": "2026-10-14 18:10:00",
"cancelled_quantity": 0,
"cancelled_at": null
},
{
"id": "P002",
"title": "白飯",
"serial_number": "1001",
"quantity": 0,
"orderer": null,
"ordered_at": "2026-10-14 18:20:00",
"cancelled_quantity": 1,
"cancelled_at": "2026-10-14 18:25:00"
}
]
}
}
HTTP-Status-Code: 404
{
"message": "查無此訂單"
}