GET
/clientes
🔒 Requiere clave de API
Sin paginate=true devuelve un array plano con todos los clientes de la empresa; con paginate=true devuelve un objeto paginado de Laravel ({data, total, per_page, current_page, ...}).
Ejemplo
curl -X GET "https://fenix.kalkulusapp.com/api/clientes" \
-H "X-API-KEY: TU_API_KEY"
const respuesta = await fetch("https://fenix.kalkulusapp.com/api/clientes", {
method: "GET",
headers: {
"X-API-KEY": "TU_API_KEY"
}
});
const datos = await respuesta.json();
import requests
respuesta = requests.request(
"GET",
"https://fenix.kalkulusapp.com/api/clientes",
headers={
"X-API-KEY": "TU_API_KEY"
},
)
print(respuesta.json())
<?php
$ch = curl_init("https://fenix.kalkulusapp.com/api/clientes");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"X-API-KEY: TU_API_KEY",
],
]);
$respuesta = json_decode(curl_exec($ch), true);
curl_close($ch);
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| search en consulta |
texto | Filtra por nombre, apellidos o cédula (LIKE). |
| paginate en consulta |
verdadero/falso | — |
| page en consulta |
entero | — |
| per_page en consulta |
entero | — |
Respuestas
200Lista de clientes13 campos
Cada elemento de la lista tiene estos campos
| Campo | Tipo |
|---|---|
| id | entero |
| tipo_identificacion | texto |
| cedula | texto |
| nombre | texto |
| apellidos | texto |
| texto | |
| email_cc | texto |
| telefono | texto |
| provincia | texto |
| canton | texto |
| distrito | texto |
| direccion | texto |
| empresa | entero |
Listar clientes
[
{
"id": 1,
"tipo_identificacion": "texto",
"cedula": "texto",
"nombre": "texto",
"apellidos": "texto",
"email": "texto",
"email_cc": "texto",
"telefono": "texto",
"provincia": "texto",
"canton": "texto",
"distrito": "texto",
"direccion": "texto",
"empresa": 1
}
]
401Unauthorized
403Ruta no disponible