KSA | Bahrain | UAE | India

ZATCA Phase 2 E-Invoicing in Odoo 19 & 20

ZATCA Phase 2 (the Integration Phase) requires Saudi VAT-registered businesses to connect their invoicing system to ZATCA’s Fatoora platform. Odoo 19 and Odoo 20 include a Saudi e-invoicing module that does this out of the box: it signs each invoice, sends B2B tax invoices for clearance, reports B2C simplified invoices, and prints the Phase 2 QR code. This guide explains who must comply, how ZATCA e-invoicing works inside Odoo, and the exact setup steps, written by Machinser, an Odoo Gold Partner with a team in Saudi Arabia.

Who must comply with ZATCA Phase 2, and by when?

ZATCA rolls out Phase 2 in waves based on VAT-subject revenue. In July 2026 ZATCA announced Wave 25: resident taxpayers whose taxable turnover exceeded SAR 187,500 in 2022, 2023, 2024 or 2025 must integrate with Fatoora by 1 February 2027. This is half the SAR 375,000 threshold used for Wave 24, so many smaller businesses are now in scope for the first time.

ZATCA notifies each business in a wave at least six months before its deadline. If you have received a notification, or your revenue crossed the threshold in any of those years, start your Odoo setup now. Onboarding, testing and staff training take time, and you want to go live well before the deadline.

How ZATCA e-invoicing works in Odoo 19 and 20

Odoo’s Saudi Arabia localization contains everything needed for Phase 2:

Module Technical name What it does
Saudi Arabia – Accounting l10n_sa Saudi chart of accounts, VAT taxes and Phase 1 QR codes
Saudi Arabia – E-invoicing l10n_sa_edi ZATCA Phase 2 API integration (clearance and reporting)
Saudi Arabia – E-invoicing (Simplified) l10n_sa_edi_pos Phase 2 e-invoicing from Point of Sale
Saudi Arabia – Point of Sale l10n_sa_pos Saudi compliance fields on POS receipts
Saudi Arabia – Accounting Reports l10n_sa_reports Saudi VAT and accounting reports

B2B invoices: clearance

When you invoice another business, Odoo issues a Tax Invoice and sends it to ZATCA’s clearance API before it is shared with the customer. ZATCA validates and stamps it, and Odoo stores the cleared XML.

B2C invoices: reporting

When you sell to consumers, Odoo issues a Simplified Tax Invoice with a Phase 2 QR code and reports it to ZATCA’s reporting endpoint.

Point of Sale

With the POS e-invoicing module installed and the POS invoice journal onboarded, the Phase 2 QR code appears on the printed receipt and the PDF invoice.

Before you start: requirements checklist

  • Company name of 63 characters or fewer.
  • Complete Saudi address, including district, building number and plot identification.
  • Identification scheme, such as Commercial Registration Number, Tax Identification Number, MOMRA, MLSD, 700 Number or SAGIA licence.
  • VAT number and company currency set to SAR.
  • Branches use the parent company’s VAT number, with the branch’s own Commercial Registration Number.
  • Arabic invoices: tax invoices, simplified invoices and their credit and debit notes must be in Arabic. Bilingual Arabic/English layouts are allowed. Enable the GCC format in Odoo for Arabic as a secondary language.
  • Fatoora portal access for your company, so you can generate the one-time passwords (OTPs) used for onboarding.

