BR-CO-07:Line item discount reason text does not match the reason code
On one of your invoice lines, the discount reason code and the reason text describe different types of discounts. For example, code 95 means "Discount" but the text says something else. These must match.
Engine Classification
Look up correct reason text from UNTDID 5189 code list based on the line allowance reason code
Confidence: 95% · Applied automatically in pipeline
What is BR-CO-07?
BR-CO-07 is a fatal validation rule defined in the EN 16931 specification. It validates the AllowanceChargeReason element under AllowanceCharge in the UBL invoice XML.
When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.
Target path: //cac:InvoiceLine/cac:AllowanceCharge/cbc:AllowanceChargeReason
Why This Error Matters
Semantic consistency between reason codes and text at the line level prevents ambiguity. When processing systems see code 42, they expect bonus-related text. Mismatches can cause confusion in line-item processing and reporting.
BR-CO-07 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.
Invoice Navigator can automatically correct this error in your pipeline. The fix is applied with full audit evidence, so your compliance trail remains intact.
Validator Behavior
- ·Causes invoice rejection
- ·Error returned: BR-CO-07
- ·Specification: EN 16931
How to Fix It
Before / After
<cac:InvoiceLine>\n <cac:AllowanceCharge>\n <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n <cbc:AllowanceChargeReasonCode>42</cbc:AllowanceChargeReasonCode>\n <cbc:AllowanceChargeReason>Early payment discount</cbc:AllowanceChargeReason>\n <cbc:Amount currencyID="EUR">10.00</cbc:Amount>\n </cac:AllowanceCharge>\n</cac:InvoiceLine>
<cac:InvoiceLine>\n <cac:AllowanceCharge>\n <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n <cbc:AllowanceChargeReasonCode>42</cbc:AllowanceChargeReasonCode>\n <cbc:AllowanceChargeReason>Other bonus</cbc:AllowanceChargeReason>\n <cbc:Amount currencyID="EUR">10.00</cbc:Amount>\n </cac:AllowanceCharge>\n</cac:InvoiceLine>
Technical Reference
//cac:InvoiceLine/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode Example
<cac:InvoiceLine>\n <cac:AllowanceCharge>\n <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n <cbc:AllowanceChargeReasonCode>42</cbc:AllowanceChargeReasonCode>\n <cbc:AllowanceChargeReason>Other bonus</cbc:AllowanceChargeReason>\n <cbc:Amount currencyID="EUR">10.00</cbc:Amount>\n </cac:AllowanceCharge>\n</cac:InvoiceLine>Common Causes
- ·Copy-paste error from different allowance type
- ·Code changed but text not updated
- ·Unknown UNTDID 5189 code meanings
- ·Template with placeholder text
Seeing this in production? The API handles BR-CO-07 automatically. See the fix response →
Frequently Asked Questions
BR-CO-07 occurs when the invoice line allowance reason code (BT-140) and reason text (BT-139) describe different types of allowances. They must indicate the same type according to UNTDID 5189.
Align the line allowance reason code with the reason text. Either update the text to match the UNTDID 5189 code meaning, or change the code to match your text description.
Yes, BR-CO-07 is a business rule violation that can cause invoice rejection. Line-level allowance information must be consistent for proper accounting.
Partially. Invoice Navigator can suggest corrections by mapping common text patterns to UNTDID 5189 codes, but review is recommended for line-level discounts.
See Also
Related Errors
Last updated: 27 February 2026
Handle BR-CO-07 Automatically in Your Pipeline
The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.