Fetch Customers

Search all customers on the application

Search for customers on the application

GET https://<your_business_alias>.lendastack.io/ias/loan/searchcustomer

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 information 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)

{
    "data": {
        "recordsFound": 1,
        "customer": {
            "personId": 1071,
            "firstName": "Segun",
            "lastName": "Ola",
            "dateOfBirth": "2005-02-10",
            "phoneNumber": "0800000000000",
            "emailAddress": "[email protected]",
            "personCode": "CUS0001071",
            "createdAt": "2023-03-24T11:42:12.0472929",
            "hasActiveLoan": false,
            "isBvnValidated": false
        }
    },
    "status": true,
    "message": "success"
}

Last updated

Was this helpful?