Skip to main content
Apragya AIFree quotation builderQuotation builderQuote builderno signup
Glossary

What Is E-Invoice IRN? Meaning, How It Is Generated and an Example

For accountants, billing teams and business owners under GST e-invoicing: understand the IRN, get it on every invoice that needs one, and handle errors calmly.

A billing executive placing a sealed invoice sheet on a carton of hand tools

What is e-invoice IRN? The IRN, or Invoice Reference Number, is a unique 64 character reference that the GST Invoice Registration Portal (IRP) gives to a B2B invoice when it is reported. An invoice that must be e-invoiced is not valid under GST without it.

The IRN comes back with a digitally signed QR code and an acknowledgement number and date. The details then flow to the GST system, which pre-fills parts of GSTR-1 and can create the e-way bill.

This page explains who needs an IRN, how it is generated, a worked example, and how Apragya produces it from the sales invoice.

E-invoice IRN meaning, rules and a worked example

The IRN is a hash generated from four details: the supplier's GSTIN, the document type, the document number and the financial year. Because it is built from these details, the same invoice number from the same GSTIN in the same year cannot be registered twice.

E-invoicing is mandatory for businesses whose aggregate turnover in any year since 2017-18 exceeds the notified threshold, currently INR 5 crore. It covers B2B invoices, credit and debit notes, and exports. Check the latest notification for exemptions and time limits.

A worked example: invoice TL/0425 is raised for INR 1,18,000, which is INR 1,00,000 plus 18% IGST. The invoice JSON is sent to the IRP, which validates it, returns a 64 character IRN, an acknowledgement number and date, and a signed QR code. An IRN can be cancelled within 24 hours, but not edited.

  1. Raise the invoice with GSTIN, HSN and place of supply.
  2. Send it to the IRP in the government schema.
  3. Receive the IRN, acknowledgement and signed QR code.
  4. Print the QR code on the invoice.
  5. Share the invoice and move goods with an e-way bill.

What goes wrong without a smooth IRN process

Invalid invoices

An invoice without an IRN, when one is required, is not a valid tax invoice.

Customer credit at risk

Your buyer may not be able to claim input tax credit on it.

Held dispatches

Goods wait at the gate while someone generates the IRN on the portal.

Retyping

Invoice details keyed twice, once in the books and once on the portal.

An example: a Ludhiana hand tools manufacturer

Take an illustrative manufacturer billing a Chennai hardware wholesaler for spanners and pliers. The business's turnover is above the e-invoicing threshold, so every B2B invoice needs an IRN.

What came back on the invoice

  1. Checked before the invoice was sent.

  2. Inter-state, so IGST applies.

  3. Every line carried its HSN code.

  4. Unique reference issued by the IRP.

  5. Acknowledgement number and date stored.

  6. Printed on the invoice copy sent to the buyer.

The IRN, acknowledgement and signed QR code were stored on the same sales invoice.

The invoice PDF carried the QR code, the truck left with an e-way bill, and the wholesaler's GSTR-2B later showed the invoice. When a line quantity was wrong on another invoice, the team cancelled the IRN within the allowed window and issued a fresh invoice.

A sealed invoice sheet strapped to a carton of spanners beside a toy truck
With the IRN and signed QR code on the invoice, the carton left with its e-way bill.

How e-invoice IRN generation works in Apragya

Step 1 of 5

Checks first

GSTIN, place of supply and HSN are checked on the invoice.

  1. Checks first: GSTIN, place of supply and HSN are checked on the invoice.
  2. Sent to the IRP: The NIC e-invoice connector sends the invoice for registration.
  3. IRN stored: IRN, acknowledgement number and date are saved on the invoice.
  4. QR on the invoice: The signed QR code is printed on the invoice copy.
  5. E-way bill next: An e-way bill can be generated for the dispatch.

IRN in GST: portal typing against system generation

Small volumes can be handled on the portal by hand. Once a business raises many invoices a day, copying each one invites typing errors, and an IRN issued on wrong details has to be cancelled and done again. Generating it from the invoice record removes the second typing.

Manual IRN, against Apragya

FeaturePortal by handApragya Finance
Invoice detailsTyped again on the portalSent from the sales invoice
ValidationErrors found after submissionGSTIN, HSN and place of supply checked first
QR codeDownloaded and attachedPrinted on the invoice
CancellationTracked separatelyRecorded on the invoice
GSTR-1Compared by handGSTR-1 prepared from the same invoices

Checked against public information on 16 September 2026.

Getting started with e-invoice IRN generation

  1. Confirm whether your turnover crosses the e-invoicing threshold.
  2. Register for e-invoicing API access and get credentials.
  3. Add the credentials to the NIC e-invoice connector and test it.
  4. Check GSTIN, HSN and address details on your masters.
  5. Raise a test invoice and confirm the IRN and QR code.

Clean masters do more for a smooth IRN process than anything else.

What sets Apragya apart for e-invoicing

One invoice record

Order, dispatch, IRN and payment on the same chain.

AI with human review

Agents can check invoices for unusual values before they go out.

GSTR-2B reconciliation

Match purchase invoices against what suppliers reported.

Multi-company

Each GSTIN and company keeps its own invoices.

Audit log

Who raised and who cancelled an invoice is recorded.

Access by role

Only authorised users can generate or cancel an IRN.

Read about e-invoicing, the IRN cancellation guide and what an e-way bill is.

What it costs to start

INR 7,999
Pro, a month
Up to 25 users, with Finance and Accounting and every enterprise app
5,000
AI Credits a month
Included on Pro
Free
Up to 3 users
CRM and HR, to try the platform first

Invoice reference number, answered

Is the IRN needed for B2C invoices?
E-invoicing applies to B2B supplies, exports and some other documents. B2C invoices of businesses above a higher turnover limit need a dynamic QR code instead. Check the current notification.
Can an IRN be edited?
No. A wrong invoice is cancelled within the allowed window and a fresh one is issued. After that window, corrections go through a credit or debit note.
How long can we wait before reporting an invoice?
Larger taxpayers face a time limit for reporting invoices to the IRP. Check the current limit for your turnover.
Can the same invoice get two IRNs?
No. The IRN is built from the supplier GSTIN, document number, type and financial year, so a duplicate is rejected.
What does it cost to start?
Finance and Accounting comes with the Pro plan, INR 7,999 a month for up to 25 users, which includes every enterprise app, 5,000 AI Credits a month, single sign-on and audit logs. The free plan covers up to 3 users with CRM, HR and Vendor Onboarding if you want to try the platform first.

Put the IRN on every invoice without retyping

Connect NIC e-invoicing, clean your masters and raise your next invoice from the order.