The German GoBD (Principles for the Proper Management and Storage of Books, Records and Documents in Electronic Form and for Data Access) define clear requirements for digital archiving:
1. Immutability
Archived documents must not be altered after storage. Any change must be traceable. The archiving software must ensure the original content cannot be manipulated — through hash values, digital signatures or technical write protection.
2. Completeness
All tax-relevant documents must be archived without gaps. For e-invoices, this means both incoming and outgoing invoices must be stored, including all related documents.
3. Traceability
Every access to archived documents must be logged. A complete audit trail documents who accessed which document when and whether any changes were made.
4. Proper Retention Period
Invoices must be retained for at least 10 years. The period begins at the end of the calendar year in which the invoice was received or issued.
5. Machine Readability
Digital invoices must be stored in a format that enables machine processing. The XML data must be archived in the original format, not as a screenshot or paper printout.
Important: GoBD regulations explicitly require that digital documents be stored in their original format. For XRechnung, this is the XML file; for ZUGFeRD, it is the PDF/A-3 file with embedded XML. A printout or format conversion does not replace original archiving.