Search Customers by keyword (email, first name, or last name) for the merchant
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X GET "https://api.leapa.co/v2/customers/search?keyword=<keyword>&pageFilter=<pageFilter>" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"page": 0,
"size": 0,
"total_elements": 0,
"total_pages": 0,
"data": [
{
"id": "obj_5f21c8a40b",
"object": "string",
"email": "jeanne@example.com",
"address": {
"object": null,
"city": null,
"type": null,
"status": null,
"state": null,
"zip": null,
"line1": null,
"line2": null
},
"status": "active",
"first_name": "Jeanne",
"last_name": "Ndayishimiye",
"birth_date": "2026-01-31",
"phone_number": "+25779123456",
"merchant_name": "Jeanne Ndayishimiye",
"merchant_id": "mer_1b47d0e9ca",
"sources": [],
"destinations": [],
"live": false,
"reference_id": "ref_9f2a17c4"
}
]
}Query parameters
Appended to the URL after a `?`.
keywordstringrequiredpageFilterPageFilterrequired
Response
pageinteger<int32>Current page number.
sizeinteger<int32>Number of element in a page.
total_elementsinteger<int64>Total Elements.
total_pagesinteger<int64>The total Pages.
dataarray of CustomerResponseList of customers
idstringCustomer Unique ID
objectstringCustomer - Object Returned
emailstringCustomer email
addressAddressResponseobjectstringObject name
citystringCity
typestringThe type of address. Can be Business location address or Bank Address
Allowed values:personalbusinessstatusstringAddress status - invalid, line1_fail, line1_pass, line1_zip_pass, unchecked, verified, zip_fail, zip_pass
Allowed values:invalidline1_passline1_name_passline1_zip_passname_passname_zip_passuncheckedverifiedand 1 morestatestringState
zipstringZip
line1stringLine 1
line2stringLine 2
statusstringCustomer Status
Allowed values:activedeactivatedeletedfirst_namestringCustomer firstname
last_namestringCustomer lastname
birth_datestringCustomer birthdate
phone_numberstringCustomer phone number
merchant_namestringMerchant name associated to this Customer
merchant_idstringMerchant ID associated to this Customer
sourcesarray of AccountCustomerSourceReferenceResponseList of all Account Reference source of the customer
fingerprintstringUnique identifier of the card. Two accountId with the same fingerprint is the same card
currencystringCurrency Code.
Allowed values:BIFUSDKESXAFtypestringAccount Type
Allowed values:bankbalancecardfeesmobilewalletcashipsaccount_idstringAccount Id of the customer
defaultbooleanFlag indicating whether it is a default card or not.
destinationsarray of AccountCustomerDestinationReferenceResponseList of all Account Reference destination of the customer
currencystringCurrency Code.
Allowed values:BIFUSDKESXAFtypestringAccount Type
Allowed values:bankbalancecardfeesmobilewalletcashipsaccount_idstringAccount Id of the customer
default_destinationboolean
livebooleanWhether the object exist in live or test mode.
reference_idstringReference Id
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error