Reference
Markdown exportBR-04 Invoice type code is required
An invoice shall have an Invoice type code (BT-3) identifying the functional type of the document, such as a commercial invoice or a credit note.
Problem Description
An invoice shall have an Invoice type code (BT-3) identifying the functional type of the document, such as a commercial invoice or a credit note.
ERROR
XRechnung 3.0
Context and Significance
This is a core EN16931 rule; the type code drives downstream processing and VAT handling, so every invoice must declare it.
Solution
Add cbc:InvoiceTypeCode with an allowed UNTDID 1001 value, for example 380 for a commercial invoice or 381 for a credit note.
Quick actions
Valid Examples
Use these points as the practical checks for this section.
- BT-3 = 380 — commercial invoice
- BT-3 = 381 — credit note
Invalid Examples
Use these points as the practical checks for this section.
- cbc:InvoiceTypeCode element is missing from the invoice header
Code Examples
Valid XML
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>Invalid XML
<cbc:IssueDate>2024-05-01</cbc:IssueDate>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>