Docs
  • Home
  • Introduction
  • Loans
    • New loan application
    • Activate/De-Activate Auto approval
    • Loan Information
    • Active loans
    • Repayment Schedule Calculation
    • Create payment entries
    • Spool repayments due
    • Repayment Activation
      • Remita
    • Auto Disburse
  • Configuration Helpers
  • Create Person
  • Persons
  • Search Customer
  • Loan Types
  • Branches
  • Salesperson
  • Employer & Industry
    • Industries
  • Web-hook Integration
    • Industries
  • Loan Reasons
  • Guides
    • Test and go live
Powered by GitBook
On this page

Was this helpful?

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": "jamesford@yahoo.com",
                "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": "ola2abiombola@gmail.com",
                "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": "jamesford@yahoo.com",
                "bvn": null,
                "personCode": null,
                "createdAt": "2020-06-24T07:22:14.4629853",
                "hasActiveLoan": false
            },
    },
    "status": true,
    "message": "success"
}


PreviousPersonsNextLoan Types

Last updated 3 years ago

Was this helpful?