For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cancel order

[POST] /api/v2/order/cancel

Cancels an order that has not been paid yet. The order moves to deposit_canceled.

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.

deposit_canceled is not the end of the story. If the user's payment turns up afterwards we still accept it, and the order moves on to deposit_successful. Do not treat a cancellation as proof that no money will arrive — keep handling webhooks for that order.

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