Cancel IRN

This API is used for cancelling an e-Invoice within stipulated time by passing the IRN.

Request Method

POST

Request Path

{{API_URL}}/api/v1/cancel-einvoice/

Request Headers

ParameterValueDescription

Authorization/api_key

api_key/auth token

Value and header type is mentioned in the Authentication Page

Request Body

The request body description for the API can be found here.

Sample Request

{
    "user_gstin": "XXXXXXXXXXXXXXX",
    "irn": "ac58d64d47b8816e444deb35c27477dea18d630a34e3c2f59a2aa0e86c70629a",
    "cancel_reason": "1",
    "cancel_remarks": "Wrong entry",
    "ewaybill_cancel": ""
}

Response Body

200 (OK)

The response description for the API can be found here.

Sample Response

{
  "results": {
    "message": {
      "Irn": "ac58d64d47b8816e444deb35c27477dea18d630a34e3c2f59a2aa0e86c70629e",
      "CancelDate": "2023-09-14 13:29:00"
    },
    "errorMessage": "",
    "InfoDtls": "",
    "status": "Success",
    "code": 200
  }
}

204 (Invalid Parameters)

{
  "results": {
    "message": "",
    "errorMessage": "2143: Invoice does not belongs to the user GSTIN",
    "InfoDtls": "",
    "status": "Failed",
    "code": 204
  }
}

Last updated