In short and in plain language
An e-invoice is an invoice as a file with fixed fields. A program can read it. Often a PDF picture comes with it.
Since July 2025 the rule is: you must mainly keep the file with the fields. You only need the picture if something important is on it. A note for the books is such a thing.
So do not write stamps into the picture. Keep your notes in a separate place. Link them to the invoice.
The file must stay the way it came. Do not turn it into a plain picture. Then the data is lost.
We help you set up safe storage for invoices.
Since 1 January 2025, e-invoicing between domestic businesses in Germany has been introduced (GoBD amendment of 14 July 2025), and every domestic business must have the technical means to receive e-invoices (BMF letter of 15 October 2025). From 1 January 2027, businesses with a prior-year turnover above EUR 800,000 must also issue them (VAT Act, Sec. 27(38)). Every archive therefore holds a growing stock of documents for which old habits no longer work: an invoice is no longer paper or a PDF that gets printed, stamped and filed, but a data record that is often not meant for the human eye at all. The Federal Ministry of Finance therefore amended the GoBD with effect from 14 July 2025 (GoBD amendment of 14 July 2025, marg. no. 185). The core rule: for an e-invoice it is sufficient to keep the structured part. The PDF part of a hybrid invoice only has to be kept if it carries additions that matter for tax, such as posting notes. This article shows what that means for filing incoming and outgoing invoices, what an audit trail in a document management system looks like and where archives lose data in practice.
Key takeaways
- Since the GoBD amendment of 14 July 2025, keeping the structured part of an e-invoice is sufficient; the PDF part of a hybrid invoice only has to be kept if it carries tax-relevant additions such as posting notes (GoBD amendment of 14 July 2025, marg. no. 119).
- Incoming invoices are stored in the format in which they arrive, so e-invoices as XML; a converted version only replaces the original if nothing is lost and the conversion is documented (GoBD amendment of 14 July 2025, marg. no. 131; GoBD, marg. no. 135).
- Writing account codes and approvals as a stamp into the PDF part makes that part subject to retention; notes belong in a separate, logged record next to the unchanged invoice file (GoBD, marg. no. 123).
- No PDF copy of outgoing invoices has to be filed if the invoicing software can produce a copy with identical content at any time; master data, terms and layout must be versioned for that (GoBD amendment of 14 July 2025; GoBD, marg. no. 76).
- Invoices must be kept for eight years from the end of the year of issue and must stay readable on screen and machine-evaluable for that time; a printout is not enough (VAT Act, Sec. 14b(1); GoBD, marg. no. 157).
- The duty to issue e-invoices applies from 1 January 2027 above EUR 800,000 prior-year turnover and from 2028 below it as well; exceptions include small invoices up to EUR 250 (VAT Act, Sec. 27(38); VAT Implementing Ordinance, Sec. 33).
What the July 2025 GoBD amendment covers
The GoBD, the German principles for the proper keeping and retention of books, records and documents in electronic form and for data access, are not a law but a letter from the Federal Ministry of Finance (BMF) that tax authorities apply in audits. The base version dates from 28 November 2019, a first amendment followed on 11 March 2024 (GoBD amendment of 14 July 2025). The ministry explicitly bases the second amendment on the introduction of mandatory e-invoicing between domestic businesses since 1 January 2025 (GoBD amendment of 14 July 2025). It applies without a transition period: the new version is to be applied with effect from 14 July 2025 (GoBD amendment of 14 July 2025, marg. no. 185).
Four marginal numbers decide how invoices are filed. Marginal number 119 states that the structured part of an e-invoice is sufficient. Marginal number 131 requires incoming invoices to be kept in the format received, which for e-invoices means XML. Marginal number 125 makes clear that a format conversion must not delete the XML part. And marginal number 76 allows businesses to skip an image copy of outgoing invoices if a copy with identical content can be produced at any time (GoBD amendment of 14 July 2025). What counts as an e-invoice is set by the VAT Act: an invoice that is issued, transmitted and received in a structured electronic format and allows electronic processing (VAT Act, Sec. 14(1)). A PDF without embedded data is therefore an other invoice, for which the existing rules continue to apply.
For e-invoices within the meaning of Sec. 14(1) sentences 3 and 6 of the VAT Act, it is sufficient to keep only the structured part, provided the requirements of this letter are met (own translation).
The next sentence limits the relief: the human-readable part of a hybrid e-invoice, such as the PDF part of a ZUGFeRD invoice, only has to be kept if it contains additional or deviating information that matters for taxation, for example posting notes (GoBD amendment of 14 July 2025, marg. no. 119). The table shows what that means for the most common invoice types.
| Invoice | What has to be kept | GoBD version of 14 July 2025 |
|---|---|---|
| Pure XML invoice, e.g. XRechnung | the XML file in the format received | marg. no. 131 |
| Hybrid invoice without additions in the PDF part | the structured part; the PDF part may be omitted | marg. no. 119 |
| Hybrid invoice with a posting note in the PDF part | structured part and PDF part, both machine-evaluable | marg. nos. 119 and 125 |
| E-invoice with a qualified electronic signature | invoice file including the signature | marg. no. 131 |
| PDF invoice without structured data | the PDF file in the format received | marg. no. 131 |
| Outgoing invoice from invoicing software | structured data; a PDF copy only if no identical copy can be produced | marg. no. 76 |
Who is affected and from when
There is no threshold for receiving. Domestic businesses must create the technical means to receive an e-invoice, and that includes small businesses under the small business scheme (BMF letter of 15 October 2025). A separate mailbox just for e-invoices is not required (BMF letter of 15 October 2025). Anyone who receives an XRechnung or a ZUGFeRD file from a supplier today therefore already holds a structured record that is subject to retention, even if staff only look at the invoice image.
Sending is subject to a transition rule. For supplies made in 2025 and 2026, invoices may still be sent on paper until 31 December 2026 or, with the recipient’s consent, in another electronic format (VAT Act, Sec. 27(38)). For supplies in 2027 this only applies if the issuer’s total turnover in the previous year did not exceed EUR 800,000; the transition then ends on 31 December 2027 (VAT Act, Sec. 27(38)). Invoices exchanged via electronic data interchange under the Commission’s EDI recommendation also have a transition until the end of 2027 (VAT Act, Sec. 27(38)). Exceptions include small invoices up to EUR 250 and invoices from small businesses, which may still be sent as other invoices (VAT Implementing Ordinance, Secs. 33 and 34a).
For the archive this means the share of structured invoices grows from two sides. More e-invoices arrive because larger suppliers must switch from 2027, and more are created in your own invoicing software. The steps needed in the invoice flow are described in E-invoicing mandate 2027: changing the invoice flow. This article covers the end of that flow: the archive that keeps an invoice readable, unchanged and retrievable for the full retention period.
Keep incoming invoices in the format received
Since July 2025, marginal number 131 of the GoBD reads: incoming electronic commercial or business letters and accounting records must be kept in the format in which they were received, for example invoices in XML format (GoBD amendment of 14 July 2025, marg. no. 131). For structured records received, the tax authorities only require a match in content, not a visual match (GoBD amendment of 14 July 2025, marg. no. 118). That follows from the fact that an XML file has no image against which a reproduction could be compared.
Converting to another format is still possible, but only under the conditions of marginal number 135. As a rule, when documents are converted into an in-house format, both versions have to be archived, assigned to the same record, managed under the same index, and the converted version has to be marked as such (GoBD, marg. no. 135). The converted version alone is only enough if four conditions are met at the same time (GoBD, marg. no. 135):
- No visual or content change is made.
- No other information subject to retention is lost in the conversion.
- The proper and lossless conversion is described in the process documentation.
- Machine evaluability and data access by the tax authority are not restricted.
In practice the conclusion is simple: the file that arrived stays unchanged in the archive. Anything the business derives from it for its own work, a view, an extract for accounting, a searchable version, is added and does not replace it. Anyone who extracts text from image files by text recognition must also keep that text after verification and correction (GoBD amendment of 14 July 2025, marg. no. 131); with a genuine e-invoice this step is unnecessary because the data is already structured. How reliably text recognition works on paper and plain PDF invoices is covered in Text recognition in practice.
The e-mail is the carrier, the mailbox is not an archive
Many e-invoices arrive by e-mail. The e-mail itself does not have to be kept if it only serves as the carrier for the attached invoice and contains no further information subject to retention, just like the paper envelope in the past (GoBD, marg. no. 121). If the message text contains something tax-relevant, such as an agreement that deviates from the invoice, the e-mail is a business letter and belongs in the archive. The mailbox itself is not orderly storage: receipt, archiving, any conversion and further processing of electronic documents have to be logged (GoBD, marg. no. 117), and a mailbox in which staff can move and delete messages does not do that. How a shared mailbox turns into a traceable case is shown in From shared mailbox to traceable case.
One more component belongs next to the invoice: the validation report. A file that does not match the structured format because of format errors is not an e-invoice for VAT purposes but an other invoice in another electronic format (BMF letter of 15 October 2025). Whether a format error exists can be checked with a validation tool, and in the ministry’s view it makes sense to keep the validation report as evidence (BMF letter of 15 October 2025). The report later shows with which result the file was checked on receipt.
Not tax advice
Hybrid invoices: the XML part leads
A hybrid format consists of a structured data part, such as an XML file, and a human-readable data part, such as a PDF document; both are combined in one file (BMF letter of 15 October 2025). One example is ZUGFeRD from version 2.0.1, excluding the MINIMUM and BASIC-WL profiles (BMF letter of 15 October 2025). For VAT the order of precedence is clear: the invoice data in the structured part is the leading part, and where the parts differ it takes precedence over the information in the image part (BMF letter of 15 October 2025).
That leads to the most important rule for any archive: the XML data must not be lost. The GoBD use ZUGFeRD as the example. What matters is not whether the recipient only uses the invoice image, but that the structured data part is present and is not deleted by a format conversion, for example to TIFF (GoBD amendment of 14 July 2025, marg. no. 125). More generally, reducing existing machine evaluability by converting the file format is not permitted; the GoBD cite the conversion of PDF/A files from the PDF/A-3 standard into an image format such as TIFF or JPEG as an example (GoBD, marg. no. 129).
When does the PDF part still have to be kept? When it contains additional or deviating information that matters for taxation; the GoBD cite posting notes and qualified electronic signatures as examples (GoBD amendment of 14 July 2025, marg. no. 131). In that case machine evaluability extends to the entire content of the PDF file (GoBD amendment of 14 July 2025, marg. no. 125). Deviations have a second side: if the image part contains different invoice details from the structured part, for example because of a manipulated description of services or a different tax amount, it may constitute a further invoice, and input tax can still only be deducted from the structured part (BMF letter of 15 October 2025).
For incoming invoices it therefore pays to look at both parts automatically. If the system reads the XML part and places invoice number, date, amounts and tax rate next to the invoice image, deviations show up on receipt rather than years later in an audit. How such a check against purchase order and goods receipt is built is shown in Automated invoice checks: the three-way match.
Keep posting notes next to the PDF, not in it
In the paper world the account-coding stamp went onto the invoice: cost centre, general ledger account, the reviewer’s initials, the approval date. Many invoice processing tools replicate this digitally and write notes as a stamp or annotation straight into the PDF. With hybrid e-invoices this has a consequence that is often overlooked: a PDF part with a posting note carries additional information relevant for taxation and must therefore be kept, including machine evaluability of all its content (GoBD amendment of 14 July 2025, marg. nos. 119 and 125). The relief from marginal number 119 is lost for exactly these invoices.
An unchanged rule applies on top: adding posting notes, index entries, barcodes or colour highlights must not affect the ability to display the original state, and the electronic processing steps have to be logged and stored with the document (GoBD, marg. no. 123). Anyone who writes stamps into the file must therefore also be able to show what the file looked like before.
The cleaner route is an accompanying record. The invoice file stays unchanged, the notes are kept as separate entries in the document management system or in accounting and are linked to the file through a unique index. The GoBD require exactly this index and require the link to be preserved for the entire retention period (GoBD, marg. no. 122). The accompanying record typically holds:
- account coding with general ledger account, cost centre and, where needed, project or order,
- factual and arithmetic review with person, time and result,
- payment approval with approval level and deputy,
- result of the format check with a reference to the validation report,
- reference to the posting record and to the payment,
- changes to the record itself as a history, not as an overwrite.
Day-to-day work hardly changes: whoever opens the invoice sees the invoice image and the notes side by side. The archive changes a lot: the invoice file stays as received, the PDF part does not have to be kept because of a stamp, and every processing step can be traced as a separate entry. That matches the principle of immutability: later changes have to be made so that both the original content and the fact that a change was made remain visible (GoBD, marg. no. 111).
Outgoing invoices: an identical copy instead of a PDF copy
For your own invoicing there was already relief before the amendment: no image copy of the outgoing invoice, for example a PDF file, had to be saved if a corresponding duplicate could be produced at any time (GoBD version in the AO handbook 2025, marg. no. 76). The amendment rewords this paragraph and now expressly includes the PDF part of hybrid invoices. Marginal number 76 now reads: when invoicing software is used, no image copy of the outgoing invoice, for example a PDF file or the PDF part of a hybrid format, has to be saved from creation if a copy with identical content can be produced on request at any time (GoBD amendment of 14 July 2025, marg. no. 76). The XML file that was sent still belongs in the archive: a duplicate of every invoice issued must be kept for eight years (VAT Act, Sec. 14b(1)), and for an e-invoice at least the structured part must be kept so that it is intact in its original form (BMF letter of 15 October 2025). Only the image copy can be dropped.
The identical copy comes with conditions that the GoBD spell out directly (GoBD, marg. no. 76):
- Master data such as customers and inventory are continuously versioned so that the invoice is produced with the details valid at the time.
- General terms and conditions are versioned, and the process documentation shows which version was used for the original invoice.
- The original letterhead layout is stored as a template and versioned whenever it changes.
- The data of the invoicing software is kept in machine-evaluable and unalterable form.
This is the question every business needs to test. Many programs can reprint an invoice, but they print it with the customer’s current address, the current letterhead and the current terms. That is not a copy with identical content. Before switching off PDF copies for outgoing invoices, run a test: reproduce an invoice from last year whose customer has since moved and compare it with the original that was sent. If both match, the versioning works. If they do not, keeping the file that was sent remains the simpler route; it needs little storage.
For hybrid outgoing invoices the same order of precedence applies as for incoming ones. Anyone who sends ZUGFeRD should generate image and data from the same source. If the image deviates from the structured part in its invoice details, it may constitute a further invoice (BMF letter of 15 October 2025). Minor deviations for technical reasons, such as rounding differences or a description shortened for display, are not objected to as long as the image keeps its character as a copy with identical content (BMF letter of 15 October 2025).
The filing path in document management
Taken together, the individual rules result in a filing path that common document management and invoice processing solutions can map. What matters is not the product but the order: first secure what arrived, then work with it.
Log receipt
Every invoice arrives through a defined channel: mailbox, portal or interface. Time, channel and sender are logged, as the GoBD require for the receipt and archiving of electronic documents (GoBD, marg. no. 117).
Check the format
The file is validated against the format rules. The result shows whether it is an e-invoice or an other invoice, and the validation report is filed with it.
Secure the original
The received file is moved in its original format into storage that prevents overwriting and deletion before the period ends. Storing it in a plain file system usually does not meet the immutability requirement without additional measures (GoBD, marg. no. 110).
Assign an index
A unique index links file, accompanying record and posting. The link must be preserved for the entire retention period (GoBD, marg. no. 122).
Work in the accompanying record
Review, account coding and approval are created as separate, logged entries. The invoice file itself is not changed.
Post and link
The posting record refers to the invoice index and the invoice to the posting record. That way the path from document to posting and back can be followed.
Every invoice arrives through a defined channel: mailbox, portal or interface. Time, channel and sender are logged, as the GoBD require for the receipt and archiving of electronic documents (GoBD, marg. no. 117).
The file is validated against the format rules. The result shows whether it is an e-invoice or an other invoice, and the validation report is filed with it.
The received file is moved in its original format into storage that prevents overwriting and deletion before the period ends. Storing it in a plain file system usually does not meet the immutability requirement without additional measures (GoBD, marg. no. 110).
A unique index links file, accompanying record and posting. The link must be preserved for the entire retention period (GoBD, marg. no. 122).
Review, account coding and approval are created as separate, logged entries. The invoice file itself is not changed.
The posting record refers to the invoice index and the invoice to the posting record. That way the path from document to posting and back can be followed.
The result is what the VAT Act requires for every invoice: authenticity of origin, integrity of content and legibility must be ensured, and that can be achieved through internal control procedures that create a reliable audit trail between invoice and supply (VAT Act, Sec. 14(3)). These requirements apply for the entire retention period (VAT Act, Sec. 14b(1)). An archive that keeps the file but does not show who reviewed and approved it when only covers half the way.
One distinction matters here. For VAT purposes the tax administration makes clear that storing and archiving e-invoices outside a GoBD-compliant data processing system is not in itself a breach of the VAT retention duty (BMF letter of 15 October 2025). For bookkeeping under the Fiscal Code, however, the GoBD continue to apply. Running two archives to two standards means double work in the end. How the archive is set up technically is described on the service page document digitisation; how invoice data reaches accounting and inventory without retyping is covered on the page on data integration.
Readability and data access in a tax audit
An XML file is hard for people to read. That is not a defect: the machine evaluability of a standardised file makes it possible to display it in human-readable form with a visualisation tool, and an additional human-readable version is not required for VAT (BMF letter of 15 October 2025). Anyone who keeps documents as reproductions on data carriers must, however, provide the tools needed to make them readable at their own cost and, on request, print them or provide readable reproductions (Fiscal Code, Sec. 147(5)). The GoBD add that digitised documents must be made readable on screen through the business’s own system and that a paper printout is not sufficient (GoBD, marg. no. 157).
The archive therefore needs a working viewer as well as the files, for the full period. Invoices must be kept for eight years (VAT Act, Sec. 14b(1)). Under the Fiscal Code, eight years apply to accounting records, ten years to books and annual financial statements and six years to business letters received (Fiscal Code, Sec. 147(3)). The period for invoices starts at the end of the calendar year in which the invoice was issued (VAT Act, Sec. 14b(1)), and it does not expire as long as the documents matter for taxes whose assessment period has not yet expired (Fiscal Code, Sec. 147(3)). How a business combines these periods with deletion runs is covered in Meeting retention periods digitally.
In a tax audit the authority can inspect the stored data and use the system to do so, require the data to be evaluated by machine according to its specifications, or have the data transferred in a machine-evaluable format (Fiscal Code, Sec. 147(6)). For the archive this means the XML files must be exportable in bulk with their index data, not just opened one by one.
A common stumbling block is a system change. Anyone replacing their invoice processing software or their financial accounting does not have to keep the old data running in the old system forever: after the end of the fifth calendar year following the changeover, it is sufficient to hold the data only on a machine-readable and machine-evaluable data carrier, provided no tax audit has started yet (Fiscal Code, Sec. 147(6)). Until then the authority must still be able to exercise its access rights. Data migration therefore belongs in every replacement project, see legacy system replacement and the article Migrating data from a legacy system.
Typical failure patterns in archiving
An archive does not only lose data in a crash but also through well-meant routines. Six patterns can each be placed against the rules above:
Image format instead of file
A scanning or archiving process converts all incoming PDF files to TIFF or JPEG. With ZUGFeRD files the XML part is lost, and this is exactly the conversion the GoBD rule out.
Only the view archived
The software displays an XRechnung as a readable document, and only that view is filed as a PDF. The original in the format received is then missing from the archive.
Stamp in the PDF part
Account coding and approval are written as a stamp into the hybrid file. The PDF part then has to be kept, and the original state still has to remain displayable.
Mailbox as archive
Invoices stay in the mailbox as attachments. Messages get moved, mailboxes are deleted when staff leave, and there is no log of receipt.
Unprotected network drive
The XML files sit in a folder on the network drive that everyone involved can change. Without additional measures this usually does not count as unalterable storage.
Old system switched off
After a change of accounting software, the old program is switched off before data and documents have been migrated in evaluable form. The link between document and posting breaks.
All six have one thing in common: nobody notices them day to day. The invoice is paid, the posting is correct, and the missing XML part only shows when someone asks for it years later. A sample check is therefore worthwhile: pull a handful of incoming invoices from different suppliers out of the archive and check whether the file is in the format received, whether it opens unchanged and whether notes and posting can be reached through the index.
Update the process documentation
Each of these decisions belongs in the process documentation. For every data processing system it must show content, structure, flow and results of the procedure completely and coherently and must be verifiable by a knowledgeable third party within a reasonable time (GoBD, marg. no. 151). As a rule it consists of four parts: a general description, user documentation, technical system documentation and operating documentation (GoBD, marg. no. 153). Changes must be traceable over time (GoBD, marg. no. 154). Switching to the new rules for e-invoices is therefore a new dated version, not an overwritten section.
For e-invoicing, these points in particular need to be added:
- incoming channels and the rule used to tell e-invoices from other invoices,
- the format received per channel and the place where the original is stored unchanged,
- validation, handling of format errors and storage of validation reports,
- where posting notes are kept and that the PDF part stays unchanged,
- every conversion with evidence that it is lossless under marginal number 135,
- for outgoing invoices, the versioning of master data, terms and layout on which the identical copy relies.
How to structure process documentation as a whole is shown in Writing process documentation for audits; describing the workflows is supported by process documentation. The general requirements for GoBD-compliant storage, from immutability to replacement scanning, are summarised in GoBD-compliant document storage.
Six steps to a sound archive
The changeover does not have to be a major project. It can be worked through in six steps, each with a verifiable result:
- Take stock: through which channels invoices arrive, in which formats and where they end up today.
- Take a sample: are archived invoices in the format received, and is the XML part of hybrid files still there?
- Move the notes: shift account coding and approval out of the PDF into an accompanying record.
- Define storage: choose a place protected against overwriting and deletion until the period ends, with index and log.
- Check outgoing invoices: test whether the invoicing software produces a copy with identical content and decide on PDF copies accordingly.
- Document: continue the process documentation as a new dated version and agree it with your tax adviser.
We support businesses through exactly these steps. In the process analysis we map incoming channels, formats and storage locations and check a sample of the archive. During implementation we set up the filing path in your existing document management system or in new storage, connect it to accounting and inventory via integrations and document the process so that your tax adviser can follow it. The tax assessment stays with your tax adviser.
Related Articles
E-invoicing mandate 2027: rebuild your invoice flow
From 2027 issuing becomes mandatory: how businesses link incoming and outgoing invoices into the ERP without media breaks, instead of forwarding PDFs by email.
Writing process documentation for tax audits
Process documentation under the German GoBD rules: the four required parts, how detailed it must be, how to keep it current and what its absence can mean.
GoBD-compliant storage: immutability and evidence
Immutability, traceability, machine analysability: what the German GoBD mean for digital document storage and what belongs in the process documentation.