What Is IRN in a GST E-Invoice?
The IRN is the invoice's fingerprint. Two businesses can have an invoice numbered 101 each, but only one invoice can ever be registered under a given IRN.
Quick Answer
The Invoice Reference Number (IRN) is a 64-character hash created by the Invoice Registration Portal from your GSTIN, the financial year, the document type and the invoice number. It uniquely identifies the invoice, helps prevent duplicates, and must appear on the invoice (with the QR code) for it to be valid.
How the IRN is generated
- Your software sends the invoice JSON to the IRP.
- The IRP forms a hash of four fields: supplier GSTIN, financial year, document type and document number.
- If an IRN for the same combination already exists, the portal rejects the request as a duplicate.
- If valid, the portal returns the IRN along with the signed invoice and a QR code.
Why the IRN matters
- Validity: a covered invoice without IRN is not a valid tax invoice.
- ITC: your customer's credit is protected by valid reporting.
- E-way bill: an IRN can be used to generate Part A of an e-way bill.
- Audit: the department can track documents end to end.
What you cannot do
- Edit an IRN or an invoice once registered; you can only cancel it within the permitted window and issue a new one.
- Reuse an invoice number for a different invoice in the same financial year and document type.
- Generate an IRN after the reporting time limit if you are in the 30-day regime.
Life cycle of an IRN
| Time | Event |
|---|---|
| T | Invoice data sent to the IRP |
| T + seconds | IRN and signed QR code returned |
| T + 24 hours | Last time to cancel the IRN |
| Month end | Appears in GSTR-1 as B2B |
The IRN is a fixed 64-character hash. If the same GSTIN, year, document type and number are sent again, the IRP returns the original IRN instead of creating a new one.
Customer view
The customer sees the invoice in GSTR-2B only after you file GSTR-1.
Example
Invoice INV/26/0045 of FY 2026-27 for supplier GSTIN 27ABCDE1234F1Z5 returns a fixed 64-character IRN. If you submit the same data again, the IRP answers that the IRN already exists.
Practical Checklist
- Use unique invoice numbers.
- Print the IRN on the invoice.
- Do not alter an invoice after the IRN.
- Cancel within the window if there is an error.
- Store IRN data in your system.
Frequently Asked Questions
How long is the IRN?
64 characters.
Can I generate the IRN myself?
No. Only the IRP can generate it.
Does a credit note have its own IRN?
Yes, each document has its own IRN.
Related GST Questions
- What Is the QR Code on a GST E-Invoice?
- How to Generate a GST E-Invoice?
- Does E-Invoice Automatically File GSTR-1?
- Can E-Invoice Details Be Edited in GSTR-1?


