BR-KSA-18ErrorZATCA Phase 2 UBL 2.1implemented
Allowed VAT Category Codes (S, Z, E, O)
Line ClassifiedTaxCategory/cbc:ID and TaxSubtotal/TaxCategory/cbc:ID must use strictly S (Standard), Z (Zero-rated), E (Exempt), or O (Out of scope).
- Scope
- Tax Categories
- Applicable Invoice Types
- Standard (B2B), Simplified (B2C), Credit Note, Debit Note
- Catalog Version
- v1.0.0 (2026-11-23)
- Target XPath
/Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID
Typical Reason for Failure
European codes like 'AE' or 'K' or text labels like 'VAT15' are exported.
Invalid Synthetic Example
Before (Fails)xml
<cbc:ID>VAT15</cbc:ID>Corrected Synthetic Example
After (Fixed)xml
<cbc:ID>S</cbc:ID>Explanation of the Fix
Normalize every tax category code to S, Z, E, or O.
Official Source Reference
ZATCA Electronic Invoice XML Implementation Standard (Phase 2)
Open official specificationTest your invoice against BR-KSA-18 now
Browser quick check; raw XML is never stored.