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

No Duplicate TLV Tags

Official ZATCA tags (1–9) must each appear at most once inside a QR payload.

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

Typical Reason for Failure

Concatenating Phase 1 QR bytes with Phase 2 bytes duplicates tags 1–5.

Invalid Synthetic Example

Before (Fails)xml
Tags: [1, 2, 3, 4, 5, 1, 2]

Corrected Synthetic Example

After (Fixed)xml
Tags: [1, 2, 3, 4, 5, 6, 7, 8, 9]

Explanation of the Fix

Build a single ordered TLV stream containing each tag once.

Official Source Reference

ZATCA Electronic Invoice XML Implementation Standard (Phase 2)

Open official specification

Related Rules

Test your invoice against QR-04 now

Browser quick check; raw XML is never stored.

Open Validator