BR-04:Missing invoice type code
An Invoice shall have an Invoice type code (BT-3). The most common value is 380 for a standard commercial invoice.
We can fix this automatically
AUTO-FIXAuto-fix: Default to type code "380" (standard invoice) unless the document appears to be a credit note (negative amounts). Can also derive from document structure if credit note indicators are present.
Why This Error Matters
Invoice rejected. Receiver cannot determine how to process the document (as payment request vs. credit).
How to Fix It
Determine document type
Is this a standard invoice (380), credit note (381), or other type?
Add InvoiceTypeCode
Insert <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> after IssueDate
Verify position
InvoiceTypeCode must come after IssueDate and before DocumentCurrencyCode
Before & After Fix(BR-04)
<cbc:InvoiceTypeCode></cbc:InvoiceTypeCode><cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode><cbc:InvoiceTypeCode></cbc:InvoiceTypeCode><cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>Compare the invalid XML structure with the corrected version. The fix ensures compliance with validation rules.
Code Example
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>Technical Details
XPath: /Invoice/cbc:InvoiceTypeCode. Common values: 380 (Commercial invoice), 381 (Credit note), 384 (Corrected invoice), 389 (Self-billed invoice), 751 (Invoice information).Common Causes
- Invoice type code (380/381/etc) not mapped in export
- Source system doesn't distinguish between invoice types
- Template using wrong field for InvoiceTypeCode
- Credit note exported without type code change
- Default type code not configured in export settings
Commonly Seen In
Frequently Asked Questions
Related Errors
Last updated: 16 January 2026