Cancel invoice
cancel_invoiceVoid an invoiced issued in error in SmartBill, preserving the number and marking as cancelled to avoid series gaps. Reversible with restore_invoice.
Instructions
Void an invoice (anulare). The document stays in SmartBill, keeps its number and is marked cancelled, so the series has no gap. Reversible with restore_invoice.
Use this when an invoice was issued in error. Use delete_invoice only if it is the last one in its series and should vanish entirely; use create_reverse_invoice when the undo has to appear in the accounts as a storno document.
Confirm with the user before calling — this changes the status of a real fiscal document.
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": {
"number": "<number>"
},
"name": "cancel_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Invoice number, without the series prefix. | |
| seriesName | No | Invoice series. Falls back to the configured default. | |
| companyVatCode | No | Issuing company CIF. Falls back to SMARTBILL_VAT_CODE. |