Skip to main content

BR-CL-19 Coded allowance reason must come from UNCL5189

When an allowance reason is coded (BT-98 at document level, BT-140 at line level), the code must belong to the UNCL5189 subset used by EN 16931.

Problem Description

ERROR

EN 16931 code-list rule (BR-CL)

Interactive pipeline

Click a stage to see what it checks, or type a rule ID to light up the stage that reports it.

Try:

BR-CL-19 EN 16931 code list rule

Reported in stage 2: EN 16931 rules.

Level error: the report recommends rejecting the invoice.

Stage 2 · What it checks

  • The core business terms are present (BR-01 to BR-65).
  • Totals add up and related fields agree (BR-CO); codes and decimals are valid (BR-CL, BR-DEC).
  • Each VAT category is consistent: S, Z, E, AE, K, G, O, L, M (BR-S, BR-Z, BR-AE, BR-IC …).

Example codes

Typical fix

Recalculate totals and VAT from the line data, and correct the VAT category in the source data.

A validator checks an e-invoice in stages. First the file must be well-formed XML that matches the UBL or CII schema (XSD). Then the EN 16931 business rules run: BR core rules, BR-CO calculations, BR-CL code lists, BR-DEC decimals and VAT-category rules such as BR-S. Next come the national or network rules that BT-24 selects: BR-DE for XRechnung, PEPPOL-EN16931 for Peppol BIS Billing. The report lists every failed rule: one error means reject, warnings alone still mean accept. BR-CL-19: EN 16931 code list rule, reported in the stage “EN 16931 rules”. Rule sets: KoSIT validator 1.6.3 with the XRechnung configuration of 31 Aug 2026 (EN 16931 artefacts 1.3.16), Peppol BIS Billing 3.0.21.

Solution

Set the allowance reason code to an allowed UNCL5189 value, e.g. 95 (discount), 100 (special rebate) or 105 (yearly turnover); give any other reason as free text (BT-97 or BT-139). In UBL, the code is cbc:AllowanceChargeReasonCode in a cac:AllowanceCharge with cbc:ChargeIndicator false; in CII, ram:ReasonCode in a ram:SpecifiedTradeAllowanceCharge.

Quick actions

Context and Significance

Allowances use their own numeric code list (UNCL5189), separate from the list for charges (UNCL7161, BR-CL-20); EN 16931 allows 19 of these codes. The rule fails when a charge code such as FC is copied to an allowance, when a text such as "DISC" sits in the code field, or when the charge indicator is wrong, so that a charge is checked against the allowance list. Example: a volume discount uses code 95 with the reason "Volume discount".

Valid Examples

  • BT-98 = 95 — discount
  • BT-140 = 100 — special rebate at line level

Invalid Examples

  • BT-98 = FC — charge code (UNCL7161) on an allowance
  • BT-98 = DISC — free text instead of a code

Code Examples

Valid XML
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
</cac:AllowanceCharge>
Invalid XML
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:AllowanceChargeReasonCode>FC</cbc:AllowanceChargeReasonCode>
</cac:AllowanceCharge>

Affected Fields

Validation Tools