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.
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. |