QR Code in E Invoice

TopNotepad is a ZATCA qualified e invoicing solution


As per ZATCA’s guidelines, for electronic invoices, it is mandatory to print QR code in e invoice encoded in base64 format with up to 500 characters that must contain the fields specified below:

1. The QR code fields shall be encoded in Tag-Length-Value (TLV) format with the tag values specified in the “Tag” column of the adjacent table.
2. The TLV encoding shall be as follows:
    a. Tag: the tag value as mentioned above stored in one byte [for tags 1 to 5]
    b. Length: the length of the byte array resulted from the UTF8 encoding of the field value. The length shall be stored in one byte.
    c. Value: the byte array resulting from the UTF8 encoding of the field value. [for tag 6]
    d. Length: length of hash (SHA256 ) is 32 bytes
    e. Value: the byte array constituting the value of the field

Please note Quick Response code popularly known as QR code is a type of matrix barcode, with a pattern of black and white squares that is machine readable by a QR code scanner or the camera of smart devices in order to enable basic validation of electronic invoices and electronic notes.

As part of phase 1, also known as the generation phase, below are the minimum fields that must be shown after scanning a QR code in a simplified tax invoice:

-Seller’s name
-VAT registration number of the seller
-Time stamp of the Electronic Invoice or Credit/Debit Note (date and time)
-VAT total
-Invoice total

TopNotepad is a ZATCA qualified solution provider with e-invoicing software solution to embed QR code in e invoice. The QR code generated and printed by our solution are in base64 format. You can create ZATCA compliant e invoices with QR code and comply with e invoicing (Fatoora).