Cancel operation (irreversible)
cancel_operationIRREVERSIBLE: cancel an unpaid QR or invoice so the customer can no longer pay it. It cannot be undone; ask the user to confirm the operation id before calling. Does not refund paid operations (use refund for that). Use only for an operation that is not paid yet; for a paid one use refund. Returns the updated operation.
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": {
"operation_id": "<operation_id>"
},
"name": "cancel_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation_id | Yes | Operation id to cancel. | |
| idempotency_key | No | Optional. Your own unique id for this request, e.g. the order number "order-1024". Repeating a call with the same idempotency_key returns the same result instead of creating a duplicate, so pass one whenever you might retry. If omitted, a random key is generated (then a retry WILL create a duplicate). |