What is XRechnung?

XRechnung is a standardized e-invoice in a structured XML-based data format. It was originally developed for issuing electronic invoices to public clients in Germany. Since 2025, however, XRechnung has also been used for invoice exchange in the B2B sector in order to digitize and automatically process documents in a legally compliant manner. A software solution is required to generate and visualize the data record.

XRechnung: Legal background

On which law is the XRechnung based?

On April 16, 2014, the European Parliament and the Council of the European Union adopted EU Directive 2014/55/EU. This directive obliges all contracting authorities in the EU to accept and process electronic invoices. The aim was to simplify cross-border business processes, reduce costs and promote the digitalization of public administration.

In this context, the European Committee for Standardization (CEN) was commissioned to develop a European standard for electronic invoicing: the EN 16931 standard, which was published in 2017. Among other things, it states that an e-invoice must be created in the structured and machine-readable XML data format.

However, there are also country-specific requirements, which in Germany, for example, result from the Federal E-Invoicing Ordinance (E-RechV). To implement these, each country defines its own Core Invoice Usage Specification (CIUS). The XRechnung standard is therefore the national implementation – the CIUS – of the EN-16931 standard in Germany. The standard adds 21 national business rules to the EU standard.

Who must be able to create and receive an XRechnung?

Clients and contractors in the public sector in Germany:

  • All federal administration authorities have had to be able to receive and process an XRechnung since 27.11.2019.
  • Alle Auftragnehmer staatlicher und kommunaler Behörden stehen seit dem 27.11.2020 in der Pflicht, nur noch elektronische Rechnungen im Standard XRechnung auszustellen. Allerdings ist es mittlerweile auch erlaubt, ein anderes Rechnungsformat zu benutzen, das mit den gesetzlichen Anforderungen konform ist – beispielsweise ZUGFeRD Version 2.2.0 im Profil XRECHNUNG als rein strukturierte XML-Datei.

companies in B2B business transactions:

  • According to the Growth Opportunities Act, all German companies have been obliged to receive e-invoices and archive them in an audit-proof manner since 01.01.2025 – including XRechnungen. From 01.01.2028, they must also be able to create and send e-invoices.
  • For companies with an annual turnover of over 800,000 euros , sending an e-invoice will be mandatory from 01.01.2027. However, the following also applies in the B2B sector: invoices do not necessarily have to be issued in XRechnung format, but can also be issued in ZUGFeRD format.

Webinar on the e-invoicing obligation

New legal requirements, old systems and lots of questions: how can you successfully switch to e-invoicing? Our webinar recording gives you an overview of formats, obligations and solutions, including a look at upcoming developments relating to ViDA.

To the webinar recording

Technical basics of XRechnung

How is an XRechnung designed?

An XRechnung basically contains all mandatory and optional details that are also listed in other invoices. This includes, for example

  • the data of the invoice recipient and the invoice issuer,
  • the individual invoice items,
  • the invoice amount and
  • the payment information.

However, the XRechnung is implemented purely as a semantic data format and is therefore not suitable for visual inspection. It therefore does not allow a visual representation like a PDF, but must be processed by special software. Automatic validation plays an important role in ensuring that no errors creep into the code.

The XML structure ensures that all data is standardized and clearly interpretable, so that automated machine processing is possible without media discontinuity. CII (UN/CEFACT Cross Industry Invoice) and UBL (Universal Business Language ISO 19845) are permitted as syntax. The development and operation of the standard is carried out by KoSIT – the Coordination Office for IT Standards.

Software tools for the XRechnung

ERP system

An ERP system is mainly advantageous for large and medium-sized companies that process dozens of invoices every day. The software not only allows automated invoice creation in XML format. It also handles the automated dispatch, processing, checking and posting of incoming invoices. In combination with a document management system (DMS), it also enables archiving in accordance with legal requirements.

Accounting software

An accounting solution can be particularly useful for smaller companies that only send a few invoices on a regular basis. Such software supports the manual creation and dispatch of XRechnung invoices. It also offers functions for the automatic validation and processing of incoming invoices.

Web portals of the federal government

For small companies, federal web services offer the option of creating and uploading XRechnung invoices manually and transmitting them to a contracting authority. These include the invoice receipt platforms ZRE and OZG-RE.

Online generator

There are numerous websites on the Internet that provide simple generators for creating XRechnung invoices. However, these tools are only recommended for occasional use in the B2B sector.

Document management system (DMS)

Document management systems (DMS) have proven their worth in larger companies for archiving XRechnung invoices. These systems enable the audit-proof and long-term storage of invoices in accordance with the principles for the proper management and storage of books, records and documents in electronic form (GoBD).

What is the Peppol network?

Contracting authorities are often obliged to receive XRechnung invoices via the Peppol network. Peppol (Pan-European Public Procurement OnLine) is a transmission channel that ensures the secure, standard-compliant and automated exchange of XRechnung invoices and other digital documents. Peppol was originally developed by the EU Commission for public procurement. Today, Peppol is also increasingly being used in the B2B sector.

