ZATCA Live Camera Scanner
π· Real-Time Camera ScanPoint 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
Decoded Invoice Fields
| Tag | Field Name | Value |
|---|---|---|
| 1 | Seller's Name | - |
| 2 | VAT Registration # | - |
| 3 | Invoice Timestamp | - |
| 4 | Invoice Total (with VAT) | - |
| 5 | VAT Total | - |
| 6 | Invoice Hash (Phase 2) | - |
| 7 | ECDSA 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
- Click "Start Camera" and allow browser camera permissions.
- Point your camera at the ZATCA QR code on your printed receipt or screen.
- The scanner automatically detects and locks onto the barcode in milliseconds.
- 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.