Fetch Customer by Email

This endpoint allows you to fetch details of a customer using their primary email address.

Endpoint: POST {baseurl}/v1/api/customer/email

Body Parameter

Parameter Type Required Description
email string Yes The primary email address of the customer.

Sample Request

curl -X POST "{baseurl}/v1/api/customer/email" \
-H "Content-Type: application/json" \
-H "x-api-key: {API-KEY}" \
-d '{
    "email": "[email protected]"
}'

Sample Response

{
    "id": "12345",
    "primaryEmail": "[email protected]",
    "businessName": "Denrox PLC.",
    "secondaryEmails": [
        "[email protected]"
    ],
    "primaryPhoneNumber": "+1234567890",
    "type": "individual",
    "secondaryPhoneNumbers": [
        "+1234567890"
    ],
    "firstName": "John",
    "lastName": "Doe",
    "middleName": "developer",
    "country": "USA",
    "state": "Delaware",
    "dateOfBirth": "2025-01-01"
}