Archiving E-Invoices in Belgium: What VAT Rules Require — Integrations & APIs article by Rui Codex

Under the EU VAT framework that Belgium applies, a structured e-invoice must be stored electronically for the full retention period, and its authenticity of origin, integrity of content and legibility must be preserved throughout. Keeping the original structured file unchanged, with a readable copy, an audit trail and controlled access, is the practical way to meet this.

Key takeaways

  • Structured e-invoices must be kept in a form that preserves authenticity, integrity and legibility for the whole storage period.
  • The original structured file is the invoice, so a PDF copy alone may not satisfy the rules.
  • Any archive must detect changes, control access and record who did what.
  • Storage design fails most often during system upgrades, exports and migrations.
  • Retention length and conditions are set by Belgian national rules, so confirm them with a qualified tax adviser.

What do the VAT rules require when storing e-invoices?

The rules require that a stored invoice remains readable and that its origin and content can be verified for the whole storage period. The EU VAT Directive sets this out as a condition for electronic invoices, and Belgian law applies it through national rules.

Article 233 of Council Directive 2006/112/EC on the common system of value added tax lists three properties: authenticity of origin, integrity of content and legibility. These are conditions on the invoice, not on the software. Any system you choose must be able to show that all three held for every day of the retention period.

The retention period itself is not stated in this article. Its length and any conditions for electronic storage come from Belgian national rules, which you should confirm with a qualified tax adviser for your situation. This article is general information and not legal or tax advice.

A structured invoice is data, not only a picture of a page. The XML fields carry the VAT amounts, rates and identifiers that your bookkeeping relies on. A PDF rendering can look correct while losing those fields, which is why many archiving failures are really data-loss failures. Whether a PDF alone meets the rules depends on national requirements, so check that point before relying on it.

Tip: Store the original structured file as the record, and treat any PDF as a convenience copy.

How do you keep authenticity and integrity intact?

You keep them intact by making the stored file tamper-evident and by recording every access and change. Overwriting is the failure to design out, so the archive should accept new versions only as new records.

Practical measures include the following. Write each file once and lock it against modification for the retention period. Compute a cryptographic hash when the file is stored and keep the hash separately, so a later mismatch is detectable. Apply a trusted timestamp where your tooling supports it. Log every read, write and deletion with a user identity and a time.

Legibility is easier to overlook. An XML file that no current software can open meets the letter of nothing. Keep documentation of the format version, and plan a migration path before the reader software you depend on is retired.

If your invoices arrive over the Peppol network, the receiving step is where structured data first enters your systems. The Peppol e-invoicing integration service at Rui Codex covers that receiving side, and the archive design should start from the same data model.

Tip: Test restoration, not only storage. An archive is proven only when a stored invoice can be retrieved, opened and verified.

Which storage options work, and where do they fail?

No single option is correct for every business. Each has a characteristic strength and a characteristic failure, and the right choice depends on how much control you need over deletion and migration.

OptionStrengthWhere it fails
ERP database with attachmentsInvoices sit next to the bookkeeping dataUpgrades and data exports can alter or drop fields
Document management with retention locksStrong control over deletion and access logsRequires configuration; a loosely set policy weakens it
Object storage with immutability settingsWrite-once behaviour and scalable retentionOnly as good as the key management and access rules around it
Shared drive or mailboxEasy to start withNo versioning discipline, weak audit trail, easy to overwrite

The ERP option is attractive because invoices stay linked to their postings. Its weakness is that the ERP is built to change. A version upgrade, a changed export template or a migration can silently truncate the structured data. Many teams therefore keep a separate archive copy even when the ERP holds the invoice.

Shared drives are the most common failure. They work until someone renames, edits or deletes a file, and nothing records that it happened. They are rarely acceptable as the sole archive for structured invoices.

Hypothetical examples of archive failures

Here are two hypothetical scenarios: these are illustrations of common failure modes and do not describe any real organisation.

In the first scenario, a finance team upgrades its accounting system and changes the export template. Old invoices are later re-exported as PDFs, and the structured fields are no longer attached. The records still look complete on screen, but the structured data required for reconciliation is gone. The fix would have been a test restore of a sample invoice before the upgrade.

In the second scenario, invoices are saved to a shared folder organised by supplier. A staff member replaces a corrected invoice file under the same name. No previous version exists and no log shows the change. The team cannot prove which version was originally received. Versioned, write-once storage with an access log would have made the change visible.

What should an archiving checklist cover?

A checklist turns the rules into tests that someone can run. Review it at least once a year and after every change to your invoicing or accounting systems.

  • The original structured file is stored unchanged and identified by a stable reference.
  • A hash is computed on storage and checked on retrieval.
  • Deletion and overwrite are blocked during the retention period.
  • Access and change logs are kept and reviewed by someone other than the administrator.
  • The format version is documented, with a migration plan for readers.
  • A sample invoice is restored and verified each quarter.
  • The retention period applied to each invoice type is confirmed in writing with your adviser.

Data handling also touches privacy law, because invoices contain personal and business data. For that side, see the security, GDPR and compliance engineering articles on the Rui Codex blog, which cover retention and access design more broadly.

Frequently Asked Questions

Can I keep only a PDF of a structured e-invoice?

A PDF can serve as a convenience copy, but the structured file is the invoice data. Whether a PDF alone is sufficient depends on Belgian national rules, so confirm that point with a qualified tax adviser before you rely on it. Keeping both is the safer design.

Does archiving have to happen in Belgium?

The VAT Directive focuses on authenticity, integrity and legibility rather than on a physical location. Any data location and transfer question also depends on privacy rules, which you should check with counsel. Your storage contract should state where data is held.

What happens if my ERP is upgraded?

An upgrade can change export formats and drop structured fields. Test the restore of sample invoices before and after the upgrade, and keep a separate archive copy so the record does not depend on the ERP version.

Who is responsible for the archive design?

The business remains responsible for meeting its VAT obligations. Rui Codex offers technical implementation support for storage, integration and logging, but does not provide legal, tax or compliance advice, audits or certification.

How do I check that an archive meets the rules?

Run the checklist in this article and restore sample invoices on a schedule. Ask your tax adviser to confirm the retention rules that apply to your invoice types, because the technical test alone does not settle the legal question.

Conclusion

Archiving structured e-invoices in Belgium comes down to keeping the original data, proving it has not changed, and keeping it readable for the full retention period. The VAT Directive states these conditions, and Belgian national rules set the detail. The weakest points are usually ordinary: a changed export, an overwritten file or a format nobody can open anymore. Treat the archive as a system to be tested, not a folder to be filled. If you want a second engineering view on your setup, request a project consultation at the Rui Codex contact page, or email info@ruicodex.com to discuss your project.

Sources

Tags: e-invoicing VAT rules Belgium invoice archiving structured invoices Peppol data integrity retention system integration

Need Help Implementing This?

Our team can help you put these insights into practice. From AI automation to custom software development, we build solutions that deliver real results.

Send a project request