We are creative, ambitious and ready for challenges! Hire Us
// ZATCA e-invoicing connectorZATCA Phase 2 Connector
ZATCA Phase 2 Connector
for SAP, Dynamics, Odoo & ERPNext
Our ZATCA Phase 2 connector links SAP S/4HANA, Dynamics 365 Finance & Operations, Business Central, Dynamics GP, Odoo and ERPNext directly to ZATCA’s Fatoora platform. Invoices, credit notes and debit notes are converted to UBL 2.1 XML, signed with your CSID, given a QR code and then cleared (B2B) or reported (B2C) automatically when you post.
Your team keeps working in the ERP they know. No re-implementation, no separate portal and no manual uploads.
// deadlines
Who Must Integrate, and By When
ZATCA rolls out Phase 2 (the Integration Phase) in waves based on VAT-subject revenue, and notifies each wave at least six months before its integration date. The earlier, larger-revenue waves are already live. The latest waves are:
| Wave | Who is included | Integrate with Fatoora by |
|---|---|---|
| Wave 24 | VAT-subject revenue above SAR 375,000 in 2022 or 2023 | 30 June 2026 |
| Wave 25 | VAT-subject revenue above SAR 187,500 in 2022, 2023, 2024 or 2025 | 1 February 2027 |
Penalties: e-invoicing violations start with a warning and rise for repeat violations. Failing to integrate on time can reach SAR 50,000 per violation. Status as of December 2026; always confirm your wave in your ZATCA notification or the Fatoora portal.
// clearance vs reporting
Two Flows, Handled Automatically
The connector reads the invoice type in your ERP and picks the right flow for each document.
| Standard tax invoice (B2B / B2G) | Simplified tax invoice (B2C) | |
|---|---|---|
| ZATCA flow | Clearance in real time | Reporting within 24 hours |
| When the buyer gets it | Only after ZATCA clears it | Immediately, at the point of sale |
| Cryptographic stamp | Applied by ZATCA during clearance | Applied by your system with your CSID |
| QR code | Included in the cleared invoice | Generated in your system and printed at once |
| Credit and debit notes | Cleared the same way, linked to the original invoice | Reported the same way, linked to the original invoice |
// supported ERPs
Built Natively for Each ERP
SAP
SAP S/4HANA and SAP ECC
- Triggered from billing document output or a BAdI on SD billing and FI customer invoices
- ABAP class builds and signs the UBL 2.1 XML, or an SAP BTP Integration Suite flow calls ZATCA
- UUID, hash, status and cleared XML stored in a custom table with an application log
- QR code printed on your Adobe Forms or Smart Forms
- Covers SD billing, FI invoices, credit and debit memos
MICROSOFT DYNAMICS 365
Dynamics 365 Finance & Operations
- Runs when customer invoices, free-text invoices and credit notes are posted
- Electronic Reporting format for the UBL XML, with an X++ service for signing and API calls
- Batch job retries failed submissions; one CSID per legal entity or unit
- SSRS invoice extended with the QR code in Arabic and English layouts
- Status and ZATCA response saved on the invoice journal
MICROSOFT DYNAMICS 365
Dynamics 365 Business Central
- AL extension subscribes to posting of sales invoices and credit memos
- Works on Business Central online and on-premises, upgrade-safe
- Certificates and keys kept in isolated storage; job queue resends failures
- Report layouts updated with the QR code
- ZATCA status, UUID and hash shown on the posted document
MICROSOFT DYNAMICS
Microsoft Dynamics GP
- A small .NET service reads posted SOP invoices and returns from SQL Server
- Builds, signs and sends each document, then writes the status back to GP
- Queue with automatic retries, so posting is never blocked
- Invoice form in Report Writer or SSRS updated with the QR code
- Simple window for finance to review and resend failed invoices
OPEN-SOURCE ERP
Odoo
- Runs when customer invoices and credit notes are posted in Odoo Accounting
- On Odoo Enterprise we configure and extend the Saudi e-invoicing localisation; on Odoo Community or heavily customised setups we build a custom module
- Scheduled actions (cron) retry failed submissions and keep the hash chain in order
- QWeb invoice report updated with the QR code in Arabic and English
- ZATCA status, UUID and response shown on each invoice
OPEN-SOURCE ERP
ERPNext (Frappe)
- Hooks into Sales Invoice submit, including returns used as credit notes
- A Frappe app builds, signs and sends the XML; we can also set up and extend an existing ZATCA app
- Background jobs and a scheduler retry failures without blocking users
- Print format updated with the QR code
- ZATCA log per invoice, with a report of pending and rejected documents
// onboarding
From OTP to Production CSID
We run the full onboarding for every e-invoicing unit: generating the CSR with keys that stay in your environment, passing ZATCA’s compliance checks with sample standard and simplified invoices, credit notes and debit notes, and switching to the production CSID. Certificates are tracked and renewed before they expire.
// features
Everything ZATCA Phase 2 Requires
Real-Time Clearance
Standard (B2B and B2G) invoices are cleared before they reach the buyer, and the cleared XML is stored.
24-Hour Reporting
Simplified (B2C) invoices are issued at once with a QR code and reported to ZATCA within 24 hours.
Credit & Debit Notes
Notes are linked to the original invoice and cleared or reported in the same way.
CSID Onboarding & Renewal
Compliance and production CSIDs for each e-invoicing unit, renewed before they expire.
Hash Chain & Counters
UUID, invoice counter (ICV) and previous invoice hash (PIH) on every document.
QR on Every Printout
The ZATCA QR code on your existing invoice layouts, in Arabic and English.
Retry Queue & Alerts
Network and validation errors are queued, retried and flagged to finance.
Status & Audit Log
See the ZATCA status, warnings and full response for every invoice inside the ERP.
// what is sent
What Each E-Invoice Contains
| Part | Data the connector fills from your ERP |
|---|---|
| Seller | Legal name, VAT number, other ID such as the CR number, and address |
| Buyer (B2B) | Name, VAT number and address |
| Identifiers | Invoice number, UUID, invoice counter (ICV) and previous invoice hash (PIH) |
| Dates | Issue date and time, and supply date |
| Lines | Description, quantity, price, VAT category, rate and amount |
| Totals | Total excluding VAT, VAT total and total including VAT, in SAR |
| Security | Cryptographic stamp and TLV-encoded QR code |
| Notes | Reason for issue and reference to the original invoice for credit and debit notes |
Missing master data, such as customer VAT numbers or Saudi national addresses, is flagged during the readiness check so it can be fixed before go-live.
// how we deliver
From Assessment to Go-Live
1. Readiness Check
We review your ERP, invoice types, branches and master data, and confirm your ZATCA wave.
2. Build & Map
We install the connector, map your documents to UBL 2.1 and update your invoice layouts.
3. Test & Onboard
Testing on ZATCA's sandbox and simulation, compliance checks and user acceptance with finance.
4. Go Live & Support
Production CSID, hypercare, monitoring and certificate renewals after go-live.
// FAQ
Frequently Asked Questions
What is ZATCA Phase 2?
Phase 2, the Integration Phase, requires VAT-registered businesses in Saudi Arabia to connect their e-invoicing systems to ZATCA’s Fatoora platform, issue invoices as UBL 2.1 XML with additional fields, and clear or report every invoice. It is rolled out in waves based on revenue.
Which ERPs does the connector support?
SAP S/4HANA and SAP ECC, Microsoft Dynamics 365 Finance & Operations, Dynamics 365 Business Central (online and on-premises), Microsoft Dynamics GP, Odoo (Enterprise and Community) and ERPNext.
What is the difference between clearance and reporting?
Standard B2B and B2G invoices must be cleared by ZATCA in real time before they are shared with the buyer. Simplified B2C invoices are given to the customer immediately with a QR code and reported to ZATCA within 24 hours.
What is a CSID?
A Cryptographic Stamp Identifier is the certificate ZATCA issues to each e-invoicing unit during onboarding. A compliance CSID is used for testing and a production CSID is used to sign live invoices.
Do we need a new ERP or a third-party platform?
No. The connector runs inside your ERP as an extension, or as a small service for Dynamics GP, an Odoo module or a Frappe app for ERPNext, and talks to ZATCA directly. You keep your current ERP and processes.
What happens if ZATCA does not respond?
The invoice is queued and retried automatically and shown as pending, so nothing is lost. Finance can see every pending or failed invoice on one screen.
How long does implementation take?
It depends on the number of legal entities, branches and invoice types. After the readiness check we share a fixed plan and timeline for your deadline.
Do you also handle UAE e-invoicing?
Yes. We also connect SAP and Dynamics to the UAE e-invoicing system through an Accredited Service Provider. See our UAE e-invoicing and ZATCA services.
// Is your ERP ready for your ZATCA wave? We aim to reply within 24 hours on business days




