How-to 6 min read

How to Cancel an E-Invoice: The 24-Hour Rule

Cancelling an IRN within 24 hours, why an active e-way bill blocks it, why the invoice number cannot be reused, and what to do once the window has closed.

Written and reviewed by the GSTIN API team Last reviewed

Cancelling an e-invoice means cancelling its IRN on the Invoice Registration Portal, and the portal allows it for only 24 hours. Inside that window it takes a minute; outside it, it cannot be done at all. This guide covers how to cancel an e-invoice on the portal and through the API, the e-way bill that often blocks it, the invoice number you lose when you do it, and what to do once the 24 hours are gone.

The cancellation rules in one table

RuleDetail
Time limit24 hours from IRN generation
ScopeWhole IRN only; no partial cancellation or amendment
WhereOn the IRP that generated the IRN, on screen or by API
ReasonRequired: duplicate, data entry mistake, order cancelled, or other; with remarks
Blocked byAn active e-way bill generated against the IRN
Invoice numberCannot be used again for a new IRN
E-invoice (IRN) cancellation rules.

Cancelling on the e-invoice portal

  1. Log in to the IRP that generated the IRN — for most businesses the NIC portal. See e-invoice portal login.
  2. Open e-Invoice → Cancel.
  3. Enter the IRN, or search by the acknowledgement number or document details.
  4. Check the invoice shown is the right one.
  5. Select the reason and type short remarks.
  6. Submit. The IRN status changes to cancelled, and the cancellation date is recorded.

Cancelling through the API or your software

Billing and ERP systems that generate IRNs through the API cancel them the same way: a cancel request with the IRN, a reason code and remarks. On the NIC API the reason codes are 1 duplicate, 2 data entry mistake, 3 order cancelled and 4 others. The response confirms the IRN and the cancellation date. To check the status of an IRN later — including whether a cancellation went through — use the get-IRN call, or see tracking IRN status and cancellation and, for many invoices at once, checking e-invoice status in bulk.

Cancel the e-way bill first

If an e-way bill was generated using the IRN, the IRP will not cancel the IRN while that e-way bill is active. Cancel the e-way bill first — it has its own 24-hour window and cannot be cancelled once verified in transit — and then cancel the IRN. The steps are in how to cancel an e-way bill. If the goods have already moved, cancelling is usually the wrong fix anyway; the invoice reflects a real supply, and any correction belongs in a credit or debit note.

Why the invoice number cannot be reused

The IRN is a hash of the supplier's GSTIN, the financial year, the document type and the document number. Send the same four values again and you get the same IRN, which the IRP rejects as a duplicate — even though the first one was cancelled. The practical rules:

  • issue the corrected invoice under a new number in the series;
  • keep the cancelled number in the register, marked cancelled, rather than leaving a gap;
  • make sure your billing software does not "reuse" the number after cancelling the voucher.

Numbering rules are covered in our GST invoice format guide.

After 24 hours: credit note, not cancellation

Once the window closes, the IRN stands. If the invoice was wrong — wrong value, wrong rate, goods returned — issue a credit note for the excess, and report the credit note as an e-invoice so that it gets its own IRN. If the invoice was raised to the wrong buyer entirely, a credit note for the full value to that buyer, and a fresh invoice to the right one, achieves the same result. The mechanics and time limits are in debit and credit notes.

What cancellation does to GSTR-1

E-invoice details flow from the IRP into the supplier's GSTR-1 automatically. A cancelled IRN is removed from that auto-populated data, so the invoice does not appear as a supply. Check the auto-populated tables before filing — the status of each document is shown — and make sure that the replacement invoice, not the cancelled one, is what is reported. The GSTR-1 guide covers the review.

Frequently asked questions

An IRN can be cancelled on the Invoice Registration Portal within 24 hours of its generation. After 24 hours the IRP will not accept a cancellation, and the correction has to be made through a credit note, which is itself reported as an e-invoice.
No. Cancellation is all or nothing: the whole IRN is cancelled. To reduce the value of an invoice, or remove some lines, either cancel the IRN within 24 hours and issue a fresh invoice under a new number, or issue a credit note for the difference.
The most common reasons are that more than 24 hours have passed since the IRN was generated, that an active e-way bill exists against the IRN (cancel the e-way bill first), that the IRN has already been cancelled, or that you are trying to cancel on a different IRP from the one that generated it.
No. The IRN is derived from the supplier's GSTIN, the financial year, the document type and the document number, so a second request with the same document number produces the same IRN and is rejected as a duplicate even after cancellation. The replacement invoice needs a new number, and the cancelled number should be recorded as cancelled in the series.
TallyPrime can send the cancellation to the IRP from within the software, within the 24-hour window, when e-invoicing is set up with online access. You choose the cancellation for the voucher, select a reason and add remarks, and the cancellation status is updated on the voucher. If the software cannot reach the IRP, the cancellation can be done on the e-invoice portal directly, after which the voucher should be marked cancelled in the books.

A note on accuracy. GST rules change often. This article reflects our understanding as of 30 September 2026 and is general information, not tax or legal advice. For the authoritative position, check gst.gov.in and cbic-gst.gov.in, or speak to a qualified tax professional about your specific situation.

Check a GSTIN right now, free

Five lookups a day, no account required. Status, filing history, e-invoicing and jurisdiction.

Free GST search tool

Build it into your product

One REST call, JSON back. Get an API key and 20 free verification credits in under a minute.

Start free