Asapeca E-Invoice

Validation rules explained

How do I create an XRechnung?

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

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:

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

  1. 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).
  2. If something is missing, the form names the rule and marks the field — before a file is made.
  3. 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

Based on the official documentation · sources · Last checked: 2026-10-20

Check an invoice →