Skip to main content

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 Norm EN 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 directive 2014/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)
Both syntaxes contain the same information but have different field names.

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 Norm EN 16931 and it is worth noting that ZUGFeRD and Factur-X are a joint project between Germany and France, and their content is identical.
When referring to syntaxes, it is important to note that XRechnung, ZUGFeRD, and Factur-X are all semantic data models. What this means is that they define the data that must be present in the invoice, but not the actual format of the data or the explicit name of the fields.To implement the semantic models, there are two syntaxes approved by the EU: UN/CEFACT Cross Industry Invoice (CII) and OASIS Universal Business Language (UBL).

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": "..."} in inboxes). XRechnung requires an electronic address for the customer.

Setup

All of the following steps must be carried out from the Invopop Console.
1

Connect the apps

  1. Navigate to Configuration → Apps.
  2. 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.
  3. Check that the Germany and Peppol apps are connected. The supplier registration guide connects them.
2

Configure the invoice workflow

Germany send invoice workflow

Add to my workspace →
The workflow runs these steps:
  1. Modify silo entry adds the de-xrechnung-v3 addon to the invoice.
  2. Generate UBL document converts the invoice to XRechnung in the UBL syntax, and validates it.
  3. 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.
For a public authority, the customer’s Peppol ID uses scheme 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.
To always send by email, use the XRechnung email invoice workflow instead.
3

Configure the ZUGFeRD workflow

You can skip this step if your customers don’t want ZUGFeRD PDFs.

ZUGFeRD email invoice workflow

Add to my workspace →
The workflow generates the PDF, exports the ZUGFeRD XML and embeds it into the PDF with the Embed XML into PDF step. The Send email step sends the PDF to the email address of the invoice’s customer. The Export document step also offers the ZUGFeRD BASIC and EXTENDED profiles. The invoice must carry the de-zugferd-v2 addon.

Running

The recommended approach for running jobs is to perform two steps: first upload the document to the silo, then create a job.
Invopop uses the GOBL library to process conversions. GOBL’s implementation validates national business rules in addition to the rules defined in 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

An invoice to a public authority. The 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.
An XRechnung invoice to a business customer, with the de-xrechnung-v3 addon.
A ZUGFeRD invoice to a business customer. The de-zugferd-v2 addon applies the ZUGFeRD rules.
A ZUGFeRD invoice with ordering information, payment terms, delivery details and discounts.

FAQ

Pick a format based on the recipient: XRechnung (UBL or CII) for B2G via Peppol, ZUGFeRD/Factur-X for B2B where a human-readable PDF is also wanted. Both are EN 16931-compliant, and Invopop generates either from the same GOBL invoice.
Yes. The Germany send invoice workflow sends the XRechnung XML by email when the customer is not on Peppol, and the ZUGFeRD email invoice workflow sends a ZUGFeRD PDF. Register the supplier first, as for Peppol. See the invoicing guide.
Register the supplier, then use the Germany send invoice workflow of the invoicing guide. It sends the XRechnung through Peppol when the invoice has the customer’s Peppol ID and the customer accepts XRechnung there, or by email otherwise. ZUGFeRD invoices go by email.
Both syntaxes are equally valid and contain the same information, so in the majority of cases the choice has no consequences.If you plan on sending invoices through the Peppol network, we recommend using UBL as it is the supported format. If you plan on also issuing invoices in ZUGFeRD or Factur-X, it might be more convenient to use CII, as it is the syntax also supported by ZUGFeRD and Factur-X.
For ZUGFeRD PDFs, the XML file is embedded within the PDF itself. To extract and view it, you can use the Attachments section in Adobe Acrobat Reader.Alternatively, you can use specialized tools like the SysTools PDF Extractor to extract the XML file.
See the Germany tax regime in GOBL for tax categories and identifiers. The XRechnung rules live in de-xrechnung-v3 and the ZUGFeRD rules in de-zugferd-v2. For Peppol, see the eu-en16931-v2017 addon and the Peppol app reference.
The Germany send invoice workflow sends the XRechnung to the customer’s email address instead. Put the address in the customer’s 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.
A Send Peppol document step fails with 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.
More available in our Germany FAQ section

Participate in our community

Ask and answer questions about invoicing in Germany →