Magento 2 extension

Saudi ZATCA EInvoicing

Saudi Arabia ZATCA (FATOORA) Phase 2 ("integration phase") e-invoicing: EGS onboarding, UBL 2.1 simplified and standard tax invoices and credit notes, invoice counter (ICV) and previous invoice hash (PIH) chain, XAdES signature (ECDSA secp256k1), TLV QR code, reporting / clearance through a database queue and cron with retries, an offline mock FATOORA, an admin grid, an invoice panel with the QR code, a QR block on core PDFs and CLI commands.

$30 one-time licence

What it does

Saudi Arabia ZATCA (FATOORA) Phase 2 ("integration phase") e-invoicing: EGS onboarding, UBL 2.1 simplified and standard tax invoices and credit notes, invoice counter (ICV) and previous invoice hash (PIH) chain, XAdES signature (ECDSA secp256k1), TLV QR code, reporting / clearance through a database queue and cron with retries, an offline mock FATOORA, an admin grid, an invoice panel with the QR code, a QR block on core PDFs and CLI commands.

It turns each invoice and credit memo into a signed Phase 2 e-invoice and sends it to Fatoora for you. You enter your Arabic and English legal name, VAT and CR numbers and national address under Stores > Configuration, then onboard an EGS unit under Sales > Operations > ZATCA EGS Onboarding with the OTP from the Fatoora portal. When an invoice or credit memo is saved, a queued job builds the UBL 2.1 XML, chains the counter and hash, signs it and creates the QR code; simplified invoices are reported, and standard invoices for buyers with a valid KSA VAT number are cleared. Cron retries failed submissions. The admin gains an e-invoice grid, a ZATCA panel with the QR code on invoice and credit memo views, and a QR block on core PDFs. You can test offline in the built-in mock environment, for example before going live.

Features

  • Seller setup with Arabic and English legal name and national address; VAT and CR number validation
  • EGS onboarding in the admin or CLI: key and CSR generation, compliance CSID with OTP, compliance checks, production CSID; keys and secrets stored encrypted
  • UBL 2.1 simplified and standard tax invoices and credit notes created automatically from Magento invoices and credit memos
  • Invoice counter (ICV) and previous invoice hash (PIH) chain, XAdES signature, TLV QR code
  • Reporting (simplified) and clearance (standard) through a queue, with automatic retries by cron
  • Offline mock FATOORA for testing without ZATCA access
  • Admin grid of e-invoices, ZATCA panel with QR code on invoice / credit memo views, QR block on core PDFs
  • CLI commands for onboarding and submission; variables for the Modvanta Pdf Templates extension
  • VAT rates themselves come from Magento tax rules (configure KSA 15%)

Where you find it in the admin

  • Sales > Operations > ZATCA E-Invoices
  • Sales > Operations > ZATCA EGS Onboarding

Good to know

This module supports compliance with the ZATCA E-Invoicing Regulation (Fatoora), the "Controls, Requirements, Technical Specifications and Procedural Rules", the E-Invoice XML Implementation Standard, the Data Dictionary and the Security Features Implementation Standards. It does not certify compliance and is not tax or legal advice. Verify every document type with the ZATCA SDK and the developer-portal / simulation compliance checks before going live, and follow current ZATCA guidance (wave notifications, OTP onboarding, CSID renewal).

Screenshots

Saudi ZATCA EInvoicing screenshot 2
Saudi ZATCA EInvoicing screenshot 3

Installation

After purchase you get the package and the PDF user guide. Install it with Composer, or ask us to install it for you:

composer require modvanta/module-zatca-einvoice
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

Saudi ZATCA EInvoicing: questions

Which Magento versions does Saudi ZATCA EInvoicing support?

Magento Open Source and Adobe Commerce 2.4 (developed and tested on 2.4.9), with PHP 8.1 to 8.5 and Luma-based themes. If your store runs Hyva or a headless front end, tell us first and we check it before you buy.

How much does Saudi ZATCA EInvoicing cost?

$30 as a one-time payment for one Magento installation. You get the full source code and a PDF user guide. There is no yearly fee.

How do I install Saudi ZATCA EInvoicing?

With Composer: composer require modvanta/module-zatca-einvoice, then bin/magento setup:upgrade. It pulls in the free Modvanta Core package automatically. We can also install and configure it on your store.