E-Invoicing

How to Generate ZATCA Compliant QR Codes for E-Invoices

Feb 14, 2026 224 views
How to Generate ZATCA Compliant QR Codes for E-Invoices

Understanding ZATCA QR Code Requirements

Every e-invoice in Saudi Arabia must include a QR code that contains specific information in TLV (Tag-Length-Value) format. This QR code allows anyone to verify the invoice's authenticity.

Required QR Code Fields

The ZATCA-compliant QR code must contain the following mandatory fields:

  1. Seller's Name: The legal name of the business issuing the invoice
  2. VAT Registration Number: The 15-digit VAT number
  3. Invoice Date & Time: Timestamp in ISO 8601 format
  4. Invoice Total (with VAT): The total amount including VAT
  5. VAT Amount: The total VAT charged

TLV Format Explained

TLV (Tag-Length-Value) is the encoding format required by ZATCA:

  • Tag: Identifies the field (1 byte)
  • Length: The length of the value (1 byte)
  • Value: The actual data in UTF-8 encoding

Phase 2 Additional Requirements

For Phase 2 compliance, the QR code must also include:

  • Digital signature hash
  • Public key
  • Cryptographic stamp from ZATCA

Generate QR Codes with FatooraPlus

FatooraPlus automatically generates fully compliant QR codes for all your invoices. Our system handles the TLV encoding, digital signatures, and all ZATCA requirements automatically.

Tags
QR code, TLV, ZATCA, e-invoice, technical
Share this article