Fixture ID: badCategory · XPath: /ubl:Invoice/cac:InvoiceLine[1]/cac:Item/cac:ClassifiedTaxCategory/cbc:ID
Line 1 has an invoiced item VAT category code (BT-151) of "X", which is not in UNTDID 5305. EN 16931 admits exactly 10 codes: "AE", "L", "M", "E", "S", "Z", "G", "O", "K", "B". The category is not a label — it selects which BR-S/BR-Z/BR-E/BR-AE/BR-IC/BR-G/BR-O family of rules the line and its VAT breakdown are judged by.
BR-CL-18Use "S" standard rated, "Z" zero rated, "E" exempt, "AE" reverse charge, "K" intra-community supply, "G" export outside the EU, "O" not subject to VAT, "L" IGIC (Canary Islands) or "M" IPSI (Ceuta and Melilla). The tenth code, "B" (split payment, Italy), is a valid EN 16931 code that this build does not express.
"vatCategory": "S", "vatRate": 19