---
page_source: https://juspay.io/in/docs/ec-api/docs/mandates/resume-mandate
page_title: Resume Mandate
---

## API Version: default


# Resume Mandate API



The API can be used to resume the paused mandates

> **Note**
> Resume operation can be done only on Paused mandates.

## Endpoints:
- Sandbox: https://payments.sandbox.juspay.in/mandates/{mandate_id}

- Production: https://payments.juspay.in/mandates/{mandate_id}

## Request Type: 
POST

## Authorization:

#### Basic Auth:
Consists of two parts.

* Username: API Key obtained from Juspay dashboard
* Password: Empty string

Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
- Tags: Base64 Encoded Username:Password, Mandatory
## Headers:

#### x-merchantid:
The username that a merchant holds at Juspay.
- Tags: string, Required

#### Content-Type:
application/x-www-form-urlencoded
- Tags: string

#### x-routing-id:
We recommend passing the customer_id as the x-routing-id. If the customer is checking out as a guest, you can pass an alternative ID that helps track the payment session lifecycle. For example, this could be an Order ID or Cart ID.

> **Warning**
> This ID is associated with the customer. It plays a key role in ensuring consistency and maintaining connections across different systems. If you fail to pass the same x-routing-id for the same customer in all related API calls, it could lead to issues with API functionality. Therefore, it’s crucial that you use the same x-routing-id for all requests tied to the same customer.


- Value: customer_1122
- Tags: String, Required
## Sample Code Snippets:
### Sample Request:

#### Request Code Snippet:

```request
curl --location --request POST 'http://api.juspay.in/mandates/7KKT3yu3LcQjskY5F4moS5M' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic QjU3Qxxxxxxxxyuegj2ehkQ0MTg4N0NEMDU6' \
--header 'x-routing-id: customer_1122'\
--data-urlencode 'command=resume' \
--data-urlencode 'resume_date=1696032000'
```

### Sample Response:

#### Response:
```json
{
  "start_date": "1659312000",
  "rule_type": "ON",
  "revokable_by_customer": true,
  "response_message": "Mandate is Resumed.",
  "pause_end_date": "2022-09-30T00:00:00Z",
  "max_amount": 100,
  "mandate_type": "EMANDATE",
  "mandate_token": "42040d2b1d8e41k4jd9q40de80988357e",
  "mandate_status": "ACTIVE",
  "mandate_id": "gksEbj93j24Z5Cbw4MWUa",
  "last_activated_at": "2022-09-26T11:47:01Z",
  "frequency": "ASPRESENTED",
  "end_date": "1690848000",
  "block_fund": false,
  "amount_rule": "VARIABLE"
}
```

## Path Parameters:

#### mandate_id:
Merchant Id
- Value: Example:- 7KKT3yu3LcQjskY5F4moS5M
- Tags: String, Mandatory
## Body Parameters:
### Parameters:

#### command:
- Description: To be set as “resume”, to resume an existing paused mandate.
- Tags: string, Required

#### resume_date:
- Description: [Optional] Date in UNIX EPOCH timestamp (UTC timezone) format, when the mandate needs to be set active. Default value will be the current date.
- Tags: string
## API Responses:
### 200:

#### start_date:
- Description: Mandate start date in UNIX EPOCH timestamp (UTC timezone) format.
- Tags: string

#### rule_type:
- Description: Mandate execution rule typei.e. ON | BEFORE | AFTER
- Tags: string

#### revokable_by_customer:
- Description: States if mandate is revokable by the customer.
- Tags: boolean

#### response_message:
- Description: Represents the action performed. Ex: "Mandate is Resumed".
- Tags: string

#### pause_end_date:
- Description: Mandate pause end date in UNIX EPOCH timestamp (UTC timezone) format.
- Tags: string

#### max_amount:
- Description: Max amount of mandate set while creating a mandate.
- Tags: integer

#### mandate_type:
- Description: Mandate type: MANDATE (Cards) or EMANDATE (others)
- Tags: string

#### mandate_token:
- Description: Unique Token provided by Juspay after mandate creation.
- Tags: string

#### mandate_status:
- Description: Status of the mandate. Will be **ACTIVE**  only if the previous state was **PAUSED** .
- Tags: string

#### mandate_id:
- Description: Unique Identifier for the mandate generated and sent by Juspay after mandate creation. Mandate ID can be obtained from the **List Mandate API**  response.
- Tags: string

#### last_activated_at:
- Description: The time at which mandate last moved to ACTIVE state.
- Tags: string

#### frequency:
- Description: Frequency of mandate set. By default ASPRESENTED
- Tags: string

#### end_date:
- Description: Mandate end date in UNIX EPOCH timestamp (UTC timezone) format when a mandate will move to **EXPIRED**  state.
- Tags: string

#### block_fund:
- Description: True/False based on the value passed during mandate creation
- Tags: boolean

#### amount_rule:
- Description: VARIABLE or FIXED
- Tags: string
### 400:

#### status:
- Description: Invalid Request
- Tags: string

#### error_message:
- Description: Mandate Not in REVOKED State. Resume mandate not allowed
- Tags: string

#### error_code:
- Description: BAD_REQUEST
- Tags: string
