E-invoicing in Germany: XRechnung and ZUGFeRD

Since 2025 every business in Germany must be able to receive e-invoices; from 2027 the larger ones must issue them, from 2028 all of them. What counts as an e-invoice, how XRechnung and ZUGFeRD differ, and how to check one the way the KoSIT validator does, in your browser

The mandate in short

Since 1 January 2025 every business in Germany must be able to receive electronic invoices from other businesses. From 1 January 2027 businesses with a turnover above 800,000 euros in the previous year must issue them, and from 1 January 2028 all businesses do (the mandate check answers for your invoices year by year). Invoices to public buyers have been electronic for longer, in XRechnung with the buyer's Leitweg-ID.

An e-invoice under the mandate is a structured invoice that follows EN 16931. In practice that is XRechnung (UBL or CII) or ZUGFeRD / Factur-X from version 2.0.1 in a profile that carries the full EN 16931 data, such as EN 16931 (COMFORT) or EXTENDED. The MINIMUM and BASIC WL profiles do not count as e-invoices.

How to check an invoice

  1. Drop an XRechnung on the XRechnung validator or a ZUGFeRD PDF on the ZUGFeRD validator, or open the validator with the XRechnung profile: the profile is picked from the identifier inside the file.
  2. Press Validate. The schema comes first, then the EN 16931 and XRechnung rules.
  3. Click a rule id for what it checks and how to fix it.

To read an XRechnung or a ZUGFeRD invoice rather than check it, open it in the e-invoice viewer, which renders it with KoSIT's visualization. To write one, fill in the e-invoice generator: it checks the XRechnung with the same rules before you download it. Finished invoices for the common cases, from a small business to reverse charge, are on the XRechnung examples page.

What is checked

For XRechnung, the levels follow the KoSIT validator configuration for the scenario the invoice declares (standard, Extension or CVD), so a rule KoSIT lowers to a warning does not fail the invoice here either. We compared the results with the KoSIT validator on the XRechnung test suite and the EN 16931 invoices of the ZUGFeRD corpus: the verdict and the rules reported were the same on every one.

Common reasons for a rejection are a missing buyer reference (BR-DE-15, which carries the Leitweg-ID for public buyers), missing payment instructions (BR-DE-1), a seller contact without phone or email (BR-DE-2) and cash discount terms in free text instead of the coded form (BR-DE-18).

Profiles to check with

Rules invoices break most

Each one has a page with what it checks, its test and, for many, how to fix it

  • BR-DE-15: The buyer reference (BT-10) must be given.
  • BR-DE-1: An invoice must contain payment instructions (BG-16).
  • BR-DE-2: The seller contact (BG-6) must be given.
  • BR-DE-TMP-32: An invoice should give the date of supply: the actual delivery date (BT-72), the invoicing period (BG-14) or an invoice line period (BG-26) on every line.
  • BR-DE-18: Cash discount lines in the payment terms (BT-20) must follow the prescribed form: #SKONTO#TAGE=n#PROZENT=n.nn#, with BASISBETRAG=n as a fourth segment when the...
  • BR-DE-21: The specification identifier (BT-24) should match the identifier of the XRechnung standard.
  • BR-CO-15: Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).

Questions

Do I have to issue e-invoices from 1 January 2027?

Only if your turnover in 2026 was above 800,000 euros, and only for invoices to other businesses in Germany. Below that, you may still send paper invoices, or other electronic ones such as a PDF if your customer agrees, until the end of 2027; from 1 January 2028 every business issues e-invoices. Small businesses under § 19 UStG, invoices of up to 250 euros gross and tickets that count as invoices never need to be e-invoices, nor do invoices to consumers. Receiving them has been required of every business since 2025.

Does a PDF count as an e-invoice?

No. A PDF sent by email is an "other invoice" (sonstige Rechnung), like paper, however it looks. A ZUGFeRD PDF counts because of the XML attached to it, which follows EN 16931: ZUGFeRD from version 2.0.1, in any profile but MINIMUM and BASIC WL.

How do I create an XRechnung or ZUGFeRD invoice?

Your invoicing software may write them already. Otherwise our free e-invoice generator writes XRechnung (UBL or CII) and ZUGFeRD PDFs from a form and checks them with the same rules as this validator before you download them, and the XRechnung examples page has finished invoices for the common cases.

Is the invoice uploaded?

No. The schema check and the rules both run in your browser. Only the API and URL monitors validate on our servers.

Is this the same as the KoSIT validator?

It runs the same published rule files and applies the levels of the KoSIT configuration (2026-08-31), and a weekly comparison with the KoSIT validator checks that the results stay the same.

Can I validate a ZUGFeRD PDF?

Yes. Drop the PDF: the XML attached to it is taken out in your browser and checked against the profile it names, and the attachment and its XMP metadata are checked against what ZUGFeRD asks. The invoice number, date, totals and the seller's VAT identifier in the XML are also looked for in the text the PDF shows, with a warning for each one it doesn't.

Which XRechnung version is used?

XRechnung 3.0.2 with the XRechnung rules 2.6.0 and the EN 16931 rules 1.3.16, as in the KoSIT configuration of 2026-08-31.

Can I check or write an XRechnung from code?

Yes, through the API: it checks an XRechnung or a ZUGFeRD PDF against the same rules and writes one from JSON. There are SDKs for PHP, Laravel, Symfony, Python and JavaScript, a command-line client, and a guide for C# and .NET with HttpClient.

Official sources

Other countries