Understanding the QR Code and Unique FBR Invoice Number (IRN) on Your Invoices

July 20, 2026 · by Shafqat

Introduction

Almost every explanation of FBR digital invoicing mentions “the QR code and invoice number” in the same breath, without explaining what each one actually is or why you need both. If you’re issuing invoices — or reviewing what your invoicing software is required to produce — it’s worth understanding these as two related but distinct elements, not one generic compliance stamp.

The Invoice Reference Number (IRN), Explained

The IRN is the official identifier FBR’s system generates for a specific invoice, in real time, the moment that invoice is successfully reported through your integration. It’s typically a string around 22 characters long — for example, something like 7000007DI1747119701593.

A few things worth understanding about it:

  • It’s generated by FBR, not by your software. Your POS or ERP can request one, but only FBR’s system actually issues it, as part of validating the invoice.
  • It’s tied to a real, live submission. An IRN only exists because that specific invoice was transmitted and accepted — there’s no way to generate a valid-looking one without the underlying submission actually happening.
  • It’s unique per invoice. No two properly issued invoices share the same IRN.

The QR Code, Explained

The QR code is a machine-readable representation built from that same invoice submission. It encodes selected invoice details — including the IRN itself and the invoice’s generation date/time — in a format that can be scanned and checked against FBR’s records.

Two details worth knowing:

  • Minimum size matters. FBR requires the QR code to be at least 7x7mm so it remains reliably scannable on a printed receipt.
  • It’s digitally signed. As part of validating the invoice, FBR attaches a digital signature, which is what allows the QR code (and the invoice behind it) to be verified as genuine rather than just visually similar to a real one.

Why You Need Both — Not Just One

This is the part that trips up a lot of businesses evaluating whether their invoicing setup is actually compliant: a QR code alone, or an invoice number alone, isn’t enough. A compliant invoice needs the FBR invoice number, the official FBR Digital Invoicing logo, and a valid QR code together — all tied back to the same real submission. A receipt with a QR-code-shaped image and no live FBR transmission behind it isn’t a shortcut; it simply doesn’t verify, because there’s nothing in FBR’s system for it to match against.

What Should Actually Appear on a Compliant Invoice

At minimum:

  • The unique FBR invoice number (IRN)
  • The official FBR Digital Invoicing logo
  • A verifiable QR code, at least 7x7mm
  • A printed statement directing customers to how they can verify the invoice (FBR requires specific verification instructions to appear on the receipt itself)

If any of these is missing — or present but not backed by a real submission — the invoice doesn’t meet the requirement, regardless of how complete it otherwise looks.

How This Plays Out at the Point of Sale

When a sale is completed, your POS or ERP sends the invoice details to FBR’s system. FBR validates the data and, within a second or two, returns the IRN and the corresponding QR code, which get printed directly on the receipt or invoice. From the customer’s side, this all happens invisibly — they just see a normal receipt with a QR code and reference number on it, generated in real time as part of completing the sale.

A Common Misunderstanding, Cleared Up

Neither the IRN nor the QR code is something you check by looking at it. Both only mean something when checked against FBR’s system — which is what invoice verification (via FBR’s portal or SMS service) actually does. Printing a QR code that looks correct doesn’t create compliance; only a genuine, validated FBR submission does.

Where FBR Digital Invoices Fits

Generating a correct IRN and compliant QR code on every invoice depends entirely on your integration actually submitting to FBR in real time — not on formatting a receipt to look right. FBR Digital Invoices handles this automatically: every invoice is validated with FBR in real time, with the IRN and QR code generated as part of that genuine submission, so what prints on the receipt is always backed by an actual, verifiable record.

FAQ

Can I generate my own QR code without going through FBR? No — a valid QR code only exists because FBR generated it as part of validating a real invoice submission. Anything else won’t verify.

Why is the QR code required to be a specific size? So it remains reliably scannable on a printed receipt — a QR code that’s too small can fail to scan even if it’s technically valid.

Does every invoice get a different IRN, or can they repeat? Each properly issued invoice gets its own unique IRN — no two should match.

What happens if my invoice is missing the FBR logo but has a QR code and IRN? It’s still non-compliant. All three elements — the invoice number, the logo, and the QR code — are required together.

Conclusion

The IRN and QR code aren’t two ways of saying the same thing — the IRN is the unique identifier FBR assigns to a genuine submission, and the QR code is the scannable, signed representation of that same record. Both only exist because an invoice was actually validated by FBR in real time, which is exactly why neither can be faked or added after the fact. FBR Digital Invoices generates both correctly on every invoice by making sure the real submission happens first.


Sources

Related articles

View all →
Need Help? Chat With Us
Book a Call