BR-04

Invoice type code is missing

Repaired automatically Field BT-3 EN16931 UBL / CII

What it means

The type code (BT-3) says what kind of document this is — a commercial invoice, a credit note, a corrected invoice. Receivers post these differently, so the field is mandatory.

Can it be fixed automatically?

Nothing about your business is needed to fix this — the correct value is a constant, a code list entry, or is already present in the document.

This one can be repaired automatically. The API applies the fix, re-validates, and reports exactly what changed with before and after values.

How to fix it

For a plain commercial invoice the code is 380, and for a credit note 381. Which one applies follows from the document's root element. Codes such as 384 (corrected invoice) or 386 (prepayment invoice) describe a different intent and must be chosen deliberately.

Where it applies

CII/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode
UBL/Invoice/cbc:InvoiceTypeCode

Check your own invoice

curl -X POST https://einvoice.mgsoft.sk/v1/validate \
     -H 'Content-Type: application/xml' \
     --data-binary @invoice.xml

← All rules