API Documentation
  • 🏡Home
  • Overview
    • 💡What we do
    • ✨Our Features
  • General Guide
    • 🏷️Introduction
    • 📪Test and Go Live
    • 💁Configuration
      • Custormers
        • Create Customer
        • Fetch Loan Customers
        • Fetch Customers
      • Loan Types
        • Fetch Loan Types
        • Loan Reasons
      • Country
        • Get all countries
        • Get states by country Id
      • Branch
        • Create Branch
        • Branches
      • Sales Person
        • Create a Salesperson
        • Get Sales Persons
      • Team
        • Create a Team
        • Get Teams
      • Employers
      • Industries
      • Commission
  • Products Guide
    • 🏛️Loans
      • New Loan Application
      • Activate/De-Activate Auto approval
      • Loan Information
      • Active Loans
      • Repayment Schedule Calculation
      • Create payment entries
      • Spool Repayments Due
      • Repayment Activation File
      • Repayment Activation Information
      • Disburse
    • 🪝Webhooks
      • Webhooks Verification.
      • Verification Steps
Powered by GitBook
On this page

Was this helpful?

  1. General Guide
  2. Configuration
  3. Custormers

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": "Ola.segun2@email.com",
            "personCode": "CUS0001071",
            "createdAt": "2023-03-24T11:42:12.0472929",
            "hasActiveLoan": false,
            "isBvnValidated": false
        }
    },
    "status": true,
    "message": "success"
}
{
    "data": {
        "recordsFound": 6,
        "customers": [
            {
                "personId": 17,
                "firstName": "Ola",
                "lastName": "nce (Gifted Services Nigeria Limited",
                "dateOfBirth": "2021-11-11",
                "phoneNumber": "01234567894",
                "emailAddress": "luwaseunEnduranceGiftedServicesNigeriaLimited@email.co",
                "bvn": "0987654321",
                "personCode": "",
                "createdAt": "2021-06-10T04:08:28.1252323",
                "hasActiveLoan": true,
                "isBvnValidated": false
            },
            {
                "personId": 227,
                "firstName": "Ola",
                "middleName": "Ade",
                "lastName": "Ada",
                "dateOfBirth": "2021-07-01",
                "phoneNumber": "09090909090",
                "emailAddress": "pawomak790@godpeed.com",
                "createdAt": "2021-07-08T12:20:42.2933279",
                "hasActiveLoan": false,
                "isBvnValidated": false
            },
            {
                "personId": 251,
                "firstName": "Deji",
                "lastName": "Ola",
                "dateOfBirth": "2021-06-28",
                "phoneNumber": "09078499365",
                "emailAddress": "sdjh@jkjse.com",
                "personCode": "CUS210731",
                "createdAt": "2021-07-26T11:55:57.8315019",
                "hasActiveLoan": true,
                "isBvnValidated": false
            },
            {
                "personId": 756,
                "firstName": "Abiola",
                "middleName": "",
                "lastName": "Ola",
                "dateOfBirth": "",
                "phoneNumber": "808695",
                "emailAddress": "test.bulk@email.com",
                "bvn": "",
                "personCode": "",
                "createdAt": "2022-06-27T15:45:25.7679355",
                "hasActiveLoan": false,
                "isBvnValidated": false
            },
            {
                "personId": 1071,
                "firstName": "Segun",
                "lastName": "Ola",
                "dateOfBirth": "2005-02-10",
                "phoneNumber": "0800000000000",
                "emailAddress": "Ola.segun2@email.com",
                "personCode": "CUS0001071",
                "createdAt": "2023-03-24T11:42:12.0472929",
                "hasActiveLoan": false,
                "isBvnValidated": false
            },
            {
                "personId": 1072,
                "firstName": "Segun",
                "lastName": "Ola",
                "dateOfBirth": "2005-02-10",
                "phoneNumber": "09076787654",
                "emailAddress": "Ola.segun2@yopmail.com",
                "personCode": "CUS0001072",
                "createdAt": "2023-03-24T11:47:50.6949176",
                "hasActiveLoan": false,
                "isBvnValidated": false
            }
        ]
    },
    "status": true,
    "message": "success"
}
{
    "data": {
        "recordsFound": 0,
        "customers": []
    },
    "status": true,
    "message": "success"
}
PreviousFetch Loan CustomersNextLoan Types

Last updated 4 months ago

Was this helpful?

💁