Rule BR-KSA-CL-04 in Saudi e-invoicing
With category Z, E or O, a reason code from the Saudi list must exist.
The list has 16 codes, each tied to its category; a zero-rating code on an exempt breakdown is wrong. The programs' code notes record that ZATCA's validator treats a missing code as a warning; the standard does not document severity.
The XML standard does not say which rules are errors and which are warnings; this classification is not confirmed by an official document.
| Identifier | BR-KSA-CL-04 |
|---|---|
| Effect | Error: the document is rejected |
| Applies to | Standard tax invoice and Simplified tax invoice |
In JooDax
Partly builtThe programs drop a code from the wrong category instead of sending it and write the right one when present; their list has 15 codes, lacking VATEX-SA-OOS.
crates/jdx-einvoice-sa/src/lib.rs
Fields it checks
Other rules on the same fields
- BR-KSA-18 · The VAT category code must be S, Z, E or O.
- BR-KSA-23 · A breakdown with category E (exempt) must carry an exemption reason code.
- BR-KSA-24 · A breakdown with category O must carry a reason code.
- BR-KSA-25 · A simplified document with VATEX-SA-EDU or VATEX-SA-HEA must name the buyer.
- BR-KSA-49 · With exemption code VATEX-SA-EDU or VATEX-SA-HEA, the buyer's national ID (scheme NAT) is mandatory.
- BR-KSA-69 · A breakdown with category Z must carry a reason code.
- BR-KSA-83 · A breakdown with category E, Z or O must carry a reason text from ZATCA's list.
Validation rules — E-invoicing in Saudi Arabia (FATOORA)
Sources
- Electronic Invoice XML Implementation Standard to the E-Invoicing resolution dated 2023-05-19 (v1.2) — ZATCA
Checked on: 4 November 2026. What concerns JooDax is taken from the programs’ own code.