Saudi Arabia's e-invoicing (Fatoora) programme moved from simply generating electronic invoices (Phase 1, from December 2021) to integrating with ZATCA's systems (Phase 2), rolled out in waves based on revenue. If ZATCA has notified your wave, your ERP must connect. Read on for a clear, practical guide to ZATCA e-invoicing integration.
Phase 1 vs Phase 2
| Phase 1 (Generation) | Phase 2 (Integration) | |
|---|---|---|
| Format | Electronic invoice with QR | UBL 2.1 XML |
| Connection to ZATCA | No | Yes, via API |
| B2B invoices | Issued directly | Cleared by ZATCA before sharing |
| B2C invoices | Issued directly | Reported within 24 hours |
| Security | Basic | Cryptographic stamp, hash chain |
Onboarding steps
- Receive ZATCA's notification for your wave (typically six months' notice).
- Make sure your ERP or solution supports Phase 2.
- Generate a CSR per invoicing unit (EGS) and onboard on the Fatoora portal with an OTP.
- Receive the compliance certificate, pass compliance checks, then get the production certificate (CSID).
- Go live: clearance for standard invoices, reporting for simplified ones.
What your ERP must do
- Produce compliant UBL XML with all mandatory fields (Arabic where required).
- Maintain invoice counters and previous-invoice hash.
- Sign invoices with the cryptographic stamp.
- Call clearance/reporting APIs and handle errors and warnings.
- Store ZATCA responses and cleared XML.
- Handle credit and debit notes linked to originals.
Common integration problems
- Missing buyer VAT number or address fields for B2B.
- Wrong VAT category codes (standard, zero-rated, exempt, out-of-scope).
- Clock and timezone errors breaking timestamps.
- Not handling ZATCA downtime with retry queues.
Odoo and ERPNext in Saudi Arabia
Odoo offers Saudi localisation with ZATCA integration; ERPNext supports ZATCA through community and partner apps. Either way, test thoroughly in ZATCA's simulation environment before going live.
Sibyl Technologies implements Odoo and ERPNext with e-invoicing integrations across tax regimes, including FBR in Pakistan. See ERP software in Saudi Arabia or contact us.
General guidance; confirm your obligations with ZATCA's official documentation.
Phase 2 readiness checklist
- Inventory every place invoices are issued: ERP, POS terminals, branch systems, e-commerce. Each may need its own onboarded unit.
- Verify buyer master data: VAT number, address with building number and postal code for B2B buyers.
- Map products to VAT categories with exemption reason codes where needed.
- Test credit notes and debit notes against cleared invoices.
- Plan for downtime: a queue that retries and alerts finance.
- Train staff to read ZATCA warnings, not ignore them.
Typical project timeline
| Stage | Duration |
|---|---|
| Gap analysis of current ERP | 1–2 weeks |
| Configuration and development | 2–6 weeks |
| Simulation testing | 2–3 weeks |
| Onboarding and go-live | 1 week |
Larger groups with multiple branches and POS systems should start at least three months before their wave date.
Archiving
Keep cleared XML invoices and ZATCA responses for the statutory retention period. Your ERP's attachments or a document archive should store them in a searchable way.
Further reading on ZATCA e-invoicing integration
- ZATCA (Zakat, Tax and Customs Authority) — official source
- ERPNext documentation — official source
- FBR Digital Invoicing Integration: Complete 2026 Guide for Pakistani Businesses
- Making Tax Digital for VAT: How to Stay Compliant With an ERP
- FBR Digital Invoicing Penalties in 2026: What Non-Compliance Now Costs (and How to Fix It)
