Cancel order
[POST] /api/v2/order/cancel
Cancels an order that has not been paid yet. The order moves to deposit_canceled.
Only an order still in deposit_awaiting can be cancelled. Anything later returns 400 "Order is not in a state that allows cancellation" — once the deposit is validating or successful the money is in motion, and a failed payout is refunded instead. See Order statuses.
This endpoint also requires the end-user-creation capability on your account; without it every call returns 403. See Integration guide.
You do not have to cancel abandoned orders. An unpaid order expires by itself at order.expiresAt. Cancelling is for when the user explicitly backs out, so the offer is released immediately.
Request body type:
Request body example:
Response
Returns the updated order — the same Order object as Get order, now with status: "deposit_canceled".
Last updated

