An e-invoice says what kind of document it is with a standard code: an invoice, a credit note, a corrected invoice… The software that receives it treats each kind in its own way. The rule checks that the code is there.
Common causes
A new kind of document in the software, such as a deposit invoice, with no code mapped to it.
A template in which the type was left blank.
How to fix it
Check the document type of the invoice in your software: invoice, credit note…
Check that the e-invoice writes its code, for example 380 for an invoice or 381 for a credit note.
If the code is missing, report it to the software's publisher, quoting BR-04.
Why it matters
BR-04 is a rule of the European e-invoicing standard, EN 16931. The French, German (XRechnung) and European (Peppol) rules build on this standard, so an invoice that fails BR-04 also fails each of them.
In public procurement, buyers in the European Union must accept e-invoices that follow this standard (Directive 2014/55/EU).
Does your invoice pass BR-04?
Check it against this rule only. The check runs in your browser, so nothing is sent.
Technical details
If you are interested in the technical side: the data the rule checks in the invoice file.
The invoice type code is BT-3. In CII, it is ram:TypeCode of rsm:ExchangedDocument; in UBL, cbc:InvoiceTypeCode (cbc:CreditNoteTypeCode in a credit note). Its codes come from the UNTDID 1001 list, as rule BR-CL-01 requires.
The example invoice leaves the code empty. An empty code is not in the list either, so BR-CL-01 fails too, and the example fails both rules.
EN 16931 concepts (business terms, rules): these pages are an implementation of the semantic data model EN 16931-1:2017 and its two mandatory syntaxes (CEN/TS 16931-2:2017), and reproduce parts of them with the permission of CEN and its member national standardisation bodies. CEN and the national standardisation bodies bear no liability for the content and implementation of these pages, and give no warranty, express or implied, for any purpose. In case of doubt, always refer to the official text of the standard.