- ہوم
- Apps
- SaaS Tools
- Magento 2 ZATCA E-Invoicing Phase 2 (KSA)
مثالی پیش منظرA build-to-order Magento 2 / Adobe Commerce extension that makes your store ZATCA Phase 2 (Integration)
compliant — generating, cryptographically signing and reporting UBL XML e-invoices to Saudi Arabia's Fatoora platform. Built, installed and supported by
ECOSIRE on your store.
Magento 2 ZATCA E-Invoicing Phase 2 (KSA) کیا ہے؟
A build-to-order Magento 2 / Adobe Commerce extension that makes your store ZATCA Phase 2 (Integration) compliant — generating, cryptographically signing and reporting UBL XML e-invoices to Saudi Arabia's Fatoora platform. Built, installed and supported by ECOSIRE on your store. Built to order by ECOSIRE for Magento 2 / Adobe Commerce (build-to-order) — indicative price from $999.00 USD; request a quote for a scoped proposal.
اہم خصوصیات
آرڈر پر تیار، مکمل طور پر آپ کے لیے
خود سیٹ اپ کی ضرورت نہیں — ایک کام کرنے والی ایپ جو ECOSIRE بناتا، انسٹال اور سپورٹ کرتا ہے۔
- 1
آپ آرڈر دیتے ہیں
ایک بار کی تعمیر کی قیمت سے آغاز کریں۔ آغاز پر ہم آپ کے ساتھ مل کر دائرہ کار طے کرتے ہیں۔
- 2
ہم بناتے اور انسٹال کرتے ہیں
ECOSIRE اسے آپ کے Magento 2 پر بناتا، ترتیب دیتا اور انسٹال کرتا ہے۔
- 3
لائیو + معاونت
آپ تقریباً ایک کاروباری ہفتے میں لائیو ہو جاتے ہیں، گو لائیو کے بعد دو ہفتوں کی معاونت کے ساتھ۔ ہمارے فراہم کردہ کوڈ کی خرابیاں مفت درست کی جاتی ہیں۔
اس مصنوع کے بارے میں
This is not an instant Adobe Commerce Marketplace download. It is a build-to-order Magento 2 module that ECOSIRE builds, installs and supports directly on your Magento Open Source or Adobe Commerce store — configured for your VAT registration, branches and Fatoora credentials.
ZATCA Phase 2 (the Integration phase) requires every B2B/B2C invoice to be produced as a UBL 2.1 XML document, cryptographically stamped, and either cleared (standard tax invoices) or reported (simplified invoices) through ZATCA's Fatoora platform via its APIs. Magento core has no awareness of any of this — it produces a PDF invoice and nothing more.
We deliver a properly engineered module under app/code/Ecosire/ZatcaEInvoice. It hooks Magento's Magento\Sales\Api\InvoiceRepositoryInterface and the sales_order_invoice_save_after observer to build a compliant invoice, then signs it using your CSID (Compliance/Production Cryptographic Stamp Identifier) obtained during onboarding against the ZATCA Compliance and Production CSID APIs. Standard tax invoices are sent for clearance and the returned cleared XML + ZATCA QR is embedded into the PDF and email; simplified invoices carry the Phase 1 TLV QR and are reported within the 24-hour window. Every document includes the mandated PIH (Previous Invoice Hash) chain, UUID, VAT breakdown, seller/buyer TRN fields and invoice counter value.
Work is exposed through service contracts wired in di.xml, guarded by admin ACL, and processed asynchronously via Magento cron and message queue so checkout latency is untouched. You receive the source, an admin grid of submission status, retry handling for failed clearances, and a documented onboarding runbook. Built for your store, by people you can call.
What you get
- A custom Magento 2 module installed under app/code/Ecosire/ZatcaEInvoice on your store (Magento Open Source or Adobe Commerce), with full source code handed over
- CSID onboarding completed with you: device registration, CSR/CSID generation and secure credential storage for compliance and production environments
- Installation and configuration on your staging environment, validated end-to-end against the ZATCA sandbox/simulation portal
- Production go-live cutover plus the documented onboarding and operations runbook
- Admin training session on the submission grid, retry handling and reading ZATCA error responses
- Source-controlled handover (Git) with composer-installable package and clear upgrade path
- Two weeks of go-live support covering bug fixes and ZATCA validation rejections at no extra charge
Who this is for
Saudi Magento merchant facing a ZATCA wave deadline
A KSA-based store owner whose business has been notified of its ZATCA Phase 2 integration wave. They are legally required to clear/report XML invoices through Fatoora by a fixed date and need a working, compliant integration on their existing Magento store fast — not a generic plugin they must wire up themselves.
E-commerce / IT manager at a multi-branch retailer
Runs a Magento storefront for a group with several VAT registrations or branches. Needs per-entity Fatoora credentials, accurate VAT breakdowns and an audit trail of every cleared invoice, and wants the build done by an engineer who understands service contracts and cron-based async processing rather than risking checkout performance.
Adobe Commerce solution partner or in-house developer
A technical lead who could build it but wants a proven, upgrade-safe module delivered as source under app/code, with the ZATCA cryptographic-stamp, PIH chaining and CSID onboarding handled correctly — so the team can focus on the storefront instead of reverse-engineering Fatoora's APIs.
How Magento 2 ZATCA E-Invoicing Phase 2 (KSA) Compares
| Criterion | ECOSIRE | Custom Build | Competitor | Magento 2 نیٹو |
|---|---|---|---|---|
| ZATCA-compliant UBL 2.1 XML generation from Magento invoices | Included | Partial support | Included | Not included |
| Cryptographic stamp, PIH hash chaining and CSID onboarding | Included | Partial support | Partial support | Not included |
| Built, installed and configured on YOUR store (not just a download) | Included | Included | Not included | Not included |
| Multi-branch / multi-VAT-registration support out of the box | Partial support | Partial support | Partial support | Not included |
| Upgrade-safe architecture (service contracts, di.xml, plugins, ACL) | Included | Partial support | Partial support | Not included |
| Phase 1 TLV QR on PDF/email invoices | Included | Partial support | Included | Not included |
| Async (cron + message queue) processing, no checkout impact | Included | Not included | Partial support | Not included |
| Hands-on onboarding, training and named human support | Included | Partial support | Not included | Not included |
| Full source ownership and documented runbook handover | Included | Included | Not included | Not included |
Frequently Asked Questions about Magento 2 ZATCA E-Invoicing Phase 2
How long does delivery take, and how does the build-to-order process work?
After a short scoping call we confirm your Magento edition, branches and VAT registrations, then build and install the module on your staging environment. Typical delivery is one working week depending on multi-entity complexity and how quickly we can complete CSID onboarding with you (which depends on ZATCA portal access). This is a custom build installed on your store, not an instant Marketplace download — you get a real engineering engagement, not a zip you have to integrate alone.
What ongoing support and updates do I get after go-live?
Every build includes two weeks of go-live support covering bug fixes and any ZATCA validation rejections at no extra cost. Because ZATCA periodically updates its XML rules, clearance behavior and certificate requirements, we offer an optional annual maintenance retainer that keeps the module aligned with ZATCA spec changes and your Magento upgrades. You also receive the full source, so your own team can maintain it if you prefer.
Does this work on Magento Open Source or only Adobe Commerce?
Both. The module is built using standard Magento 2 architecture — service contracts, di.xml dependency injection, plugins on InvoiceRepositoryInterface, observers, admin ACL, cron and message queue — so it runs on Magento Open Source and Adobe Commerce (including cloud) alike. We confirm your exact version during scoping and target your installed release.
Does it handle both standard tax invoices (clearance) and simplified invoices (reporting)?
Yes. Standard tax invoices (typically B2B) are sent to Fatoora for clearance and the cleared XML plus ZATCA QR is embedded into the customer's invoice. Simplified invoices (typically B2C/POS-style) carry the Phase 1 TLV QR and are reported to ZATCA within the mandated 24-hour window. Both flows include the cryptographic stamp, UUID, ICV counter and PIH previous-invoice-hash chain.
Will this slow down my checkout or invoice creation?
No. ZATCA submission runs asynchronously through Magento cron and the message queue rather than blocking the order or invoice transaction. The customer-facing flow stays fast; clearance/reporting happens in the background and the result (status, UUID, any error) appears in the admin submission grid where failures can be retried.
Who completes the ZATCA CSID onboarding — you or us?
We do it together. CSID onboarding requires OTP codes and credentials generated from your own ZATCA Fatoora portal account, so you provide portal access and OTPs while we handle the CSR generation, compliance checks, certificate retrieval and secure storage in the module. We validate the full compliance cycle against the ZATCA simulation environment before switching you to production.
Related Modules

