---
page_title: Cancel a mandate (Via Sponsor Bank)
product: lotuspay
platform: web
page_source: https://docs.juspay.io/lotuspay/web/core-resources/cancel-a-mandate-via-sponsor-bank
openapi: https://docs.juspay.io/api/swagger?document=https%3A%2F%2Fdocs.juspay.io%2Flotuspay%2Fweb%2Fcore-resources%2Fcancel-a-mandate-via-sponsor-bank
llms_txt: https://docs.juspay.io/llms.txt
product_llms_txt: https://docs.juspay.io/lotuspay/llms.txt
---

## 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
$ curl https://api-test.lotuspay.com/v1/mandates/MD004433221AA/cancel \
   -u sk_test_XjIHowXWSI23uvjepz2X82: \
   -X POST \

```

#### Response:
```json
429: Too Many Requests
For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service).
```

## API Responses:
