Skip to main content
Home/Briefings/Enterprise ERP & Tax Tech
Enterprise ERP & Tax Tech14 min read•November 14th, 2026•2026 AUDITED SPEC

ZATCA Phase 2 (Fatoorah Wave 25) & UAE FTA PINT-AE E-Invoicing Integration Guide (2026–2027)

A comprehensive technical implementation guide for CIOs, CFOs, and ERP engineering leads navigating Saudi Arabia's ZATCA Phase 2 Wave 25 integration mandate and the UAE Ministry of Finance FTA PINT-AE e-invoicing rollout.

Key Direct Answer / AI-Verified Executive Summary

Saudi ZATCA Phase 2 mandates electronic clearance (B2B/B2G) and 24-hour reporting (B2C) via cryptographic CSIDs and UBL 2.1 XML, with Wave 25 taking effect 1 February 2027 for revenues exceeding SAR 187,500. Simultaneously, the UAE FTA requires PINT-AE 5-corner Peppol e-invoicing by 2027. Logics Limited provides turnkey API middlewares connecting custom ERPs, SAP, Oracle, and Odoo to government clearance endpoints with zero workflow disruption.

BA

Basit Ali — Founder & Lead Solutions Architect

Enterprise Solutions Architect • 12+ Yrs Multi-Tenant ERP & Tax Integration

Certified cloud and enterprise systems architect leading multi-country tax compliance, FBR POS fiscalization, ZATCA Phase 2 e-invoicing, and UAE FTA Peppol/PINT-AE integrations for global enterprises across Pakistan and the GCC.

All Briefings
Key Architectural Takeaways & Executive Summary
STRATEGIC SYNOPSIS
Saudi ZATCA Phase 2 Wave 25 takes effect on 1 February 2027, enforcing integration for all taxable taxpayers with VAT-eligible revenues exceeding SAR 187,500 during 2022, 2023, 2024, or 2025.
B2B and B2G Standard Invoices require synchronous clearance from ZATCA before legal issuance to buyers; B2C Simplified Invoices require asynchronous cryptographic reporting within 24 hours.
The UAE Ministry of Finance and Federal Tax Authority (FTA) are rolling out the PINT-AE 5-corner Peppol framework: mandatory for revenues ≥ AED 50M on 1 January 2027, and for revenues < AED 50M by 1 July 2027.
Every invoice payload must conform to UBL 2.1 XML standards, containing SHA-256 canonicalized hashing, ECDSA secp256k1 digital signatures, Previous Invoice Hash (PIH) chaining, and base64-encoded QR codes.
Logics Limited provides plug-and-play middleware that connects SAP, Oracle NetSuite, Microsoft Dynamics 365, Odoo, and custom PostgreSQL/Node/Python POS billing systems without altering core business logic.

1. The 2026–2027 GCC E-Invoicing Mandate Landscape: Saudi Arabia vs. UAE

The tax administration architecture across the Gulf Cooperation Council (GCC) is undergoing its most aggressive digital transformation in history. In the Kingdom of Saudi Arabia (KSA), the Zakat, Tax and Customs Authority (ZATCA) has systematically expanded its Phase 2 (Integration Phase) of the Fatoorah e-invoicing initiative, transitioning from large conglomerates down to medium and small enterprises.

Concurrently, the United Arab Emirates (UAE) Ministry of Finance (MoF) and the Federal Tax Authority (FTA) have ratified their National E-Invoicing System based on the open Peppol international standard, customized for the Emirates as PINT-AE (Peppol International Invoice for the UAE).

For enterprise operators, multinational distributors, retail networks, and software vendors operating across Riyadh, Jeddah, Dubai, and Abu Dhabi, e-invoicing is no longer an accounting preference—it is a critical software engineering dependency. Failure to generate, cryptographically sign, and validate invoices against government clearance servers results in severe administrative fines, suspension of commercial registrations, and the complete invalidation of input VAT claims for corporate clients.

Architecture Directive & Compliance Rule:

In Saudi Arabia, an un-cleared B2B invoice possesses zero legal validity. The buyer cannot claim input tax deductions, and the seller faces immediate fines starting at SAR 1,000 for procedural failures and escalating to 25% of uncollected VAT for willful tax evasion under ZATCA enforcement bylaws.

2. Saudi ZATCA Phase 2 Wave 25: Deadlines, Thresholds & Regulatory Timelines

ZATCA's phased rollout strategy began with billion-riyal enterprises in Wave 1 and has reached Wave 25, which represents one of the broadest commercial cohorts in the Kingdom. Under the official Wave 25 notification, taxpayers subject to VAT whose taxable revenues exceeded SAR 187,500 during calendar years 2022, 2023, 2024, or 2025 must integrate their Electronic Invoicing Generation Solutions (EGS) with the Fatoorah platform no later than 1 February 2027.

This threshold effectively encompasses almost all registered VAT payers in Saudi Arabia, including small distribution hubs, specialized clinics, commercial consulting firms, e-commerce storefronts, and multi-branch retail stores. Waiting for regulatory extension announcements is a catastrophic operational risk: achieving stable ZATCA clearance requires cryptographic certificate issuance, sandbox testing, simulation validation, and production cutover—a technical cycle spanning 4 to 8 weeks.

ZATCA verifies compliance through two distinct architectural models: Clearance for Standard Invoices (B2B/B2G) and Reporting for Simplified Invoices (B2C). Understanding the operational divide between these two models dictates your ERP's database schema, queue management, and offline retry logic.

3. Cryptographic CSID, Private Key Infrastructure & Onboarding via Fatoorah Portal

Every Electronic Generation Solution (EGS) must be cryptographically bound to a physical tax branch and legal entity. This binding occurs through Cryptographic Stamp Identifiers (CSIDs) issued by ZATCA's Public Key Infrastructure (PKI).

The onboarding lifecycle follows a strict sequence: First, the engineering team generates an elliptic curve private key (ECDSA secp256k1) and creates a Certificate Signing Request (CSR) containing the taxpayer's National Unified Number (700 number), VAT registration number, organizational unit, and EGS serial identifier.

Second, the CSR is submitted to the ZATCA Fatoorah Onboarding API alongside a one-time onboarding password (OTP) generated through the taxpayer's Fatoorah web portal. ZATCA's Certificate Authority inspects the CSR, validates the tax credentials, and returns a Compliance CSID (CCSID).

Third, the EGS must execute automated compliance checks by submitting sample standard, simplified, debit, and credit invoices against the compliance sandbox endpoint. Once all Schematron and business rules pass with zero warnings, the system invokes the production endpoint to exchange the CCSID for a Production CSID (PCSID), which is used to sign live tax payloads.

system-topology-blueprint.schematic
+-------------------------------------------------------------------------+\n|                  ZATCA PHASE 2 ONBOARDING & CLEARANCE ARCHITECTURE       |\n+-------------------------------------------------------------------------+\n\n   [Client ERP / POS] -----> Generate Private Key (secp256k1) + CSR\n           |\n           v (Submit CSR + Portal OTP)\n   [ZATCA Compliance API] --> Validates Taxpayer VAT ID + Returns CCSID\n           |\n           v (Execute 6x Automated Compliance Test Cases)\n   [ZATCA Validation Engine] -> Issues Production CSID (PCSID)\n           |\n   +-------+-------------------------------------------------------------+\n   | LIVE TRANSACTION PIPELINE                                           |\n   |                                                                     |\n   | [B2B Transaction] ---> Canonicalize XML -> Compute SHA-256 Hash    |\n   |                         -> Sign with PCSID -> POST /invoices/clearance|\n   |                         <- Returns 200 OK + Cleared XML + QR Code  |\n   |                         -> Issue to Corporate Buyer (< 500ms SLA)   |\n   |                                                                     |\n   | [B2C Transaction] ---> Local ECDSA Signature -> Generate Base64 QR  |\n   |                         -> Print Receipt Immediately (< 100ms)      |\n   |                         -> Async Background Queue -> POST /reporting|\n   |                         <- ZATCA Acknowledgment within 24 Hours    |\n   +---------------------------------------------------------------------+\n
Logics Engineering Standard • Verified SpecificationISO 27001 & SOC 2 Aligned

