Cancel e-Invoice
Cancel an e-Invoice by passing the invoice registration number (IRN).
NIC validations
View NIC validations
View NIC validations
- IRN can be cancelled within 24 hours of IRN generation.
- IRN cannot be cancelled, if the Valid/Active E-way Bill exists for the same.
- Cancellation can be done by active or suspended taxpayers.
- If e-commerce wants to Get the RCM Invoice details, in the headers the supplier GSTIN value should be the Recipient GSTIN.
Request body schema
View request body schema
Authorizations
E-invoice taxpayer access token returned by Authenticate.
Sandbox API key from your Sandbox account.
Headers
NIC server for the session used by this request. primary selects NIC1. secondary selects NIC2. Defaults to primary. See NIC1 and NIC2 routing.
primary, secondary "primary"
NIC server that receives the request. If omitted, the request goes to the server selected by x-source. When specified, selects the other server. See NIC1 and NIC2 routing.
primary, secondary "secondary"
API version
Path Parameters
Query Parameters
Supplier GSTIN when an e-commerce operator acts on behalf of the supplier. For reverse charge mechanism (RCM) invoices, this is the recipient GSTIN.
Body
Response
200 IRN cancelled / 9999 IRN is not active / 2270 More than 24 hrs old / 2230 IRN cannot be cancelled as EWB is active / 2143 IRN doesn't belong to user
- Successful e-Invoice cancellation response
- NIC e-Invoice business error
A successful NIC response or a NIC business-error response. Both variants use HTTP 200.