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?
| Field | Phase 1 | Phase 2 |
|---|---|---|
| Seller's name | Yes | Yes |
| Seller's VAT number | Yes | Yes |
| Invoice date and time | Yes | Yes |
| Invoice total including VAT | Yes | Yes |
| VAT total | Yes | Yes |
| Invoice hash | No | Yes |
| Digital signature (cryptographic stamp) | No | Yes |
| The invoicing device's public key | No | Yes |
| ZATCA's signature on the device certificate | No | On 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 invoice | Simplified tax invoice | |
|---|---|---|
| Source of the code | The copy cleared by the Fatoora platform | The business's system at issue |
| When it is printed on the invoice | After the platform clears it | At issue, before it is reported |
How do you verify a QR code?
- Scan the code with a phone camera or a QR reader, and an encoded text appears.
- Open the text with a tool that decodes e-invoice QR codes to show its data.
- Match the seller's name, VAT number, total and VAT with what is printed on the invoice.
- 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.

