Get Standard Order Details
Description
取得標準版訂單明細。
Resource
GET /v1/order/standard/{order_id}
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Path Parameters
| Name | Type | Description |
|---|---|---|
| order_id | string | 訂單編號 |
Query Parameters
| Name | Type | Description |
|---|---|---|
| client_device | string (enum) |
客戶端裝置,預設為KIOSK ALLOWED VALUES:
(optional) |
| order_type | string (enum) |
訂單類型,預設為ONLINE ALLOWED VALUES:
(optional) |
| store_id | string | 門市代碼 (optional) 備註:取得線下訂單時,此項為必填 |
| language | string (enum) |
語系 ALLOWED VALUES:
|
Response
{
"current_state": "CREATED",
"paid": false,
"placed_at": "2021-01-15 11:02:23",
"pickup_at": "2021-01-15 11:12:23",
"type": "PICK_UP",
"store": {
"id": "0030",
"name": "0030台北總公司測試機(結束)"
},
"customer": {
"name": "測試人員1",
"mobile": "0988776655",
"address": ""
},
"payments": [
{
"type": "LINE_PAY",
"name": "LINE Pay",
"payment_amount": 5,
"transaction_id": "test"
}
],
"charges": {
"total": {
"amount": 5.5,
"currency_code": "TWD",
"formatted_amount": "5.5"
},
"sub_total": {
"amount": 5.5,
"currency_code": "TWD",
"formatted_amount": "5.5"
},
"discount": {
"amount": 0,
"currency_code": "TWD",
"formatted_amount": "0"
},
"total_discharge": {
"amount": -0.5,
"currency_code": "TWD",
"formatted_amount": "-0.5"
},
"total_fee": {
"amount": 5,
"currency_code": "TWD",
"formatted_amount": "5"
},
"total_extra": {
"amount": 0,
"currency_code": "TWD",
"formatted_amount": "0"
},
"sale_event_coupon": {
"amount": 0,
"currency_code": "TWD",
"formatted_amount": "0"
},
"points": {
"before_transaction": 0,
"exchange_amount": 0,
"after_transaction": 0,
"add": 0,
"use": 0
}
},
"service_charge": {
"amount": 0,
"currency_code": "TWD",
"formatted_amount": "0",
"service_rate": 0
},
"cart": {
"items": [
{
"id": "PS00000001",
"title": "招牌鍋貼",
"translate_title": "Signature Potstickers",
"serial_number": 1,
"quantity": 1,
"special_instructions": null,
"price": {
"unit_price": {
"amount": 5.5,
"currency_code": "TWD",
"formatted_amount": "5.5",
"discount": 0
},
"total_price": {
"amount": 5.5,
"currency_code": "TWD",
"formatted_amount": "5.5",
"discount": 0
}
},
"selected_modifier_groups": [],
"ticket_no": null,
"redeem_point": 0,
"is_hidden": false,
"combo_id": "1",
"is_combo": true,
"is_combo_item": false,
"pack_id": "",
"is_pack": false,
"is_pack_item": false
}
]
},
"receipt": {
"tax_ID_number": "",
"npoban": "",
"carrier_type": "",
"carrier": "",
"receipt_number": ""
},
"special_instructions": null,
"display_id": "",
"table_number": "",
"client_device": "APP",
"open_table": false,
"pickup_method": {
"id": "1",
"name": "現場取貨"
},
"good_status": "ARRIVED",
"ticket_info": {
"product_tickets": [
{
"name": "梁社漢QA測試商品折扣券",
"quantity": 1,
"discount": -80,
"detail": [
{
"id": "CC0002",
"expired_date": "2082-01-18 23:59:59.000"
}
]
},
{
"name": "梁社漢QA測試商品商品折價券",
"quantity": 2,
"discount": -10,
"detail": [
{
"id": "DD0004",
"expired_date": "2082-01-18 23:59:59.000"
},
{
"id": "DD0005",
"expired_date": "2082-01-18 23:59:59.000"
}
]
}
],
"order_tickets": [
{
"name": "梁社漢QA測試折扣券",
"quantity": 1,
"discount": -18,
"detail": [
{
"id": "EE0002",
"expired_date": "2082-01-18 23:59:59.000"
}
]
}
]
},
"return_reason": "",
"is_sync_to_pos": true
}
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| current_state | string (enum) |
訂單狀態 ALLOWED VALUES:
|
| order_type | string | 訂單類型 ALLOWED VALUES:
|
| paid | bool | 是否已付款 |
| placed_at | string | 提交時間 ISO 8601 format EXAMPLE "2020-01-01T15:16:54.723Z" |
| pickup_at | string | 取貨時間 ISO 8601 format EXAMPLE "2020-01-01T15:16:54.723Z" |
| type | string (enum) |
銷售方式 ALLOWED VALUES:
|
| machine_id | string | 機號 |
| store | Store | 接單門市 |
| customer | Customer | 消費者資訊 |
| payments | Payment[] | 付款資訊 |
| charges | Charges | 費用 |
| service_charge | Service Charges | 服務費 |
| cart | Cart | 購物車資訊 |
| receipt | Receipt | 發票資訊,發票組合詳細範例 (optional) |
| special_instructions | string | 特殊要求 (optional) |
| display_id | string | 取餐號 (optional) |
| table_number | string | 桌號 (optional) |
| client_device | string | 客戶端裝置 ALLOWED VALUES:
|
| source_id | string | 外部訂單編號 |
| admission_ticket | Admission Ticket | 門票資訊 (optional) |
| tour | Tour | 導覽資訊 (optional) |
| pickup_method | Pickup Method | 取貨方式 (optional) |
| activity_message | string | 活動訊息 (optional) |
| good_status | string (enum) |
貨物狀態 ALLOWED VALUES:
(optional) |
| ticket_info | TicketInfo | 優惠券資訊 |
| return_reason | string | 退貨原因 |
| open_table | bool | 開桌狀態 (optional) |
| is_sync_to_pos | bool | 是否已同步到 POS |
Response Body Parameters - Store
| Name | Type | Description |
|---|---|---|
| id | string | 門市代碼 |
| name | string | 門市名稱 |
Response Body Parameters - Customer
| Name | Type | Description |
|---|---|---|
| name | string | 姓名 (optional) |
| mobile | string | 手機號碼 (optional) |
| address | string | 地址 (optional) |
Response Body Parameters - Payment
| Name | Type | Description |
|---|---|---|
| type | Payment Type | 付款方式 |
| name | Payment Name | 付款名稱 |
| payment_amount | integer | 支付金額 |
| transaction_id | string | 交易代碼 |
| paid | bool | 是否已付款 |
Response Body Parameters - Payment Instruction
| type | name |
|---|---|
| LINE_PAY | LINE Pay |
| PI_PAY | Pi Pay |
| CREDIT_CARD | 信用卡 |
| EASY_CARD | 悠遊卡 |
| CASH | 臨櫃結帳 |
| MWD_PAY | 麥味登Pay |
| Easy_Wallet | 悠遊付 |
| APPLE_PAY | Apple Pay |
| GOOGLE_PAY | Google Pay |
| CASH_TICKET | 禮券 |
| POINT_DISCOUNT_AMOUNT | 點數折抵金額 |
| NCCC_EASY_CARD | NCCC悠遊卡 |
| NCCC_IPASS | NCCC一卡通 |
| NCCC_ICASH | NCCC iCash |
| NCCC_HAPPY_CASH | NCCC有錢卡 |
| CASH_CAR | 現金 |
| CHARGE_CARD | 簽帳 |
| MOTORCADE | 車隊 |
| CREDIT_CARD_CAR | 信用卡 |
| CTBC_CARD | 中信卡 |
| BARCODE_PAY | 條碼支付 |
| TAIWAN_PAY | 台灣 Pay |
| TK01 | 門票折抵 |
| HAO_SPEED | 全家外送自取 |
| EC | EC |
| PX_PAY | 全支付 |
| HSA_EXTRA | 異質POS |
| NEWEB_PAY | 藍新金流 |
| I_CASH_PAY | 愛金卡支付 |
| DD_PAY | 信用卡(DD_PAY) |
Response Body Parameters - Charges
| Name | Type | Description |
|---|---|---|
| total | Money | 整張訂單總金額 |
| sub_total | Money | 所有品項總金額 |
| discount | Money | 折扣金額 |
| total_discharge | Money | 尾數折讓 |
| total_fee | Money | 實際付款金額 |
| total_extra | Money | 總溢收金額 |
| admission_tickets | Money | 門票總金額 (optional) |
| courses | Money | 課程總金額 (optional) |
| sale_event_coupon | Money | 抵用券金額 |
| points | Point | 訂單點數使用明細 只有訂單狀態為CREATED,且有使用點數時回傳 (optional) |
Response Body Parameters - Service Charges
| Name | Type | Description |
|---|---|---|
| amount | integer | 最小單位金額 |
| currency_code | string | 貨幣代碼 ISO 4217 code |
| formatted_amount | string | 顯示用金額 |
| service_rate | integer | 服務費倍率(%) |
Response Body Parameters - Cart
| Name | Type | Description |
|---|---|---|
| items | Item[] | 品項資料 |
Response Body Parameters - Receipt
| Name | Type | Description |
|---|---|---|
| type | string (enum) |
發票類型 ALLOWED VALUES:
|
| tax_ID_number | string | 買方統一編號 (optional) |
| npoban | string | 捐贈碼 (optional) |
| carrier_type | string | 買方載具類別 (optional) |
| carrier | string | 買方載具 (optional) |
| receipt_number | string | 發票號碼 (optional) |
| random_number | string | 隨機碼 (optional) |
| AESKey | string | AESKey (optional) |
| title | string | 發票標題 (optional) |
| begin_ym | string | 起始年月 (optional) |
| end_ym | string | 結束年月 (optional) |
| gui_number | string | 賣方統一編號 (optional) |
Response Body Parameters - Item
| Name | Type | Description |
|---|---|---|
| type | string (enum) |
商品類型 ALLOWED VALUES:
|
| id | string | 編號 |
| title | string | 商品第一名稱 |
| translate_title | string | 翻譯名稱 |
| second_title | string | 商品第二名稱 |
| translate_second_title | string | 商品第二翻譯名稱 |
| abbreviated_title | string | 商品簡稱 |
| translate_abbreviated_title | string | 商品翻譯簡稱 |
| serial_number | int | 序號 |
| quantity | int | 數量 |
| special_instructions | string | 特殊要求 (optional) |
| price | ItemPrice | 售價 |
| selected_modifier_groups | ModifierGroup[] | 可選群組 (optional) |
| ticket_no | string | 票卷號碼 (optional) |
| redeem_point | int | 兌換點數 |
| is_hidden | boolean | 是否隱藏商品 |
| allocated_quantity | int | 已分配數量 (optional) |
| remaining_quantity | int | 剩餘數量 (optional) |
| verified_quantity | int | 已入園數量 (optional) |
| unverified_quantity | int | 未入園數量 (optional) |
| car | Car | 汽車資訊 (optional) |
| course | Course | 課程資訊 (optional) |
| show_certificate | boolean | 是否出示證明文件 |
| combo_id | string | 套餐編號 |
| is_combo | boolean | 是否為套餐 |
| is_combo_item | boolean | 是否為套餐子項目 |
| pack_id | string | 系列組合編號 |
| is_pack | boolean | 是否為系列組合 |
| is_pack_item | boolean | 是否為系列組合子項目 |
| image | string | 圖檔或圖片URL |
| external_id | string | 外部商品編號 (optional) |
| unique_code | string | 訂單唯一碼 |
| pack_suit_id | string | 系列組合編號 (optional) |
| is_limited | boolean | 是否為限量商品 |
| combo_no | string | 套餐序號 |
| ai_recommend | boolean | 是否為ai推薦 |
| is_fare | boolean | 是否為運費 |
Response Body Parameters - ItemPrice
| Name | Type | Description |
|---|---|---|
| unit_price | Money | 單價 |
| total_price | Money | 合計售價 |
Response Body Parameters - ModifierGroup
| Name | Type | Description |
|---|---|---|
| id | string | 編號 |
| title | string | 名稱 |
| translate_title | string | 翻譯名稱 |
| selected_items | Item[] | 被選擇的品項 |
| removed_items | Item[] | 沒被選擇的品項 |
| combo_taste | bool | 是否為套餐加值 (optional) |
Response Body Parameters - Money
| Name | Type | Description |
|---|---|---|
| amount | float | 最小單位金額 |
| discount | float | 折價金額 |
| currency_code | string | 貨幣代碼 ISO 4217 code |
| formatted_amount | string | 顯示用金額 |
Response Body Parameters - Car
| Name | Type | Description |
|---|---|---|
| id | string | 車號 |
| name | string | 車名 |
Response Body Parameters - Course
| Name | Type | Description |
|---|---|---|
| classroom_id | string | 教室編號 |
| classroom_name | string | 教室名稱 |
| class_time | string | 上課時間 EXAMPLE "2020-01-01 12:00:00" |
Response Body Parameters - Point
| Name | Type | Description |
|---|---|---|
| before_transaction | integer | 本次交易前持有點數 |
| exchange_amount | integer | 本次交易可折抵金額 |
| after_transaction | integer | 本次交易後點數餘額 |
| add | integer | 本次交易後新增點數 |
| use | integer | 本次交易使用點數 |
Response Body Parameters - Admission Ticket
| Name | Type | Description |
|---|---|---|
| type | string (enum) |
門票類型 ALLOWED VALUES:
|
| verification_code | string | 驗證碼 |
| expected_admission_date | string | 預計入園日期 EXAMPLE "2020-01-01 12:00:00" |
| actual_admission_date | string | 實際入園日期 EXAMPLE "2020-01-01 12:00:00" |
| extended_expiration_date | string | 系統展延有效日期 EXAMPLE "2020-01-01 12:00:00" |
Response Body Parameters - Tour
| Name | Type | Description |
|---|---|---|
| travel_agency_id | string | 旅行社編號 |
| travel_agency_name | string | 旅行社名稱 |
| guide_id | string | 導遊編號 |
| group_name | string | 團體名稱 |
| group_type_id | string | 團體類別編號 |
| group_type_name | string | 團體類別名稱 |
| need_tour | boolean | 是否需要導覽 |
| course_quantity | integer | 課程數量 |
Response Body Parameters - Pickup Method
| Name | Type | Description |
|---|---|---|
| id | string | 取貨方式編號 |
| name | string | 取貨方式名稱 |
Response Body Parameters - Ticket Info
| Name | Type | Description |
|---|---|---|
| product_tickets | Ticket[] | 單品票券 |
| order_tickets | Ticket[] | 訂單票券 |
Response Body Parameters - Ticket
| Name | Type | Description |
|---|---|---|
| name | string | 票劵名稱 |
| quantity | int | 票劵數量 |
| discount | float | 折價金額 |
| detail | Detail[] | 票券明細 |
Response Body Parameters - Detail
| Name | Type | Description |
|---|---|---|
| id | string | 票劵編號 |
| expired_date | string | 票券效期 |
| discount | float | 折價金額 |