GET
/cotizaciones/{id}
🔒 Requiere clave de API
Incluye el documento completo en request_json. Requiere cotizaciones:leer.
Ejemplo
curl -X GET "https://fenix.kalkulusapp.com/api/cotizaciones/1" \
-H "X-API-KEY: TU_API_KEY"
const respuesta = await fetch("https://fenix.kalkulusapp.com/api/cotizaciones/1", {
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/cotizaciones/1",
headers={
"X-API-KEY": "TU_API_KEY"
},
)
print(respuesta.json())
<?php
$ch = curl_init("https://fenix.kalkulusapp.com/api/cotizaciones/1");
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 |
|---|---|---|
| idobligatorio en ruta |
entero | Id de la cotización |
Respuestas
200La cotización
Obtener una cotización
{
"id": 9,
"numero_cotizacion": "COT-0009",
"estado": "pendiente",
"receptor": "Distribuidora Ejemplo S.A.",
"cedula_receptor": "3101123456",
"total": "14690.00",
"moneda": "CRC",
"fecha_vencimiento": "2026-11-26",
"notas": "Válida por 15 días"
}
404No existe o es de otra empresa
401Unauthorized
403Ruta no disponible, o la API key no tiene el alcance (`alcance_faltante`)