Skip to content

Accept Order

Description

請求接受訂單。

Resource

PATCH /v1/orders/{order_id}/accept

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Path Parameters

Name Type Description
order_id string 訂單編號

Request Body Parameters

Name Type Description
reason string 接受的理由或說明。
pickup_time string 訂單準備取貨的時間,指定為Unix時間戳(自1970年1月1日以來的秒數)
(optional)

Request Example

{
  "reason": "accepted"
}

Accept Success Response

Status-Code: 204 No Content

Accept fail Response

Status-Code: 400 Bad Request

{
  "code": "1",
  "message": "000030221229000001,接受訂單失敗(原因:訂單已被接受)"
}

Accept fail Response Body

Name Type Description
code Code 回傳代碼
message string 回傳訊息

Accept fail Response Body Parameters - Code

Code Type Description
1 string 已接受
2 string 已結案
3 string 已拒絕
99 string 訂單已無法接受和拒絕