E-invoice validation error codes (EN 16931 / XRechnung) → BR-04
BR-04
An Invoice shall have an Invoice type code (BT-3).
Field
BT-3 — Invoice type code (cbc:InvoiceTypeCode)
What it means
A code from UNTDID 1001 that says what kind of document this is — a commercial invoice (380), a credit note (381), a corrected invoice (384), and so on.
Typical cause
cbc:InvoiceTypeCode is missing, or uses a code outside UNTDID 1001.
How to fix it
For a normal sales invoice use 380. Use 381 for a credit note (and the matching CreditNote root element in UBL).
Example
Wrong
<!-- cbc:InvoiceTypeCode missing -->
Right
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>