ZATCA Phase 2 Integration in 2027: Wave 25 Deadline, API Setup, CSID Onboarding and Cost
Wave 25 of ZATCA Phase 2 must integrate by 1 February 2027. This guide covers who is in scope, the Fatoora onboarding and API steps, the errors that get invoices rejected, a 6-week plan and lean integration costs in SAR and USD.
Hansraj
PRINCIPAL ARCHITECT11 MIN READ

ZATCA Phase 2 integration means connecting your invoicing system (ERP, POS or billing software) to ZATCA's Fatoora platform so every standard B2B invoice is cleared before it reaches the buyer and every simplified B2C invoice is reported within 24 hours. Wave 25 covers Saudi VAT taxpayers with VAT-able revenue above SAR 187,500 in any year from 2022 to 2025, and they must integrate no later than 1 February 2027. A single-system integration typically costs SAR 4,000 to 7,500 (about $1,070 to $2,000) and takes 4 to 6 working days; ERP and multi-branch projects run SAR 9,000 to 92,000 and 1.5 to 9 weeks.
What Is ZATCA Phase 2 Integration?
Saudi Arabia's e-invoicing programme (FATOORA) runs in two phases. Phase 1, the Generation phase, started on 4 December 2021 and required compliant electronic invoices with a QR code. Phase 2, the Integration phase, goes further: your e-invoice generation solution (ZATCA calls it an EGS unit) must talk directly to ZATCA's systems in real time.
In practice, ZATCA Phase 2 integration has four moving parts:
Invoice format: every invoice is produced as UBL 2.1 XML with a UUID, an invoice counter (ICV), the hash of the previous invoice (PIH) and a cryptographic stamp.
Device identity: each EGS unit is onboarded on the Fatoora portal and receives a Cryptographic Stamp Identifier (CSID).
Clearance: standard tax invoices (B2B and B2G) are sent to ZATCA and cleared before you share them with the buyer.
Reporting: simplified tax invoices (B2C) are issued to the customer immediately and reported to ZATCA within 24 hours.
ZATCA Phase 2 Deadline: Which Wave Are You In?
ZATCA selects taxpayers in waves based on VAT-able revenue and notifies each selected business at least six months before its deadline. The recent waves look like this:
Wave | Revenue threshold (VAT-able) | Integration window or deadline |
|---|---|---|
Wave 23 | Above SAR 750,000 | 1 January to 31 March 2026 |
Wave 24 | Above SAR 375,000 (2022, 2023 or 2024) | 1 April to 30 June 2026 |
Wave 25 | Above SAR 187,500 (2022, 2023, 2024 or 2025) | No later than 1 February 2027 |
Wave 26+ | Not announced as of 1 December 2026 | Watch for ZATCA notices |
Two points matter for planning. First, Wave 25 is the first wave to count 2025 revenue, so businesses that crossed SAR 187,500 only last year are in scope. Second, SAR 187,500 is the voluntary VAT registration threshold, which means Wave 25 reaches deep into the SME base: clinics, retailers, contractors, agencies and franchise outlets that may still invoice from desktop software or spreadsheets.
Foreign businesses (UAE, UK, US, Canada, Australia): Phase 2 applies to Saudi resident VAT taxpayers. If your group has a Saudi branch, subsidiary or regional headquarters, that entity is in scope even if your ERP is run from Dubai, London or Toronto. Non-resident VAT registrants are generally treated differently, so confirm your position with a Saudi tax adviser.
ZATCA Phase 2 Requirements Checklist
UBL 2.1 XML invoices that pass ZATCA business rules (the BR-KSA rule set).
A UUID per invoice, a sequential invoice counter (ICV) and a previous-invoice hash (PIH) chain per EGS unit.
An ECDSA cryptographic stamp (XAdES signature) on every invoice.
A Base64 TLV QR code with 9 tags: seller name, VAT number, timestamp, total with VAT, VAT amount, XML hash, ECDSA signature, public key and ZATCA's signature over the public key.
Credit and debit notes that reference the original invoice correctly.
Secure storage of invoices and the ability to produce them for audit.
A tamper-resistant system: no deleting or editing invoices after issuance.
How to Integrate With ZATCA: Fatoora Onboarding Step by Step
Step 1: Map your EGS units
List every system that issues invoices: ERP instances, POS terminals, branch servers, e-commerce checkouts and billing apps. Each one is an EGS unit and needs its own CSID. This list drives cost more than anything else.
Step 2: Generate a CSR and get an OTP
For each unit, generate a Certificate Signing Request (CSR) containing your VAT number, branch and device details. Log in to the Fatoora portal, use "Onboard New Solution Unit/Device" and generate an OTP. The OTP expires after 60 minutes, so have the CSR ready before you generate it.
Step 3: Get a Compliance CSID and pass compliance checks
Submit the CSR and OTP to the compliance endpoint to receive a Compliance CSID. Then send sample invoices, credit notes and debit notes for each document type you issue (standard and simplified) to the compliance-check endpoint until they pass.
Step 4: Request the Production CSID
Once compliance checks pass, exchange the Compliance CSID for a Production CSID. This is the certificate you use for live invoices. Track its expiry date and renew it through the portal before it lapses, because an expired CSID stops every invoice at once.
Step 5: Go live with clearance and reporting
Switch the unit to production. B2B invoices go to the clearance endpoint and are only shared once cleared. B2C invoices go to the reporting endpoint within 24 hours. Build a queue with retries so an internet or Fatoora outage does not block your tills.
ZATCA integration API endpoints at a glance
Purpose | Endpoint (relative to the Fatoora gateway) |
|---|---|
Get Compliance CSID (CSR + OTP) | POST /compliance |
Compliance checks with sample documents | POST /compliance/invoices |
Get or renew Production CSID | POST /production/csids (PATCH to renew) |
Clear a standard (B2B) invoice | POST /invoices/clearance/single |
Report a simplified (B2C) invoice | POST /invoices/reporting/single |
ZATCA provides a developer portal, a simulation environment and an SDK (version 3.4.x at the time of writing) for validating XML before you hit production. Test there first; production rejections are slower and noisier to debug.
Compliance CSID vs Production CSID
Compliance CSID | Production CSID | |
|---|---|---|
Purpose | Prove your solution can produce valid documents | Sign and submit live invoices |
How you get it | CSR + OTP from the Fatoora portal | Exchange after passing compliance checks |
Use on live invoices | No (rejected) | Yes |
Scope | One EGS unit | One EGS unit; renew before expiry |
Clearance vs Reporting: What Changes for Your Team
Clearance (B2B and B2G): your system sends the invoice, ZATCA validates and stamps it, and only then do you share it with your customer. If the API is down, the invoice waits. Sales teams that email PDFs straight from the ERP need a new step.
Reporting (B2C): the customer gets the receipt immediately, and the system reports it within 24 hours. POS systems need a reliable background queue, not manual uploads at the end of the week.
Why ZATCA Invoices Get Rejected: 10 Common Errors
Expired Production CSID: every invoice fails at once. Set a renewal alert 30 days ahead.
OTP expired during onboarding: the 60-minute window runs out while the CSR is still being prepared.
Compliance CSID used in production: live calls are refused.
Broken hash chain (PIH) or invoice counter (ICV): common when several servers or migrated data share one EGS unit.
Duplicate UUIDs after retries or data imports.
UBL schema or namespace errors from hand-built XML templates.
Wrong QR TLV order or length.
Credit and debit notes that reference the wrong identifier for the original invoice. These are among the most rejected documents.
Line totals that do not match the invoice total because of rounding (rule BR-CO-10).
Reading a warning as a pass: a response with warnings or errors in the body can look like success unless your code checks the status fields.
Other timing failures: B2C invoices reported after 24 hours, and B2B invoices sent to the buyer before clearance.
ZATCA Phase 2 Integration Cost in 2027
Integration cost depends on how many EGS units you have and how far your current system is from producing compliant XML. The ranges below are lean market prices: we benchmarked published Saudi integrator pricing (Stratgik, September 2026, and Fortunecode, October 2026) and priced 55 to 60 percent below them, with timelines 40 to 50 percent shorter.
Integration route | Typical cost (SAR) | Typical cost (USD) | Timeline |
|---|---|---|---|
Readiness and gap assessment (iSkylar estimate) | 4,000 to 10,000 | $1,070 to $2,670 | 3 to 5 working days |
Single existing system (SME billing app, desktop or cloud) | 4,000 to 7,500 | $1,070 to $2,000 | 4 to 6 working days |
Multi-branch with POS (up to about 10 devices) | 9,200 to 19,000 | $2,450 to $5,070 | 1.5 to 2 weeks |
ERP connector (SAP Business One, Odoo, Dynamics, Zoho, ERPNext) | 10,500 to 29,000 | $2,800 to $7,730 | 2 to 4.5 weeks |
Tier-1 ERP group (SAP S/4HANA, Oracle, NetSuite) | 23,000 to 46,000 | $6,130 to $12,270 | 1.5 to 3 weeks |
Middleware hub for several ERPs or entities | 25,000 to 63,000 | $6,670 to $16,800 | 3.5 to 6.5 weeks |
Custom or legacy system rebuild of the invoicing layer | 38,000 to 92,000 | $10,130 to $24,530 | 4.5 to 9 weeks |
Running costs (third-party, not discounted): e-invoicing subscriptions in Saudi Arabia range from about SAR 99 to 999 per month, with extra invoices at SAR 0.1 to 2 each and setup fees of SAR 0 to 5,000 (Qoyod market survey, September 2026). Stratgik puts total yearly running cost at SAR 6,000 to 40,000 including licences. Budget separately for CSID renewals, monitoring and support.
Cheapest route: if your volume is low and your current tool is a spreadsheet or unsupported desktop software, a compliant cloud invoicing subscription is usually cheaper than integrating. Integration pays off when invoices start in an ERP or POS you want to keep.
A 6-Week Wave 25 Plan (If You Start in December 2026)
Week | Work |
|---|---|
Week 1 | Confirm wave notice, list EGS units, gap assessment, pick route (subscription, connector or custom) |
Week 2 | Clean master data: VAT numbers, buyer addresses, item tax categories, rounding rules |
Week 3 | Build or configure XML, signing, QR and hash chain; test in the simulation environment |
Week 4 | Onboard each EGS unit: CSR, OTP, Compliance CSID, compliance checks |
Week 5 | Production CSIDs, pilot one branch or entity, fix rejections, train finance and sales teams |
Week 6 | Roll out remaining units, set CSID expiry alerts and rejection monitoring, go live before 1 February 2027 |
Smaller businesses with one system can compress this to two weeks. Groups with several ERPs should start immediately and keep a buffer for onboarding delays.
ZATCA Penalties for Non-Compliance
ZATCA's published penalty guidance says fines for not issuing e-invoices start at SAR 5,000, fines for deleting or amending invoices after issuance start at SAR 10,000, and missing items such as the QR code or buyer VAT number start with a warning. Vendor summaries published in 2026 describe a warning for a first integration failure followed by fines from SAR 10,000 and up to SAR 50,000 for repeat offences. Penalty schedules have been updated before, so check ZATCA's current guidance or your tax adviser rather than relying on a single vendor table.
How ZATCA Compares With UAE E-Invoicing
If you operate in both countries, do not build two disconnected projects. Saudi Arabia uses a centralised clearance model run by ZATCA, while the UAE uses a Peppol-based five-corner model through Accredited Service Providers, with large businesses live from 1 January 2027. A shared invoice data layer in your ERP can feed both. Our UAE e-invoicing integration guide covers the UAE side, and our ERP software development cost guide explains how to price an e-invoicing-ready ERP.
How iSkylar Helps
iSkylar builds and integrates ZATCA Phase 2 connectors for ERPs, POS systems and custom billing platforms, including Arabic invoice layouts and multi-branch EGS setups. See our custom software development services, and if you are also launching customer apps in the Kingdom, our mobile app development cost guide for UAE and Saudi Arabia. To automate what happens after clearance, such as matching cleared invoices to payments, see our agentic AI services.
WRITTEN BY
Hansraj
Leads marketing, growth and go-to-market strategy at iSkylar, helping founder's scope and launch on-demand and marketplace apps.
Frequently Asked Questions
Who must comply with ZATCA Phase 2 Wave 25?
What is the deadline for ZATCA Phase 2 integration?
How much does ZATCA Phase 2 integration cost?
How long does ZATCA integration take?
What is a CSID in ZATCA?
Do I need a separate CSID for each branch or POS terminal?
Can I keep my existing ERP?
What happens if Fatoora or the internet is down?
What is the difference between clearance and reporting?
Further Reading
Stay at the forefront of innovation.
innovation.
Join our inner circle of industry leaders and get exclusive insights delivered to your inbox every Thursday morning.
WE RESPECT YOUR PRIVACY. NO SPAM, EVER.
Updated At:





