Skip to main content
ZATCA · checked on 24 November 2026

ZATCA e-invoicing (FATOORA): a guide to Phase 2 in Saudi Arabia

FATOORA is the e-invoicing system of Saudi Arabia's Zakat, Tax and Customs Authority (ZATCA). Since 4 December 2021 every taxpayer except non-residents must issue invoices from a compliant electronic solution (Phase 1). Phase 2 connects that solution to FATOORA: ZATCA clears standard tax invoices before the buyer gets them, and simplified tax invoices are reported to it within 24 hours. Phase 2 started on 1 January 2023 and reaches taxpayers in waves by revenue. The next deadline is 1 February 2027, for wave 25: revenue subject to VAT above SAR 187,500.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 24 November 2026

Key facts

Versions
Odoo 17, 18, 19 and 20
Checked
against the sources linked at the end
Reading time
6 min

Phase 1 and Phase 2 of FATOORA

Phase 1, the generation phase, has applied since 4 December 2021 to all taxpayers except non-residents, and to anyone issuing tax invoices on behalf of a supplier subject to VAT. It ended handwritten invoices and invoices typed in a word processor or a spreadsheet: invoices and notes must come from an electronic solution that meets the Phase 1 requirements.

Phase 2, the integration phase, adds more invoice fields, a fixed XML format and a live connection between your solution and FATOORA. It has applied in waves since 1 January 2023, and ZATCA notifies each taxpayer of its wave at least six months in advance. The legal basis is the E-Invoicing Regulation, published and in force since 4 December 2020, and the controls and technical specifications that ZATCA updated on 19 May 2023.

Who must integrate with FATOORA, and by when

Your wave depends on your annual revenue subject to VAT: the highest of 2022, 2023 and 2024, and for wave 25 also 2025.

WaveRevenue subject to VAT aboveIntegration deadline
1 to 9SAR 30 millionpassed: all must be integrated
10SAR 25 million31 December 2024
11SAR 15 million31 January 2025
12SAR 10 million28 February 2025
13SAR 7 million31 March 2025
14SAR 5 million30 April 2025
15SAR 4 million31 May 2025
16SAR 3 million30 June 2025
17SAR 2.5 million31 July 2025
18SAR 2 million31 August 2025
19SAR 1.75 million30 September 2025
20SAR 1.5 million31 October 2025
21SAR 1.25 million30 November 2025
22SAR 1 million31 December 2025
23SAR 750,00031 March 2026
24SAR 375,00030 June 2026
25SAR 187,5001 February 2027

ZATCA announced wave 24 on 26 September 2025 and wave 25 on 24 July 2026. Its table ends with "additional waves to be announced", so a business below SAR 187,500 is not in a wave yet, but it still has to follow Phase 1.

Standard and simplified tax invoices

Standard tax invoiceSimplified tax invoice
Typical salemost B2B and B2G salesmostly B2C sales
What goes to ZATCAthe XML, before the buyer receives it (clearance)the XML, after the sale (reporting)
Deadlinebefore you share itwithin 24 hours of issue
Who stamps itZATCA adds the cryptographic stamp and the QR codeyour solution stamps it with its CSID and prints the QR code
What the buyer getsthe cleared XML, or a PDF/A-3 with the XML embeddeda printed copy at once, or an electronic one if both agree

Clearance has five steps:

  1. Your solution generates the invoice as XML, or as a PDF/A-3 with the XML embedded.
  2. It sends the XML through the API; ZATCA does not take the PDF/A-3 for clearance.
  3. FATOORA checks the XML against the XML Implementation Standard and runs referential checks.
  4. Only an invoice that passes gets ZATCA's cryptographic stamp and QR code, and comes back as cleared XML.
  5. You share the cleared invoice with the buyer.

The XML, the QR code and the CSID

Phase 2 invoices are XML files that follow the UBL 2.1 sequence, with every UBL 2.1 mandatory element present. Each invoice carries a UUID. The invoice counter of your solution cannot be reset, and each invoice is chained to the one before it through the previous invoice hash.

