Cancel IRN

The Invoice Registration Number can only be canceled within 24 hours of generating it.

Overview

API to cancel the e-invoice by passing the irn number.

🚧

Stipulated Time

IRN can be canceled only within 24 hours of its generation. However, it cannot be canceled if a Valid or Active E-Way Bill exists for the same.

Endpoint

HTTP MethodResource
POST

API Endpoint  Contact Us  Free Trial

Request

Follow the below guidelines to cancel a given IRN.

Path Parameter

ParamTypeDescriptionExample
gstinstring15-character alphanumeric unique identifier assigned to business entities registering under the GST regime24AAACJ3770E2ZV

Body

ParamTypeDescriptionExample
IrnstringInvoice Reference Numbera5c12dca80e743321740b001fd70953e8738d109865d28ba4013750f2046f229
CnlRsnstringCancel Reason
1- Duplicate,
2 - Data entry mistake,
3- Order Cancelled,
4 - Others
1
CnlRemstringCancel RemarksWrong entry

Sample CURL Request

curl --request POST \
     --url'https://api.sandbox.co.in//24AAACJ3770E2ZV' \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'x-api-version: 1.0' \
     --data '
{
     "Irn": "a5c12dca80e743321740b001fd70953e8738d109865d28ba4013750f2046f229",
     "CnlRsn": "1 ",
     "CnlRem": "Wrong entry"
}
'

❗️

Test Environment Not Available

Response

ParamTypeDescriptionExample
IrnstringIRN that is canceleda5c12dca80e743321740b001fd70953e8738d109865d28ba4013750f2046f229
CancelDatestringDate of cancellation of the IRN2019-12-05 14:26:00

Response Caching

Response caching is not available for this API. Learn more about our response caching mechanism here

Wallet Charges

Since Cancel IRN API is a Paid API, a wallet charge will take place.

Versioning

This API is currently in major version 1.0. Refer to our versioning policies here