Cancel IRN

21522152

Overview

The API cancels e-invoice within a stipulated time using IRN

🚧

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 EndpointAPI Endpoint

Request

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

Once the values are added, Your curl will look something like this

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 Data Not Available

Instead, input valid credentials along with key_live to use the API.

Response

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