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.
| Wave | Revenue subject to VAT above | Integration deadline |
|---|---|---|
| 1 to 9 | SAR 30 million | passed: all must be integrated |
| 10 | SAR 25 million | 31 December 2024 |
| 11 | SAR 15 million | 31 January 2025 |
| 12 | SAR 10 million | 28 February 2025 |
| 13 | SAR 7 million | 31 March 2025 |
| 14 | SAR 5 million | 30 April 2025 |
| 15 | SAR 4 million | 31 May 2025 |
| 16 | SAR 3 million | 30 June 2025 |
| 17 | SAR 2.5 million | 31 July 2025 |
| 18 | SAR 2 million | 31 August 2025 |
| 19 | SAR 1.75 million | 30 September 2025 |
| 20 | SAR 1.5 million | 31 October 2025 |
| 21 | SAR 1.25 million | 30 November 2025 |
| 22 | SAR 1 million | 31 December 2025 |
| 23 | SAR 750,000 | 31 March 2026 |
| 24 | SAR 375,000 | 30 June 2026 |
| 25 | SAR 187,500 | 1 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 invoice | Simplified tax invoice | |
|---|---|---|
| Typical sale | most B2B and B2G sales | mostly B2C sales |
| What goes to ZATCA | the XML, before the buyer receives it (clearance) | the XML, after the sale (reporting) |
| Deadline | before you share it | within 24 hours of issue |
| Who stamps it | ZATCA adds the cryptographic stamp and the QR code | your solution stamps it with its CSID and prints the QR code |
| What the buyer gets | the cleared XML, or a PDF/A-3 with the XML embedded | a printed copy at once, or an electronic one if both agree |
Clearance has five steps:
- Your solution generates the invoice as XML, or as a PDF/A-3 with the XML embedded.
- It sends the XML through the API; ZATCA does not take the PDF/A-3 for clearance.
- FATOORA checks the XML against the XML Implementation Standard and runs referential checks.
- Only an invoice that passes gets ZATCA's cryptographic stamp and QR code, and comes back as cleared XML.
- 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
Checked against the linked sources
Sources
- zatca.gov.sa/en/E-Invoicing/Introduction/Pages/Roll-out-phases.aspx
- zatca.gov.sa/en/E-Invoicing/Introduction/LawsAndRegulations/Pages/default.aspx
- zatca.gov.sa/en/E-Invoicing/Introduction/PublishingImages/E-invoicingEN.webp
- zatca.gov.sa/en/Pages/news-1426.aspx
- zatca.gov.sa/en/MediaCenter/News/Pages/Wave25-E-invoicing.aspx
- zatca.gov.sa/en/E-Invoicing/Introduction/Guidelines/Documents/E-Invoicing_Detailed__Guidel
- zatca.gov.sa/ar/E-Invoicing/SystemsDevelopers/Documents/20230519_ZATCA_Electronic_Invoice_
- zatca.gov.sa/en/E-Invoicing/Introduction/LawsAndRegulations/Documents/20230519_E-Invoicing
- github.com/odoo/odoo/tree/18.0/addons/l10n_sa_edi
- github.com/Flexigotech/flexigo-ksa-zatca-phase-2-sme-wave-23-24-for-odoo-19
- apps.odoo.com/apps/modules/17.0/flexigo_ksa_zatca_phase_2_sme_wave_23_24_for_odoo_19
- apps.odoo.com/apps/modules/20.0/flexigo_ksa_zatca_phase_2_sme_wave_23_24_for_odoo_19
