Germany's 2027 e-invoice deadline, seen from the inbox: how to check an XRechnung or ZUGFeRD before you pay it

Most of what gets written about the German e-invoicing mandate is aimed at the sender. Which software can produce XRechnung, which ERP vendor has a ZUGFeRD module, when your own obligation starts. That makes sense, because issuing is where the deadlines bite.

On 1 January 2027, though, a lot of German businesses will notice the change from the other side. Every supplier with more than €800,000 in turnover the previous year has to start sending real e-invoices, so the share of XML in an ordinary accounts payable inbox goes up sharply. Somebody has to open those files, decide whether they are correct, and pay them. This post is about that part: what you will actually receive, what is worth checking, and how to do the checks with free tools.

I maintain an open-source parser for these formats and a browser tool built on it, so the examples below come from the official KoSIT test files I test against.

The timeline, briefly

The legal basis is § 14 UStG as amended by the Growth Opportunities Act (Wachstumschancengesetz), with the transition rules in § 27 Abs. 38 UStG. The Federal Ministry of Finance (BMF) explains it in its FAQ and in two administrative letters dated 15 October 2024 and 15 October 2025.

From What applies
1 Jan 2025 Every business established in Germany must be able to receive e-invoices. An email inbox is enough.
to 31 Dec 2026 Paper invoices stay allowed for supplies made in 2025 and 2026. Other electronic formats, such as a plain PDF, only with the recipient's consent.
1 Jan 2027 Businesses with more than €800,000 total turnover in the previous year must issue e-invoices. Smaller businesses may keep using the old formats for supplies made in 2027.
1 Jan 2028 The obligation covers all domestic B2B supplies. EDI invoices remain allowed only if the EN 16931 data can be extracted from them.

A few exceptions matter in practice. Invoices up to €250 (Kleinbetragsrechnungen, § 33 UStDV) and travel tickets are exempt. Small businesses under § 19 UStG do not have to issue e-invoices (§ 34a UStDV), but they still have to be able to receive them. Invoices to federal authorities have been electronic since 27 November 2020 under the E-Rechnungsverordnung, and they now go through the OZG-RE platform, which replaced the old ZRE.

On the recurring question of a postponement: in its answer printed as Bundestag paper 21/7311 (July 2026), the federal government said it does not plan to move the deadlines. A further BMF letter of 15 October 2026 adds some relief, for example for advance and final invoices up to 30 June 2030, but it does not change the dates above.

What counts as an e-invoice

The test is structural. An e-invoice is an invoice in a structured electronic format that follows the European standard EN 16931 and can be processed by machine. A PDF, even a nicely tagged one, is legally an "other invoice" (sonstige Rechnung).

The BMF names two formats explicitly:

  • XRechnung, the German CIUS of EN 16931. It comes in two syntaxes: OASIS UBL 2.1 and UN/CEFACT Cross Industry Invoice (CII) D16B. Both carry the same information.
  • ZUGFeRD from version 2.0.1, a PDF/A-3 file with a CII XML file embedded inside it. The MINIMUM and BASIC-WL profiles do not qualify, because they lack invoice lines and so do not cover EN 16931.

ZUGFeRD is the format that causes the most confusion on the receiving side. It looks like an ordinary PDF in any viewer, and most people will only ever look at the visual part. Under the BMF letter of 15 October 2024 (paragraphs 30 to 32), the XML part is what counts if the two differ. If the PDF says €1,190 and the embedded XML says €1,109, the €1,109 is what counts.

Two syntaxes, same invoice

If you receive XRechnung, you will get either UBL or CII, depending on the sender's software. Here is the same part of one invoice in both, taken from the KoSIT XRechnung test suite (business case 01.01a, XRechnung 3.0).

The specification identifier (BT-24) and buyer reference (BT-10) in UBL:

<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>
...
<cbc:BuyerReference>04011000-12345-03</cbc:BuyerReference>

And the totals:

<cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="EUR">314.86</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="EUR">314.86</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="EUR">336.9</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="EUR">336.9</cbc:PayableAmount>
</cac:LegalMonetaryTotal>

The same invoice in CII:

<ram:GuidelineSpecifiedDocumentContextParameter>
    <ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>
...
<ram:BuyerReference>04011000-12345-03</ram:BuyerReference>
...
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
    <ram:LineTotalAmount>314.86</ram:LineTotalAmount>
    <ram:TaxBasisTotalAmount>314.86</ram:TaxBasisTotalAmount>
    <ram:TaxTotalAmount currencyID="EUR">22.04</ram:TaxTotalAmount>
    <ram:GrandTotalAmount>336.9</ram:GrandTotalAmount>
    <ram:DuePayableAmount>336.9</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>