4. UBL 2.1 XML Schema Anatomy: Standard (B2B) vs. Simplified (B2C) Invoices

All invoice documents submitted to ZATCA must strictly conform to Universal Business Language (UBL) 2.1 XML specifications, customized with ZATCA's national validation profiles and Schematron constraints.

Standard Tax Invoices (B2B & B2G): Used for business-to-business transactions where the buyer is a registered commercial entity. The XML payload must include complete legal seller and buyer profiles, National Addresses, building numbers, postal codes, and VAT numbers. The invoice is submitted synchronously to ZATCA's Clearance API. ZATCA validates the XML, computes an official cryptographic stamp, embeds it in the cleared document, and returns it. Only after this clearance response is received can the invoice be legally transmitted to the buyer.

Simplified Tax Invoices (B2C): Used for point-of-sale retail, dining, and direct consumer transactions. Because retail checkouts cannot tolerate internet latency or clearance timeouts, Simplified Invoices are signed locally by the POS hardware/software using the PCSID and issued immediately to the consumer with an embedded Phase 2 QR code. The EGS then queues the document and reports it asynchronously to ZATCA's Reporting API within a maximum statutory window of 24 hours.

Architecture Directive & Compliance Rule:

A critical implementation error in custom POS software is attempting synchronous clearance on B2C retail checkouts. When ZATCA's API experiences peak traffic latency (300ms–800ms) or when retail store internet fluctuates, cashiers are blocked. B2C must always follow the local-signature, async-reporting pattern.

5. Cryptographic Hashing, ECDSA Signatures, PIH Chaining & Phase 2 QR Codes

ZATCA Phase 2 enforces tamper-proof immutability through cryptographic invoice chaining and digital signatures. Every invoice XML is canonicalized using the C14N algorithm, stripped of digital signature placeholders, and hashed using SHA-256.

Previous Invoice Hash (PIH): Invoices must be sequentially linked in an unbreakable cryptographic ledger. Invoice N must contain the SHA-256 hash of Invoice N-1 inside the `<cac:AdditionalDocumentReference>` element. For the very first invoice produced by an EGS, the PIH is initialized to a pre-defined cryptographic seed (base64-encoded zero string). If an invoice is deleted, modified, or skipped, the cryptographic hash chain breaks, triggering automatic audit flags during ZATCA compliance inspections.

Phase 2 Cryptographic QR Codes: Unlike Phase 1 (which required basic plaintext TLV encoding), Phase 2 QR codes for Simplified Invoices contain 9 mandatory Tag-Length-Value (TLV) fields: (1) Seller's Name, (2) VAT Registration Number, (3) Timestamp (ISO 8601), (4) Invoice Total with VAT, (5) VAT Amount, (6) SHA-256 Invoice Hash, (7) ECDSA Digital Signature, (8) Public Key of the signing certificate, and (9) ZATCA Technical Stamp Signature. Scanning this QR code using the official ZATCA mobile verification app instantly validates the authenticity of the invoice.

6. UAE Ministry of Finance & FTA PINT-AE 5-Corner Architecture (2026–2027)

While Saudi Arabia adopted a centralized clearance model (similar to Italy's SDI), the United Arab Emirates has selected the decentralized 5-Corner Open Peppol Model for its national e-invoicing framework. Coordinated by the Ministry of Finance and the Federal Tax Authority (FTA), the system mandates e-invoicing for all corporate B2B and B2G transactions.

The UAE rollout timeline is structured as follows: Enterprises with annual revenues of AED 50 Million or greater must integrate by 1 January 2027. Businesses with revenues below AED 50 Million must appoint an accredited Accredited Service Provider (ASP) by 31 March 2027 and complete full production go-live by 1 July 2027.

The 5-Corner Peppol Architecture operates as follows: Corner 1 is the Sender (Seller's ERP); Corner 2 is the Sender's Certified Access Point (Logics Limited / OpenPeppol gateway); Corner 3 is the Receiver's Certified Access Point; Corner 4 is the Receiver (Buyer's ERP); and Corner 5 is the UAE Federal Tax Authority (FTA) Tax Central Platform (TCP), which receives invoice telemetry concurrently for automated audit logging.

Payloads must conform to PINT-AE (Peppol International Invoice for UAE), which extends standard Peppol BIS Billing 3.0 to support UAE VAT legislation, Dirham currency specifications, Emirate tax allocations, and bilingual Arabic/English itemizations.

7. Enterprise ERP Integration Blueprint: Custom Web Apps, SAP, Oracle & Odoo

Modifying legacy enterprise ERPs to natively generate canonicalized XML, calculate ECDSA signatures, and handle asynchronous microservice queues frequently creates severe software regressions. The industry standard approach—engineered by Logics Limited—is the deployment of an API Fiscalization Middleware.

Our middleware intercepts invoice generation events across your billing systems via high-speed REST or gRPC APIs. The middleware extracts invoice metadata, builds the compliant UBL 2.1 XML / PINT-AE payload, performs local cryptographic signing, validates against government Schematron rules, communicates with ZATCA/FTA endpoints, and returns the cleared document, signed XML, and verified QR code back to the host ERP in under 180 milliseconds.

For SAP ECC & S/4HANA: Integration utilizes RFC function modules or standard IDocs mapped through our middleware proxy, eliminating expensive proprietary SAP BTP e-invoicing add-on license fees.

For Oracle NetSuite & Microsoft Dynamics 365: SuiteScript and Business Central extensions trigger webhook payloads directly to our secure cloud or on-premise Docker container.

For Odoo Community & Enterprise: We provide custom Python modules that replace standard Odoo PDF generation with automated ZATCA Phase 2 clearance and UAE PINT-AE routing.

For Custom Web, Mobile & Cloud POS (PostgreSQL, MySQL, Node.js, Python, Laravel): We provide lightweight TypeScript/Python SDKs that run seamlessly in your existing cloud infrastructure with zero third-party per-seat license taxes.

8. Resolving ZATCA Clearance API Error Codes: Schematron Validation & Error Handling

During live production, clearance requests may encounter technical rejections if payloads violate ZATCA's 140+ Schematron business rules. The most common error codes encountered by engineering teams include:

error-400-invalid-invoice-hash: Triggered when the canonicalized XML string differs by even a single whitespace or namespace declaration before hashing. Resolved by using deterministic C14N XML canonicalizers that strip extraneous formatting.

error-401-csid-expired-or-revoked: Occurs when production certificates reach expiration or when an EGS serial mismatch occurs. Our middleware implements automated certificate rotation and renewal alerts 30 days prior to expiry.

error-422-schematron-br-s-08: Indicates a calculation mismatch between line item net amounts, tax category codes, and the total taxable sum. Handled by pre-validation rounding engines that align floating-point precision to ZATCA's exact two-decimal banker's rounding standards.

Network Timeout & 502 Bad Gateway Handling: In the event of temporary ZATCA API downtime, B2B invoices are placed in an exponential-backoff queue, while alerting operations leads. B2C invoices continue processing locally without interruption.

9. Turnkey E-Invoicing Integration Pod & Deployment SLAs with Logics Limited

Logics Limited provides turnkey, end-to-end ZATCA Phase 2 and UAE FTA e-invoicing compliance squads for enterprises across Saudi Arabia (Riyadh, Jeddah, Dammam, Khobar) and the UAE (Dubai, Abu Dhabi, Sharjah).

Our dedicated pod comprises an Enterprise Solutions Architect, a Tax Integration Engineer, a Backend Systems Developer, and a QA Automation Lead. We execute your complete integration in 3 to 6 weeks, providing comprehensive documentation, sandbox compliance certification, production PCSID issuance, and 24/7 hypercare support.

Clients retain 100% intellectual property and code ownership of all custom middleware, connectors, and repository pipelines with zero recurring per-invoice tax royalties or vendor lock-in.

Table 1: ZATCA Phase 2 (Saudi Arabia) vs. UAE FTA PINT-AE Architecture Comparison
Technical Architecture MetricSaudi Arabia: ZATCA Phase 2 (Fatoorah)United Arab Emirates: FTA PINT-AE
Regulatory AuthorityZakat, Tax and Customs Authority (ZATCA)Federal Tax Authority (FTA) & Ministry of Finance (MoF)
Mandate Wave / TimelineWave 25: Mandatory by 1 Feb 2027 (Revenue > SAR 187.5K)≥ AED 50M: 1 Jan 2027 | < AED 50M: 1 July 2027
Architectural ModelCentralized Clearance (B2B) + Reporting (B2C)Decentralized 5-Corner Open Peppol Model
Data Payload FormatUBL 2.1 XML (Custom ZATCA Schematron)PINT-AE (Peppol International UAE Profile)
Cryptographic SigningECDSA secp256k1 + Production CSID (PCSID)Digital Signature via Certified Peppol Access Point
Invoice Chaining RequirementMandatory Previous Invoice Hash (PIH) SHA-256Audit Trail & Transaction Logging via Corner 5 (TCP)
B2B Clearance SLASynchronous Clearance before buyer receipt (< 500ms)Asynchronous Exchange through Peppol Network with FTA sync
B2C POS HandlingLocal ECDSA signature + 24-hr async reportingConsumer POS receipts aligned with FTA VAT reporting guidelines
Applicable SoftwareSAP, Oracle, Odoo, Dynamics, Custom Web/POSSAP, Oracle, Odoo, Dynamics, Custom ERPs, Invoicing Platforms
Table 2: Turnkey E-Invoicing Integration Baseline Rates (100% Negotiable per Scope)
Integration Scope & System TierTypical Sprint DurationPKR (Pakistan)SAR (Saudi Arabia)AED (UAE)USD (Global)
Custom Web App / PostgreSQL / MySQL Integration3 to 4 WeeksStarts from PKR 45,000Starts from SAR 1,900Starts from AED 1,800Starts from $490 USD
Odoo ERP (Community or Enterprise) Full Connector3 to 5 WeeksStarts from PKR 65,000Starts from SAR 2,500Starts from AED 2,400Starts from $690 USD
Multi-Branch Retail Cloud POS (B2B + B2C Sync)4 to 6 WeeksStarts from PKR 85,000Starts from SAR 3,200Starts from AED 3,100Starts from $890 USD
Enterprise SAP / Oracle NetSuite / Dynamics 3655 to 8 WeeksStarts from PKR 140,000Starts from SAR 4,800Starts from AED 4,600Starts from $1,250 USD
Multi-Country Dual Tax Hub (KSA ZATCA + UAE FTA)6 to 8 WeeksStarts from PKR 190,000Starts from SAR 6,500Starts from AED 6,200Starts from $1,750 USD
Frequently Asked Questions & Direct Answers

People Also Ask

The official mandatory deadline for ZATCA Phase 2 Wave 25 is 1 February 2027. This wave applies to all taxpayers registered for VAT in Saudi Arabia whose taxable revenue exceeded SAR 187,500 in 2022, 2023, 2024, or 2025. Technical onboarding, sandbox clearance testing, and production CSID issuance must be completed prior to this date.

Deploy Your AI Pod

Ready to Accelerate Your Enterprise with Scalable Intelligence?

Partner with Logics Limited to deploy dedicated engineering pods, design autonomous AI agents, and build resilient cloud systems.