Update Mandate Rule API
Welcome to the documentation for the Update Mandate Rule API. This API helps you update a mandate rule.
Base URL
{baseURL}/v1/accounts/mandate-rules/:id | PUT
Authorization
Include the following Authorization header in your HTTP requests using a Bearer token:
Authorization: Bearer YOUR_ACCESS_TOKEN
Request Payload
Field | Type | Source | Required | Description |
---|---|---|---|---|
min_amount | number | body | ✅ Yes | Minimum amount |
max_amount | number | body | ✅ Yes | Mximum amount |
role_id | string | body | ✅ Yes | Role ID |
name | string | body | ✅ Yes | Mandate rule title |
minimum_no_of_authorization_required | string | body | ✅ Yes | Minimum number of authorization required |
Sample Request
curl -X PUT {baseURL}/v1/accounts/mandate-rules/:id \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"min_amount": 11,
"max_amount": 10000,
"role_id": "64f4b7b31dca9276ea1f786b",
"name": "mandate rule 4",
"minimum_no_of_authorization_required": "1"
}'
Sample 200 Response
{
"message": "Mandate rule updated successfully",
"data": [
{
"_id": "64e54a6e4548494e9fc1c6e9",
"min_amount": 0,
"max_amount": 100000,
"role_id": "5f7f1f8f1c9d440000f3d8e6",
"account_id": "64e54a6d4548494e9fc1c6e6",
"name": "mandate rule 1",
"createdAt": "2023-08-22T23:53:18.110Z",
"updatedAt": "2023-08-22T23:53:18.110Z",
"__v": 0,
"minimum_no_of_authorization_required": 1,
"mandate_id": "64e54a6e4548494e9fc1c6e9"
}
],
"success": true
}