Skip to main content

Accounts — List & Detail

Query customer accounts with filtering, and retrieve full account profiles with products and dynamic fields.


List Accounts​

GET/apidev/v1/accounts
PermissionAPICLI_ACCOUNTS_READ
Rate Limit10 req/min
Cache60s

Query Parameters​

ParameterTypeRequiredDefaultDescription
statusstringNo—Filter by status. Max length 10.
searchstringNo—Free text search. Max length 120.
client_idstringNo—Filter by client ID. Max length 30.
provider_idstringNo—Filter by provider ID. Max length 30.
country_idstringNo—Filter by country ID. Max length 30.
department_idstringNo—Filter by department ID. Max length 30.
city_idstringNo—Filter by city ID. Max length 30.
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
idstringAccount identifier.
external_codestring | nullExternal system code.
namestring | nullAccount name.
business_namestring | nullLegal business name.
tax_idstring | nullTax identification number.
documentstring | nullDocument number.
phonestring | nullPhone number.
mobilestring | nullMobile phone.
emailstring | nullEmail address.
image_urlstring | nullImage URL.
statusstring | nullAccount status.
service_time_minnumber | nullDefault on-site service time for this account, in minutes (used by the planner).
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.
notesstring | nullFree-text notes.
start_datestring | nullStart date, YYYY-MM-DD.
end_datestring | nullEnd date, YYYY-MM-DD.
birth_datestring | nullBirth date, YYYY-MM-DD. Accounts with no date on file return null (legacy 0001-01-01 placeholders are normalized).
client_namestring | nullAssociated client name.
country_namestring | nullCountry name.
department_namestring | nullDepartment name.
city_namestring | nullCity name.

Code Examples​

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

Example Response​

{
"success": true,
"data": [
{
"id": "982710394857201664",
"external_code": "EXT-001",
"name": "Acme Corp",
"business_name": "Acme Corporation S.A.",
"tax_id": "214100001019",
"document": null,
"phone": "+59821234567",
"mobile": "+59899123456",
"email": "contact@acme.com",
"image_url": null,
"status": "A",
"service_time_min": 15,
"address": {
"street": "Av. Rivera",
"door_number": "1234",
"apartment": "Of. 301",
"corner": "Soca",
"zip_code": "11300",
"latitude": "-34.9011",
"longitude": "-56.1645"
},
"notes": "Premium customer",
"start_date": "2024-01-15",
"end_date": null,
"birth_date": null,
"client_name": "Regional Distributors",
"country_name": "Uruguay",
"department_name": "Montevideo",
"city_name": "Montevideo"
}
],
"meta": {
"total": 87,
"limit": 10,
"offset": 0
}
}

Account Detail​

GET/apidev/v1/accounts/{id}
PermissionAPICLI_ACCOUNTS_READ
Rate Limit10 req/min
Cache30s

Path Parameters​

ParameterTypeRequiredDescription
idstringYesAccount unique identifier.

Additional Response Fields​

Returns all fields from the List endpoint, plus:

FieldTypeDescription
client_idstring | nullAssociated client ID.
country_idstring | nullCountry ID.
department_idstring | nullDepartment ID.
city_idstring | nullCity ID.
productsarrayProducts associated with the account.
dynamic_fieldsarrayCustom dynamic fields configured for the tenant.

Code Examples​

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

Example Response​

{
"success": true,
"data": {
"id": "982710394857201664",
"external_code": "EXT-001",
"name": "Acme Corp",
"business_name": "Acme Corporation S.A.",
"tax_id": "214100001019",
"document": null,
"phone": "+59821234567",
"mobile": "+59899123456",
"email": "contact@acme.com",
"image_url": null,
"status": "A",
"service_time_min": 15,
"address": {
"street": "Av. Rivera",
"door_number": "1234",
"apartment": "Of. 301",
"corner": "Soca",
"zip_code": "11300",
"latitude": "-34.9011",
"longitude": "-56.1645"
},
"notes": "Premium customer",
"start_date": "2024-01-15",
"end_date": null,
"birth_date": null,
"client_id": "982710394857200005",
"client_name": "Regional Distributors",
"country_id": "1",
"country_name": "Uruguay",
"department_id": "10",
"department_name": "Montevideo",
"city_id": "100",
"city_name": "Montevideo",
"products": [
{
"id": "982710394857201700",
"provider_id": "982710394857200030",
"provider_name": "National Insurance Co.",
"product_type_id": "8",
"product_type_name": "Vehicle Insurance",
"coverage_id": "12",
"coverage_name": "Full Coverage",
"start_date": "2025-01-01",
"end_date": "2026-12-31",
"status": "A"
}
],
"dynamic_fields": [
{
"field_id": "10",
"name": "Customer Tier",
"type": "lista",
"order": 1,
"value": "Premium"
},
{
"field_id": "11",
"name": "Contract Signed",
"type": "boolean",
"order": 2,
"value": true
}
]
},
"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.