Skip to content

Magento - Get Customers

This module allows querying customers from your Magento 2 store with filters by email, name, group, and dates.

FieldTypeRequiredDescription
credentials_idstringYesCredentials ID
customer_idstringNoSpecific customer ID
emailstringNoFilter by exact email
firstnamestringNoSearch by first name
lastnamestringNoSearch by last name
group_idnumberNoCustomer group ID
website_idnumberNoWebsite ID
created_at_fromstringNoRegistered since
created_at_tostringNoRegistered until
sort_fieldstringNoSort field
sort_directionstringNoASC or DESC
page_sizenumberNoCustomers per page
current_pagenumberNoCurrent page
FieldDescription
store_urlMagento store base URL (e.g.: https://mystore.com)
access_tokenIntegration access token with customer read permissions
IDName
0NOT LOGGED IN
1General
2Wholesale
3Retailer
{
"success": true,
"customers": [
{
"id": 123,
"email": "cliente@ejemplo.com",
"firstname": "Juan",
"lastname": "Garcia",
"group_id": 1,
"website_id": 1,
"created_at": "2024-01-15 10:30:00",
"addresses": []
}
],
"total": 500,
"page_size": 20,
"current_page": 1,
"message": "20 customers retrieved"
}
{
"credentials_id": "magento_tienda",
"email": "cliente@ejemplo.com"
}
{
"credentials_id": "magento_tienda",
"group_id": 2,
"page_size": 100
}
{
"credentials_id": "magento_tienda",
"created_at_from": "2024-01-01 00:00:00",
"created_at_to": "2024-01-31 23:59:59"
}
  • Email search is exact
  • Addresses are included in the response
  • Customer groups are customizable in Magento
  • MagentoCreateCustomer - Create new customers
  • MagentoUpdateCustomer - Update existing customers
  • MagentoGetOrders - Get customer orders