The mapping between the two is mechanical once you know the business term numbers from EN 16931:

Business term UBL CII
BT-106 Sum of line net amounts LineExtensionAmount LineTotalAmount
BT-109 Total without VAT TaxExclusiveAmount TaxBasisTotalAmount
BT-110 Total VAT TaxTotal/TaxAmount TaxTotalAmount
BT-112 Total with VAT TaxInclusiveAmount GrandTotalAmount
BT-115 Amount due PayableAmount DuePayableAmount
BT-84 IBAN PayeeFinancialAccount/ID IBANID

Two details trip up people who write their own parsers. In UBL the total VAT sits in a separate cac:TaxTotal block, not in LegalMonetaryTotal. And in this CII file, TaxTotalAmount is the only amount in the summation with a currencyID attribute. It needs one because an invoice can state VAT in a second currency. The ZUGFeRD 2.0 EXTENDED sample in the ZUGFeRD corpus does exactly that: invoice in GBP, VAT also reported in EUR, two TaxTotalAmount elements.

What to check before you pay

A structurally valid invoice can still be wrong. These are the checks I would run on every incoming e-invoice, roughly in the order they catch problems.

1. The totals add up

EN 16931 defines a chain of calculation rules, BR-CO-10 to BR-CO-16. In plain terms:

  • the sum of the line net amounts equals BT-106 (BR-CO-10);
  • document-level allowances and charges match their totals (BR-CO-11, BR-CO-12);
  • total without VAT = line total minus allowances plus charges (BR-CO-13);
  • total VAT = the sum of the VAT category amounts (BR-CO-14);
  • total with VAT = total without VAT plus total VAT (BR-CO-15);
  • amount due = total with VAT minus prepaid amount plus rounding (BR-CO-16).

In the example above: 288.79 + 26.07 = 314.86 for the two lines, 7 % VAT on 314.86 is 22.04, and 314.86 + 22.04 = 336.90. If any link in that chain breaks, the sending software has a bug, and you should not book the invoice until the supplier corrects it.

2. The VAT breakdown matches the lines

Each VAT category (BG-23) states a taxable amount (BT-116), a rate (BT-119) and a tax amount (BT-117). Check that the taxable amount equals the sum of the lines with that category and rate, and that the tax amount is the rate applied to it. An invoice with 19 % on some lines and 7 % on others needs two breakdown blocks. A frequent sender error is one block with a blended amount.

3. The buyer reference is there and is yours

For XRechnung, BT-10 is mandatory (rule BR-DE-15). For invoices to public authorities it carries the Leitweg-ID, which routes the invoice inside the administration (§ 5 ERechV). In private B2B use, many companies ask suppliers to put a purchase order number or cost centre there. Either way, a missing or wrong BT-10 is a common reason for rejection.

XRechnung also requires the seller's contact details (BR-DE-2) and payment instructions (BR-DE-1). ZUGFeRD in the EN 16931 profile does not have the BR-DE rules, so the same supplier may send you a ZUGFeRD without a buyer reference that would have been rejected as XRechnung.

4. The IBAN is valid and expected

Every IBAN has two check digits computed with mod 97 (ISO 13616). A typo in an IBAN almost always fails that check, so it is worth verifying before a payment run. It will not catch fraud, though. If the IBAN is valid but differs from the one in your supplier master data, phone the supplier using a number you already had.

5. The PDF and the XML agree (ZUGFeRD only)

Because the XML is legally binding, any difference to the visual PDF is a problem. In practice the totals, invoice number and due date are the fields worth comparing.

Getting the XML out of a ZUGFeRD PDF

You need the embedded file to run any of the checks above. With poppler installed (brew install poppler on macOS, apt install poppler-utils on Debian or Ubuntu):

pdfdetach -list invoice.pdf
pdfdetach -saveall invoice.pdf

The first command lists the attachments; the second writes them to the current directory. What you should see depends on the version and profile:

  • ZUGFeRD 2.1 and later (same file as Factur-X): factur-x.xml
  • ZUGFeRD in the XRECHNUNG profile: xrechnung.xml
  • ZUGFeRD 2.0: zugferd-invoice.xml
  • ZUGFeRD 1.0: ZUGFeRD-invoice.xml (old format, not a valid e-invoice for the mandate)

