Cancel an order before funding
cancel_orderCancel an unfunded order and notify the shopper. Refused once funding starts; use dispute or refund tools instead.
Instructions
Cancel an order that is not funded yet (requested, quoted or accepted) and tell the shopper (best effort). Refused once funding has started — then use open_dispute, accept_refund_offer or refund_after_timelock. Nothing is paid or refunded.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | reason sent to the shopper (default "cancelled by user") | |
| order_id | Yes | order id (32 hex characters) from request_quote or list_orders |