When to Issue a Corrective Invoice and When to Cancel in Spain: Differences, Requirements and Consequences
Issuing a corrective invoice and cancelling an invoice are not the same thing. They are two distinct operations with different requirements, different VAT consequences and different technical treatments in the new electronic invoicing systems. Confusing them can lead to loss of VAT deduction rights, errors in quarterly returns and problems in a tax inspection. This guide explains when each applies, what the regulations require and what happens in the system when either is used.
The starting principle: no valid invoice can be deleted or modified
With the entry into force of Royal Decree 1007/2023 (RRSIF) and SIF systems adapted to VeriFactu, every invoice issued generates an invoicing record with a hash chained to the previous record. This means any attempt to delete or modify an already-generated invoice breaks the traceability chain and constitutes an infringement under Article 11 of RD 1007/2023.
The rule is clear: a valid invoice cannot be deleted, edited or removed. When something needs correcting, the path is always documentary — through a corrective invoice — or technical — through a cancellation record or remediation. Never through direct modification of the original document.
This principle is not new, but with electronic invoicing it takes on an operational and technical dimension it never had before: a compliant SIF makes it technically impossible to circumvent, and if the software allows it, that software is violating the RRSIF.
Three concepts to keep apart: rectification, cancellation and remediation
Before going into detail, the differences between the three terms must be clear:
Rectification: a new invoice (corrective invoice) is issued that corrects or replaces a valid but erroneous original invoice, or one modified by subsequent circumstances. It has fiscal and accounting effects.
Cancellation: a cancellation record is generated for a previous invoice registration, declaring that the invoice should never have existed. Only valid when the invoice was never a real transaction. It has no VAT effect because no VAT was ever due.
Remediation: an exclusively technical correction of the invoicing record — the hash, the digital signature, the XML metadata — without modifying the invoice content. Carried out by the software, not the user. The invoice itself does not change.
When a corrective invoice must be issued
Mandatory cases under RD 1619/2012 and Spain's VAT Act
The obligation to issue a corrective invoice is set out in Article 15 of Royal Decree 1619/2012 (Invoicing Regulations) and Article 89 of Law 37/1992 (VAT Act). It applies in the following cases:
1. Error in mandatory invoice data (Art. 6 and 7 of RD 1619/2012): incorrect or missing Tax ID (NIF), errors in issuer or recipient details, insufficient description of goods or services, incorrect date of issue. An error in recipient identification can cause them to lose the right to deduct the VAT borne.
2. Error in VAT charged: incorrect tax rate applied (21% charged when 10% applied, or vice versa), arithmetic error in the quota calculation, incorrect application of the equivalence surcharge, or incorrect reverse charge application.
3. Modification of the VAT taxable base (Art. 80 VAT Act): return of goods, price reduction for quality defects, post-sale discounts, total or partial contract termination, uncollectable debts, or debtor insolvency proceedings.
4. Under B2B e-invoicing (RD 238/2026): Article 10.5 establishes specific rules for debit or credit documents and their relationship to invoice status fields. An electronic corrective invoice must identify the original using the unique invoice code defined in Article 7.5 (issuer NIF + number/series + date of issue).
When it must be issued and the maximum deadline
The corrective invoice must be issued as soon as the error or triggering circumstance is known. The maximum deadline is 4 years from the point at which the tax became due (Art. 89 VAT Act), or from the date the circumstances under Art. 80 VAT Act arose.
For uncollectable debts to recover VAT, the deadlines are stricter: the corrective invoice must be issued within three months of the expiry of six months of non-payment. Once issued, the obligated party has one month to notify the AEAT.
Types of corrective invoice
By differences
A new invoice is issued showing only the difference between the original and the correct invoice. The amount can be positive (if more was owed) or negative (if less was owed or an amount must be annulled).
Example: original invoice for €1,000 base + €210 VAT (21%). Correct rate was 10%. Corrective invoice by differences: taxable base €0, VAT quota -€110 (difference between €210 and €100).
By substitution
A new invoice is issued that fully replaces the original. Two records must be generated: the erroneous invoice with negative amounts and the corrective invoice with the correct amounts.
Example: original invoice €1,000 base + €210 VAT. Substitutive corrective: negative record of -€1,000 base / -€210 quota, plus new invoice of €1,000 base / €100 quota (10% VAT).
Positive or negative corrective invoice
A corrective invoice is negative when it reduces the original amount (returns, discounts, unpaid debts). It is positive when it increases it (VAT charged at too low a rate, price agreed above what was invoiced). The accounting and tax treatment differs in each case.
Formal requirements of the corrective invoice
Under Article 15 of RD 1619/2012, every corrective invoice must:
- State expressly that it is a corrective invoice.
- Use a specific series and numbering for corrective invoices (typically "R" or "REC" series), separate from the general numbering sequence.
- Identify the original invoice(s) being corrected (number, series and date).
- State the reason for the correction.
- Show the taxable base and quota before and after the correction, or the amount of the difference depending on the method used.
- Meet all other mandatory invoice requirements (issuer and recipient data, tax rate, date, etc.).
Under the RRSIF and VeriFactu, the corrective invoice generates a new invoicing record with its own hash, chained to the preceding ones. The original invoice's hash remains unchanged: the corrective does not modify it but creates a new link in the chain.
When an invoice can be cancelled
The valid case: the invoice was never a real transaction
Cancellation is an exceptional procedure, valid only when the invoice was generated in error and was never a real transaction nor placed at the recipient's disposal. Valid cases include:
- Invoice issued in accidental duplicate (system technical fault).
- Invoice generated for a transaction that never completed before being delivered to the client.
- Numbering or series error during generation, before any fiscal effect occurred.
- Invoice generated in draft form that never left the system.
What cancellation does not allow is correcting errors in an invoice that was already delivered to the client, collected or that produced fiscal effects. That is what the corrective invoice is for.
How cancellation works in VeriFactu and the RRSIF
In a SIF adapted to RD 1007/2023, cancellation does not delete the original record: it generates a cancellation record that references the preceding registration record via its hash. The chain remains intact and the AEAT can verify that a registration existed and was subsequently cancelled, with full traceability.
The cancelled invoice number cannot be reused: it remains occupied in the sequence to maintain continuity. This is an important difference from previous practice, where some systems allowed a number to be "freed" after cancellation.
Consequences of incorrectly cancelling an invoice
Cancelling an invoice that did have fiscal effects (was collected, VAT was filed, the client deducted it) without issuing the corresponding corrective invoice can result in:
- Loss of VAT deduction rights for the recipient.
- Inconsistencies in quarterly VAT returns for the issuer.
- Tax penalties if the AEAT detects the discrepancy between the cancellation and the reported payment data.
- Breach of the traceability required by the RRSIF, with the penalty consequences of Article 11 of RD 1007/2023.
Remediation: when the software corrects, not the user
Remediation is the correction of an exclusively technical error in the invoicing record — the hash, the digital signature, the XML metadata — when the invoice content is correct. It does not modify the invoice itself, only the integrity mechanism that accompanies it.
Typical remediation cases are:
- Digital signature incorrectly generated due to a transient system fault.
- Transmission error when sending the record to the AEAT (communication incident).
- Incorrect XML technical data that does not affect the fiscal content of the invoice.
Remediation is carried out by the software at the user's request, not by the user directly. Anyone who thinks they can manually "remediate" a content error in the invoice is confusing the concepts — and likely violating the RRSIF.
Fiscal and accounting consequences: summary table
| Corrective invoice | Cancellation | Remediation | |
|---|---|---|---|
| When used | Valid invoice with error or subsequent change | Invoice was never a real transaction | Technical error in the record (not the content) |
| VAT effect | Modifies taxable base and/or quota charged | None (no tax ever arose) | None |
| Accounting effect | New income/expense entry or adjustment | None (no transaction ever recorded) | None |
| Generates new document | Yes (corrective invoice with own numbering) | No (cancellation record in the SIF) | No (technical correction of the record) |
| Reference to original | Mandatory (number, series, date) | Mandatory (hash of registration record) | Mandatory (hash of record to correct) |
| Maximum deadline | 4 years from tax due date | Before any fiscal effect | As soon as technical error is detected |
| Invoice number | New number in corrective series | Original number cancelled and non-reusable | No effect on numbering |
What this means under the new B2B framework (RD 238/2026)
With mandatory B2B e-invoicing, corrective invoices must also be issued in structured format (Facturae, UBL or CII) and transmitted through interoperable platforms. Article 10.5 of RD 238/2026 sets specific rules for debit or credit documents and their relationship to invoice status fields.
A key point raised by EC-CGE Position Paper No. 3/2026: electronic corrective invoices have direct implications for the periodification and adjustment of income and expenses. Accounting systems must explicitly account for the handling of electronic corrective invoices to avoid mismatches or duplications in the accounting record.
The unique invoice code of Article 7.5 of RD 238/2026 (issuer NIF + number/series + date of issue) will be essential for correctly identifying which invoice corrects which, both in the issuer's and recipient's systems and in the AEAT's records.
Frequently asked questions: corrective invoices and cancellations
Can I modify an already-issued invoice directly in the system?
No. No compliant SIF allows it. Directly modifying an issued invoice breaks the hash chain and constitutes an infringement of Article 11 of RD 1007/2023. The only path is to issue a corrective invoice or a cancellation record depending on the situation.
Can the corrective invoice use the same number as the original?
No. The corrective invoice must use a specific series and numbering for corrective invoices (e.g. "R-001", "REC-2026-001"), independent of the general invoice series. Using the same numbering is a formal error that can invalidate the corrective invoice.
If I cancel an invoice in the system, is it recorded at the AEAT?
Yes. In VeriFactu, the cancellation record is transmitted to the AEAT linked to the original registration record. The AEAT can verify that an invoice existed and was cancelled, with full traceability.
Does a cancelled invoice free up the number for a new invoice?
No. The cancelled invoice number remains occupied in the sequence to maintain continuity. It cannot be assigned to a new invoice.
What happens if I issue a corrective invoice outside the 4-year deadline?
A corrective invoice issued outside the deadline has no fiscal effect: it cannot modify the VAT quotas of already-filed returns. It may have internal accounting effects, but fiscally it is considered out of time.
How does a negative corrective invoice affect the invoice recipient?
The recipient must reduce the deducted input VAT corresponding to the original invoice. If already deducted, it must be regularised in the return for the period in which the corrective invoice is received. Failure to do so may result in incorrectly deducted quotas and penalties.
Conclusion: traceability as the new compliance standard
Electronic invoicing has not changed when to correct or when to cancel. It has changed how — and it has done so in a way that any irregularity is technically recorded and verifiable by the AEAT.
For advisors, accountants and businesses, this demands two things: knowing precisely when each operation applies, and ensuring that the invoicing software correctly implements corrective and cancellation records in accordance with the RRSIF. Software that allows already-generated invoices to be modified or deleted does not comply with RD 1007/2023, and its use exposes the taxpayer to penalties of up to €50,000 per tax year.
See our technical documentation on InvoSeal's invoicing cycle for details on how we handle corrective invoices and cancellations in accordance with the RRSIF and RD 238/2026.