InvoSeal Blog Invoice Retention

E-Invoice Retention 2027: Legal Deadlines, Formats and What the Tax Authority Requires

· InvoSeal · Retention VeriFactu Digital Archive

Issuing an electronic invoice is only half of your fiscal obligation. The other half is retaining it correctly for as long as the law requires. When VeriFactu comes into full force in 2027, failures in document retention will be directly enforceable: the AEAT (Spanish Tax Agency) will cross-reference invoicing records against what you have stored.

How long must invoices be kept?

Spanish law sets different retention periods depending on the legal basis:

Legal basisPeriodApplies to
Art. 29.2.e) LGT (tax obligations)4 yearsInvoices related to self-assessments (VAT, CIT, PIT)
Art. 30 Spanish Commercial Code6 yearsAccounting books and supporting documentation
Arts. 25–26 LSC (Capital Companies Act)10 yearsAccounting documentation for registered companies
Art. 19 Invoicing Regulation (RD 1619/2012)4 years minimumAll invoices issued and received

Practical rule: If you are a registered company, always retain for 10 years. This single criterion satisfies all deadlines and avoids classification errors by invoice type.

In what format must invoices be retained?

Article 19 of the Invoicing Regulation requires invoices to be retained in the original format in which they were issued or received. This has important practical consequences:

Integrity and immutability

The law does not only require storing the file — it requires the ability to prove it has not been altered since issuance. For digitally signed electronic invoices this is covered by the signature itself: the verifier can confirm the file was not modified. For unsigned invoices (e.g. unsigned PDF), integrity depends on the archive system.

In the VeriFactu context, the hash chain (SHA-256 of each record chained to the previous one) guarantees the immutability of the LRFC. The AEAT can verify it at any time using the VERI*FACTU data it holds.

What happens during a tax audit

In an inspection or information request concerning VAT or corporate income tax, the AEAT may require:

  1. The invoice register books for issued and received invoices (arts. 63 and 64 of the VAT Regulation).
  2. The original invoices that support the register entries (to verify deducted or charged VAT).
  3. For VeriFactu, the LRFC file or, alternatively, the chain of records sent to the AEAT as part of the system.

If you cannot produce the original invoices supporting a deducted VAT amount, the Administration may disallow that deduction and apply a penalty under art. 170 LIVA (penalty of 100% of the unjustified amount, minimum €300).

Cloud storage: is it valid?

Yes. The Invoicing Regulation does not require any specific physical medium. Cloud storage — including servers outside Spain — is valid if:

InvoSeal allows you to export your complete invoice archive in XML and PDF format at any time, regardless of whether you remain a customer.

B2B electronic invoicing from 2027

When the B2B electronic invoicing obligation extends to all businesses (under the Ley Crea y Crece and pending implementing regulations), the invoice recipient will also be required to acknowledge receipt and retain the invoice in electronic format. A self-employed professional or company that receives a paper invoice from a supplier will not be able to digitise it without a compliant process.

InvoSeal archives and retains your invoices automatically

Every invoice issued with InvoSeal is stored in XML (LRFC) and signed PDF format, with an integrity hash, accessible for individual or bulk download. You meet the Invoicing Regulation requirements with no additional infrastructure.

Try InvoSeal free for 14 days →

Official references

← Back to Blog

Comply with VeriFactu from day one.
No delays.

InvoSeal complies with RD 1007/2023. Responsible declaration published. Free 14-day trial.

Try InvoSeal →