---
page_title: Cancel a mandate ( Via Direct NPCI )
product: lotuspay
platform: web
page_source: https://docs.juspay.io/lotuspay/web/core-resources/cancel-a-mandate--via-direct-npci
openapi: https://docs.juspay.io/api/swagger?document=https%3A%2F%2Fdocs.juspay.io%2Flotuspay%2Fweb%2Fcore-resources%2Fcancel-a-mandate--via-direct-npci
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 Direct NPCI )



In this flow, user has to authorize the mandate cancellation. Users will be redirected to NPCI page where they can complete the cancellation process with any of the authentication methods such as PAN, AADHAR, or a Debit Card.This process is on real time and the status of cancellation from NPCI is immediately reflected.Kindly use List all NACH Banks and Retrieve NACH Bank API to check which destination banks support mandate management api's and corresponding auth mode.

These will be Patch Requests and can be initiated using either UMRN or mandate id_token.Note : **Default expiry of the generated auth link will be 7 days from the date of creation.** 


### **Validations for cancel request to be done at LotusPay end:** 



* The mandate should be in active state, then only this request can be initiated.
* There should not be any pending Amend/Pause/Resume request on the same mandate.
* The mandate should have a date of response.
* The mandate cancel status should be cancel_nil.
* Merchant accounts should have enabled the cancel mandate feature.
* Cannot cancel a mandate within 2 business days of mandate response date## Endpoints:
- Sandbox: https://api-test.lotuspay.com/api/mandates/cancel?umrn=<UMRN>

- Production: https://api.lotuspay.com/api/mandates/cancel?umrn=<UMRN>

## Request Type: 
PATCH

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value:  c2tfdGVzdF82MXFIUURuYTgzMWNOTm9vb29uRzFlQWlEOg==
- Tags: required
## Sample Code Snippets:
### Code Snippets:

#### Request Using Mandate ID Code Snippet:

```request using mandate id
curl --location --request PATCH 'https://api-test.lotuspay.com/api/mandates/cancel?mandate_id=MD0086WWA8U5CH' \
--header 'Authorization: Basic c2tfdGVzdF82MXFIUURuYTgzMWNOTm9vb29uRzFlQWlEOg==' 
```

#### Request Using UMRN Code Snippet:

```request using umrn
curl --location --request PATCH 'https://api-test.lotuspay.com/api/mandates/cancel?umrn=YESB7031056884553839' \
--header 'Authorization: Basic c2tfdGVzdF82MXFIUURuYTgzMWNOTm9vb29uRzFlQWlEOg=='
```

### Sample Request and Response:

#### Response:
```json
{
    "status": "Request received",
    "message": "Ask customer to authorize it on given authorization link",
    "auth_link": "https://test.lotuspay.com/v2/mandates/cancel/auth?request_id=TUQwMDg2V0VBOFU1Q0g="
} 
```

## API Responses:
