GET All Clients
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
GET
{{subdomain}}/api2
Last modified:2025-04-20 12:10:30
Maintainer:Not configured
limit
: Number of records per page (1-1000)page
: Page number for paginationsearch
: Optional search term to filter results (name, email, phone, etc.)client_type
: Optional filter by client type (1: individual, 2: business)sort
: Optional field to sort by (id, name, created, etc.)direction
: Optional sort direction (asc or desc){
"result": "success",
"code": 200,
"data": [
{
"Client": {
"id": 15,
"type": 2,
"business_name": "ACME Corp",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone1": "555-1234",
"address1": "123 Main St",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country_code": "US",
"created": "2023-01-15 10:30:22",
"modified": "2023-03-10 14:25:18"
// Additional client fields...
}
},
// Additional clients...
],
"pagination": {
"page": 1,
"page_count": 4,
"total_results": 78,
"prev": null,
"next": "/api2/clients.json?page=2"
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{subdomain}}/api2/api2/clients.json?limit=20&page=1&search=&client_type=&sort=id&direction=desc'
Response Response Example
{
"result": "success",
"code": 200,
"data": [
{
"Client": {
"id": 15,
"type": 2,
"business_name": "ACME Corp",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone1": "555-1234",
"address1": "123 Main St",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country_code": "US",
"created": "2023-01-15 10:30:22",
"modified": "2023-03-10 14:25:18",
"balance": 250,
"active": 1
}
},
{
"Client": {
"id": 16,
"type": 2,
"business_name": "Global Industries Ltd.",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane.smith@globalindustries.com",
"phone1": "555-5678",
"address1": "456 Corporate Blvd",
"city": "Chicago",
"state": "IL",
"postal_code": "60601",
"country_code": "US",
"created": "2023-01-20 09:15:45",
"modified": "2023-03-15 11:20:36",
"balance": 1200,
"active": 1
}
}
],
"pagination": {
"page": 1,
"page_count": 4,
"total_results": 78,
"prev": null,
"next": "/api2/clients.json?page=2"
}
}
Request
Query Params
limit
stringÂ
required
Example:
20
page
stringÂ
required
Example:
1
search
stringÂ
required
client_type
stringÂ
required
sort
stringÂ
required
Example:
id
direction
stringÂ
required
Example:
desc