Create reverse (storno) invoice
create_reverse_invoiceReverse an existing invoice by issuing a storno invoice in the same series, creating an accounting-visible cancellation for invoices too old to delete.
Instructions
Issue a storno invoice that reverses an existing invoice in full, into the same series. This is the accounting-visible way to undo an invoice: both documents remain, and they cancel out.
Use this when an invoice is too old to delete and the reversal has to appear in the books. Use cancel_invoice instead when the invoice was issued in error and simply needs to be voided. For a partial correction, issue a new invoice with negative quantities rather than reversing the whole document.
This creates a new fiscal document — confirm with the user before calling.
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": "create_reverse_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Invoice number, without the series prefix. | |
| issueDate | No | Issue date of the storno invoice (YYYY-MM-DD). | |
| seriesName | No | Invoice series. Falls back to the configured default. | |
| companyVatCode | No | Issuing company CIF. Falls back to SMARTBILL_VAT_CODE. |