← All e-invoice error codes

BR-DE-17 XRechnung: unusual invoice type code

XRechnung expects one of these invoice type codes: 326, 380, 381, 384, 389, 875, 876 or 877.

Auf Deutsch · En français

What the rule says

Mit dem Element "Invoice type code" (BT-3) sollen ausschließlich folgende Codes aus der Codeliste UNTDID 1001 übermittelt werden: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice) und 381 (Credit note),875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).

The rule's official wording (CEN / KoSIT). The German XRechnung rules are published in German.

Why it happens

The invoice type code (BT-3) isn't one XRechnung expects. This is a warning, not an error, but some receivers reject such invoices anyway.

How to fix it

Use 380 for a normal invoice, 326 for a down-payment (partial) invoice, 384 for a corrected invoice or cancellation, 381 for a credit note and 389 for a self-billed invoice; 875 to 877 are for construction invoices.

Applies to

XRechnung only (German rules by KoSIT).

More about BR-DE-17

The code list behind BT-3 (UNTDID 1001) has hundreds of document types, but XRechnung allows only the eight that are invoices in the German sense. Codes such as 386 (prepayment invoice) or 383 (debit note) pass the European rules and still raise this warning.

The construction codes 875 (partial construction invoice), 876 (partial final construction invoice) and 877 (final construction invoice) are for building work under the German VOB.

The fields involved

BT-3 Invoice type code
CII rsm:ExchangedDocument/ram:TypeCode
UBL cbc:InvoiceTypeCode

Typical situations

  • A prepayment invoice was sent with code 386 instead of 326.
  • The software writes a debit note (383).

Example

A normal invoice in CII:

<rsm:ExchangedDocument>
  <ram:ID>RE-2026-0042</ram:ID>
  <ram:TypeCode>380</ram:TypeCode>
  ...
</rsm:ExchangedDocument>