Cancel an order
cancel_orderCancel an existing order by its order ID, optionally providing a reason. Check order status afterward to confirm cancellation.
Instructions
Cancels an existing order (POST /b2b/v1/orders/cancel). Optionally pass a reason. The response body is not documented upstream and is returned verbatim; verify the outcome with get_orders_state (expect canceled or pending_cancel).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Free-form cancellation reason. | |
| order_id | Yes | The order id (the client-side id the order was created with). |