> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/cleartax-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/cleartax-docs/e-invoicing-api/e-invoicing-api-reference/rcm-self-invoicing-purchase-documents-government-schema/cancel-irn.md).

# Cancel IRN

You can cancel an already generated IRN by sending a POST request to E-Invoicing API with the following request headers.

### **Request Method**

**Post**

### **Request URL**

```
{{HOST}}/einv/v1/govt/api/Cancel
```

### Request Headers <br>

<table><thead><tr><th>PARAMETER</th><th width="214">PARAMTER TYPE</th><th width="150">TYPE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>X-Cleartax-Auth-Token</td><td>Header</td><td>String</td><td>Mandatory. The auth token generated from ClearTax user id and password. <a href="https://docs.cleartax.in/cleartax-for-developers/e-invoicing-api/e-invoicing-api-reference/authentication-token">Know how.</a></td></tr><tr><td>Content-Type</td><td>Header</td><td>String</td><td>Mandatory. This will always be <br>"application/json" for JSON and "application/xml" for XML.</td></tr><tr><td>gstin</td><td>Header</td><td>String</td><td>Mandatory. GSTIN number for the user</td></tr><tr><td>invoiceType</td><td>Header</td><td>String</td><td>PURCHASE OR SALES</td></tr></tbody></table>

### Sample Request

```json
{
  "irn": "58f1669d31c5725ddcc39eeecd465e69543c639daeb1d582546aa3d28d66c3f8",
  "CnlRsn": "1",
  "CnlRem": "Duplicate Invoice"
}

```

### Sample Response

```json
{
  "Success": "Y",
  "Irn": "58f1669d31c5725ddcc39eeecd465e69543c639daeb1d582546aa3d28d66c3f8",
  "CancelDate": "2027-01-02 14:26:00"
}

```
