Skip to main content

Fetch Loan Status

POST Loan Status

This loan viewer API is used to retrieve all the master data for the loan's status that are available for it.

image.png

URL: {{base_url}}/loan-management/v1/getMasterType

Request

Request Type: POST
Authorization: Bearer Token

Request Body
[
  {
    "type": "loan_status"
  }
]


Request:

Status Code : 200 OK
{
  "response": true,
  "data": [
    {
      "loan_status": {
        "values": [
          {
            "key": "inactive",
            "value": "Inactive"
          },
          {
            "key": "maturity_closure",
            "value": "Maturity Close"
          },
          {
            "key": "foreclosed",
            "value": "Foreclosed"
          },
          {
            "key": "active",
            "value": "Active"
          },
          {
            "key": "cancelled",
            "value": "Cancelled"
          },
          {
            "key": "closed",
            "value": "Closed"
          },
          {
            "key": "matured",
            "value": "Matured"
          }
        ],
        "parent": null
      }
    }
  ],
  "error": null
}

Status Code: 400 BAD REQUEST
{
    "response": false,
    "data": null,
    "error": {
        "code": 0,
        "text": "string",
        "detail": "string"
    }
}

Expected messages as per Status API :

Error Code Description
107001 An Exception occurred in saving data