Pause Mandate
The API can be used to Pause an Active Mandate
Only ACTIVE mandates can be paused.
Consists of two parts.
Username: API Key obtained from Juspay dashboard
Password: Empty string
Example:- Basic MUQ2QUxxxxxxxxxxxxU5QTIxQzNFNTQwNkFDMEZCOg==
Unique identifier for the merchant. This is the Merchant ID provided by Juspay. The value is case sensitive.
Passing this value will help us route efficiently at network level.
Example:- x-merchantid: testaccount
application/x-www-form-urlencoded
Mandate Id
Example:- 7KKTSsVLcQjskY5F4moS5M
To be set as "pause", to pause an existing active mandate.
Date in UNIX EPOCH timestamp (UTC timezone) format, when the mandate will be paused. Default value can be the current date.
Date in UNIX EPOCH timestamp (UTC timezone) format, when the mandate status will be automatically changed to ACTIVE. Default value can be set to mandate_end_date.
Mandate start date in UNIX EPOCH timestamp (UTC timezone) format.
Mandate execution rule type ie, ON | BEFORE | AFTER
States if mandate is revokable by the customer
Represents the action performed. Ex: Pause mandate is scheduled, Mandate is Paused.
Mandate pause start date in UNIX EPOCH timestamp (UTC timezone) format.
Mandate pause end date in UNIX EPOCH timestamp (UTC timezone) format.
Max amount of mandate set while creating a mandate
Mandate type: MANDATE(Cards) or EMANDATE (others)
Unique Token provided by Juspay after mandate creation.
Status of the mandate. Will be PAUSED only if the mandate is at ACTIVE state earlier.
Unique Identifier for the mandate. Mandate id can be obtained from the List Mandate API response
The time at which mandate moved to ACTIVE state.
Frequency of mandate set. By default ASPRESENTED
Mandate end date in UNIX EPOCH timestamp (UTC timezone) format.
True/False based on the value passed during mandate creation
VARIABLE or FIXED
error
access_denied
Invalid Authentication
Error Codes:
|
Scenario
|
Error Code
|
Description
|
Sample Response
|
|---|---|---|---|
Invalid Mandate ID
| 400
| Bad Request
| {"error_message":"Mandate not found","status":"invalid_request_error","error_code":"Mandate not found","error_info":{"user_message":"Cannot process your request as mandate not found.","developer_message":"Mandate not found for customer.","code":"RESOURCE_NOT_FOUND","category":"USER_ERROR"}}
|
Performing Pause on failure/inactive mandate
| 400
| Bad Request
| {"user_message":"Pause action not allowed.","message":"Mandate is in FAILURE state.","error_info":{"user_message":"Mandate is in FAILURE state.","developer_message":"Pause action not allowed.","code":"INVALID_INPUT"},"type":"INVALID_REQUEST_ERROR","code":"INVALID_REQUEST"}
|
Invalid API Key
| 401
| Unauthorized
| {"status":"error","error_code":"access_denied","error_info":{"user_message":"Unauthorized.","developer_message":"Invalid API Key. Please pass a valid and active api key.","code":"UNAUTHORIZED","category":"USER_ERROR"}}
|
Passing an invalid URL
| 404
| Not Found
| |
Not passing 'command' field
| 400
| Bad Request
| {"error_message":"Bad request.","status":"ERROR","error_code":"Bad request.","error_info":{"user_message":"Bad request.","fields":[{"field_name":"command","reason":"Field required but not passed."}],"developer_message":"Failed while parsing your request.","code":"MISSING_MANDATORY_PARAMETER","category":"USER_ERROR"}}
|
"Performing Pause on CREATED mandate/ pending transaction
| 400
| Bad Request
| {"user_message":"Pause action not allowed.","message":"Mandate is in CREATED state.","error_info":{"user_message":"Mandate is in CREATED state.","developer_message":"Pause action not allowed.","code":"INVALID_INPUT"},"type":"INVALID_REQUEST_ERROR","code":"INVALID_REQUEST"}
|
Passing Invalid 'command' value
| 400
| Bad Request
| {"error_message":"Invalid command","status":"Invalid Request","error_code":"bad_request","error_info":{"user_message":"Invalid command. Please check your request.","fields":[{"field_name":"command","reason":"Invalid value."}],"developer_message":"Invalid command. Please pass valid command in request.","code":"INVALID_INPUT","category":"USER_ERROR"}}
|
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

