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
statusstringNoFilter by status. Max length 10.
searchstringNoFree text search. Max length 120.
client_idstringNoFilter by client ID. Max length 30.
provider_idstringNoFilter by provider ID. Max length 30.
country_idstringNoFilter by country ID. Max length 30.
department_idstringNoFilter by department ID. Max length 30.
city_idstringNoFilter by city ID. Max length 30.
limitintegerNo25Number of records per page (1100).
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.
addressobjectNested: street, door_number, apartment, corner, zip_code, latitude, longitude.
notesstring | nullFree-text notes.
start_datestring | nullStart date.
end_datestring | nullEnd date.
birth_datestring | nullBirth date.
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",
"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",
"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
BAD_REQUEST400Missing required headers.
VALIDATION_ERROR400Invalid parameters.
UNAUTHORIZED401Invalid or expired JWT / API Key.
FORBIDDEN403User lacks required permission.
NOT_FOUND404Resource not found (detail endpoint).
RATE_LIMITED429Exceeded 10 req/min.
INTERNAL_ERROR500Unexpected server error.