Skip to main content
Back to Blog
Islamic Finance & ComplianceMarch 7, 202614 min read

ZATCA Phase 2 E-Invoicing Compliance: Complete 2026 Guide

Everything Saudi businesses need to know about ZATCA Phase 2 — technical requirements, implementation timeline, cryptographic standards, and how Aetheria delivers native compliance.

A
Aetheria Team
Aetheria

ZATCA Phase 2 E-Invoicing Compliance: Complete 2026 Guide

TL;DR: ZATCA Phase 2 is mandatory for all VAT-registered KSA entities. Native compliance (cryptographic signing, QR/TLV, Fatoora API, tamper-proof archival) is the only sustainable approach. Partner add-ons cost $10K–$50K/yr and create vendor lock-in. Aetheria includes Phase 2 natively at zero extra cost.


ZATCA Timeline: Where We Are

PhaseNameTargetStatus (2026)
Phase 1GenerationAll VAT taxpayers✅ Complete (Dec 2021)
Phase 2IntegrationGrouped by VAT revenue🔴 Mandatory for all (2026)
Phase 3AdvancedFuture enhancements🟡 Planning

Phase 2 Groups (by annual VAT revenue):

  • Group 1: > 3B SAR — Live Jan 2023
  • Group 2: 500M–3B SAR — Live Jul 2023
  • Group 3: 250M–500M SAR — Live Jan 2024
  • Group 4: 100M–250M SAR — Live Jul 2024
  • Group 5: 40M–100M SAR — Live Jan 2025
  • Group 6: All remaining VAT-registered — Live 2026

Phase 2 Technical Requirements (The "Must-Haves")

RequirementSpecificationAetheria Implementation
Invoice FormatUBL 2.1 XML (CIUS-SA)Native UBL 2.1 generator
Cryptographic SigningRSA-2048 / ECDSA-P256RFC 7517 JWKS, HSM-backed
QR CodeTLV (Tag-Length-Value) encodingAuto-generated on invoice
UUIDUUID v4 per invoiceCrypto-random UUID v4
Fatoora APIREST + OAuth2, real-time clearanceNative async client, retry/queue
Cryptographic StampZATCA-returned hash + certAuto-attached, verified
Archival6+ years, tamper-evidentAppend-only ledger, hash chain
LanguageArabic + EnglishNative bilingual, Cairo font
CurrencySAR + multi-currencyNative multi-currency, SAR base

The Cryptographic Flow (What Actually Happens)

1. Invoice Created in ERP
       ↓
2. Hash = SHA-256(UBL XML)
       ↓
3. Signature = Sign(Hash, Private Key)  [RSA-2048/ECDSA]
       ↓
4. QR Code = TLV(Seller, VAT#, Timestamp, Total, VAT Amt, Hash)
       ↓
5. Submit to Fatoora API (Clearance/Reporting)
       ↓
6. ZATCA Returns: Cryptographic Stamp (Signed Hash + Cert)
       ↓
7. Stamp Embedded in Invoice XML + QR
       ↓
8. Invoice Delivered to Buyer (Portal/Email/EDI)
       ↓
9. Archived: Hash Chain → Append-Only Ledger (Tamper-Proof)

Aetheria automates 100% of this flow. No manual steps. No external middleware.


Common Implementation Pitfalls

PitfallConsequenceAetheria Prevention
Manual QR generationHuman error, non-compliant TLVAuto-generated from invoice data
Shared signing keysKey compromise = all invoices invalidPer-tenant JWKS, HSM rotation
Batch submissionFatoora rejects >100 invoices/batchAsync queue, auto-batching, retry
No archival strategyAudit failure, 6-year retentionAppend-only hash chain, immutable
Partner add-on latency500ms–2s per invoiceNative: < 50ms end-to-end
Key rotation gapsExpired certs = rejected invoicesAutomated JWKS rotation (RFC 7517)

Aetheria's Native ZATCA Architecture

ComponentTechnologyBenefit
Invoice GeneratorGo microservice, UBL 2.1Standards-compliant, extensible
Signing EngineRFC 7517 JWKS, HSM (AWS CloudHSM / Azure Key Vault)FIPS 140-2 Level 3, auto-rotation
QR EngineTLV encoder (Go)Zero-allocation, spec-exact
Fatoora ClientAsync HTTP/2, OAuth2, circuit breakerResilient, observable, retry logic
Archival LedgerPostgreSQL append-only, hash chainCryptographic tamper-evidence
MonitoringPrometheus/Grafana, alert on clearance failureProactive compliance ops

Cost Comparison: Native vs Add-on

ApproachYear 1 CostYear 2+ AnnualRisk
Aetheria NativeIncluded in SaaSIncludedZero
NetSuite + Partner$25K–$50K$15K–$30KVendor lock-in
D365 + Partner$30K–$60K$20K–$40KAzure lock-in
SAP B1 + Partner$20K–$40K$15K–$25KABAP dependency
Odoo + Partner$15K–$30K$10K–$20KHosting/upgrade risk
Custom Build$100K+$50K+Maintenance burden

5-Year TCO for ZATCA compliance alone: Aetheria $0 vs $75K–$200K for add-ons.


Penalty Schedule (ZATCA Official)

Violation1st Offense2nd Offense3rd Offense4th+ Offense
Missing QR/StampWarning5,000 SAR20,000 SAR40,000 SAR
Invalid QR/StampWarning5,000 SAR20,000 SAR40,000 SAR
Late SubmissionWarning1,000 SAR5,000 SAR10,000 SAR
Archival FailureWarning10,000 SAR50,000 SAR100,000 SAR

Repeated non-compliance → VAT registration suspension → Commercial license review.


Implementation Checklist (Aetheria: 2 Weeks)

WeekActivityOwner
1Enable ZATCA module, configure entity (CRN, VAT#, address)Finance Lead
1Generate/import signing keys (HSM or Aetheria-managed)IT/Security
1Test sandbox: 10 invoices → Fatoora sandbox → verify stampsQA
2Configure invoice templates (Arabic/English, branding)Marketing/Ops
2EDI/portal integration for buyer deliveryIT
2Go-live: Production Fatoora, monitor clearance rateAll
OngoingAutomated key rotation (90-day), archival verificationAetheria (auto)

Why Native Beats Add-on

DimensionNative (Aetheria)Add-on (Partner)
Data FlowSingle transaction, same DBETL → middleware → API → sync
Latency< 50ms500ms–5s
Failure Rate0.01% (circuit breaker)1–5% (network, format, auth)
Key RotationAutomatic (RFC 7517)Manual / ticket-based
Upgrade RiskZero (versioned microservice)High (partner update lag)
Audit TrailSingle source of truthFragmented logs

FAQ

What is the deadline for ZATCA Phase 2?

Phase 2 (Integration) went live January 1, 2023 for Group 1 (VAT > 3B SAR), rolling to all VAT-registered by 2026. All taxpayers must integrate with Fatoora platform via approved solution.

Can I use my existing ERP for ZATCA?

Only if your ERP has native ZATCA Phase 2 integration — cryptographic signing, QR code generation, Fatoora API integration, real-time clearance. Most ERPs require expensive partner add-ons. Aetheria includes it natively.

What are the technical requirements for Phase 2?

1) Cryptographic signing (RSA/ECDSA) of invoice hash, 2) QR code with TLV encoding (seller, VAT, timestamp, total, VAT amount), 3) UUID per invoice, 4) Real-time API submission to Fatoora, 5) Cryptographic stamp from ZATCA, 6) Archival 6+ years with tamper-evidence.

What happens if I'm non-compliant?

Penalties: 1st offense — warning; 2nd — 5,000 SAR; 3rd — 20,000 SAR; 4th+ — 40,000 SAR per violation. Repeated non-compliance can trigger VAT registration suspension and commercial license review.


Next Steps

Frequently Asked Questions

What is the deadline for ZATCA Phase 2?

Phase 2 (Integration) went live January 1, 2023 for Group 1 (VAT > 3B SAR), rolling to all VAT-registered by 2026. All taxpayers must integrate with Fatoora platform via approved solution.

Can I use my existing ERP for ZATCA?

Only if your ERP has native ZATCA Phase 2 integration — cryptographic signing, QR code generation, Fatoora API integration, real-time clearance. Most ERPs require expensive partner add-ons. Aetheria includes it natively.

What are the technical requirements for Phase 2?

1) Cryptographic signing (RSA/ECDSA) of invoice hash, 2) QR code with TLV encoding (seller, VAT, timestamp, total, VAT amount), 3) UUID per invoice, 4) Real-time API submission to Fatoora, 5) Cryptographic stamp from ZATCA, 6) Archival 6+ years with tamper-evidence.

What happens if I'm non-compliant?

Penalties: 1st offense — warning; 2nd — 5,000 SAR; 3rd — 20,000 SAR; 4th+ — 40,000 SAR per violation. Repeated non-compliance can trigger VAT registration suspension and commercial license review.

Share this article