Magento 2 Tips & Service Charge Management
A build-to-order Magento 2 / Adobe Commerce extension that captures tips and service charges at POS and online checkout, then pools, splits, attributes and reports them for restaurant staff payouts. Built, installed and supported by ECOSIRE.

Magento 2 Trendyol Marketplace Integration
A custom-built Magento 2 / Adobe Commerce extension that connects your store to Trendyol — bulk product upload, category mapping, live inventory and price sync, and automated order import. Built, installed and supported by ECOSIRE on your own Magento instance.

Malaysia MyInvois (LHDN) E-Invoicing for Magento 2
A build-to-order Magento 2 extension that clears every invoice through Malaysia's MyInvois (LHDN) platform in real time, returning the UUID and validation QR and mapping the full 55-field LHDN schema. Built, installed and supported by ECOSIRE on your store.

Meesho Marketplace Connector
A custom-built Magento 2 extension that connects your store to Meesho — pushing catalog and price/stock, mapping categories and attributes, and importing Meesho orders back into Magento with dispatch sync. Built, installed and supported by ECOSIRE for Indian sellers scaling on Meesho.
Magento 2 ZATCA E-Invoicing Phase 2
A build-to-order Magento 2 / Adobe Commerce extension that makes your store ZATCA Phase 2 (Integration) compliant — generating, cryptographically signing and reporting UBL XML e-invoices to Saudi Arabia's Fatoora platform. Built, installed and supported by ECOSIRE on your store.
- UBL 2.1 compliant XML e-invoice generation for both standard tax invoices and simplified invoices, mapped from Magento's native invoice and credit-memo entities
- CSID onboarding workflow against ZATCA's Compliance and Production CSID APIs (OTP-based device registration, CSR generation, certificate storage)
- Cryptographic stamping of every invoice (ECDSA signature, invoice hash, PIH previous-invoice-hash chaining and monotonic counter value)
- Clearance flow for standard tax invoices and reporting flow for simplified invoices via the Fatoora platform APIs, with the 24-hour reporting window respected