Orders
Cancel order
Partner cancels the order.
此内容尚不支持你的语言。
https://api.maple.inc/v1/orders/{orderId}/cancelAPI keyAuthorization
Send your API key as Authorization: Bearer <key>: mpk_test_… against the sandbox (https://api.staging.maple.inc/v1), mpk_live_… against production. See Authentication. The samples read the key from MAPLE_KEY and the base URL from MAPLE_BASE, as set up in the Quickstart.
Parameters
orderIdstring required
Request body
application/json, required.
reasonstring or null
Responses
200 OK
-
objectstring requiredAlways
order_decision. -
order_idstring required -
decisionstring requiredOne of
accept,deny,ready,complete,cancel,status. -
statusstring requiredAlways
received.
Errors
-
400Bad request -
401Unauthorized -
403Forbidden -
404Not found -
429Too many requests
Every error body names the error in _tag, explains it in message, and says where to report it in feedback. See Errors.
A 429 also sends Retry-After: Seconds to wait before retrying; also returned as retry_after in the body.