Connect

Full-Screen Text View

0 matches

ZATCA Live Camera Scanner

πŸ“· Real-Time Camera Scan

Point your device camera at a printed or digital ZATCA e-invoice QR code to instantly scan and parse Tag-Length-Value (TLV) fields in real time.

Camera Viewport

Center ZATCA QR inside box

Decoded Invoice Fields

Ready to Scan
Start camera to scan a ZATCA invoice QR code.
TagField NameValue
1Seller's Name-
2VAT Registration #-
3Invoice Timestamp-
4Invoice Total (with VAT)-
5VAT Total-
6Invoice Hash (Phase 2)-
7ECDSA Signature (Phase 2)-

Live Optical Scanning and TLV Decoding for ZATCA E-Invoices

Saudi Arabia's Zakat, Tax and Customs Authority (ZATCA / Fatoora) mandates that all electronic tax invoices include a specialized Base64 Tag-Length-Value (TLV) encoded QR code. Validating compliance during field audits or testing requires instant scanning.

Our live camera scanner accesses your device camera securely through the browser, reads the QR code in real time, and decodes the underlying TLV data into structured fields (Seller Name, 15-digit VAT number, timestamp, total amount, VAT total, and cryptographic signatures).

How to Use

  1. Click "Start Camera" and allow browser camera permissions.
  2. Point your camera at the ZATCA QR code on your printed receipt or screen.
  3. The scanner automatically detects and locks onto the barcode in milliseconds.
  4. Review the parsed seller name, VAT registration, monetary totals, and Phase 2 compliance status.

Key Features & Capabilities

  • Real-time optical QR code detection using browser WebAssembly video stream processing.
  • Decodes all 9 ZATCA TLV tags (Phase 1 basic tags + Phase 2 cryptographic hashes and signatures).
  • Validates 15-digit VAT number format (must start and end with 3).
  • 100% private in-browser video processingβ€”no camera images are uploaded.

Common Developer Workflows

  • Field auditing of retail POS printed receipts for Fatoora compliance.
  • Testing thermal printer QR code output quality and scanner readability.
  • Verifying invoice timestamps and VAT calculation accuracy.
  • Validating Phase 2 integration payloads for ERP systems.

Frequently Asked Questions

What fields are required in a ZATCA Phase 1 QR code?

Phase 1 requires 5 TLV tags: (1) Seller Name, (2) 15-digit VAT Number, (3) Invoice Timestamp (ISO 8601), (4) Invoice Total (incl. VAT), and (5) VAT Total.

What extra tags are included in Phase 2 ZATCA invoices?

Phase 2 (Integration Phase) adds Tag 6 (XML Hash), Tag 7 (ECDSA Cryptographic Stamp / Signature), Tag 8 (Public Key), and Tag 9 (Cryptographic Stamp Identifier).

Are scanned camera frames sent to a server?

Never. Video frames are analyzed in real time directly on your device's GPU/CPU using client-side JavaScript. No video or image data leaves your browser.