Invoice type code

Error BR-04 EN 16931

An Invoice shall have an Invoice type code (BT-3).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The ram:TypeCode element in the invoice document is empty. The invoice type code BT-3 is therefore missing.

What the rule means

BT-3 identifies the type of invoice document. The code states what kind of invoice it is.

Affected fields BT-3
Please add the invoice type code

The invoice type code is missing from ram:ExchangedDocument. You can add the code in the ram:TypeCode element.

What to do
  1. Check the value of FacturXInvoice.Type.
  2. Ensure that ram:ExchangedDocument/ram:TypeCode is not empty.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ExchangedDocument>
  <ram:TypeCode/>
</ram:ExchangedDocument>
✓ Correct
<ram:ExchangedDocument>
  <ram:TypeCode>380</ram:TypeCode>
</ram:ExchangedDocument>
Check in FactoorSharp
  • FacturXInvoice.Type (BT-3)
Technical details

The XPath checks whether ram:ExchangedDocument/ram:TypeCode contains a non-empty value.

Where the rule applies

The rule applies to ram:TypeCode in the invoice document ram:ExchangedDocument.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
(rsm:ExchangedDocument/ram:TypeCode!='')