BR-4 Field BT-3 EN 16931 core rules (BR)

Fix BR-4: Invoice type code (BT-3) missing

[BR-04]-An Invoice shall have an Invoice type code (BT-3).

BR-4 in your own invoice? Upload the file and find every error in seconds.

What does BR-4 mean?

An Invoice shall have an Invoice type code (BT-3). It is one of the mandatory fields of the European standard EN 16931; without it the invoice is structurally incomplete and gets rejected.

Common causes of BR-4

How to fix BR-4

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-3 along this XPath://rsm:ExchangedDocument/ram:TypeCode
  2. Apply the fix. Add the invoice type code (BT-3) in 'ram:ExchangedDocument/ram:TypeCode', for example '380' (invoice) or '381' (credit note).
  3. Validate again. Save the file and validate it again to check that BR-4 is no longer reported.
Concrete fix

Add the invoice type code (BT-3) in 'ram:ExchangedDocument/ram:TypeCode', for example '380' (invoice) or '381' (credit note).

XPath//rsm:ExchangedDocument/ram:TypeCode

Before / after: the XML example

This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).

Wrong
<rsm:ExchangedDocument>
  <ram:ID>RE-2026-001</ram:ID>
  <!-- ram:TypeCode fehlt -->
</rsm:ExchangedDocument>
Correct
<rsm:ExchangedDocument>
  <ram:ID>RE-2026-001</ram:ID>
  <ram:TypeCode>380</ram:TypeCode>
</rsm:ExchangedDocument>

Frequent questions about BR-4

How do I fix BR-4?
Add the invoice type code (BT-3) in 'ram:ExchangedDocument/ram:TypeCode', for example '380' (invoice) or '381' (credit note).

Related error codes

Check BR-4 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file – you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice