Reference
Markdown exportBR-CL-18 Line-level VAT category code must come from UNCL5305
The invoiced item VAT category code (BT-151) must be one of the UNCL5305 codes allowed by EN 16931: S, Z, E, AE, K, G, O, L, M or B.
Problem Description
ERROR
EN 16931 code-list rule (BR-CL)
Interactive pipeline
Where BR-CL-18 is checked
Click a stage to see what it checks, or type a rule ID to light up the stage that reports it.
BR-CL-18 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
EN 16931 rules
- 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.
Solution
Set BT-151 to an allowed category (S, Z, E, AE, K, G, O, L, M or B) that matches a VAT breakdown with the same category and rate. In UBL, the code is in cac:Item/cac:ClassifiedTaxCategory/cbc:ID; in CII, in ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode.
Quick actions
Context and Significance
Every invoice line needs a VAT category (BR-CO-4) that links it to a VAT breakdown. In CII, this rule checks every ram:ApplicableTradeTax/ram:CategoryCode, so it also covers the VAT breakdown in the header (BT-118). The rule fails when line data from an ERP or shop system carries lowercase codes ("s"), a "0" for missing tax keys, or intuitive but wrong letters such as "N" for "no VAT". L means IGIC (Canary Islands), not "low rate". Example: a zero-rated line uses Z, a line not subject to VAT uses O.
Valid Examples
- BT-151 = S — standard-rated line
- BT-151 = O — line not subject to VAT
Invalid Examples
- BT-151 = s — lowercase; codes are case-sensitive
- BT-151 = N — not a UNCL5305 category
- BT-151 = 0 — numeric value, not a category code
Code Examples
<cac:Item>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item><cac:Item>
<cac:ClassifiedTaxCategory>
<cbc:ID>N</cbc:ID>
<cbc:Percent>19</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>