Skip to main content

Customers

Customers

POST {BASE_URL}/open/op/loans/customers/

This endpoint requires you to have a fund with Lipalater that you want to access loan data about. The response contains information about a loan fund customers and should be paginated. The default page size is 25 and you can retreive a maximum of 100 customers per request.

Curl Request

curl -i -X POST 'POST {BASE_URL}/open/op/loans/customers/' \
-H 'Authorization: Bearer <access_token>' \
-H 'Content-Type: application/json' \
-H 'Noncestr: <none>' \
-H 'Sign: <sign>' \
-H 'Timestamp: <timestamp>' \
-d '{"fundId": 123, "pageNumber": 1, "pageSize": 10}'

JSON Request Object

{
"fundId": <your_fund_id>,
"pageNumber": 1,
"pageSize": 10
}

JSON Response

{
"pageNo": 2,
"pageSize": 20,
"totalRow": 36,
"totalPage": 2,
"list": [
{
"loanId": 123,
"customerNo": "110010000000163",
"idNumber": "21231209",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "1234",
"email": "jd@gmail.com"
},
{
"loanId": 123,
"customerNo": "110010000000164",
"idNumber": "2151209",
"firstName": "Foo",
"lastName": "Bar",
"phoneNumber": "1234",
"email": "thursdays@gmail.com"
},
---- // more rows
]
}

On Error

{
"code": 500,
"msg": "Data does not exist",
"data": null,
"success": false
}