Skip to main content

Recuperar reporte de fila de Smart Batch

Compone el modelo estructurado de reporte de fila para una sola fila (rowIndex) de un SmartBatch. Este endpoint ejecuta el compositor de reportes integrado de Verifik (colombia_vehicle) sobre las salidas de pasos almacenadas de la fila y adjunta opcionalmente un verificationScore cuando se pasa score o scoreProfile.

Si la BatchConfiguration del lote no coincide con un compositor integrado, este endpoint devuelve 409 Conflict (no_report_composer_for_configuration). Para plantillas de reporte personalizadas arbitrarias, usa en su lugar POST /v2/smart-reports/run, GET /v2/smart-reports/{id}/html o /generate. Consultar este endpoint no consume créditos.

Endpoint​

GET https://api.verifik.co/v2/smart-batches/{id}/rows/{rowIndex}/report

Este endpoint también es accesible a través del proxy de Smart-Agent en https://ai.verifik.co/v2/smart-batches/{id}/rows/{rowIndex}/report usando tu propio encabezado Authorization: Bearer <VERIFIK_JWT> por cliente. La ejecución compartida x402 está bloqueada con 403 Forbidden.

Encabezados​

NombreValorDescripción
Content-Typeapplication/jsonFormato de carga útil de la solicitud.
AuthorizationBearer <VERIFIK_JWT>JWT delimitado al cliente (authUser.clientId).

Parámetros de ruta​

NombreTipoRequeridoDescripción
idstringSíObjectId de SmartBatch.
rowIndexnumberSíÍndice en base 0 de la fila dentro del lote.

Parámetros de consulta​

NombreTipoRequeridoDescripción
scoreboolean o stringNoPasa true o "1" para calcular e incluir verificationScore en la respuesta.
scoreProfilestringNoIdentificador del perfil de puntuación. Proporcionar scoreProfile también habilita score.

Solicitud​

import axios from "axios";

const run = async () => {
const batchId = "6801a2b3c4d5e6f7a8b9c0d3";
const rowIndex = 0;

const { data } = await axios.get(
`https://api.verifik.co/v2/smart-batches/${batchId}/rows/${rowIndex}/report`,
{
params: {
score: true,
scoreProfile: "fleet_standard",
},
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(data);
};

run();

Respuesta​

{
"data": {
"reportType": "colombia_vehicle",
"meta": {
"plate": "ABC123",
"documentType": "CC",
"documentNumber": "1032386359",
"vin": "9FB4SRAC2NM123456",
"batchName": "Colombia Fleet Inspection",
"rowIndex": 0,
"generatedAt": "2026-11-24T20:30:00.000Z"
},
"summary": {
"soatVigente": "VIGENTE",
"soatVencimiento": "2027-03-15",
"rtmVigente": "SI",
"rtmVencimiento": "2027-04-01",
"tieneGravamenes": "NO",
"blindado": "NO",
"pazSalvo": "SI",
"comparendoCount": 0,
"sinisterCount": 0
},
"blocks": {
"runt_vehicle_by_plate": {
"featureCode": "colombia_api_vehicle_complete_by_plate",
"title": "RUNT — Vehículo",
"status": "ok",
"sequence": 1,
"sections": [
{
"id": "identity",
"title": "Identificación",
"priority": "high"
}
],
"displayRows": [],
"tables": []
}
},
"blockOrder": [
"runt_vehicle_by_plate"
],
"verificationScore": {
"version": 1,
"profile": "fleet_standard",
"profileLabel": "Fleet Standard",
"score": 0.96,
"score100": 96,
"decision": "approve",
"band": "low_risk",
"coverage": 1,
"coveragePercent": 100
}
}
}

Notas​

  • Este endpoint solo sirve reportes de fila compuestos integrados (colombia_vehicle). Cualquier otra configuración devuelve 409 Conflict (no_report_composer_for_configuration).
  • Para plantillas personalizadas, renderizado HTML temático o expedientes PDF en cualquier configuración, usa POST /v2/smart-reports/run, GET /v2/smart-reports/{id}/html o /generate (consulta Ejecutar un Smart Report).
  • verificationScore se omite a menos que se proporcione score=true, score=1 o scoreProfile.

Relacionado​