How to generate an e-invoice (IRN): step-by-step guide for 2026

Who needs e-invoicing, the 30-day rule, and how an IRN and QR code are generated.

Updated · cloudsoftvim team

What an e-invoice is

An e-invoice is not a new kind of invoice — you still make the invoice in your own billing software. What changes is that the invoice data is registered with the government’s Invoice Registration Portal (IRP) before you give it to the buyer. The IRP validates it, gives it a unique Invoice Reference Number (IRN), digitally signs it and returns a QR code. The details then flow automatically into your GSTR-1 and, for goods, into Part A of the e-way bill.

Who must generate e-invoices

Every GST-registered business whose aggregate annual turnover — all GSTINs under the same PAN, across India — exceeded ₹5 crore in any financial year from 2017-18 onwards. Once you cross the limit you stay in, even if turnover drops later.

It covers these documents when they go to a registered business (B2B), and exports and supplies to SEZs:

  • Tax invoices
  • Credit notes and debit notes
  • Supplies under reverse charge, exports and deemed exports

Sales to consumers (B2C) don’t need an IRN. Some businesses are exempt altogether, including SEZ units, insurance companies, banks and other financial institutions including NBFCs, goods transport agencies, passenger transport services and cinema admission.

The 30-day reporting rule

If your aggregate turnover is ₹10 crore or more, you must report each invoice, credit note and debit note to the IRP within 30 days of the document date. The IRP refuses older documents from these businesses — and an invoice without a valid IRN is not a valid tax invoice, so your customer cannot claim input tax credit on it. Below ₹10 crore there is no 30-day cut-off yet, but generating the IRN before you send the invoice is still the rule.

How to generate an IRN, step by step

  1. Register on an IRP. Log in to the e-invoice portal (einvoice1.gst.gov.in, run by NIC) with your GSTIN — the same credentials as the e-way bill portal. Other authorised IRPs work the same way.
  2. Make the invoice in your billing software with everything the schema needs: your and the buyer’s GSTIN, the place of supply, document number and date, item description, HSN/SAC code (6 digits once turnover is above ₹5 crore), quantity, taxable value, tax rate and the CGST/SGST or IGST amounts.
  3. Prepare the e-invoice JSON in the government format (schema INV-01). Good GST billing software creates this file for you.
  4. Upload it to the IRP — through the portal’s bulk-generation tool, the offline utility, or directly by API through your GSP or software.
  5. The IRP validates and registers it. It checks the GSTINs, totals and duplicates, then returns the 64-character IRN, an acknowledgement number and date, and a digitally signed QR code.
  6. Print the QR code (and IRN) on the invoice and send it to your customer. The IRP passes the data to the GST system for your GSTR-1 and, if you added transport details, generates the e-way bill.

Cancelling or correcting an e-invoice

An IRN can’t be edited. You can cancel it in full within 24 hours on the IRP — after that, cancellation is no longer allowed, and you correct the sale with a credit note or debit note, which needs its own IRN. A cancelled invoice number can’t be reused for a new invoice.

Common IRP errors and fixes

ErrorWhat to check
Duplicate IRNAn IRN already exists for this document number and year. Use the existing IRN, or a new number if it was a genuinely different invoice.
Invalid buyer GSTINThe GSTIN must be active and correctly typed — the last character is a check digit. Verify it on the GST portal.
Invalid HSN codeUse a valid HSN/SAC from the GST list, with at least 6 digits if your turnover is above ₹5 crore.
Tax amounts don’t matchTaxable value × rate must equal the tax amount, and line totals must add up to the invoice total (small rounding is allowed).
Document date too oldFor turnover of ₹10 crore or more, the document is older than 30 days and can no longer be reported.

E-invoicing in VIM Books

VIM Books prepares the IRP-format JSON for each invoice and credit note with one click — GSTINs, place of supply, HSN codes and the CGST/SGST or IGST split already filled in. Upload it to the IRP (or through your GSP), then load the IRP’s response back into the invoice: the IRN, acknowledgement number and signed QR code print on the invoice automatically, and the e-way bill and GSTR-1 JSON come from the same data.

Rules as of October 2026. GST rules change often — confirm on the GST and e-invoice portals before acting.

Questions people ask

Is e-invoicing mandatory for me?

Yes if your aggregate annual turnover (all GSTINs on the same PAN) crossed ₹5 crore in any financial year from 2017-18 onwards. It stays mandatory even if turnover later falls below ₹5 crore.

How long do I have to report an e-invoice?

Businesses with aggregate turnover of ₹10 crore or more must report each invoice to the IRP within 30 days of the invoice date. The IRP rejects older invoices from these businesses.

Can I cancel an e-invoice?

Yes, but only in full and only within 24 hours of generating the IRN. After that, issue a credit note (which also needs its own IRN). An IRN cannot be edited.

Do I need e-invoices for sales to consumers (B2C)?

No. E-invoicing covers B2B invoices, credit and debit notes, exports and supplies to SEZs. Very large businesses must print a dynamic QR code on B2C invoices instead.

Your business, in one place, by Monday.

Free for 14 days. No card required. Every app included in the trial.