QR Code Encoded in Base64 Format

TopNotepad is a ZATCA qualified e invoicing solution


Create e-invoice as per ZATCA’s requirement by automatically adding QR code encoded in base64 format. TopNotepad is a ZATCA qualified e-invoicing solution for creating simplified tax invoices and standard tax invoices as per the new e-invoicing regulation.

For Electronic Tax Invoices, it is mandatory to generate and print

1. QR code encoded in Base64 format with up to 500 characters.
2. The QR code fields shall be encoded in Tag-Length-Value (TLV) format

The QR code must contain the following fields:

1. Seller’s name
2. VAT registration number of seller
3. Time stamp of invoice
4. Invoice total (with VAT)
5. VAT total

ZATCA requires qr code encoded in base64 format because the data stored in QR code would be transferred over media that are designed to deal with ASCII. This is to ensure that the data remain intact without modification during transport.

In phase-2 when invoices would be validated by integrating with ZATCA’s systems the data would be transferred over internet, by encoding the characters in base64 and fields to encoded in TLV the invoice data will be secured and cannot be tampered while it is transferred.

TopNotepad e-invoicing software automatically adds qr code encoded in base64 format to the invoice and makes it compliant to the e-invoicing rules.

When a base64 encoded QR code is scanned using a normal smart phone camera scanner it gives a long alpha numeric string which needs to be further decoded using a base64 decoder.

There are also a few apps specifically designed for scanning and validating compliance of QR code to the ZATCA guidelines. These apps can directly scan and decode the base64 QR code.