API說明

API位置 /new_ez_order/third_party/get_order_detail?ez_order_id={ez_order_id}&channel_code=pchome
需求描述 查詢一筆訂單明細for第三方
傳輸物件格式 json
方法 GET

範例

curl -X GET \
-H "X-Ftcsys-key: {KEY}" \
-H "X-Accept-Language: {language}" \
-H "Content-Type: application/json" \
https://{endpoint}/new_ez_order/third_party/get_order_detail?ez_order_id={ez_order_id}&channel_id=pchome

回傳範例

< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
{
  "result": {
    "ez_order_id": "445b11d533524dcb8a836f4407c8bdfc",
    "ez_order_status": 1,
    "movie_id": "c5516129d1e94c71841f09d3d18290e2",
    "cinema_id": "c5516129d1e94c71841f09d3d182903f",
    "session_id": "022a45f3450c4971b79fd0f2c6fca1d6",
    "show_date": 1504137600000,
    "show_time": 1504180800000,
    "movie_version": "數位",
    "booking_num": "N123ABC",
    "quantity_sum": 4,
    "seats": "M-11,M-12",
    "price_sum": "800",
    "point_sum": 800,
    "ez_member_point_sum": 1000,
    "fee_sum": 40,
    "plus_price_sum": 40,
    "converse_price_sum": 50,
    "sales_system": 2,
    "channel_code": "pchome",
    "campaign_code": "pchome",
    "booking_detail": [
      {
        "ez_product_master_id": "EZADULT",
        "ez_product_name": "ez訂全票",
        "ez_product_type": "全票",
        "channel_num": 1111111111,
        "price": 400,
        "point": 400,
        "ez_member_point": 400,
        "fee": 20,
        "plus_price": 20,
        "converse_price": 20,
        "product_pick_status": 0,
        "refund_price": 0,
        "refund_point": 0,
        "refund_ez_member_point": 0
      },
      {
        "ez_product_master_id": "EZTICKET",
        "ez_product_name": "ez訂紅利票",
        "quantity": 2,
        "ez_product_type": "紅利票",
        "channel_num": 4444444444,
        "price": 400,
        "point": 400,
        "ez_member_point": 400,
        "fee": 20,
        "plus_price": 20,
        "converse_price": 20,
        "product_pick_status": 0,
        "refund_price": 0,
        "refund_point": 0,
        "refund_ez_member_point": 0
      }
    ],
    "inv_status": 0,
    "inv_date": 1504180800000,
    "inv_no": 88888888,
    "inv_device": 1,
    "inv_donateCode": 999,
    "inv_product_list": {
      "inv_product": "訂票手續費",
      "inv_amount": 20
    },
    "created_time": 1504137600000
  },
  "local_return": 233,
  "code": 200,
  "status": "success"
}

HTTP回應碼 result 說明
200 "" 查詢成功
403.999 "" 參數錯誤
404.113 "" 通路代碼不存在
401.129 "" 通路代碼不可為空
403.128 "" 通路代碼已失效
401.104 "" ez訂通路訂單編號不可為空
404.017 "" 無此筆交易紀錄

接收參數

參數 名稱 範例 必填 備註
ez_order_id 訂單ID 445b11d533524dcb8a836f4407c8bdfc Y
channel_code 通路代碼 pchome Y

回傳json參數

參數 名稱 範例 必填 備註
ez_order_id ez訂訂單id 445b11d533524dcb8a836f4407c8bdfc Y
ez_order_status 訂單狀態 0 Y 0:成功、1:已請款、2:已取消
movie_id 電影id c5516129d1e94c71841f09d3d18290e2 Y
cinema_id 影城id c5516129d1e94c71841f09d3d182903f Y
session_id 場次id 022a45f3450c4971b79fd0f2c6fca1d6 Y
show_date 開演日期 1504137600000 Y
show_time 開演時間 1504180800000 Y
movie_version 電影版本 IMAX Y
booking_num 取票序號 N123ABC Y
quantity_sum 總張數 2 Y
seats 座位 M-11,M-12 Y
price_sum 總金額 800 Y
point_sum 付款方總紅利點 800 N
ez_member_point_sum ez訂會員總紅利點 1000 N
fee_sum 訂票手續費總金額 40 N
plus_price_sum 加長費總金額 40 N
converse_price_sum 票種轉換差價總金額 50 N
sales_system 影城銷售系統 2 Y
channel_code 通路代碼 pchome N
campaign_code 通路活動代碼 pchome N
booking_detail 訂單詳細資訊 Y
ez_product_master_id ez訂商品主檔id EZADULT Y 暫定先回傳barcode
ez_product_name ez訂商品名稱 ez訂全票 Y
quantity 商品數量 2 Y
ez_product_type ez訂商品類型 全票 Y
channel_num 付款方優惠券序號資料 N
price 商品金額 400 Y
point 付款方紅利點 400 N
ez_member_point ez訂會員紅利點 500 N
fee 訂票手續費 20 N
plus_price 加長費 10 N
converse_price 票種轉換價差 25 N
product_pick_status 商品取貨狀態 0 Y 1:已取 0:未取
refund_price 退貨金額 0 N
refund_point 銀行紅利點退貨點數 0 N
refund_ez_member_point ez訂會員紅利點退貨點數 0 N
inv_status 發票狀態 1 N 0尚未開立,1發票已開立,2發票已捐贈
inv_date 發票日期 1504180800000 N
inv_no 發票號碼 88888888 N
inv_device 發票載具 1 N 1:捐贈 2:會員 3:手機 4:自然人
inv_donate_code 發票愛心捐贈碼 999 N
inv_product_list 發票品項清單 N
inv_product 發票品項 訂票手續費 N
inv_amount 發票金額 20 N
created_time 建立日期 1504137600000 Y

results matching ""

    No results matching ""