Introduction
Germany requires electronic invoicing for different business scenarios, with two main standards: XRechnung and ZUGFeRD. Both are semantic data models aligned with the European NormEN 16931 and can be implemented using the same syntaxes.
XRechnung
XRechnung is Germany’s official standard for electronic invoices in public procurement (called E-Rechnungen), though it is also used for B2B transactions. It’s part of the implementation of the EU directive2014/55/EU, which requires all contracting authorities in the EU to accept electronic invoices in a structured XML format.
XRechnung can be implemented using two different syntaxes:
- UN/CEFACT CII (Cross Industry Invoice)
- OASIS UBL (Universal Business Language)
ZUGFeRD
ZUGFeRD is a German standard for electronic invoicing designed to bridge the gap between traditional invoices and digital formats. ZUGFeRD combines a standard PDF/A-3 invoice with an embedded XML file containing the structured data. This hybrid approach makes it especially popular in B2B transactions, as it allows both people and accounting software to work with the same document. ZUGFeRD is fully aligned with the European NormEN 16931 and it is worth noting that ZUGFeRD and Factur-X are a joint project between Germany and France, and their content is identical.
Channels
Germany has no central platform. Businesses send e-invoices to each other directly, by email or through the Peppol network. The Germany send invoice workflow chooses the channel for each invoice. It sends the XRechnung through Peppol when the invoice has the customer’s Peppol ID, and the customer accepts XRechnung there. Otherwise, it sends the XRechnung XML to the customer’s email address. For customers that want a PDF, the ZUGFeRD email invoice workflow sends a ZUGFeRD PDF by email. Register the supplier first, on both channels. See the companion guide: Germany supplier registration guide. For receiving invoices, see Germany receiving invoices guide.Prerequisites
- A registered supplier. Follow the Germany supplier registration guide first.
- The customer’s Peppol ID on the invoice, to send through Peppol.
- To send by email, the customer’s email address twice: in
emails, where the Send email step reads it, and as an email inbox ({"email": "..."}ininboxes). XRechnung requires an electronic address for the customer.
Setup
All of the following steps must be carried out from the Invopop Console.Connect the apps
- Navigate to Configuration → Apps.
- Find Email and OASIS UBL in the app discovery list, and click Connect on each. The Germany send invoice workflow converts the invoice with the OASIS UBL app.
- Check that the Germany and Peppol apps are connected. The supplier registration guide connects them.
Configure the invoice workflow
Germany send invoice workflow
- Workflow
- Code
- Modify silo entry adds the
de-xrechnung-v3addon to the invoice. - Generate UBL document converts the invoice to XRechnung in the UBL syntax, and validates it.
- Verify document can be sent checks the customer’s Peppol ID on the invoice: it must be on Peppol and accept XRechnung there. If it does, Send Peppol document sends the XRechnung through Peppol. If not, or if the invoice has no Peppol ID for the customer, Send email sends the XML to the customer’s email address.
0204, and the invoice’s ordering code holds the authority’s Leitweg-ID. The authority gives you both values. They can be the same, but they can also differ.Configure the ZUGFeRD workflow
ZUGFeRD email invoice workflow
- Workflow
- Code
de-zugferd-v2 addon.Running
EN 16931-1.
Set the regime field to DE in your invoices. We also recommend using the GOBL Builder to create your own invoices.
Example invoices
XRechnung B2G invoice
XRechnung B2G invoice
de-xrechnung-v3 addon applies the XRechnung rules, and ordering.code carries the authority’s Leitweg-ID as the buyer reference. In this example, the Leitweg-ID and the Peppol ID have the same value. For some authorities they differ.XRechnung B2B invoice
XRechnung B2B invoice
de-xrechnung-v3 addon.ZUGFeRD B2B invoice
ZUGFeRD B2B invoice
de-zugferd-v2 addon applies the ZUGFeRD rules.ZUGFeRD B2B invoice with additional fields
ZUGFeRD B2B invoice with additional fields
FAQ
How do I configure my workspace for German invoicing?
How do I configure my workspace for German invoicing?
Can I send German e-invoices by email?
Can I send German e-invoices by email?
What's the workflow for issuing Peppol invoices in Germany?
What's the workflow for issuing Peppol invoices in Germany?
Which XRechnung syntax should I choose, UBL or CII?
Which XRechnung syntax should I choose, UBL or CII?
How can I view an XML attached to a PDF?
How can I view an XML attached to a PDF?
Attachments section in Adobe Acrobat Reader.Alternatively, you can use specialized tools like the SysTools PDF Extractor to extract the XML file.Where do I find Germany-specific GOBL documentation?
Where do I find Germany-specific GOBL documentation?
de-xrechnung-v3 and the ZUGFeRD rules in de-zugferd-v2. For Peppol, see the eu-en16931-v2017 addon and the Peppol app reference.What if the customer is not on the Peppol network?
What if the customer is not on the Peppol network?
emails and also as an email inbox, because XRechnung requires an electronic address for the customer. Peppol is not mandatory in Germany, but the invoice must still be an EN 16931 e-invoice. See the invoicing guide.How do I handle 'Receiver Not Found' errors?
How do I handle 'Receiver Not Found' errors?
KO and receiver not found in the peppol network when the customer’s Peppol ID is not on the network. Check the customer’s Peppol ID, or send the invoice by email. The Germany send invoice workflow avoids this error: its Verify document can be sent step checks the customer’s Peppol ID first, and sends by email when the customer is not on Peppol.🇩🇪 Invopop resources for Germany
🇩🇪 Invopop resources for Germany