Skip to main content
QR-01ErrorZATCA Security Features Implementation Standardimplemented

Strict Base64 Payload Encoding

ZATCA QR payloads must decode cleanly using standard Base64 alphabet and valid padding without non-Base64 characters.

Scope
Encoding
Applicable Invoice Types
Standard (B2B), Simplified (B2C), Credit Note, Debit Note
Catalog Version
v1.0.0 (2026-11-23)

Typical Reason for Failure

URLs, plain JSON, or broken Base64 strings missing '=' padding are pasted into QR decoders.

Invalid Synthetic Example

Before (Fails)xml
https://example.com/invoice/123

Corrected Synthetic Example

After (Fixed)xml
AQZTYW1wbGUC estren...

Explanation of the Fix

Encode concatenated TLV bytes directly into Base64 ASCII.

Official Source Reference

ZATCA Electronic Invoice XML Implementation Standard (Phase 2)

Open official specification

Related Rules

Test your invoice against QR-01 now

Browser quick check; raw XML is never stored.

Open Validator