Cuentas
Listar cuentas
GET /api/v1/crm/accounts
Parámetros:
| Nombre | Tipo | Descripción |
|---|---|---|
cursor | string | Cursor de paginación |
limit | int | Items por página (default 25, máx 100) |
filter[owner_id] | string | UUID del propietario |
filter[industry] | string | Filtrar por industria |
filter[tag] | string | Filtrar por tag |
search | string | Búsqueda por nombre |
sort | string | -created_at, name, -updated_at |
Respuesta 200:
{
"data": [
{
"id": "uuid",
"owner_id": "uuid",
"name": "Acme Corp",
"industry": "Tecnología",
"website": "https://acme.com",
"phone": "+51 999 000 111",
"tax_id": "20123456789",
"tags": ["enterprise"],
"metadata": {},
"created_at": "2026-04-08T12:00:00Z",
"updated_at": "2026-04-08T12:00:00Z"
}
],
"meta": { "pagination": { "cursor": "eyJ...", "has_next": true, "limit": 25 } }
}
Crear cuenta
POST /api/v1/crm/accounts
{
"name": "Acme Corp",
"industry": "Tecnología",
"website": "https://acme.com",
"phone": "+51 999 000 111",
"tax_id": "20123456789",
"tags": ["enterprise"],
"metadata": {}
}
Respuesta 201: objeto Account completo.
Obtener cuenta
GET /api/v1/crm/accounts/:id
Actualizar cuenta
PATCH /api/v1/crm/accounts/:id
Mismos campos que crear. Omite los campos que no quieras cambiar.
Eliminar cuenta
DELETE /api/v1/crm/accounts/:id
Respuesta 204 No Content