Search Customer
Search for customers on the application
SearchCustomer
GET https://<your_business_alias>.lenda.ng/ias/loan/searchcustomer/:parameter/:searchType
This endpoint returns a single customer if the number of record found is one(1) or a list of customers if the records found is more than one(1)
Path Parameters
Name
Type
Description
searchType
string
The infromation on the customer to seach by. Must be one ofUniqueId, Phone, Email, General
parameter
string
The search keyword
Headers
Name
Type
Description
Authentication*
string
The encoded combination of your public key and secret key (see the Test and go live section of the docs)
//Multiple customer records found for search paramter
{
"data": {
"recordsFound": 2,
"customers": [
{
"personId": 1,
"firstName": "James",
"middleName": null,
"lastName": "Ford",
"dateOfBirth": "1960-10-01",
"phoneNumber": "07539023609",
"emailAddress": "[email protected]",
"bvn": null,
"personCode": null,
"createdAt": "2020-06-24T07:22:14.4629853",
"hasActiveLoan": false
},
{
"personId": 181,
"firstName": "Ola",
"middleName": null,
"lastName": "Abimbola",
"dateOfBirth": "2021-04-01",
"phoneNumber": "080",
"emailAddress": "[email protected]",
"bvn": null,
"personCode": "CUS201101",
"createdAt": "2020-11-04T07:58:05.1703788",
"hasActiveLoan": false
}
],
"customer": null
},
"status": true,
"message": "success"
}
//Single customer record found
{
"data": {
"recordsFound": 1,
"customers": null
"customer": {
"personId": 1,
"firstName": "James",
"middleName": null,
"lastName": "Ford",
"dateOfBirth": "1960-10-01",
"phoneNumber": "07539023609",
"emailAddress": "[email protected]",
"bvn": null,
"personCode": null,
"createdAt": "2020-06-24T07:22:14.4629853",
"hasActiveLoan": false
},
},
"status": true,
"message": "success"
}
Last updated
Was this helpful?