Attestwire › Rule reference › BR-CL-22
BR-CL-22 A VAT exemption reason code must come from the CEF VATEX list
noun · EN 16931 · fatal · BT-121
For a sample invoice, the library reports: The VAT exemption reason code (BT-121) supplied for category "E" is "NOT-A-VATEX", which is not in the CEF VATEX list (88 codes).
- Business term
BT-121- Severity
fatal
The fix
Set vatExemptionReasonCodes["E"] to a VATEX code — for category E that is normally "VATEX-EU-132-1B" or another article-specific code such as "VATEX-EU-132-1A", since an exempt supply is exempt under a named article. Leave the code unset and supply only vatExemptionReasons text if none of the codes fits.
A passing value
"vatExemptionReasonCodes": { "E": "VATEX-EU-132-1B" }What the library returns
The full error returned by @attestwire/en16931. It includes the rule ID,
affected field and suggested correction. Developers can use this object in their application:
{
"rule": "BR-CL-22",
"field": "BT-121",
"severity": "fatal",
"message": "The VAT exemption reason code (BT-121) supplied for category \"E\" is \"NOT-A-VATEX\", which is not in the CEF VATEX list (88 codes). BT-121 is the machine-readable half of the exemption: BT-120 tells a human why no VAT was charged, and this code tells a tax administration which article of the VAT Directive the exemption rests on. Free text, a directive article written out longhand, or a national code that is not in the VATEX list will all fail. Unusually, the comparison is case-insensitive — the schematron upper-cases the value first — so case is the one thing that cannot be the problem here.",
"fix": "Set vatExemptionReasonCodes[\"E\"] to a VATEX code — for category E that is normally \"VATEX-EU-132-1B\" or another article-specific code such as \"VATEX-EU-132-1A\", since an exempt supply is exempt under a named article. Leave the code unset and supply only vatExemptionReasons text if none of the codes fits.",
"example": "\"vatExemptionReasonCodes\": { \"E\": \"VATEX-EU-132-1B\" }",
"xpath": "/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TaxExemptionReasonCode",
"docsUrl": "https://attestwire.com/rules/BR-CL-22"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.