Peppol BIS Billing 3.0 · rule
DE-R-017
What does DE-R-017 mean? 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).
Why did my invoice fail DE-R-017?
On domestic German invoices the Invoice type code (BT-3) should be restricted to a specific subset of UNTDID 1001: 326 (partial invoice), 380 (commercial invoice), 384 (corrected invoice), 389 (self-billed invoice), 381 (credit note), and the construction-specific codes 875, 876 and 877. Germany narrows the general code list so receiving systems only encounter document types they can process. In UBL this is the cbc:InvoiceTypeCode element.
Official rule text
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).
Common causes
- Using a generic or exotic UNTDID 1001 code such as 751 or 82 that is outside the German subset
- Defaulting to a code copied from another country profile
- Using 380 for a correction where 384 is intended, or vice versa, with an out-of-list value
How do I fix it?
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
Related rules
DE-R-001 · DE-R-002 · DE-R-003 · DE-R-004 · DE-R-005 · DE-R-006 · DE-R-007 · DE-R-008
Paste it into the live demo, or call POST /v1/validate. See the quickstart.