An invoice shall specify a document type code (ExchangedDocument/TypeCode). (EN16931 BR-04)
Why Factur-X / CII invoices fail rule FX-HDR-003 (ERROR) and how to fix it: An invoice shall specify a document type code (ExchangedDocument/TypeCode). (EN16931 BR-04)
What this rule checks
An invoice shall specify a document type code (ExchangedDocument/TypeCode). (EN16931 BR-04)
Affected element: Invoice › TypeCode.
Standard: EN 16931 / Factur-X (CII). Severity: ERROR.
Why your invoice is rejected
e-Invoicing platforms and buyers validate EN 16931 business rules after the XSD check. When this rule fails the invoice is rejected — even if the XML is otherwise well-formed — so it must be fixed before you send it.
How to fix it
Add Invoice › TypeCode — it is mandatory for this Factur-X / EN 16931 profile.
Verify before you send
Upload your Factur-X / CII invoice to the validator to confirm this rule — and every other EN 16931 business rule — passes before your buyer or platform sees it.