Skip to main content

Loan Search by value (From date, To date, Loan status,)

GET Loan Search by Value

This Loan Viewer api is used to search loans for values like Loan Status, From date, To date, and page number. However, the Page number is set by default to a minimum value of 1 and, Page Size is set by a maximum value of 100. 

image.png

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

Request:

Request Type: GET
Authorization: Bearer Token
Query Parameter:
Key Data Type Description Validations Default Value Required
pageNo Integer pageNo user wants to fetch N/A 1 N/A
pageSize Integer No of Entries to be displayed N/A 100 N/A
from_date Date Start date filter N/A - Optional
to_date Date Till date filter N/A - Optional
loan_status String Loan Status present in the Masters N/A - Optional


Response:

Key Data Type Description Required
response String Internal response status for the request Yes
data JSON Data reverted in response to the request Optional
error JSON Internal response error code  Optional

Status Code: 200 OK
{
   "response": true,
   "data": {
      "loan": [
         {
            "loan_id": 0,
            "loan_application_number": "string",
            "loan_creation_date": "dd/MM/yyyy",
            "loan_amount": 0,
            "loan_tenure": 0,
            "rate_of_interest": 0,
            "product": "string",
            "scheme": "string",
            "customer_name": "string",
            "phone_number": "string",
            "loan_status": "string",
            "disbursal_date": "dd/MM/yyyy",
            "maturity_date": "string",
            "global_customer_id": "string",
            "branch": "string",
            "disbursal_status": "string",
            "cancellation_date": "dd/MM/yyyy",
            "loan_closure_date": "dd/MM/yyyy"
         }
      ],
      "loan_linking_details": 0,
      "total_loan_count": 0
   },
   "error": null
}

Status Code: 400 BAD REQUEST

Condition: If no parameter is passed for the request the system will respond with the given status code


{ }