Skip to content
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.

IdentifierBR-KSA-40
EffectError: the document is rejected
Applies toStandard tax invoice and Simplified tax invoice

In JooDax

Partly built

The 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

  1. Electronic Invoice XML Implementation Standard to the E-Invoicing resolution dated 2023-05-19 (v1.2) — ZATCA
  2. 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.