---
title: Update API
description: Modify the status or lifecycle of an active mandate.
---

Modify the status or lifecycle of an active mandate. Merchants can pause, resume, revoke (unsubscribe), or otherwise manage user subscriptions via API actions. Streamlines mandate management and enables automation for subscription-based services.

#### POST

```
https://payments.airpay.co.in/pay/v4/api/mandates/update.php
```

## Header

| Parameter | Type Value | Description | Value Like |
| --- | --- | --- | --- |
| Content-Type  required | String | The Content-Type header specifies the media type of the request or response body, allowing the receiver to correctly interpret the For XML data, use application/xml. | `For JSON: application/json,For XML: application/xml` |

## Request Body

| Parameter | Type Value | Description | Value Like |
| --- | --- | --- | --- |
| subscription_id  required | Numeric  <br>(1–10) | Unique identifier assigned to the subscription or mandate. |
| action  required | Alphanumeric | `revoke/unsubscribe/pause/resume` |

## Success 200

| Parameter | Type Value | Description | Value Like |
| --- | --- | --- | --- |
| subscription_id  required | String | Unique identifier assigned to the subscription or mandate. |
| status  required | String | Status code representing the transaction result. | `200 = Success, 211 = InProcess, 400 = Failed` |