The QR code on an e-invoice: what it holds, and what the cryptographic stamp is

An e-invoice carries a square QR code, which many people call the “barcode”. It holds the invoice's basic data, and under Phase 2 it also holds the cryptographic stamp that proves the invoice was not changed after it was issued. This guide explains what the code contains and how to verify it.

Last updated: 5 min read

Zakat, Tax and Customs Authority (ZATCA) logoFatoora platform logoE-invoicing through the Fatoora platform

What is the QR code on an e-invoice?

The QR code is a two-dimensional square printed on the invoice, holding its basic data encoded as TLV and then Base64. It is mandatory on simplified tax invoices and their notes, and it also appears on tax invoices.

What does the code contain?

FieldPhase 1Phase 2
Seller's nameYesYes
Seller's VAT numberYesYes
Invoice date and timeYesYes
Invoice total including VATYesYes
VAT totalYesYes
Invoice hashNoYes
Digital signature (cryptographic stamp)NoYes
The invoicing device's public keyNoYes
ZATCA's signature on the device certificateNoOn simplified invoices

What is the cryptographic stamp?

The cryptographic stamp is a digital signature the invoicing device creates over the invoice hash with its private key, using a certificate ZATCA issues to the device when it is linked to the Fatoora platform. If any detail of the invoice is changed after it is issued, the hash changes and the signature no longer matches it.

The stamp does not appear as readable text on the printed invoice; it is carried inside the QR code and inside the invoice's XML file.

Who generates the code under Phase 2?

Tax invoiceSimplified tax invoice
Source of the codeThe copy cleared by the Fatoora platformThe business's system at issue
When it is printed on the invoiceAfter the platform clears itAt issue, before it is reported

How do you verify a QR code?

  1. Scan the code with a phone camera or a QR reader, and an encoded text appears.
  2. Open the text with a tool that decodes e-invoice QR codes to show its data.
  3. Match the seller's name, VAT number, total and VAT with what is printed on the invoice.
  4. If the code cannot be read or its data differs from the printed invoice, ask the seller for a correct copy.

A code generated on a public website from the five fields alone carries no cryptographic stamp, so it does not meet the Phase 2 requirements.

QR codes in Muhhkam

Muhhkam prints the QR code automatically on invoices and notes. Once the branch is linked to the Fatoora platform, the code carries the cryptographic stamp, on tax invoices it is taken from the copy the platform cleared, and a signed XML file of every invoice is kept.

This guide is general information based on the regulations published up to its last update. Regulations and rates may change, so check the official sources or a qualified adviser before you make a decision. The Arabic version of this guide is the original.

Frequently asked questions

Ready to take control?
Start today. The trial is free.

14 days on the Comprehensive plan with every feature. Sign up in minutes and issue your first invoice today.