BR-KSA-40
Rule BR-KSA-40 in Saudi e-invoicing
The seller VAT number has 15 digits, the first and last being 3.
The data dictionary shows the shape as 3xxxxxxxxx00003; a VAT group number takes the same form.
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-40 |
|---|---|
| Effect | Error: the document is rejected |
| Applies to | Standard tax invoice and Simplified tax invoice |
In JooDax
Partly builtThe programs write the number as entered and do not check its format themselves.
crates/jdx-einvoice-sa/src/xml.rs
Fields it checks
Other rules on the same fields
- BR-KSA-39 · The document must contain the seller VAT number or VAT group number.
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
- Electronic Invoice Data Dictionary 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.