ZATCA E-Invoicing Phase 2 in Odoo: Requirements and Setup Guide

What ZATCA Phase 2 (Integration) requires, how clearance and reporting work, and the step-by-step checklist to make your Odoo invoicing compliant.

Bettertech team 6 min read

Since 1 January 2023, Saudi Arabia has been moving VAT-registered businesses onto ZATCA e-invoicing Phase 2, the “Integration” phase, one wave at a time. If your company has received its notification from ZATCA (the Zakat, Tax and Customs Authority), or expects to soon, your invoicing system must connect directly to ZATCA’s FATOORA platform by your deadline.

This guide explains what Phase 2 requires in plain language, how Odoo handles it, and the checklist we follow with Saudi clients to get compliant without disrupting daily sales.

Phase 1 vs Phase 2: what changed

ZATCA’s e-invoicing (FATOORA) program has two phases:

  • Phase 1, Generation (since 4 December 2021): invoices must be issued from a compliant electronic system. Handwritten invoices and invoices typed in word processors or spreadsheets are no longer accepted, and simplified invoices carry a QR code.
  • Phase 2, Integration (from 1 January 2023, in waves): your invoicing system connects to FATOORA through an API. Every invoice is sent to ZATCA in a structured format, either before it reaches the customer or shortly after.

ZATCA selects taxpayers for each wave based on their revenue and notifies them at least six months before their integration date. Once notified, the deadline is not optional, so planning early matters.

What ZATCA Phase 2 requires

Phase 2 is not only about a new invoice layout. Each invoice your system issues must include:

  • A structured XML file following the UBL 2.1 standard (or a PDF/A-3 with the XML embedded).
  • A cryptographic stamp that proves which registered system issued the invoice.
  • A unique identifier (UUID), an invoice hash and the hash of the previous invoice, so invoices form an unbroken chain that cannot be edited after the fact.
  • A QR code with the seller’s details, VAT amounts and the stamp.
  • Complete seller and buyer data, including VAT numbers and, for business customers, the full Saudi national address.

Credit notes and debit notes follow the same rules as invoices.

Clearance vs reporting: two flows to understand

Phase 2 treats business invoices and consumer invoices differently:

Standard tax invoice (B2B, B2G) Simplified tax invoice (B2C)
ZATCA process Clearance Reporting
When it is sent Before the invoice is shared with the buyer Within 24 hours of issuing it
What ZATCA does Validates the invoice and stamps it; only the cleared invoice is valid Receives and validates it after the sale
Typical users Distributors, contractors, B2B services Retail, restaurants, e-commerce

In practice, clearance means a B2B invoice that fails validation cannot be sent to your customer until it is fixed. That is why clean master data (customer VAT numbers, addresses, product tax settings) is the single biggest success factor.

How Odoo handles ZATCA e-invoicing

Odoo includes a Saudi accounting localization with VAT taxes and reports ready for Saudi Arabia. In recent versions of Odoo Enterprise (16 and later), its ZATCA e-invoicing integration connects your sales journals directly to FATOORA. Once it is set up:

  • Odoo generates the UBL 2.1 XML, the hash chain, the cryptographic stamp and the QR code automatically when you confirm an invoice.
  • Standard invoices are sent for clearance and simplified invoices are reported, without anyone uploading files by hand.
  • The ZATCA response (accepted, accepted with warnings, or rejected with the reason) is stored on each invoice, so your accountant sees problems immediately.
  • Invoices from Odoo Sales, the Point of Sale and e-commerce flow through the same compliant process.

Because invoicing, accounting and VAT reporting live in one system, the data ZATCA receives matches your books and your VAT return. That is the main advantage over bolting a separate “e-invoicing connector” onto an older system. You can see the full accounting features on our Odoo Accounting page.

Good to know

Odoo Community, the free edition, does not include the ZATCA integration out of the box. If you run Community or an older Odoo version, plan an upgrade or a certified add-on as part of your Phase 2 project.

Step-by-step: getting Odoo ready for Phase 2

  1. Check your wave and deadline. Confirm your integration date in the ZATCA notification and work backwards: allow time for testing, not just setup.
  2. Clean your company data. Your VAT registration number (15 digits, starting and ending with 3), commercial registration number and full national address: building number, street, district, city, postal code and additional number.
  3. Clean your customer data. Every B2B customer needs a valid VAT number and complete national address. Missing fields are the most common reason for rejected invoices.
  4. Review taxes and products. Make sure the 15% VAT, zero-rated and exempt cases use the correct tax codes and exemption reasons.
  5. Onboard each invoicing journal. Generate a one-time password (OTP) on the FATOORA portal and use it in Odoo to obtain your cryptographic stamp identifier (CSID), first for compliance checks, then for production.
  6. Test in the simulation environment. Issue standard invoices, simplified invoices, credit notes and debit notes, and check every response from ZATCA.
  7. Train your team. Sales and finance staff should know what a rejection means, how to fix it and when to issue a credit note instead of editing an invoice.
  8. Go live and monitor. For the first weeks, review rejected or warning invoices daily until the process runs cleanly.

Common mistakes we see

  • Starting too late. Data cleanup takes longer than the technical setup. Six months goes quickly.
  • Editing posted invoices. The hash chain means invoices cannot be changed after issue. Corrections go through credit or debit notes.
  • One-off fixes outside the system. Invoices created in Excel or another tool break the chain and are not compliant.
  • Ignoring POS and online sales. Simplified invoices from shops and websites must also be reported within 24 hours.

Frequently asked questions

Is Odoo approved by ZATCA?

ZATCA does not certify individual software brands. It sets technical requirements and validates every invoice through FATOORA. Odoo’s Saudi e-invoicing module is built to those requirements, and each invoice it sends is checked by ZATCA in real time.

Does Phase 2 apply to small businesses?

Phase 2 is being rolled out in waves to all VAT-registered taxpayers that fall within ZATCA’s criteria. Smaller businesses join in later waves, but they still receive a notification and a deadline.

How long does a ZATCA integration take in Odoo?

If you already run Odoo Enterprise with clean data, the setup itself can take a few days. Most of the time goes into data cleanup, testing and training, typically two to six weeks in total.

Can we keep our current ERP and only add e-invoicing?

Sometimes, through a middleware connector. But if your current system is old or disconnected from your accounting, Phase 2 is often the right moment to move invoicing, accounting and VAT into one platform.

Get compliant with confidence

Bettertech is an official Odoo partner in Saudi Arabia. We set up the ZATCA integration, clean and migrate your data, test every invoice scenario and train your team, so your go-live date is just another working day. Book a free consultation and tell us your integration deadline.

Bettertech team

Bettertech is an official Odoo partner and digital agency in Saudi Arabia, with teams in Jeddah, Riyadh and Dammam. We implement Odoo ERP and build websites, apps and marketing that grow Saudi businesses.

Talk to a Bettertech expert

Get a free consultation on Odoo, ZATCA compliance, your website or your app.

Book a free consultation