Skip to main content

Clients — List & Detail

Query client records with search and filtering, and retrieve full client profiles with associated accounts.


List Clients​

GET/apidev/v1/clients
PermissionAPICLI_CLIENTS_READ
Rate Limit10 req/min
Cache60s

Query Parameters​

ParameterTypeRequiredDefaultDescription
statusstringNo—Filter by status. Max length 10.
searchstringNo—Free text search. Max length 120.
limitintegerNo25Number of records per page (1–100). A value outside that range returns 400 VALIDATION_ERROR — it is not clamped silently.
offsetintegerNo0Number of records to skip for pagination.

Response Fields​

FieldTypeDescription
idstringClient identifier.
namestring | nullClient name.
business_namestring | nullLegal business name.
emailstring | nullEmail address.
phonestring | nullPhone number.
image_urlstring | nullImage URL.
statusstring | nullClient status.
documentstring | nullDocument number.
tax_idstring | nullTax identification number.
external_codestring | nullExternal system code.
associated_accountsnumber | nullCount of linked accounts.

Code Examples​

curl -s -H "Authorization: Bearer $TOKEN" \
-H "X-API-Key: $APIKEY" \
-H "tenant: $TENANT" \
"https://$TENANT/apidev/v1/clients?status=A&search=regional&limit=10"

Example Response​

{
"success": true,
"data": [
{
"id": "982710394857200005",
"name": "Regional Distributors",
"business_name": "Regional Distributors S.A.",
"email": "info@regionaldist.com",
"phone": "+59821009876",
"image_url": null,
"status": "A",
"document": null,
"tax_id": "219900005018",
"external_code": null,
"associated_accounts": 12
}
],
"meta": {
"total": 23,
"limit": 10,
"offset": 0
}
}

Client Detail​

GET/apidev/v1/clients/{id}
PermissionAPICLI_CLIENTS_READ
Rate Limit10 req/min
Cache30s

Path Parameters​

ParameterTypeRequiredDescription
idstringYesClient unique identifier.

Additional Response Fields​

Returns all fields from the List endpoint, plus:

FieldTypeDescription
mobilestring | nullMobile phone.
notesstring | nullFree-text notes.
document_typenumber | nullDocument type identifier.
addressobjectNested: street, door_number, apartment, corner, zip_code, latitude, longitude. latitude / longitude are raw decimal strings (or null) — never JSON numbers, so no precision is lost.
country_idstring | nullCountry ID.
department_idstring | nullDepartment ID.
accountsarrayAssociated account objects with id, name, external_code, status.

Code Examples​

curl -s -H "Authorization: Bearer $TOKEN" \
-H "X-API-Key: $APIKEY" \
-H "tenant: $TENANT" \
"https://$TENANT/apidev/v1/clients/982710394857200005"

Example Response​

{
"success": true,
"data": {
"id": "982710394857200005",
"name": "Regional Distributors",
"business_name": "Regional Distributors S.A.",
"email": "info@regionaldist.com",
"phone": "+59821009876",
"mobile": "+59899876543",
"image_url": null,
"status": "A",
"document": null,
"tax_id": "219900005018",
"external_code": null,
"notes": null,
"document_type": null,
"address": {
"street": "Bvar. Artigas",
"door_number": "567",
"apartment": null,
"corner": "21 de Setiembre",
"zip_code": null,
"latitude": "-34.9103",
"longitude": "-56.1708"
},
"country_id": "1",
"department_id": "10",
"associated_accounts": 3,
"accounts": [
{
"id": "982710394857201664",
"name": "Acme Corp",
"external_code": "EXT-001",
"status": "A"
},
{
"id": "982710394857201665",
"name": "Beta Industries",
"external_code": null,
"status": "A"
},
{
"id": "982710394857201666",
"name": "Gamma Solutions",
"external_code": "EXT-003",
"status": "I"
}
]
},
"meta": {}
}

Errors​

CodeHTTPDescription
VALIDATION_ERROR400Invalid parameters.
UNAUTHORIZED401Missing, invalid, or expired tenant / Authorization / X-API-Key
FORBIDDEN403User lacks required permission.
NOT_FOUND404Resource not found (detail endpoint).
RATE_LIMITED429Exceeded 10 req/min.
INTERNAL_ERROR500Unexpected server error.