API說明-new_ezding要再開接口,前台只能取消訂單

API位置 /new_ez_order/orders/update_ez_order
需求描述 更新一筆ez訂訂單
傳輸物件格式 json
方法 POST

範例

curl -X POST \
-H "X-Ftcsys-key: {KEY}" \
-H "X-Ftc-Authorization: {token}" \
-H "X-Accept-Language: {language}" \
-H "Content-Type: application/json" \
-d '{
  "ez_order_id": "445b11d533524dcb8a836f4407c8bdfc",
  "ez_order_status": 2
}
https://{endpoint}/new_ez_order/orders/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回應碼 結果 說明
404.006 "" 訂單不存在
403.999 "" 參數錯誤

接收json參數

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

回傳json參數

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

results matching ""

    No results matching ""