QR Code Rejected When Tag 1 (Company Name) Exceeds 127 Characters

Hello,

I am currently working on generating compliant QR codes for Saudi Arabian e-invoices as per ZATCA specifications.

During our tests, we observed that when the value of Tag 1 (the company name) in the TLV-encoded data exceeds 127 characters, the QR code is rejected, with the error “Invalid QR code format, Please follow the ZATCA QR code specifications”. The error message simply states that the QR code format is invalid, even though the TLV structure is well-formed and Base64 encoding is correctly applied.

We have confirmed that the same invoice passes validation when we shorten the company name so that the length of Tag 1’s value is 127 characters or less.

Could you please confirm whether there is a hard limit of 127 characters for the company name (Tag 1) in the QR code, and if so, whether this is officially documented?

If this is an undocumented limitation, would ZATCA consider updating the documentation or supporting longer names?

Thank you in advance for your assistance.

@loug overall limit of QR Code is 1000 characters (increased from 500 characters specified in documentation). There is no character limit on each individual tag of QR Code.