The QR code holds 9 fields: seller's name, seller's VAT registration number, timestamp, total with VAT, VAT amount, hash of the XML, ECDSA signature of that hash, ECDSA public key and, on simplified invoices, the signature of the cryptographic stamp.

A Cryptographic Stamp Identifier (CSID) is a unique identifier that links your e-invoice solution unit to a trusted third party, which confirms your identity and identifies that unit. Each solution is onboarded on the FATOORA portal before it sends anything. To test before going live, ZATCA offers a sandbox, an SDK and a web-based validator.

Penalties

The e-invoicing rules do not set their own amounts. ZATCA's controls resolution of 19 May 2023 applies the penalties and fines of the VAT Law to anyone who breaks the E-Invoicing Regulation or the resolution, following the violation classifications approved by ZATCA's Board; the Regulation refers to chapter 16 of the VAT Law.

ZATCA in Odoo: what our module does and does not do

Odoo Community already includes l10n_sa_edi in versions 17, 18, 19 and 20. It builds the CSR, requests the compliance and production CSIDs with the OTP, generates and signs the UBL XML with its QR code, and sends standard invoices for clearance and simplified invoices for reporting, in the sandbox, simulation or production environment.

Our module, ZATCA Phase 2 for Odoo, works on top of l10n_sa_edi. In the versions published for Odoo 18, 19 and 20 it adds:

  • a table of waves 21 to 25 with their thresholds and deadlines, linked to ZATCA's announcement of each wave except wave 23, and a suggested wave worked out from your posted customer invoices per year in SAR;
  • a 7-step onboarding wizard per sales journal: CSR, compliance CSID with the OTP, compliance checks and production CSID, plus CSID renewal with an OTP;
  • a log of every ZATCA API call with secrets redacted, and a record of each compliance check;
  • alerts when a certificate expires within 30 days, when ZATCA returns an error, when a simplified invoice is 4 hours from its 24-hour reporting limit and when your wave deadline is within 60 days, and a check that the company's Saudi VAT number has 15 digits and starts and ends with 3;
  • a dashboard and bulk retry of rejected invoices.

It does not generate, sign or send the XML itself: l10n_sa_edi does. On Odoo 17 the published version is the older 17.0.1.1.11. It checks the VAT number, creates the key pair and the CSR, shows the 24-hour deadline on each invoice and keeps an API log, but its invoice signature is incomplete and its CSID onboarding and renewal are stubs, so ZATCA does not accept what it sends. On Odoo 17, use l10n_sa_edi for the integration itself.

It runs on Odoo 17, 18, 19 and 20, on Odoo.sh or your own server, not on Odoo Online. The licence is €9 on Odoo Apps, paid once per Odoo version. Some of its features use FlexigoTech Cloud: Standard at €29 a month or €290 a year, or Pro, with faster support, at €58 a month or €580 a year, VAT excluded, with a 14-day trial and no card.

Frequently asked questions

Which ZATCA wave am I in?

The one whose threshold your annual revenue subject to VAT exceeded in 2022, 2023 or 2024, or also 2025 for wave 25. ZATCA notifies each taxpayer of its wave at least six months before the deadline.

Does the 24-hour rule apply to standard tax invoices?

No. Standard tax invoices are cleared by ZATCA before you share them. The 24 hours apply to reporting simplified tax invoices.

Does the Odoo module replace l10n_sa_edi?

No. l10n_sa_edi generates, signs and sends the invoices; ZATCA Phase 2 for Odoo adds the wave tracker, the guided onboarding, alerts, the API log and bulk retry on Odoo 18, 19 and 20.

Legal basis and date checked

We checked every date, threshold and rule on 24 November 2026 on zatca.gov.sa: the integration waves table, the announcements of waves 24 and 25, the E-Invoicing Regulation of 4 December 2020, the controls resolution of 19 May 2023, the E-Invoicing Detailed Guideline and the XML Implementation Standard. All sources are listed below.

Keep reading

E-invoicing in the UAE: a guide to the Electronic Invoicing SystemUAE e-invoicing from 1 January 2027: who is in scope, when to appoint an Accredited Service Provider, the five-corner Peppol model, PINT AE, penalties and Odoo.
Checked against the linked sources

Sources