---
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/cancel-a-mandate-via-sponsor-bank
page_title: Cancel a mandate (Via Sponsor Bank)
---

## API Version: default


# **Cancel a mandate (via Sponser Bank)** 



Cancels an active mandate. Supply the unique LotusPay mandate identifier or the UMRN. The mandate's `status` should be `active`, and its `cancel_status` should be `cancel_nil`. To cancel an external mandate, first you must import it. Mandates can be cancelled with the mandate sponsor bank only.

In this flow, user cancels the mandate at the merchants end. Merchants calls cancel mandate API, and based on the cut off time the cancel mandate file is submitted to sponsor bank and would take about 2-3 days for mandate cancellation. All Destination banks are live on this flow.

**ARGUMENTS** 


| Argument | Description |
|---|---|
| id optional	 | The identifier of the mandate to be cancelled. Either id or umrn must be supplied. |
| umrn/{umrn} optional	 | The NACH Unique Mandate Reference Number of the mandate to be cancelled. Relative endpoint is: v1/mandates/umrn/{umrn}/cancel. Either id or umrn must be supplied. |


**Returns**  Returns a cancelled mandate if a valid identifier was provided. The`status` will remain `active` but the `cancel_status` will change to `cancel_requested`. If the mandate `status` is not `active`, or if the mandate's `status` is `active` but its `cancel_status` is `cancel_requested` or `cancel_submitted`, returns `invalid state` error.## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/mandates/{ID}/cancel

- Production: https://api.lotuspay.com/v1/mandates/{ID}/cancel

## Request Type: 
POST

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value:  sk_test_XjIHowXWSI23uvjepz2X82
## Sample Code Snippets:
### Sample Request and Response:

#### Request:
```Shell
{"success":false,"message":"No Data found for the given path"}
```

#### Response:
```json
{"success":false,"message":"No Data found for the given path"}
```

## API Responses:
