Filter Customer
This endpoint allows you to filter customers based on various query parameters.
Endpoint: GET {baseurl}/v1/api/customer/id/filter
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
email |
string |
No | The primary email address of the customer. |
gender |
string |
No | The gender of the customer. Available values: male , female . |
type |
string |
No | The type of customer. Available values: individual , business . |
dateOfBirth |
string |
No | The date of birth of the customer in YYYY-MM-DD format. |
firstName |
string |
No | The first name of the customer. |
lastName |
string |
No | The last name of the customer. |
middleName |
string |
No | The middle name of the customer. |
phoneNumber |
string |
No | The phone number of the customer. Must include country code. |
businessName |
string |
No | The name of the business associated with the customer. |
Sample Request
curl -X GET "{baseurl}/v1/api/customer/id/[email protected]&gender=male&type=individual&dateOfBirth=2025-01-01&firstName=John&lastName=Doe&middleName=Devon&phoneNumber=+2349018450842&businessName=Happy%20Place%20LTD" \
-H "x-api-key: {API-KEY}"
Sample Response
[
{
"id": "67890",
"primaryEmail": "[email protected]",
"businessName": "Happy Place LTD",
"secondaryEmails": [],
"primaryPhoneNumber": "+2349018450842",
"type": "individual",
"secondaryPhoneNumbers": [],
"firstName": "John",
"lastName": "Doe",
"middleName": "Devon",
"country": "Nigeria",
"state": "Lagos",
"dateOfBirth": "2025-01-01",
"gender": "male"
}
]