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 invoice type code in rsm:ExchangedDocument/ram:TypeCode is missing or empty.

What the rule means

The invoice type code identifies the kind of invoice document being issued. It classifies the document by type.

Affected fields BT-3
Please add the invoice type code

Your invoice is missing its invoice type code. Add the code that identifies the kind of invoice document.

What to do
  1. Add the invoice type code through Type.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<rsm:ExchangedDocument>
  <ram:TypeCode/>
</rsm:ExchangedDocument>
✓ Correct
<rsm:ExchangedDocument>
  <ram:TypeCode>380</ram:TypeCode>
</rsm:ExchangedDocument>
Check in FactoorSharp
  • FacturXInvoice.Type (BT-3)
Technical details

The test checks whether rsm:ExchangedDocument/ram:TypeCode is not equal to the empty string.

Where the rule applies

The rule applies to ram:TypeCode within rsm:ExchangedDocument in the invoice header.

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