Delete invoice
delete_invoicePermanently delete the last invoice in a series to free its number. Irreversible—no restore. Use cancel_invoice for earlier invoices.
Instructions
Permanently remove an invoice, freeing its number for reuse. Irreversible — there is no restore.
SmartBill only allows this for the LAST invoice in a series and rejects it for any earlier one. For those, use cancel_invoice to void it or create_reverse_invoice to storno it.
Destroys a fiscal document: ask the user to confirm explicitly, and prefer cancel_invoice when unsure.
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": "delete_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. |