Client List

GET Client List

Get the onboard client list under different groups.

URL : /api/v1/clients-list/

Method : GET

Auth required : YES

Parameters

ParameterTypeDescription
page_nointegerThe page number of the results to return. Default is 1
page_limitintegerThe maximum number of results to return per page. Default is 10
client_emailstringThe name of the client group to filter the results by. (Optional)
request_statusstringThe status of the client request. Possible values: pending, declined, completed, accepted, requested. (Optional )
client_typestringThe type of the client. Possible values: individual, company. (Optional)
group_namestringThe name of the client group to filter the results by. (Optional)

Response

The response will contain a JSON object with the following fields:

FieldTypeDescription
page_numberintThe current page number.
total_countintThe total number of results available.
page_limitintThe maximum number of results returned per page.
total_pagesintThe total number of pages.
resultsarrayAn array of objects representing the search results.

Each object in the results array will have the following fields:

FieldTypeDescription
reference_idstringThe unique reference ID of client.
emailstringThe email address of the client.
client_namestringThe name of the client.
client_typestringThe type of the client.
group_namestringThe name of the group that the client was onboarded into.
group_tokenstringThe unique group token.
request statusstringThe status of the client request.
client_statusstringThe active status of the client.
created_atstringClient creation time.

Here's an example response:

Code : 200 OK

👾

**Success Response.

Content examples

Request

/api/v1/clients-list/?page=2&page_limit=10

Response

{
    "status_code": 200,
    "message": "Success",
    "data": {
        "page_number": 1,
        "total_count": 2,
        "page_limit": 10,
        "total_pages": 1,
        "results": [
          
            {
                "reference_id": "1687353539134-2556",
                "email": "crannematriddo-4028@yopmail.com",
                "client_name": "David Lahm",
                "client_type": "individual",
                "group_name": "Test",
                "group_token": "9ea8a3ed-ad4d-4e54-888e-fdc4daa03d8c",
                "request_status": "Completed",
                "client_status": "active",
                "created_at": "2023-06-21T13:18:59.136559Z"
            },
            
            {
                "reference_id": "1681718341078-1408",
                "email": "inditest@gmail.com",
                "client_name": "Ariel Herring",
                "client_type": "individual",
                "group_name": "Test 1",
                "group_token": "08c05d67-b5ed-455c-9134-1d6dc24392d4",
                "request_status": "Completed",
                "client_status": "active",
                "created_at": "2023-04-17T07:59:01.079570Z"
            }
        ]
    }
}