Step-by-step: setting up ZATCA Phase 2 in Odoo

  1. Install the Saudi modules. Install the Saudi accounting localization and the Saudi e-invoicing module, plus the POS e-invoicing module if you use Point of Sale.
  2. Complete your company information. Fill in every field from the checklist above. Missing address or identification data is the most common cause of onboarding errors.
  3. Choose the ZATCA API mode. In Accounting › Configuration › Settings › Saudi Arabia Electronic Invoicing, pick Sandbox for a first technical test, Simulation (Pre-Production) to test on a copy of your real database, or Production to go live. Simulation invoices are not legally valid.
  4. Onboard each sales journal. Open Accounting › Configuration › Journals, select a sales journal, open the ZATCA tab and click Onboard. Enter the 6-digit OTP from the Fatoora portal. OTPs expire after 60 minutes, and every sales journal is onboarded separately.
  5. Onboard Point of Sale (if used). Open the POS invoices journal from the POS settings, onboard it on the ZATCA tab with a production OTP, and make sure a customer is set on orders that need an invoice.
  6. Test, then go live. Confirm a test invoice, click Process now and check that ZATCA returns a success response. Repeat for credit notes, debit notes and POS orders before switching to Production.

Important: once you switch to Production and submit an invoice, you cannot switch that database back to Sandbox or Simulation. Always test in Simulation on a duplicate database first.

Common ZATCA errors in Odoo and how to avoid them

  • Incomplete company or customer address: ZATCA rejects B2B invoices when building numbers, districts or postal codes are missing. Clean up customer records before go-live.
  • Expired OTP: generate the OTP in Fatoora only when you are ready to onboard, and use it within 60 minutes.
  • Wrong environment: an OTP from the Simulation portal will not work in Production mode, and the reverse.
  • Customised invoice reports: heavily customised PDF layouts can drop required Arabic fields or the QR code. Test every layout you use.
  • Branches and multiple companies: each company and each sales journal needs its own setup. Plan this before go-live rather than discovering it on the first day.

Running an older Odoo version?

Phase 2 e-invoicing is built into recent Odoo versions. If you run an old or heavily customised version, the safest route is usually to upgrade to Odoo 19 or 20 and use the standard Saudi modules, instead of maintaining a custom integration. We review your database, custom modules and data first, then plan the upgrade so you are compliant before your wave deadline.

How Machinser helps with ZATCA compliance

Machinser is an Odoo Gold Partner with a team in Saudi Arabia, more than 500 customers, and certified consultants working on Odoo 17, 19 and 20. We set up ZATCA Phase 2 as part of an Odoo implementation in Saudi Arabia, or as a standalone project for businesses already on Odoo:

  • ZATCA readiness review of your company data, journals and invoice layouts
  • Saudi localization, VAT and Arabic/English invoice setup
  • Simulation testing on a copy of your database, then production onboarding
  • POS and multi-branch e-invoicing
  • Upgrades from older Odoo versions
  • Training for your finance team and ongoing Odoo support

Talk to our ZATCA Odoo team to check your readiness before your deadline.

Frequently asked questions

Does Odoo support ZATCA Phase 2 e-invoicing?

Yes. Odoo’s Saudi Arabia localization includes a ZATCA Phase 2 e-invoicing module that handles B2B clearance, B2C reporting, the Phase 2 QR code and POS e-invoicing.

What is the ZATCA Wave 25 deadline?

Businesses in Wave 25, with taxable turnover above SAR 187,500 in 2022, 2023, 2024 or 2025, must integrate with the Fatoora platform by 1 February 2027.

What is the difference between clearance and reporting?

Clearance applies to B2B tax invoices: ZATCA validates the invoice before it goes to the customer. Reporting applies to B2C simplified invoices: the invoice is issued to the customer and reported to ZATCA.

Do invoices have to be in Arabic?

Yes. Tax invoices and simplified invoices must be in Arabic. Odoo can print bilingual Arabic and English invoices.

Can I test ZATCA integration before going live?

Yes. Odoo offers Sandbox and Simulation (Pre-Production) modes. Simulation uses a copy of your database and your own Fatoora simulation OTPs, so you can test without issuing legally valid invoices.

How long does ZATCA setup in Odoo take?

For a single company already on a recent Odoo version with clean data, setup and testing can be done quickly. Multi-company groups, POS, custom invoice layouts or an Odoo upgrade add time, so start well before your wave deadline.