E-Invoice Attachment Rules in Germany: What You Can Include
German e-invoicing standards allow supporting documents to be embedded within or alongside an invoice file. Understanding what is permitted and what format attachments must take avoids rejection and ensures compliance with EN 16931.
ZUGFeRD and embedded attachments
ZUGFeRD is a hybrid format: a human-readable PDF/A-3 with embedded structured XML. Because the container is a PDF, it is technically possible to embed additional files (such as delivery notes or timesheets) as additional attachments within the same PDF. The embedded invoice XML uses the attachment relationship type Factur-X/ZUGFeRD. Additional supporting documents should use a different attachment relationship type to avoid confusion with the invoice data itself.
XRechnung and external references
XRechnung is a pure XML format and does not support embedded binary attachments in the same way as ZUGFeRD. If you need to reference supporting documents, XRechnung allows for document references in the Additional Supporting Documents section of the XML (the BG-24 group in EN 16931 terms). The external document can be referenced by URL or as a Base64-encoded attachment within the XML using the BinaryObject type. The referenced document must be accessible to the recipient.
What can and cannot be an attachment
- Permitted: delivery notes, timesheets, order confirmations, measurement records referenced by the invoice.
- Not permitted as a substitute: the structured invoice data itself cannot be in an attachment only. The XML must contain the full machine-readable invoice.
- Format: PDF is the most broadly accepted format for attachments. Other formats may not be processable by recipient systems.
- Size: there is no universal legal limit, but very large attachments can cause processing problems. Keep attachments concise and relevant.
Common attachment mistakes
- Putting invoice line details only in an attached PDF instead of in the structured XML: this causes processing failure because the structured data is incomplete.
- Using an unsupported file format for attachments: stick to PDF where possible.
- Embedding large image files unnecessarily: increases file size and can exceed recipient system limits.
- Referencing an external document URL that becomes inaccessible: if using external references, ensure the URL remains stable.
Best practice for attaching supporting documents
Always ensure the structured XML contains all mandatory invoice fields independently of any attachment. Treat attachments as supplementary, not primary. If you are using ZUGFeRD, embed attachments in the PDF correctly with the right relationship type. If you are using XRechnung and need to reference a document, use BG-24 and ensure the attachment is either Base64-encoded in the XML or accessible at a stable URL. Test your invoice against the official German validator (the Validierungsportal) before submitting.
This article provides general information only and is not tax or legal advice. For official guidance, consult your tax advisor or the relevant German authority. E-Rechnung helps you generate compliant XML for German e-invoices. For more on common mistakes, see the article on common e-invoice mistakes for German freelancers.
Common questions
- Can I attach a PDF timesheet to a German e-invoice?
- Yes, with caveats. In ZUGFeRD, you can embed an additional PDF within the envelope file. In XRechnung, you can reference or encode the timesheet using BG-24 Additional Supporting Documents. The key rule is that the structured XML must contain the complete, machine-readable invoice data regardless of what is attached.
- Does an attachment replace the need for structured XML in XRechnung?
- No. The structured XML with all mandatory fields is the invoice. An attachment is supplementary. Any invoice where the required structured data exists only in an attached PDF and not in the XML does not comply with EN 16931 and will fail automated processing.
- What happens if my e-invoice attachment is in the wrong format?
- The invoice itself may still be processable if the structured XML is correct. The attachment may not render or may be ignored by the recipient system. For critical supporting documents, PDF is the safest format. Check with your recipient's requirements if you are unsure.
- Is there a maximum size for e-invoice attachments in Germany?
- There is no single legal maximum defined in the XRechnung or ZUGFeRD standards. However, recipient systems (especially in public procurement) often have practical limits. If your attachment is unusually large, consider whether all pages are necessary or whether the information can be summarised. Consult the specific procurement platform's documentation for size limits.