Official rule text
[BR-DE-17] 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).Assertion BR-DE-17 in the XRechnung Schematron (KoSIT), v2.6.0, UBL and CII (same wording). KoSIT publishes the XRechnung rule messages in German.
KoSIT’s English wording, used for the Peppol BIS Billing national rule DE-R-017:
If both supplier and customer are located in Germany, the element "Invoice type code" (BT-3) should only contain the following values from code list UNTDID 1001: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice), 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).What it means
XRechnung only provides for type codes 326, 380, 381, 384, 389, 875, 876 and 877. Extra rules for XRechnung, the German specification of EN 16931.
Docfaro reports a breach of BR-DE-17 as a warning.
Where the data sits
The business terms this rule checks, and the element that carries each of them in the two syntaxes EN 16931 allows.
BT-3 Invoice type code
- UBL 2.1
/Invoice/cbc:InvoiceTypeCode/CreditNote/cbc:CreditNoteTypeCode- CII D16B
/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode
Prefixes: cbc and cac are the UBL basic and aggregate components; rsm, ram and udt the CII namespaces. In a UBL credit note the root is CreditNote and lines are cac:CreditNoteLine.
How to fix it
Choose a fitting code, usually 380, or 381 for credit notes.
Where the rule applies
| Defined in | XRechnung Schematron v2.6.0 |
|---|---|
| Syntaxes | UBL and CII |
| Official severity | warning |
| Docfaro reports it as | Warning |
| Docfaro checks it for | XRechnung only, recognised by the specification identifier (BT-24), including the XRechnung extension. Other EN 16931 invoices do not have to meet BR-DE rules. |
| Peppol counterpart | DE-R-017, a national rule for invoices where both seller and buyer are in Germany |
| Rule group | XRechnung rules (BR-DE, German CIUS) |
Related rules
Sources
- XRechnung Schematron v2.6.0 (Apache-2.0)KoSIT, GitHub
- Validator-Konfiguration XRechnung 3.0.2, Release 2026-08-31 (XSD UBL 2.1 und CII D16B, Schematron EN 16931 und XRechnung)KoSIT auf GitHub
- XRechnung – Versionen und BundlesKoSIT / xeinkauf.de
Last reviewed: