ZATCA E-Invoicing Phase 2 (Fatoora): Integration Guide for Saudi Businesses

ZATCA E-Invoicing Phase 2 (Fatoora): Integration Guide for Saudi Businesses

TL;DR

  • ZATCA Phase 2 means connecting your invoicing system to the Fatoora platform by API, not just generating XML invoices.
  • Wave 25 covers VAT-able revenue above SAR 187,500 in any year from 2022 to 2025, with a 1 February 2027 deadline.
  • Standard B2B invoices are cleared by ZATCA before issue. Simplified B2C invoices are reported within 24 hours.
  • Choose between an ERP add-on, middleware, or a direct API build based on who owns signing, hash chaining, and updates.
  • Common rejection causes include broken hash chains, the wrong invoice type, and unmapped VAT codes.

Who this is for: finance heads, CTOs and founders of VAT-registered Saudi businesses that have been, or will be, notified for Phase 2.

 

As of 10 November 2026, Wave 25 businesses have 83 days to connect their invoicing systems to ZATCA’s Fatoora platform. ZATCA announced Wave 25 on 24 July 2026, halving the threshold to SAR 187,500.

 

That threshold sits below the mandatory VAT registration limit, so voluntarily registered smaller businesses are now in scope. Many of them assumed Phase 2 was an enterprise problem.

The cost of getting this wrong is concrete. A standard invoice that ZATCA has not cleared cannot go to your buyer, and penalties for non-compliant e-invoices start at SAR 5,000. Confirm the current penalty schedule with ZATCA before you budget.

 

Here is what most guides miss: They explain the rule, then stop before the decision that decides your timeline: which integration path to take. This guide covers the phases, the waves, the technical requirements, the paths, the rejection errors, and a 12-week plan.

What is the difference between ZATCA Phase 1 and Phase 2?

Phase 1 is the generation phase. It has been in effect since 4 December 2021 and requires VAT-registered businesses to issue and store structured electronic invoices with a QR code. A PDF or scanned copy does not count as an e-invoice. Phase 1 does not require you to send anything to ZATCA.

 

Phase 2 is the integration phase. Your system must connect to the Fatoora platform, produce invoices in a specified format with a cryptographic stamp, and either clear or report each one.

 

The change is operational. Phase 1 was a formatting task. Phase 2 puts ZATCA inside your billing flow, so downtime, failed calls and data errors now affect whether you can invoice at all.

Which ZATCA wave are you in, and who is next?

ZATCA brings taxpayers into Phase 2 in waves, based on VAT-able revenue. Thresholds started at SAR 3 billion in Wave 1 (January 2023) and have fallen with each wave since. One year above the threshold in the listed reference years is enough to put you in scope.

Comparison: recent ZATCA Phase 2 waves, thresholds and deadlines (as of 10 November 2026)

Some secondary guides give 1 April 2026 for Wave 24. ZATCA’s own wording is no later than 30 June 2026.

 

ZATCA notifies taxpayers in each wave directly. Per its roll-out phases page, later waves get at least six months’ notice. If you were above SAR 375,000 in 2022 to 2024 and have not integrated, your deadline has already passed.

What does Phase 2 require from your invoicing system?

Five technical requirements carry most of the work. Each is simple to describe and unforgiving to get wrong.

 

UBL 2.1 XML: Every invoice is an XML document in the UBL 2.1 standard with Saudi-specific extensions. Your system builds this from your invoice, line item and tax data.

 

Cryptographic stamp: Each invoice is canonicalised, hashed, and digitally signed with a key tied to your CSID (Cryptographic Stamp Identifier), the certificate ZATCA issues during onboarding.

Hash chain: Each invoice carries an invoice counter value (ICV) and the hash of the previous invoice (PIH). This links every invoice to the one before it. Most implementations keep a separate chain per registered unit and per environment.

 

QR code: The QR payload is TLV-encoded. Phase 2 extends it beyond the Phase 1 fields, up to nine.

 

Clearance or reporting: Standard tax invoices (B2B and B2G) go to ZATCA for clearance before you issue them. Simplified invoices (B2C) are reported, with the Fatoora APIs expecting submission within 24 hours.

An illustrative fragment of the XML header, for developer orientation only. Validate every element against ZATCA’s published XSD and technical guidelines.

📄
filename.xml
<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
<cbc:ID>INV-2026-000412</cbc:ID>

Onboarding is where most teams first lose time. Each device or unit must be registered before it can issue a single production invoice.

what-does-phase-2-require-from-your-invoicing-system

The OTP from the Fatoora portal expires quickly, about an hour in one published walkthrough. Have your CSR and credentials ready before you request it.

Pro tip:

Test a chain break on purpose before go-live. Fail a clearance call, reissue, and confirm your invoice counter and previous-invoice hash stay in sequence. Hash chains can break silently, and you find out in production.

ERP add-on, middleware or direct API: which integration path fits?

There are three realistic paths. The right one depends less on budget than on who you want to own signing, chaining, and keeping up with ZATCA changes:

Comparison: ZATCA Phase 2 integration paths
ERp-add-on-middleware-or-direct-API

The add-on is the right answer for most businesses on a mainstream ERP. If a supported module covers your invoice types, do not build your own.

 

The direct build earns its cost when your invoicing logic is unusual: multi-branch billing, contract or milestone invoices, or a custom platform that creates invoices itself. Competenza’s Saudi compliance depth, for instance, means ZATCA is scoped at architecture stage rather than retrofitted after launch.

 

When you evaluate any e-invoicing provider, ask them to show onboarding and compliance checks completing for each of your devices. A label saying the product is approved tells you less than a live demonstration.

Get a ZATCA integration roadmap for your system

Why do Fatoora invoices get rejected, and how do you fix them?

Rejections cluster around a handful of causes. Most are data and sequence problems, not network problems. Here are the top ones:

 

Broken hash chain: A failed call that is retried out of order, or two systems issuing from one chain, breaks the previous-invoice link. Fix it by giving each unit a single issuing sequence and queuing retries in order.

 

Wrong invoice type: Sending a simplified invoice for clearance, or the reverse, gets it refused. Fix it by deciding invoice type from the customer type at creation, not at submission.

 

Unmapped VAT categories: Exemptions and zero-rated lines need the correct VAT category and exemption reason codes. Fix it with an explicit mapping table reviewed by your tax team.

Bad signing or canonicalisation: An invoice that is hashed in a different form from the one that is signed will fail validation. Fix it by hashing and signing the same canonical XML, every time.

 

Expired onboarding OTP or invalid CSR: The CSR must include ZATCA’s required certificate extensions, and the OTP must be fresh. Fix it by generating the CSR first and requesting the OTP last.

 

Late reporting: Simplified invoices that miss the 24-hour window are a compliance gap. Fix it with a background queue and an alert on anything unsent after a few hours.

 

One more point for retail and POS businesses. A synchronous clearance call can stall the checkout if ZATCA responds slowly. Report simplified invoices from a queue so cashiers never wait on the API.

What does a 12-week project plan and budget look like?

Wave 25 businesses have about 12 weeks. This is a suggested planning structure, not a ZATCA requirement. It leaves a buffer before 1 February 2027.

Here is a project plan our fintech team at Competenza suggests:

  • Weeks 1 to 2: Confirm your wave, list every system that issues invoices, and pick an integration path.
  • Weeks 3 to 4: Set up the Fatoora portal account, generate keys, and complete sandbox onboarding.
  • Weeks 5 to 8: Build or configure XML, signing, chaining, and queues. Run ZATCA’s compliance checks.
  • Weeks 9 to 10: Test with real invoice scenarios, including credit notes and mixed VAT rates. Request production CSIDs.
  • Week 11: Pilot in production with one branch or one invoice type.
  • Week 12: Cut over fully, and keep a small team on rejections.

On cost, three factors move the number: how many systems issue invoices, how many branches or devices need separate onboarding, and how unusual your invoice types are. Providers rarely publish fixed ZATCA pricing, so ask for a written scope.

Building ZATCA integration into a custom system?

Competenza scopes Phase 2 integration around your invoice flows, branches and ERP, so signing, hash chaining and queues are designed in rather than patched on.

Competenza’s view: what Saudi compliance work has taught us

At Competenza, we engineered ZATCA, SAMA and Saudi PDPL compliance into SiFi, a Saudi spend management product used by 5,000+ businesses. The API call is rarely the hard part. The edge cases are: credit notes, mixed VAT rates, and exceptions that must resolve without breaking the invoice sequence. We design the invoice data model first, then the integration. If you’re scoping this for a custom system, here is how we approach compliance-first architecture.

What should you do this week?

The deadline matters less than the order of work. Teams that start with the integration path decision finish earlier than teams that start with code.

 

Confirm your wave this week, and list every system that creates an invoice. If any of them is custom or has no vendor module, that system sets your timeline.

 

Then read how SiFi’s platform handled Saudi compliance before you pick a path. The decision is easier once you’ve seen how an edge case plays out.

Plan your Phase 2 integration before 1 February 2027

We respond within 1 business day.

FAQs

Phase 2 is the integration phase of Saudi e-invoicing. Your system connects to ZATCA’s Fatoora platform by API, signs each invoice, and either clears or reports it.

ZATCA notifies targeted taxpayers directly. You can also check your VAT-able revenue against the wave table above. Revenue above the threshold in any one listed year puts you in scope.

Wave 25 businesses must integrate by 1 February 2027. The wave covers VAT-able revenue above SAR 187,500 in 2022, 2023, 2024 or 2025.

Penalties for non-compliant e-invoices start at SAR 5,000, and can escalate for repeat breaches. Confirm the current schedule with ZATCA.

Clearance applies to standard B2B and B2G invoices: ZATCA validates them before you issue. Reporting applies to simplified B2C invoices: you issue first, then report within 24 hours.

It depends on your path and systems. Competenza’s custom platform builds start from AED 150,000, which applies when e-invoicing is part of a new build. Adding Phase 2 to an existing ERP is scoped after we review that system.

It applies to taxable persons resident in Saudi Arabia and VAT-registered there. Non-resident taxable persons are exempt from issuing e-invoices. A Saudi branch with its own VAT registration needs its own integration.

Use a system that generates UBL 2.1 XML, signs it with your CSID, and submits it to Fatoora. A PDF invoice does not meet the requirement.

Fares Tayyer
Author
Share this post:

Decide whether to fully outsource your project or augment your team with specialists

You May Also Like

Learning Management System (LMS) Guide for UAE and Saudi Schools and Companies: Build or Buy?
Enterprise Software

Learning Management System (LMS) Guide for UAE and Saudi Schools and Companies: Build or Buy?

A learning management system (LMS) is software that delivers courses, tracks each learner's progress and reports results to the people accountable for them.

What Is Machine Learning Used For? 15 Real Business Examples from Saudi Arabia and the UAE
AI & ML

What Is Machine Learning Used For? 15 Real Business Examples from Saudi Arabia and the UAE

Machine learning is software that learns patterns from past data, then uses them to predict, classify or flag things in new data.

What Is Kubernetes? When Your Business Needs It
Cloud Services

What Is Kubernetes? A Business Guide to When You Actually Need It

Kubernetes is open-source software that runs and manages containers across many servers.