If a supposed ZUGFeRD PDF lists no attachments at all, it is a plain PDF, and from 2027 it no longer satisfies a supplier above the €800,000 threshold.

Validating properly: the KoSIT validator

The reference tool is the open-source validator from KoSIT, the coordination office that maintains XRechnung. It runs the XML schema and the full Schematron rule sets (EN 16931 plus the German BR-DE rules). You need Java 11 or later, the validator JAR from the itplr-kosit/validator releases, and the XRechnung configuration from validator-configuration-xrechnung, which contains a scenarios.xml file.

java -jar validator-<version>-standalone.jar -s scenarios.xml -r . -h invoice.xml

Run it from the unpacked configuration folder. -s points to the scenario file, -r to the folder with the configuration resources (here the current one), and -h writes the human-readable HTML report next to the input. -p prints the report to the terminal instead. The XML report states whether the document is acceptable and lists every failed rule with its ID, so you can look up "BR-CO-15" and know which sum is off.

If you do not want to install Java just to look at one invoice, there are browser-based options. I built one, the XRechnung validator on Docfaro. It runs the XSD check with libxml2 compiled to WebAssembly and re-implements the most common business rules in code, so the file never leaves your browser. It is a pre-check, though. It does not run the complete Schematron set, so when a supplier and a customer disagree about whether an invoice is valid, the KoSIT result is the one to quote. For ZUGFeRD files, the ZUGFeRD viewer pulls the embedded XML out of the PDF and shows it as an invoice.

Keep the original XML

Invoices have to be kept for eight years since 2025 (§ 14b UStG, previously ten). For an e-invoice, the archived document is the XML file in the form you received it. A PDF rendering you printed or generated, including one from my tool, does not replace it. If your accounting system converts incoming XML into something else, check that it also stores the original file unchanged.

For small companies that receive a handful of e-invoices a month, a reasonable setup looks like this: a dedicated mailbox for invoices, a folder where the original XML or ZUGFeRD files are stored untouched, a validator run on anything new, and a quick comparison of IBAN and totals against your own records before payment.

Sources

  • § 14 UStG, Ausstellung von Rechnungen: https://www.gesetze-im-internet.de/ustg_1980/__14.html
  • § 27 Abs. 38 UStG, transition rules: https://www.gesetze-im-internet.de/ustg_1980/__27.html
  • § 14b UStG, retention: https://www.gesetze-im-internet.de/ustg_1980/__14b.html
  • § 33 UStDV (small-amount invoices): https://www.gesetze-im-internet.de/ustdv_1980/__33.html
  • § 34a UStDV (small businesses): https://www.gesetze-im-internet.de/ustdv_1980/__34a.html
  • BMF FAQ on mandatory e-invoicing: https://www.bundesfinanzministerium.de/Content/DE/FAQ/e-rechnung.html
  • BMF letter of 15 October 2024 (formats, priority of the XML in hybrid invoices): https://www.bundesfinanzministerium.de/Content/DE/Downloads/BMF_Schreiben/Steuerarten/Umsatzsteuer/2024-10-15-einfuehrung-e-rechnung.pdf?__blob=publicationFile
  • BMF letter of 15 October 2025: https://www.bundesfinanzministerium.de/Content/DE/Downloads/BMF_Schreiben/Steuerarten/Umsatzsteuer/Umsatzsteuer-Anwendungserlass/2025-10-15-einfuehrung-obligatorische-e-rechnung.pdf?__blob=publicationFile
  • BMF letter of 15 October 2026: https://www.bundesfinanzministerium.de/Content/DE/Downloads/BMF_Schreiben/Steuerarten/Umsatzsteuer/Umsatzsteuer-Anwendungserlass/2026-10-15-obligatorische-elektronische-rechnung.pdf?__blob=publicationFile
  • Bundestag paper 21/7311 (no postponement planned): https://dserver.bundestag.de/btd/21/073/2107311.pdf
  • § 5 ERechV, Leitweg-ID: https://www.gesetze-im-internet.de/erechv/__5.html
  • OZG-RE replaces ZRE: https://www.e-rechnung-bund.de/ein-jahr-erfolgreiche-konsolidierung
  • KoSIT validator: https://github.com/itplr-kosit/validator
  • KoSIT XRechnung test suite (example files): https://github.com/itplr-kosit/xrechnung-testsuite
  • EN 16931 validation artefacts (BR-CO rules): https://github.com/ConnectingEurope/eInvoicing-EN16931

I build Docfaro, the browser-based viewer linked above. Not legal or tax advice.

评论