List customers
Query Parameters
- Type: integerpagemin:-9007199254740991max:9007199254740991
Page number
- Type: integerlimitmin:-9007199254740991max:9007199254740991
Items per page
- Type: stringsearch
Free-text search
- Type: stringdate
From Pattern: ^(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4}$Filter from date (MM-DD-YYYY)
- Type: stringdate
To Pattern: ^(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4}$Filter to date (MM-DD-YYYY)
- Type: stringorder
By Field used for sorting
- enumorder
Direction Sort direction
values- asc
- desc
- Type: stringFormat: uuidid
Customer UUID
- Type: stringexternal
Id Partner-defined customer identifier
- enumtype
Customer type filter
values- B
U S I N E S S - P
E R S O N
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/customers
curl 'https://api-sandbox.tryslatehq.com/customers?page=1&limit=50&search=&dateFrom=01-30-2025&dateTo=01-30-2025&orderBy=createdAt&id=123e4567-e89b-12d3-a456-426614174000&externalId=cus_123' \
--header 'x-api-key: YOUR_SECRET_TOKEN'
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "cus_123",
"type": "BUSINESS",
"business": {
"legalName": "Acme Corp",
"dba": "Acme",
"type": "PARTNERSHIP",
"website": "https://acme.com",
"address": {
"address1": "123 Main St",
"address2": null,
"city": "San Francisco",
"postalCode": "94105",
"country": "US",
"state": "CA"
},
"contact": {
"fullName": "John Doe",
"email": "john@acme.com",
"phone": "+15551234567"
}
}
}
],
"page": 1,
"limit": 1,
"total": 1,
"totalPages": 1
}