ZATCA Phase 2: The Complete Overview
Phase 2 (Integration) of Saudi Arabia's e-invoicing mandate requires businesses to connect their systems directly to ZATCA's platform in real time. Here's everything you need to know.
Phase 1 vs Phase 2 — what changed?
| Requirement | Phase 1 (Dec 2021) | Phase 2 (Wave rollout) |
|---|---|---|
| Invoice format | Digital (PDF/image OK) | Structured UBL 2.1 XML only |
| ZATCA submission | Not required | Real-time clearance or reporting |
| Cryptographic signing | Not required | EC key pair + CSID required |
| QR code | Basic (seller, VAT, total) | Extended TLV with hash and signature |
| ICV / PIH chain | Not required | Mandatory hash chain across all invoices |
| B2B invoices | Any digital format | Must be cleared before delivery to buyer |
| B2C receipts | Any digital format | Must be reported within 24 hours |
Who is affected?
Phase 2 applies to all VAT-registered businesses in Saudi Arabia with annual revenue above SAR 3 million. ZATCA rolled it out in waves starting with the largest taxpayers, progressively including smaller businesses. If you are VAT-registered and issue invoices, you are likely already in scope or will be soon.
The clearance flow (Standard invoices)
- Your system generates a UBL 2.1 XML invoice
- The XML is canonicalized and hashed (SHA-256)
- The hash is signed with your EC private key
- The signed XML is submitted to ZATCA's API
- ZATCA validates the XML and returns a clearance stamp
- The stamped invoice is then delivered to the buyer
The buyer cannot receive the invoice until ZATCA has cleared it. Saudi VAT Pro handles all of steps 2–5 automatically.
The reporting flow (Simplified invoices)
- You issue the simplified invoice to the consumer at point of sale
- Within 24 hours, you report the signed XML to ZATCA
- ZATCA validates and acknowledges receipt
Simplified invoices don't require ZATCA's stamp before delivery — but you still must report them within 24 hours.
CSID — your compliance credential
Before your first invoice, you must enroll your solution with ZATCA and receive a Compliance CSID (CCSID), then exchange it for a Production CSID (PCSID). These are X.509 certificates issued by ZATCA's PKI. Every invoice you sign must be signed with the private key linked to your active PCSID.
Saudi VAT Pro manages the full CSID lifecycle: enrollment, compliance testing (the 3-invoice check), production activation, and renewal reminders.
The ICV/PIH hash chain
Every invoice has two key fields:
- ICV (Invoice Counter Value) — a sequential integer starting at 1, incrementing by 1 for every invoice
- PIH (Previous Invoice Hash) — the SHA-256 hash of the previous invoice's XML
Together these create a tamper-evident chain. ZATCA can detect if any invoice in the sequence has been altered or deleted.
Related: Common ZATCA Errors
See the exact BR-KSA error codes you'll encounter during Phase 2 integration — and how to resolve each one.
Tool: Invoice Type Selector
Answer 3 questions and find out whether your transaction needs a Standard (cleared) or Simplified (reported) invoice.
See the full flow in action
Saudi VAT Pro's interactive sandbox lets you generate, sign, and submit a test invoice to ZATCA's compliance environment.