EInvoicing
  • Introduction
  • Environments
  • Authentication
    • Access Tokens
    • API KEY
  • Generate IRN
  • Cancel IRN
  • Generate E-Way Bill by IRN
  • Generate IRN in Bulk
  • Get IRN Details In Bulk
  • Get IRN Details By IRN
  • Get IRN Details By Doc Details
  • Get e-Waybill Details by IRN
  • Get Gstin Details
  • Sync GSTIN Details from CP
Powered by GitBook
On this page
  • Request Method
  • Request Path
  • Request Headers
  • Request Body
  • Response Body

Cancel IRN

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

PreviousGenerate IRNNextGenerate E-Way Bill by IRN

Last updated 1 year ago

Request Method

POST

Request Path

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

Request Headers

Parameter
Value
Description

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 .

Sample Request

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

Response Body

200 (OK)

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
  }
}

The response description for the API can be found .

here
here