ZATCA E-Invoicing in Saudi Arabia: Complete Guide to FATOORA, Phase 1 & Phase 2
Electronic invoicing has become an essential part of doing business in Saudi Arabia. Under the regulations of the Zakat, Tax and Customs Authority (ZATCA), applicable taxpayers must use compliant electronic invoicing solutions to generate and manage invoices and related notes.
ZATCA's electronic invoicing system, commonly known as FATOORA, was introduced in two major phases. Phase 1 focused on electronic invoice generation, while Phase 2 introduced integration between taxpayers' electronic invoicing systems and ZATCA's platform.
For businesses, understanding the difference between these phases, the technical requirements and the role of ERP systems is important for maintaining compliance and avoiding operational problems.
In this guide, we explain ZATCA e-invoicing, FATOORA, Phase 1, Phase 2, QR codes, XML invoices, clearance, reporting, ERP integration and the key requirements businesses should understand.
What Is ZATCA E-Invoicing?
ZATCA e-invoicing is Saudi Arabia's electronic invoicing framework for applicable VAT taxpayers.
Instead of creating invoices using handwritten documents, spreadsheets or ordinary document-generation tools, businesses must use an electronic invoicing solution that complies with the applicable ZATCA requirements.
An electronic invoice contains structured information about a transaction, such as:
Supplier details
Customer details
VAT information
Invoice number
Invoice date
Products or services
Quantities
Prices
VAT amount
Total amount
Required electronic information
ZATCA's e-invoicing framework is designed to improve transaction transparency, automate tax processes and strengthen compliance.
What Is FATOORA?
FATOORA is the platform associated with ZATCA's electronic invoicing ecosystem.
During Phase 2, applicable taxpayers need to integrate their compliant Electronic Invoice Generation Solution (EGS) with ZATCA's systems.
Your ERP, accounting software or POS system generates the invoice, while the integration layer communicates with ZATCA according to the applicable technical requirements.
This means that simply generating a PDF invoice does not automatically make a business ZATCA Phase 2 compliant.
The underlying system needs to support the required electronic formats, security mechanisms, QR codes, APIs and invoice processing workflows.
ZATCA E-Invoicing Phases
ZATCA implemented electronic invoicing in two main phases.
Phase 1: Generation Phase
ZATCA Phase 1, known as the Generation Phase, became mandatory on December 4, 2021.
The main objective of Phase 1 was to move applicable businesses from traditional invoice generation methods to electronic invoicing solutions.
Businesses needed to generate and store invoices electronically using compliant solutions.
For applicable simplified tax invoices, QR code requirements were also introduced.
Phase 2: Integration Phase
Phase 2, known as the Integration Phase, started on January 1, 2023.
This phase introduced technical integration between the taxpayer's electronic invoicing solution and ZATCA's platform.
Phase 2 includes requirements related to:
XML invoices
APIs
QR codes
Invoice hashing
UUIDs
Cryptographic security
Invoice counter values
Clearance
Reporting
Invoice validation
Electronic invoice processing
Unlike Phase 1, Phase 2 is not implemented for all taxpayers on one single date.
ZATCA is implementing Phase 2 gradually through different waves.
ZATCA Phase 2 Waves
Businesses should pay attention to their specific ZATCA notification because Phase 2 integration deadlines depend on the applicable wave.
ZATCA continues to announce new waves based on taxpayer criteria.
For example, the latest published rollout information includes Wave 25, covering taxpayers whose VAT-subject revenue exceeded SAR 187,500 during any of the years 2022, 2023, 2024 or 2025.
Taxpayers included in this wave are required to integrate their electronic invoicing solutions with the FATOORA platform by February 1, 2027.
Businesses should therefore monitor official ZATCA communications and prepare their systems before their applicable deadline.
Tax Invoice vs Simplified Tax Invoice
Understanding invoice types is important when implementing ZATCA e-invoicing.
Tax Invoice
Tax invoices are generally used for B2B transactions, depending on the nature of the transaction and applicable VAT requirements.
A tax invoice can include:
Supplier information
Customer information
VAT registration numbers
Invoice number
Invoice date
Line items
Quantity
Unit price
VAT rate
VAT amount
Total invoice amount
Applicable tax invoices are subject to the relevant Phase 2 clearance requirements.
Simplified Tax Invoice
Simplified tax invoices are commonly associated with B2C transactions.
They contain the required invoice information and QR code according to ZATCA requirements.
During Phase 2, applicable simplified tax invoices are generated through a compliant EGS and submitted to ZATCA according to the reporting requirements.
What Is an EGS?
EGS stands for Electronic Invoice Generation Solution.
An EGS is the software or system used by a taxpayer to generate electronic invoices.
Depending on the business, this could be:
ERP software
Accounting software
POS software
E-commerce software
A dedicated invoicing application
For companies using an ERP, the ERP can be integrated with the required ZATCA e-invoicing processes.
ZATCA QR Code Requirements
The QR code is one of the most visible elements of Saudi electronic invoices.
However, a ZATCA QR code is not simply a normal QR code containing a website URL or invoice number.
The QR code must follow the applicable ZATCA technical requirements.
For applicable simplified tax invoices, the QR code contains encoded invoice information using the required structure.
This is why businesses should ensure that their invoicing software generates the QR code automatically rather than manually adding an image to an invoice.
ZATCA XML Invoice
XML is an important part of Phase 2 electronic invoicing.
Unlike a simple PDF, XML contains structured information that software systems can read and process.
For example, an electronic invoice can contain structured fields for:
Invoice number
Invoice date
Supplier VAT number
Customer VAT number
Item description
Quantity
Unit price
VAT rate
VAT amount
Total amount
This structured format allows electronic invoicing systems to communicate invoice information with ZATCA and other systems.
What Is ZATCA Clearance?
Clearance is one of the important Phase 2 processes.
For applicable tax invoices, the invoice is submitted to ZATCA through the required integration process for validation and clearance.
A simplified workflow can look like this:
Sales Transaction → ERP/POS → EGS → XML Invoice → ZATCA → Validation/Clearance → Invoice
If an invoice is rejected, the system needs to identify the problem, correct it and process the invoice according to the applicable ZATCA requirements.
This is why ZATCA integration should be properly tested before production deployment.
What Is ZATCA Reporting?
Reporting applies to applicable simplified tax invoices.
The electronic invoice information is submitted to ZATCA through the required API process.
Businesses should therefore have systems capable of monitoring invoice submission and identifying failed or pending transactions.
A good ERP integration should provide clear invoice statuses so that accounting teams can quickly identify whether an invoice was successfully processed.
ZATCA Invoice Security
Phase 2 includes several technical controls designed to protect the integrity of electronic invoices.
Depending on the applicable requirements, these include mechanisms such as:
Cryptographic stamps
Hashes
UUIDs
Invoice counter values
Digital signatures
Secure invoice sequencing
These mechanisms help create a reliable and traceable electronic invoicing environment.
Businesses should not attempt to manage these processes manually.
A properly implemented ZATCA-compatible EGS or ERP integration should automate the required technical processes.
ZATCA ERP Integration
For businesses already using ERP software, integrating ZATCA directly into the business system can provide significant operational advantages.
Instead of maintaining separate systems for sales, invoicing and accounting, an integrated ERP can connect:
Sales → Inventory → VAT → Invoice → ZATCA → Accounting → Reporting
For example, when a sales invoice is created, the ERP can automatically calculate VAT, generate the electronic invoice data, process the required ZATCA integration and update the invoice status.
This reduces duplicate data entry and gives businesses better visibility over their financial transactions.
Why Businesses Should Integrate ZATCA With Their ERP
A standalone invoicing system may work for a small business, but organizations with multiple operations often benefit from ERP integration.
An integrated ERP can connect ZATCA invoicing with:
Sales
Purchasing
Inventory
Accounting
POS
Customers
Suppliers
Payments
Warehouses
Branches
Financial reporting
This creates a centralized business workflow.
For example:
Customer Order
↓
Sales Invoice
↓
VAT Calculation
↓
ZATCA E-Invoice Processing
↓
Accounting Entry
↓
Financial Reporting
Instead of manually moving information between different applications, the transaction can flow through the business system automatically.
ZATCA E-Invoicing for Different Industries
ZATCA e-invoicing applies across many types of businesses.
Retail
Retail businesses can connect POS transactions with inventory, VAT and electronic invoicing.
Wholesale and Distribution
Wholesale companies can integrate B2B invoicing with customer records, inventory and accounting.
Manufacturing
Manufacturers can connect sales invoices with production, inventory and financial accounting.
Construction
Construction companies can connect invoices with projects, contracts, customers and accounting.
Healthcare
Healthcare organizations can integrate applicable billing and invoicing processes with their wider financial systems.
E-Commerce
E-commerce businesses can connect online orders with their ERP, invoicing and accounting systems.
Common ZATCA E-Invoicing Mistakes
Businesses often focus on the appearance of an invoice instead of its technical compliance.
Some common mistakes include:
Using a Generic Invoice Generator
A PDF invoice generator does not automatically mean the system complies with ZATCA Phase 2 requirements.
Treating the QR Code as an Image
The QR code needs to contain the required information and follow the applicable ZATCA specification.
Ignoring XML
Phase 2 requires structured electronic invoice information, making XML support an important part of the implementation.
Waiting Until the Deadline
ZATCA integration can involve software configuration, API integration, testing and business-process changes.
Starting early gives businesses more time to identify and fix issues.
Incorrect Master Data
Incorrect customer VAT numbers, tax categories, product information or tax configuration can cause problems during invoice processing.
No Error Monitoring
Businesses should be able to identify failed, rejected or pending invoices.
A ZATCA integration without proper monitoring can create operational problems for accounting teams.
How to Prepare for ZATCA Phase 2
A practical preparation process can include the following steps.
1. Identify Your ZATCA Wave
Check your ZATCA notification and determine your applicable Phase 2 integration deadline.
2. Review Your Current Software
Check whether your ERP, POS or accounting system can support the required ZATCA technical requirements.
3. Clean Your Master Data
Review:
Customer information
VAT numbers
Product information
Tax categories
Prices
Units
Supplier information
4. Configure VAT
Make sure VAT rules and tax calculations are correctly configured.
5. Implement the Integration
Connect your EGS or ERP with ZATCA according to the required technical specifications.
6. Test Your Invoices
Test different transaction scenarios, including:
Tax invoices
Simplified tax invoices
Credit notes
Debit notes
QR codes
XML
API communication
Rejected invoices
Reporting
Clearance
7. Go Live
Once the system has been tested, move the integration into production according to your applicable ZATCA requirements.
8. Monitor the System
After implementation, continuously monitor invoice processing, integration errors and system performance.
ZATCA E-Invoicing Compliance Checklist
Before going live, businesses should review:
ZATCA applicability confirmed
Phase 2 wave identified
ZATCA deadline confirmed
Compliant EGS selected
ERP/POS reviewed
VAT configuration checked
Customer VAT information verified
QR code implemented
XML supported
Required security mechanisms implemented
ZATCA integration configured
Clearance tested
Reporting tested
Credit and debit notes tested
Error handling tested
Invoice storage configured
Integration monitoring implemented
Final Thoughts
ZATCA e-invoicing is more than simply replacing paper invoices with electronic documents.
Phase 1 introduced electronic invoice generation, while Phase 2 introduced deeper technical integration with ZATCA's systems.
For businesses in Saudi Arabia, the right approach is to treat ZATCA compliance as part of the wider ERP, accounting, POS and business-process strategy.
A strong implementation should handle the complete invoice lifecycle from creating the transaction and calculating VAT to generating the required electronic data, processing the invoice through ZATCA and maintaining accurate records.
Businesses should also avoid waiting until their integration deadline is close.
Start preparing early, test thoroughly and make ZATCA compliance part of your core business system.