Knowledge CenterZATCA Phase 2 Overview

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?

RequirementPhase 1 (Dec 2021)Phase 2 (Wave rollout)
Invoice formatDigital (PDF/image OK)Structured UBL 2.1 XML only
ZATCA submissionNot requiredReal-time clearance or reporting
Cryptographic signingNot requiredEC key pair + CSID required
QR codeBasic (seller, VAT, total)Extended TLV with hash and signature
ICV / PIH chainNot requiredMandatory hash chain across all invoices
B2B invoicesAny digital formatMust be cleared before delivery to buyer
B2C receiptsAny digital formatMust 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)

  1. Your system generates a UBL 2.1 XML invoice
  2. The XML is canonicalized and hashed (SHA-256)
  3. The hash is signed with your EC private key
  4. The signed XML is submitted to ZATCA's API
  5. ZATCA validates the XML and returns a clearance stamp
  6. 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)

  1. You issue the simplified invoice to the consumer at point of sale
  2. Within 24 hours, you report the signed XML to ZATCA
  3. 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.

Read guide

Tool: Invoice Type Selector

Answer 3 questions and find out whether your transaction needs a Standard (cleared) or Simplified (reported) invoice.

Open tool

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.

Start Free Trial