> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/edi/xrechnung.md).

# XRechnung Overview

## Introduction

XRechnung is a German electronic invoicing standard designed for public administration. It is based on the European standard EN 16931 and exists in two technical formats: **UBL** (Universal Business Language) and **CII** (Cross Industry Invoice).

DocBits provides full support for XRechnung, allowing for the extraction of structured data and seamless export to Infor ERP systems.

## Supported XRechnung Versions (CII)

DocBits supports the following XRechnung CII versions:

* [XRechnung 1.2](/administration-and-setup/settings/global-settings/document-types/edi/xrechnung/xrechnung-1-2.md)
* [XRechnung 2.1](/administration-and-setup/settings/global-settings/document-types/edi/xrechnung/xrechnung-2-1.md)
* [XRechnung 3.0](/administration-and-setup/settings/global-settings/document-types/edi/xrechnung/xrechnung-3-0.md)
* [XRechnung 3.0.1](/administration-and-setup/settings/global-settings/document-types/edi/xrechnung/xrechnung-3-0-1.md)
* [XRechnung 3.0.2](/administration-and-setup/settings/global-settings/document-types/edi/xrechnung/xrechnung-3-0-2.md)

## Data Flow

The data flow from an XRechnung document to your ERP system follows these steps:

1. **Extraction**: DocBits parses the XML data based on the XRechnung version and format (CII or UBL).
2. **DocBits Field Mapping**: Extracted data is mapped to standard DocBits fields.
3. **ERP Alignment**: DocBits fields are mapped to Infor BOD (Business Object Document) fields, typically using the `SyncSupplierInvoice` BOD.
4. **Export**: The mapped data is exported to the Infor system.

## Mapping Standards

The mapping is based on the following standards:

* **UN/CEFACT CII**: The base for XRechnung CII XML structure.
* **OAGIS/OASIS**: The standard for Infor BODs.
* **EN 16931**: The European standard for e-invoicing.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/edi/xrechnung.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
