Skip to content

GoBD explained: principles, retention and what they mean for your invoices

What GoBD compliance requires: traceability, completeness, immutability, retention periods and procedure documentation. And what that means in practice for invoices in e-commerce.

What GoBD is and who it applies to

GoBD is not a law. It is a circular from the German Federal Ministry of Finance (BMF) (circular of November 28, 2019, last amended by the circular of July 14, 2025, both German) that spells out how the record-keeping rules of the German Fiscal Code (Abgabenordnung, AO, §§ 145 to 147 AO) apply to electronic records. It describes how books, records and tax-relevant documents must be kept and stored electronically, and how the tax authorities may access this data during an audit.

It applies to every business in Germany that is required to keep books or records, from a sole trader using cash-basis accounting (Einnahmen-Überschuss-Rechnung) to a GmbH (GoBD margin nos. 3 to 5). If you keep electronic books voluntarily, the same rules apply (§ 146(6) AO, GoBD margin no. 28). As soon as invoices, receipts or bookings are created or processed electronically, GoBD is the yardstick a tax audit (Betriebsprüfung) uses to judge your process. If you are a founder in Germany, that includes the invoices your shop, Stripe account or SaaS billing produces.

The core principles

GoBD boils down to a few principles:

Traceability and verifiability. An expert third party, such as a tax auditor, must be able to get an overview of the business transactions within a reasonable time. Every document must be traceable from its origin to the booking, and back again (GoBD margin nos. 30 to 35; § 145(1) AO).

Completeness and correctness. Every business transaction is recorded individually, completely and accurately. No sale is missing, and none is recorded twice (GoBD margin nos. 36 and 44; § 146(1) AO).

Timely recording and order. Documents are recorded promptly and filed in an orderly way, so that they can still be found (GoBD margin nos. 45 and 53).

Immutability. This is the most important principle and the one most often violated in practice: once a booking or document has been recorded, it must not be possible to change it in a way that hides the original content (§ 146(4) AO, GoBD margin no. 58). Changes must either be technically impossible or logged without gaps (margin no. 59). That is why an invoice is never deleted or overwritten. You correct it with an additional document, such as a cancellation invoice (Stornorechnung) or an invoice correction, that keeps the original content recognisable (margin no. 111). How Rechnungskit implements this technically (WORM storage, checksums, locked database tables) is described on the security, hosting and compliance page.

Rechnungskit Radar

Once a month: what changes for your online business.

Deadlines, law and tax, market news and what is new in Rechnungskit. Free, for shops, SaaS and digital products. Learn more

Retention: how long and in what form

Invoices and other accounting vouchers must be kept for 8 years, books of account and annual financial statements for 10 years (§ 147(3) AO; for invoices also § 14b(1) UStG, German). Each period starts at the end of the calendar year in which the document was created (§ 147(4) AO).

The form matters as much as the duration: documents that were created or received electronically must be kept in that form (GoBD margin no. 119). For an e-invoice, that means you keep the structured data part (XML), not just a printout or a PDF view. Under the current GoBD version (BMF circular of July 14, 2025, margin nos. 119 and 131), the human-readable PDF part of a ZUGFeRD hybrid only has to be archived as well if it contains additional or different tax-relevant information (such as booking notes). For outgoing invoices you create yourself, margin no. 76 says no image copy has to be stored if your invoicing program can produce a copy with identical content at any time. The storage itself must be audit-proof: unalterable, protected against loss, available for the whole period, readable and machine-evaluable (§ 147(2) AO, GoBD margin nos. 58 to 60).

Retention · period and form
What goes into the archive, and for how long
Invoices and accounting vouchers
Every invoice and every other accounting voucher
Period8 years
Books and annual financial statements
The company's books of account and financial statements
Period10 years
E-invoice
Created electronically, so keep it electronically in its original format. A printout or just the PDF view is not enough.
Into the archiveXML data part
The period starts at the end of the calendar year in which the document was created. You only archive the PDF part of a ZUGFeRD hybrid as well if it contains tax-relevant details beyond the XML, such as booking notes.

