Introduction

XRechnung is Germanyโ€™s official standard for electronic invoices in public procurement (called E-Rechnungen), though it is also used for B2B transactions. Itโ€™s part of the implementation of the EU directive 2014/55/EU, which requires all contracting authorities in the EU to accept electronic invoices in a structured XML file. It can be implemented using two different syntaxes, CII and UBL. They both contain the same information, but have different field names.
When referring to syntaxes, it is important to note that X-Rechnung and ZUGFeRD (and Factur-X) are all semantic data models. What this means is that they define the data that must be present in the invoice, but not the actual format of the data or the explicit name of the fields.To implement the semantic models, there are two syntaxes approved by the EU: UN/CEFACT Cross Industry Invoice (CII) and OpenOasis Universal Business Language (UBL).

Prerequisites

To convert invoices to XRechnung format, ensure you have:
  • A valid API key and a basic understanding of the workflow engine and API.
  • An invoice with:
    • Supplier details (company name and required identities). Check the German regimes for specifics.
    • Line items with name, price, and applicable taxes.

XRechnung Setup

To issue XRechnung invoices, follow these instructions in the Invopop Console:
1

Connect the OASIS UBL app

  1. Navigate to Configuration โ†’ Apps.
  2. Locate OASIS UBL in the app discovery list.
  3. Click Connect to activate.
No additional configuration is needed.

Running

In your invoice data, make sure to include the XRechnung addon and state the regime as DE.
Invopop uses the GOBL library to process conversions. GOBLโ€™s implementation of XRechnung validates national business rules in addition to the rules defined in EN 16931-1. Some example invoices are provided below, along with an example workflow to send the invoices to. We also recommend using the GOBL Builder to create your own invoices. Be sure to set the regime field to DE in your invoices and the XRechnung addon. This will add extra validations to ensure the document is compliant with the standard.

Sample Invoices

You can now generate invoices in the XRechnung format via the API or console. For more details, visit the GOBL docs or contact Invopop Support.

FAQ