Account
Mandate Rule
Get Mandate Rule

Get Mandate Rule API

Welcome to the documentation for the Get Mandate Rule API. This API returns a single mandate rule created.

Base URL

{baseURL}/v1/accounts/mandate-rules/:id | GET

Authorization

Include the following Authorization header in your HTTP requests using a Bearer token:

Authorization: Bearer YOUR_ACCESS_TOKEN

Sample Request

curl -X GET {baseURL}/v1/accounts/mandate-rules/:id \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \

Sample 200 Response

{
  "message": "Mandate rule fetched 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
}