Procedure documentation

GoBD expects procedure documentation for every IT system that handles your records (GoBD margin nos. 151 to 155, German): how an invoice is created, which systems are involved, how it is archived, who has access and how the system is protected against changes. This procedure documentation (Verfahrensdokumentation) must be clear enough for an expert third party to check it within a reasonable time (margin no. 151). Our procedure documentation template shows what such a document looks like for an automated invoicing flow.

What it means for invoices in e-commerce

In online retail, documents come from many places: orders in the shop, payments at Stripe, Mollie or PayPal, invoices in an app or tool, credit notes for refunds. The whole chain is only GoBD compliant once all the parts fit together. Every payment has to lead, traceably, to exactly one invoice whose number is only ever used once (§ 14(4) sentence 1 no. 4 UStG, German), corrections have to be additional documents rather than deletions, and the archive has to sit independently of your shop hosting, unalterable and available for the full retention period. According to the tax authorities, the number sequence does not have to be gap-free (section 14.5(10) UStAE, German), but you should be able to explain any gaps.

Rechnungskit is e-invoicing software built for exactly this. Every invoice it creates is archived so it cannot be changed, with a SHA-256 checksum as proof of integrity, versioned object storage and the structured XML archived alongside as the original format. Corrections are only ever created as cancellation invoices, invoice numbers run in sequence without gaps you would have to explain, and the DATEV export delivers the documents to your tax advisor (Steuerberater) in order.

FAQ

What does GoBD compliant mean?
A system or process is GoBD compliant when tax-relevant data is recorded completely, correctly, promptly and in an orderly way, later changes are either impossible or logged, and an expert third party can follow the process within a reasonable time using the procedure documentation (Verfahrensdokumentation) (GoBD margin nos. 26 to 60 and 151; § 145(1) and § 146 AO, German).
How long do invoices have to be kept?
Invoices and other accounting vouchers must be kept for 8 years, books of account and annual financial statements for 10 years (§ 147(3) AO, § 14b(1) UStG, German). The period starts at the end of the calendar year in which the invoice was issued. It does not run out, though, as long as the documents still matter for a tax assessment that is not yet final (§ 147(3) sentence 5 AO).
Is a folder of PDFs on my computer GoBD compliant?
As a rule, no. In an ordinary file folder, files can be changed, replaced or deleted without anyone noticing. GoBD states explicitly that storing data in a file system does not, as a rule, meet the immutability requirement unless additional measures ensure it (GoBD margin no. 110, German). You need storage in which changes are technically impossible or logged without gaps.
Do I need procedure documentation?
GoBD explicitly provides for procedure documentation (GoBD margin nos. 151 to 155, German). It describes how documents are created, processed, filed and protected in your business, so that an expert third party can follow the process within a reasonable time. A missing one is not a serious defect on its own as long as the bookkeeping can still be followed (margin no. 155).
Do I also have to archive the PDF of a ZUGFeRD invoice?
Not necessarily. Under the current GoBD version (BMF circular of July 14, 2025, margin nos. 119 and 131, German), keeping the structured data part (XML) of an e-invoice is enough. The human-readable PDF part only has to be retained in addition if it contains additional or different tax-relevant information, such as booking notes or a qualified electronic signature. For outgoing invoices from an invoicing program, margin no. 76 adds that no image copy has to be stored if a copy with identical content can be produced at any time.
No tax or legal advice

Rechnungskit is not a tax advisory or law firm. This article explains general principles and does not replace advice from a tax advisor (Steuerberater, § 5 StBerG) or a lawyer (§ 3 RDG). Rechnungskit is built for businesses based in Germany and prepares documents, tax rates and bookings automatically. How your specific case is treated remains your decision, ideally together with your tax advisor or a lawyer.

Rechnungskit Radar

Once a month: what changes for your online business.

Deadlines, law and tax, market news and what is new in Rechnungskit. Free, for shops, SaaS and digital products. Learn more

Rechnungskit writes your e-invoices for you.

From every paid order, validated, archived and ready for DATEV. Set up for free, no credit card.

de en