An XRechnung is an invoice as an XML file under the German XRechnung standard of KoSIT. It follows the European standard EN 16931 and is written in one of its two syntaxes: UBL or CII (UN/CEFACT). Both are equivalent; the file is read by programs, not by people — the official KoSIT visualisation is there for viewing it.
When an XRechnung is needed
- Public buyers: invoices to federal authorities have to be electronic, "as a rule" in the XRechnung standard (§ 4 (1) ERechV). The federal states have their own rules.
- Between businesses in Germany: § 14 (2) UStG requires an electronic invoice in a format that follows the European standard EN 16931 (§ 14 (1) UStG) — XRechnung is one of them, ZUGFeRD from the EN 16931 profile up is another (How do I create a ZUGFeRD invoice?). From when this applies to whom is set by the transition periods in § 27 (38) UStG.
A PDF alone is not an electronic invoice in this sense: § 14 (1) UStG asks for a "structured electronic format" that "allows electronic processing".
What goes into it
From VAT law (§ 14 (4) UStG), with the field of the XRechnung:
| Item | Field |
|---|---|
| Name and address of seller and buyer | BT-27, BG-5, BT-44, BG-8 |
| The seller's tax number or VAT ID | BT-32 or BT-31 |
| Date of issue | BT-2 |
| Sequential invoice number | BT-1 |
| Quantity and kind of the goods or services | BT-129, BT-153 |
| Date of the supply | BT-72 or BT-73/74 |
| Amounts by VAT rate, reductions | BT-131, BG-20, BG-23 |
| VAT rate and amount, or a note on the exemption | BT-119, BT-117, BT-120 |
| For self-billing the word "Gutschrift" | invoice type 389 |
From XRechnung itself come items VAT law does not ask for — the check rejects the invoice without them:
- a buyer reference (BT-10): the Leitweg-ID for authorities, otherwise the customer's order number or "-" (BR-DE-15);
- a seller contact point with phone and e-mail (BR-DE-5, BR-DE-6, BR-DE-7);
- electronic addresses of seller and buyer (BT-49), for example the e-mail for invoices;
- the payment means (BR-DE-1), with the IBAN for a credit transfer;
- an identifier of the seller such as the VAT ID or a commercial register entry (BR-CO-26) — the tax number alone does not satisfy this rule.
Invoices to federal authorities also need the Leitweg-ID, the bank details, the payment terms and an e-mail address of the invoicing party (§ 5 (1) ERechV).
How it is calculated
The totals have to add up the way the validation rules calculate: the net amount of each line, the sum of the lines, allowances and charges, VAT rounded once per rate, then gross and the amount due. One cent off is enough for a rejection — see Rounding. If an amount is due, the invoice needs a due date or payment terms (BR-CO-25).
How it works with our form
- In the form Create an XRechnung enter your company, the customer, the lines and the payment, and choose the tax case (domestic, EU, export, reverse charge, small business).
- If something is missing, the form names the rule and marks the field — before a file is made.
- The finished XRechnung (CII or UBL) is checked right away with the official KoSIT validator; you see the check report and the view of the invoice and download the XML.
What you enter is not stored. You issue the invoice and remain responsible for its content — whether a supply is tax-free or which rate applies is not decided by the form. This is not tax advice.
Sources
- German VAT Act (UStG), § 14 (1), (2) and (4): gesetze-im-internet.de/ustg_1980/__14.html
- Federal e-invoicing ordinance (ERechV), §§ 4 and 5: gesetze-im-internet.de/erechv
- KoSIT, XRechnung 3.0.2 specification and validation configuration: xeinkauf.de/xrechnung