BR-04
Error (blocking) EN 16931 (UBL)EN 16931 (CII)
Official rule text
[BR-04]-An Invoice shall have an Invoice type code (BT-3).
What it means
BT-3 must carry the document type code from the UNTDID 1001 subset (380 commercial invoice, 381 credit note, 384 corrected invoice...). The rule fires when cbc:InvoiceTypeCode / cbc:CreditNoteTypeCode (UBL) or rsm:ExchangedDocument/ram:TypeCode (CII) is missing or empty.
How to fix it
Set BT-3 to a valid UNTDID 1001 code: 380 for a commercial invoice, 381 for a credit note. In UBL use cbc:InvoiceTypeCode (or cbc:CreditNoteTypeCode), in CII ram:TypeCode under rsm:ExchangedDocument.
Business terms involved: BT-3
🇫🇷 En français
Le BT-3 doit porter le code de type de document issu du sous-ensemble UNTDID 1001 (380 facture commerciale, 381 avoir, 384 facture rectificative...). La règle tombe quand cbc:InvoiceTypeCode / cbc:CreditNoteTypeCode (UBL) ou rsm:ExchangedDocument/ram:TypeCode (CII) est absent ou vide.
Correction : Mettez dans le BT-3 un code UNTDID 1001 valide : 380 pour une facture, 381 pour un avoir. En UBL via cbc:InvoiceTypeCode (ou cbc:CreditNoteTypeCode), en CII via ram:TypeCode sous rsm:ExchangedDocument.
Seeing BR-04 in a rejection?
Run your file through the free validator to see every violation at once — or let NormDrift watch your reference invoices so the next ruleset release never surprises you.