Contractors are generally entitled to send e-invoices to the recipient by email or via a web portal. However, Peppol is the only transmission channel that enables machine-to-machine (M2M) automation and the mass export of electronic invoices.

To connect to the Peppol network, a company needs a connection to a Peppol access point. This is usually provided by an external service provider. If the access point has a suitable interface, Peppol can even be integrated into the ERP system.

Advantages of the XRechnung

Time saving

Thanks to the structured XML format, invoices can be imported directly into IT systems and processed automatically without media disruptions. This reduces the manual effort required for data entry and speeds up the processing of invoices.

Cost savings

Die Nutzung der XRechnung reduziert Papier-, Druck- und Portokosten, da der Rechnungsversand vollständig digital erfolgt. Zudem entfallen aufwändige manuelle Prüfungen und Archivierungsprozesse, wodurch Unternehmen langfristig Geld sparen.

Error reduction

The automated validation of invoice data means that errors, such as incorrect amounts or missing information, are detected at an early stage. This leads to higher data quality and minimizes the risk of queries or rejected invoices.

Compliance with legal regulations

Today and in the future, all authorities, companies and organizations are affected by the e-invoicing obligation. By using the legally compliant XRechnung standard, clients and recipients automatically meet the legal requirements.

More transparency

All invoice information is clearly defined and easy to understand. This means that companies and authorities can quickly find and track invoices and compare them with orders or purchase orders.

Future security

The European standard EN 16931 standardizes electronic invoicing within the EU in the long term. With XRechnung, companies are therefore optimally prepared for future requirements – even in international business transactions.

FAQ about XRechnung

What is an XRechnung?

XRechnung is a standardized data format for electronic invoices that is used in Germany. It is based on XML and was developed for the automated and machine-readable transmission of invoices – especially to public sector clients.

To whom does the XRechnung obligation apply?

Originally, the XRechnung obligation was limited to exchanges with public clients. Since November 27, 2020, invoices to federal authorities must be transmitted as XRechnung, and since 2025, the use of electronic invoices such as XRechnung has also been more mandatory in the B2B sector.

What are the technical requirements for an XRechnung?

An XRechnung must be structured according to the standard that implements the European standard EN 16931. It contains structured XML data fields with mandatory information such as invoice number, service period or tax rate so that it can be processed automatically. A simple PDF is not sufficient.

What are the advantages of using XRechnung?

By using XRechnung, companies and public authorities can reduce work, recording and processing costs, minimize sources of error and make the invoicing process more efficient. The automation of invoice processing in particular can reduce costs and shorten process throughput times.

How is XRechnung connected to an ERP system?

Invoice data can be recorded, processed and further processed in an ERP system. If the ERP system is designed to create, send and receive XRechnung invoices, incoming and outgoing invoices can be integrated automatically. This ensures compliance and avoids media discontinuity.

What are the challenges of introducing XRechnung?

When introducing XRechnung, it is important to adapt systems technically, ensure data quality, train employees and design processes so that electronic invoice exchange works efficiently. In addition, interfaces to invoice receipt portals and, if necessary, partners must be set up correctly.

Can an XRechnung be sent by e-mail?

The method of sending an electronic invoice is not legally defined. Contractors can therefore simply send an XRechnung as an attachment by email. This is generally permitted in both the B2G and B2B sectors. However, there is no direct validation with this type of transmission, which increases the risk of incorrect invoices. In addition, the invoice recipient may request a different transmission method.

What software is required to visualize an XRechnung?

As the XRechnung consists of a machine-readable XML format, a direct visual representation is not possible. However, there are solutions that make the cryptic information readable for humans without changing the data record. These include software solutions such as ERP systems or accounting programs, pure XRechnung viewers that only offer graphical processing of the XML data in a structured layout, e.g. the viewer on the ELSTER portal as well as the display and verification function of the Central Invoice Receipt Platform (ZRE) and the OZG-RE.

What is the difference between XRechnung and ZUGFeRD?

XRechnung and ZUGFeRD (Zentraler User Guide des Forums elektronische Rechnung Deutschland) are two different formats for electronic invoices that are used in Germany. They can be distinguished as follows:
XRechnung consists exclusively of a machine-readable XML file. ZUGFeRD is a hybrid invoice format that contains both a PDF file for humans and an embedded XML file for machines.

What is the routing ID?

The routing ID is an identifier that enables authorities and public institutions in Germany to be uniquely identified and addressed. It consists of up to 44 digits and is always a mandatory part of an electronic invoice in the B2G area. In the XRechnung standard, the ID is in the “Buyer reference” field (BT-10). But beware: no routing ID is required for invoice exchanges between companies.

What is the XRechnung extension?

The XRechnung extension is an extension of the EN 16931 standard format that allows adaptation to industry-specific requirements. For example, the hierarchization of invoice lines and the embedding of XML attachments is possible. This is useful for the construction industry, for example, which can map service specifications and attach so-called GAEB files for the standardized exchange of construction information.