What is the XRechnung?
The XRechnung is the German specification (CIUS) of the European standard EN 16931 for electronic invoices. It is published by the Koordinierungsstelle für IT-Standards (KoSIT, Coordination Office for IT Standards) on behalf of the IT-Planungsrat (IT Planning Council). An XRechnung is a pure XML file: it contains all the invoice data in precisely defined fields, but no visual layout.
Technically, the XRechnung exists in two syntaxes: UBL (Universal Business Language) and UN/CEFACT CII (Cross Industry Invoice). Both are equivalent; the public sector’s invoice receipt platforms accept both.
What is the XRechnung needed for?
- Invoices to the federal government: since 27 November 2020, suppliers to the federal administration have had to submit e-invoices, generally as an XRechnung via the federal government’s invoice receipt platforms.
- Invoices to federal states and municipalities: many federal states have their own rules with comparable requirements.
- Invoices to businesses: under the e-invoicing obligation (E-Rechnungspflicht), the XRechnung is also a permitted format in B2B transactions.
The Leitweg-ID
Public contracting authorities require a Leitweg-ID in the XRechnung. It identifies the body to which the invoice is going and is held in the ‘Käuferreferenz’ field (Buyer Reference, BT-10). You receive the Leitweg-ID from your contracting authority, usually with the contract or the purchase order. If it is missing, the invoice is generally rejected.
What details does an XRechnung need?
In addition to the usual invoice details under § 14 UStG, the XRechnung requires some additional fields. The following are often forgotten:
- Buyer reference or Leitweg-ID (BT-10)
- electronic address of seller and buyer, usually the email address (BT-34, BT-49)
- Contact details of the seller: contact person, telephone, email
- Payment details with IBAN for credit transfers
- Unit codes for quantities and the VAT category for each line item
Validating an XRechnung: validation with the KoSIT validator
Whether an XRechnung is valid can be checked by machine. For this purpose KoSIT provides an official validator with the current validation rules. It checks the XML schema, the business rules of EN 16931 and the additional rules of the XRechnung. An invoice that shows errors here is often rejected by invoice receipt platforms – which is why the check belongs before every dispatch.
Reading and displaying an XRechnung
Because the XRechnung contains no visual layout, the recipient needs a program that displays the XML data in readable form. Good software displays the invoice in the familiar way, checks it and transfers the data into accounting.
Creating an XRechnung with e-rechnung pro
- Outgoing invoices as XRechnung 3.0 in the UBL syntax, credit notes as a separate CreditNote document
- Mandatory fields such as Leitweg-ID, contact details and payment details directly in the form
- built-in check in accordance with EN 16931 and additionally, automatically, with the official KoSIT validator
- Read in incoming invoices in XRechnung format, display them in readable form and approve them
- additionally as a ZUGFeRD invoice (PDF/A-3, XRECHNUNG profile) for recipients who want a visual layout
The software runs online in the browser or locally on Windows.
XRechnung example to download
Our sample invoices show what an XRechnung looks like as XML: invoice, progress and final invoice, credit note and cancellation invoice – each file checked with the KoSIT validator, to download and verify.