Skip to Content

Odoo POS E-Invoicing: Offline QR Codes for ZATCA

Uninterrupted retail checkouts meet strict tax compliance. Odoo POS e-invoicing issues compliant ZATCA simplified invoice receipts with offline QR code encryption, automatically queuing transactions for POS Fatoora integration once connectivity restores.
September 27, 2026 by
Odoo POS E-Invoicing: Offline QR Codes for ZATCA
Mohamed Hamdeen (MOHA)


How Odoo POS E-Invoicing Operates Across Saudi Retail

Odoo POS e-invoicing integrates natively with ZATCA Phase 2 protocols, turning each checkout terminal into an autonomous signing engine. The cash register constructs compliant UBL 2.1 simplified invoices in local memory, generates encrypted Base64 QR codes directly onto thermal receipts, and queues pending transactions for background Fatoora transmission within the mandatory 24-hour reporting window.

1. Core Requirements for Simplified Invoices and ZATCA QR Codes

Under ZATCA regulations, every consumer-facing B2C receipt functions as a legally binding simplified tax invoice. It must display a structured, encrypted QR code rather than a simple plain-text link.

hase 2 transformed this baseline from static vendor details into an immutable digital ledger. Aligning with ZATCA Phase 2 integration requirements mandates embedding a cryptographic stamp, linking an unbroken hash chain to the previous invoice, and archiving transactions in structured XML to prevent post-printing manipulation.

Mandatory architectural pillars for simplified tax invoices include:

  • Standardized Electronic Archiving: Generating and storing every transaction in structured UBL 2.1 XML or PDF/A-3 formats complete with embedded cryptographic metadata.
  • Mandatory Cryptographic QR Codes: Displaying basic business identifiers under Phase 1, followed by ECDSA digital signatures, cryptographic stamps, and hash digests under Phase 2.
  • Reporting & Cryptographic Integrity: Reconciling receipts against the central Fatoora portal ledger to safeguard recorded revenue against manipulation.

2. How Odoo POS Implements Compliant Simplified Invoicing


Through targeted Saudi localization modules, Odoo POS embeds end-to-end ZATCA compliance directly into cashier touchscreens.

The Technical Checkout Workflow in Practice:

  • Localized Module Architecture: Deploying enterprise e-invoicing modules that calculate Saudi VAT brackets and render dynamic QR tags automatically.
  • Terminal Level Encryption: Configuring POS interfaces to encode the nine mandatory Phase 2 data fields directly onto customer receipts.
  • Instantaneous Receipt Finalization: Validating the shopping cart instantly constructs the simplified tax invoice with audited line items and exact 15% VAT calculations.
  • Thermal Receipt Output: Rendering high-density, scannable QR codes at the bottom of the customer slip formatted for optical compliance.

3. Technical Anatomy of the Encrypted POS QR Code

ZATCA technical guidelines mandate that Phase 2 QR codes must not contain plain text or simple URLs. Instead, they require a strict Tag-Length-Value (TLV) data structure encoded in Base64 binary:

  • Phase 1 Data Payload: Tags 1 through 5 encode the seller name, 15-digit VAT number, timestamp to the second, invoice total, and VAT amount.
  • Phase 2 Cryptographic Payload: Tags 6 through 9 inject the invoice SHA-256 hash, preceding invoice hash, ECDSA digital signature, and ZATCA public key stamp.

Odoo processes these calculations in the background within milliseconds, shielding frontline cashiers from underlying cryptographic complexities.

4. Offline Engine: Generating Valid QR Codes During Network Outages

Network dropouts in high-traffic stores present severe operational risks. ZATCA architecture resolves this by permitting local cryptographic engines on POS terminals to sign receipts and generate valid QR codes without active internet access.

Transactions reside securely inside local browser databases, flagged for automatic transmission once connection returns to meet the statutory 24-hour reporting deadline. Understanding proactive workflows for resolving Fatoora invoice rejection errors ensures batched records clear without delay.

Executing seamless offline operations relies on three technical steps:

  • Local Cryptographic Signing: Computing receipt hashes and rendering the encrypted QR code locally using securely cached terminal credentials.
  • IndexedDB Transaction Queuing: Tagging offline invoices with an internal pending synchronization status within the local database.
  • Automated Background Clearance: Uploading batched XML invoices to the Fatoora API seamlessly the moment connectivity recovers.

5. Step-by-Step Implementation Blueprint for Retailers

Deploying enterprise POS compliance requires vetted modules supporting all nine Phase 2 fields, paired with verified CSID certificate onboarding via ZATCA Sandbox.

Furthermore -unifying POS and e-commerce inventory synchronizes stock across multi-branch networks, while proper cashier training prevents illegal receipt cancellations.

Key execution milestones include:

  • Certified Module Selection: Installing verified Odoo add-ons engineered specifically for Phase 2 compliance rules.
  • Cryptographic Onboarding: Generating private keys, obtaining production CSIDs, and validating invoice flows in simulation environments.
  • Offline Recovery Stress-Testing: Disconnecting terminals intentionally to confirm uninterrupted receipt generation and automatic queue recovery.
  • Hardware & Thermal Validation: Calibrating printer density and margin scaling to ensure instant optical recognition by inspection scanners.
  • Staff Protocol Training: Instructing cashiers to handle returns strictly through formal Credit Notes rather than altering historical entries.

Ensuring Scalable POS Readiness with Tarmez?

Operating multi-branch retail networks across Saudi Arabia requires resilient POS engineering. Reliable compliance depends on robust local database architecture that safeguards transaction integrity whether your internet is live or completely offline.

Leveraging specialized Odoo POS Fatoora integration services quips your terminals with an enterprise ERP backbone, securing continuous sales and zero compliance disruptions.