API說明-到時候new_ezding還要再開一個對外接口,只能取消訂單

API位置 /new_ez_order/third_party/update_ez_order
需求描述 更新訂單狀態(for第三方)
傳輸物件格式 json
方法 POST

範例

curl -X POST \
-H "X-Ftcsys-key: {KEY}" \
-H "X-Accept-Language: {language}" \
-H "Content-Type: application/json" \
-d '{
  "ez_order_id": "445b11d533524dcb8a836f4407c8bdfc",
  "channel_code": "pchome",
  "ez_order_status": 2
}
https://{endpoint}/new_ez_order/third_party/update_ez_order

回傳範例 - 更新成功

< HTTP/1.1 200
< Content-Type: application/json; charset=UTF-8
{
  "result": {
    "ez_order_id": "445b11d533524dcb8a836f4407c8bdfc"
  },
  "local_return": 233,
  "code": 200,
  "status": "success"
}

回傳錯誤 - 更新失敗

< HTTP/1.1 400 Bad Request
< Content-Type: application/json; charset=UTF-8
{
  "code": 400,
  "local_return": 233,
  "message": "更新失敗",
  "status": "failure"
}
HTTP回應碼 result 說明
200 "" 查詢成功
403.999 "" 參數錯誤
404.113 "" 通路代碼不存在
401.129 "" 通路代碼不可為空
403.128 "" 通路代碼已失效
401.104 "" ez訂通路訂單編號不可為空
404.017 "" 無此筆交易紀錄

接收json參數

參數 名稱 範例 必填 備註
ez_order_id ez訂訂單id 002dd04b1a9b4afeae15fc9a3d0ffdcc Y
channel_code 通路代碼 pchome Y
ez_order_status ez訂訂單狀態 2 Y 待補狀態碼

回傳json參數

參數 名稱 範例 必填 備註
ez_order_id ez訂訂單id 445b11d533524dcb8a836f4407c8bdfc Y

results matching ""

    No results matching ""