Integrate e-invoice cancellation into your business applications using the RPACPC Cancel IRN API. Submit the Invoice Reference Number (IRN), cancellation reason code, and cancellation remarks to receive a structured response containing the IRN and cancellation date.
The Cancel IRN API enables applications to submit a cancellation request for an existing e-invoice using its IRN and the required cancellation details.
The request includes the invoice reference number, a cancellation reason code, and remarks. In the supplied successful response, the API returns the IRN and CancelDate, along with the overall response status and request-tracking information.
The API can be integrated into invoice-management systems, ERP platforms, accounting applications, and automated business workflows that support e-invoice cancellation.
The API response may include the following information, depending on the response received:
Identifies the e-invoice submitted for cancellation.
Provides the cancellation reason code and remarks supplied in the request.
Returns the IRN and cancellation date when available in the API response.
Indicates the API outcome and provides response information.
Provides identifiers and timestamps for tracking the API transaction.
Obtain the IRN associated with the e-invoice that needs to be cancelled.
Provide the IRN, cancellation reason code (CnlRsn), and cancellation remarks (CnlRem).
Include the required token, secretKey, gstin, and sandbox headers.
Send a POST request to the Cancel IRN API endpoint.
Check the response status and retrieve the IRN and cancellation date when available.
Update internal invoice records according to the cancellation result and business workflow.
| Parameter | Type | Description |
|---|---|---|
| Irn | String | Invoice Reference Number associated with the cancellation request. |
| CnlRsn | String | Cancellation reason code. |
| CnlRem | String | Cancellation remarks supplied with the request. |
{
"Irn": "<IRN>",
"CnlRsn": "1",
"CnlRem": "<CANCELLATION_REMARKS>"
}
| Parameter | Type | Description |
|---|---|---|
| status | String | API response status. |
| status_code | String | Status code returned by the API. |
| message | String | Response message. |
| billable | String | Billing indicator returned by the API. |
| error | Object/Null | Error information, or null in the successful response. |
| data.Irn | String | IRN associated with the cancellation response. |
| data.CancelDate | String | Cancellation date and time returned by the API. |
| request_id | String | Request identifier. |
| sequence_id | String | Sequence identifier. |
| request_time | String | Request timestamp. |
| response_time | String | Response timestamp. |
{
"status": "SUCCESS",
"status_code": "200",
"message": "Data fetch successfully",
"billable": "Y",
"error": null,
"data": {
"Irn": "",
"CancelDate": "2025-04-16 20:00:00"
},
"request_id": "",
"sequence_id": "",
"request_time": "2025-04-16T20:00:23.294Z",
"response_time": "2025-04-16T20:00:23.499Z"
}
The sample demonstrates the successful response structure supplied for this API. Applications should also handle unsuccessful responses and validation errors according to the full API specification.
Integrate cancellation requests into invoice-management systems that track e-invoice records and their processing history.
Connect e-invoice cancellation workflows with ERP and accounting applications.
Submit cancellation requests from supported business processes without requiring users to manually construct each API request.
Use the returned IRN and cancellation date to associate the API response with the relevant internal invoice record.
Retain request identifiers and cancellation response details for internal tracking and reconciliation.
Common questions about the Cancel IRN API — what it returns, how fast it is, and how to integrate.
Learn how a Vehicle Verification API for Loan Processing helps lenders verify vehicle details, reduce risks, and speed up loan approvals.
Read More
Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.