# Deactivate e-Mandate

***

<mark style="color:red;">v2</mark> <mark style="color:red;">`PATCH`</mark> `console.bayar.cash/api/v2/mandates/{mandate_id}/deactivate`\ <mark style="color:red;">v3</mark> <mark style="color:red;">`PATCH`</mark> `api.console.bayar.cash/v3/mandates/{mandate_id}/deactivate`

***

At any given time, you can request to update any `active` Direct Debit to `inactive`.

> Notes: This action will only exclude the Direct Debit from the deduction process and doesn't terminate the Direct Debit. Termination must be done by payer. This action also allowed only for the Direct Debit with status `active`.

Example of JSON structured response.

```json
{
  "id": "md_MGWpzp",
  "updated_at": "2024-07-21T15:07:09.000000Z",
  "mandate_reference_number": "E-20230408F00230289",
  "order_number": "1-680-631-498-908819",
  "application_reason": "Enrollment for 1-680-631-498-908819",
  "frequency_mode": "MT",
  "frequency_mode_label": "Monthly",
  "effective_date": "2023-04-05",
  "expiry_date": null,
  "currency": "MYR",
  "amount": 10,
  "payer_name": "MOHD ALI",
  "payer_id": "800810065921",
  "payer_id_type": "1",
  "payer_bank_account_number": "1602119463111",
  "payer_email": "m.ali@gmail.com",
  "payer_telephone_number": "0199991122",
  "status": 10,
  "status_description": "Inactive",
  "return_url": "http://website.net/donations/mandates/callback",
  "metadata": null,
  "portal": "Portal A",
  "merchant": {
    "name": "Merchant A",
    "email": "ska@gmail.com"
  }
}
```
