Archiving E-Invoices: What Companies and the Self-Employed Need to Know

Since 2025, companies and self-employed persons in Germany have had to be able to receive e-invoices in the B2B sector. The obligation to issue them as well follows step by step until 2028, with exceptions, e.g. for small business owners (Kleinunternehmer). Keep in mind that e-invoices not only have to be created and received, but always archived as well. In this article, we show how long e-invoices have to be kept, what the requirements for archiving are and how the archiving of e-invoices can be put into practice.

Archiving E-Invoices: What Companies and the Self-Employed Need to Know

What are e-invoices?

In an e-invoice, all contents such as amount, taxes and recipient are stored in a clear, predefined structure (XML). Unlike a conventional PDF invoice, an e-invoice can therefore be read and processed automatically.

Various usable formats exist for e-invoices; in Germany, the following in particular are considered standard:

  • XRechnung
    • A pure XML format designed for machine processing
    • Special tools are needed for people to view it
    • Intended in particular for exchanging invoices with public contracting authorities
  • ZUGFeRD
    • A combination of a human-readable PDF part and a machine-evaluable XML part
    • Practical in particular for exchanging invoices between companies (B2B)
    • Meets the requirements for an e-invoice from version 2.0.1, except in the profiles MINIMUM and BASIC WL
    • With the profile XRECHNUNG, ZUGFeRD can in many cases also be used for exchanging invoices with public contracting authorities
    • If the PDF part and the XML part differ, the XML part is decisive according to the Federal Ministry of Finance. It must be retained in any case

Who does the e-invoice obligation apply to?

  • Who has to be able to receive e-invoices?
    • Since January 1, 2025, all companies in Germany must be able to receive e-invoices from other companies
    • This also applies to self-employed persons and small business owners (Kleinunternehmer)
  • Who has to issue e-invoices?
    • From January 1, 2027, all companies with a previous year's revenue of more than 800,000 euros must issue e-invoices for B2B transactions
    • From January 1, 2028, in principle all companies must issue e-invoices in the B2B sector (for exceptions, see below)
    • From these dates, paper invoices and conventional PDF invoices are only permitted in exceptional cases (e.g. for small amounts up to 250 euros gross)
  • General exceptions
    • Small business owners under Section 19 UStG are permanently exempt from the obligation to issue e-invoices (but must be able to receive and process them)
    • In principle, no e-invoices have to be issued to private customers
    • For certain tax-exempt transactions under Section 4 nos. 8 to 29 UStG (e.g. medical services), there is no obligation to issue an invoice and therefore no e-invoice obligation either

How long do e-invoices have to be archived?

Like conventional PDF invoices or paper invoices, e-invoices are subject to the statutory retention obligations. These arise from the German VAT Act (UStG), the German Fiscal Code (AO) and, for merchants (Kaufleute), also from the German Commercial Code (HGB).

Accordingly, a statutory retention period of eight years also applies to e-invoices. The period begins at the end of the calendar year in which the invoice was issued or received.

Note: The retention period for accounting records such as invoices (and e-invoices) was shortened from ten to eight years by the Fourth Bureaucracy Relief Act (BEG IV).

Important: Statutory retention obligations apply not only to invoices but also to other business records. Depending on the type of document, the retention periods are six, eight or ten years.

Example of calculating the retention period of e-invoices

  • Receipt of an email with an e-invoice attached: October 12, 2025
  • Start of the retention period: December 31, 2025
  • End of the retention period after eight years: December 31, 2033
  • Deletion permitted at the earliest from: January 1, 2034

However, the retention period does not expire as long as the invoice is of significance for taxes whose assessment period has not yet expired (Section 147 para. 3 AO), e.g. during a tax audit.

What are the GoBD requirements for archiving e-invoices?

When retaining or archiving e-invoices, the GoBD (principles for the proper keeping and retention of books, records and documents in electronic form and for data access) must be observed.

The GoBD govern how digital documents with tax relevance must be captured, processed, archived and made available so that the tax office accepts them in the event of a tax audit.

The requirements for GoBD-compliant archiving of e-invoices include:

  • Retention in the original digital format
    • Printing e-invoices on paper instead of archiving the digital original is not permitted under the GoBD
  • Complete archiving
    • All incoming and outgoing e-invoices must be archived completely and true to the original
  • Order and findability
    • E-invoices must be stored in the archive in an orderly structure, so that targeted access to the data is possible
  • Immutability
    • Subsequent changes to e-invoices must be technically ruled out or be made traceable without gaps (for example through versioning in which the original is preserved and remains recognizable)
  • Compliance with the retention periods
    • The archive must ensure that e-invoices cannot be deleted before their statutory retention period has expired (deletions must be technically ruled out or logged without gaps)
  • Data access by the tax office
    • In a tax audit, the archived e-invoices must be provided in machine-evaluable form (either through access to the archive itself or by handing over the data as an export)
  • Traceability
    • During an audit, the tax office must be able to trace how the archiving of e-invoices is implemented (for example through procedural documentation, archiving logs and the logging of configuration changes to the archive)
  • Data security
    • The security of the archived data must be ensured by suitable technical and organizational measures such as access protection, encryption and regular backups

Does the email have to be archived or only the attached e-invoice?

E-invoices can also be transmitted via special portals or interfaces, but sending and receiving them by email is expressly permitted and will probably remain common practice for e-invoices as well.

At this point, the question may arise as to what exactly has to be archived: Only the attached e-invoice or the email as well? The answer is: It depends.

  • If the email is only a transport medium for the e-invoice and does not itself contain any further relevant information on the business transaction, only the e-invoice has to be archived
  • If the email contains information such as payment terms or payment deadlines that make the business transaction traceable, both the attached e-invoice and the email itself must be archived

How can e-invoices be archived in a GoBD-compliant way in practice?

In principle, neither the GoBD nor the legal bases for the retention obligation for e-invoices (AO, UStG, HGB) prescribe a specific technical solution. All that matters is that the requirements of the GoBD are met when archiving. 

Simply saving the invoices on the hard disk or in cloud storage is therefore generally not sufficient without additional measures. After all, to pick out one example, the data there can be deleted or subsequently changed at any time and unnoticed.

In practice, GoBD-compliant archiving of e-invoices can be achieved in different ways. For example with a document management system (DMS) or accounting software with a built-in archiving function.

In addition, especially if e-invoices are primarily sent or received by email, GoBD-compliant email archiving has decisive advantages:

  1. E-invoices sent or received by email are automatically archived in their original format together with the email, without anyone having to file them individually
  2. Important meta information such as recipient, sender, date and time remains assigned to the invoice and is preserved in the long term
  3. If the message body of an email contains relevant information on the business transaction, the email itself must always be archived in a GoBD-compliant way in addition to the attached e-invoice
  4. In many cases, emails are subject to the statutory retention obligations regardless of any e-invoices transmitted and must be archived in a GoBD-compliant way by companies and self-employed persons anyway

With Vanderplanki Desktop, e-invoices received and sent by email are archived in their original form together with the email, can be found via the full-text search and are subject to your compliance policy.

Legal disclaimer: The contents refer to the legal situation in Germany. They are for general information only and do not constitute tax or legal advice. Laws and the views of the tax authorities can change. Although the contents were prepared with care, we give no guarantee that they are correct, complete and up to date, and accept no liability for damage resulting from their use. For your specific case, please consult your tax advisor or lawyer.

GoBD-Compliant Archiving with Vanderplanki Desktop Standard

As of version 5, Vanderplanki Desktop helps you archive your business emails in a GoBD-compliant way: with a compliance policy, an audit log and, if needed, journal archiving.