SchemaGuard by Ironbark Digital · EN 16931 / Peppol / XRechnung Reference
← All 294 EN 16931 / Peppol Rules & Live Validator
FATAL Official EN 16931 / Peppol / CIUS Rule BT/BG Fields: BT-3

BR-04 — E-Invoice Validation Rule & Fix

Fixture ID: emptyInvoiceType · XPath: /ubl:Invoice/cbc:InvoiceTypeCode

1. Why This Rule Triggers (Diagnostic Message)

An invoice must have an invoice type code (BT-3), but invoiceTypeCode was set to "". The type code is what distinguishes a commercial invoice from a partial invoice, a correction or a self-billed document, and receiving systems branch on it before they read anything else. An empty string is not the same as omitting the field: omit it and this library supplies the default "380"; set it empty and you have explicitly asked for a document with no type.

2. How to Fix BR-04

Remove invoiceTypeCode to accept the default "380" (commercial invoice), or set it to the UNTDID 1001 code you actually mean.

3. Valid Code / Payload Example

"invoiceTypeCode": "380"
Test & Validate XML / JSON in Live SchemaGuard Validator →