Cancel document
cancel_invoiceCancels the issued invoice or proforma summarised by prepare_cancel_invoice once the user has confirmed it, using its confirmation token: the document is marked cancelled and keeps its number; the number of an invoice is never reused. Cancelling can't be undone, and the customer is not notified. Refused, with the token used up, when the token expired or doesn't match, or the document changed after the preparation (e.g. marked paid or sent). A repeated call with the same token returns the same answer without cancelling again.
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": {
"company_id": "<company_id>",
"invoice_id": "<invoice_id>",
"confirmation_token": "<confirmation_token>"
},
"name": "cancel_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the issued invoice or proforma, from list_invoices. | |
| confirmation_token | Yes | The confirmation_token of the answer of prepare_cancel_invoice for this document. |