What is XRechnung?

XRechnung is a purely XML-based data format for electronic invoices. It is published by KoSIT, the coordination office for IT standards, on behalf of the federal government and maintained on an ongoing basis. XRechnung meets the requirements of the European standard EN 16931 and has been the standard format for invoices to federal authorities since 27 November 2020 (ERechV); federal states and municipalities set their own rules.

Unlike ZUGFeRD, an XRechnung contains no PDF representation: the data exists only as structured XML. To make the invoice readable for people, the receiving system has to visualize it.

Who is required to use XRechnung?

  • Suppliers to the public sector: at federal level XRechnung is the standard format, and other formats conforming to EN 16931 are permitted; federal states and municipalities govern receipt themselves. Invoices are transmitted via the central invoice receipt platform (ZRE) or via the platforms of the individual states.
  • B2B companies from 2025: XRechnung is one of the formats permitted under the e-invoicing mandate. It can also be used in purely commercial exchanges.
  • Recipients of any invoice: since 1 January 2025 every domestic B2B company has to be able to receive XRechnung files.

How is an XRechnung structured?

An XRechnung consists of a single XML file with a clearly defined structure. The main components:

  • Leitweg-ID: unique routing address of the public-sector recipient (mandatory field on invoices to authorities)
  • Invoice header: invoice number, date, seller, buyer, VAT ID
  • Invoice line items: quantity, unit price and tax rate per item
  • Tax breakdown: net amount, tax amount, tax rate
  • Payment terms: due date, early payment discount, bank details

Alongside the mandatory fields, the specification defines numerous optional fields. You can add them as long as they are defined in EN 16931.

XRechnung vs. ZUGFeRD: the difference in practice

Both formats meet EN 16931. The decisive difference:

  • XRechnung: transmission via public-authority platforms or PEPPOL, with the recipient addressed by Leitweg-ID.
  • ZUGFeRD: sent by e-mail as PDF/A-3, with no central platform required. Common in B2B because receiving systems without XML processing can simply open the PDF.

You will find a detailed format comparison on the ZUGFeRD page and in the EN 16931 entry.

Receiving and processing XRechnung with OXS.eco

OXS.eco processes XRechnung files with workflow support:

  • Receipt via e-mail inbox, upload, SFTP or a PEPPOL connection
  • Validation against the current XRechnung specification and EN 16931
  • Structured data transfer into the approval workflow. No OCR, no manual data entry
  • Archiving aligned with GoBD: the XML file in the original format as received

Before an implementation you can submit an XRechnung through Check an e-invoice free of charge. The feedback points out the typical errors.

Receiving XRechnung: clean and audit-ready

15-minute initial call: we go through your incoming e-invoices and discuss how OXS.eco receives and validates XRechnung files and hands them over to approval and archiving aligned with GoBD. The demo with sample data follows in a separate session.