Skip to main content

获取 Smart Batch 行报告

为 SmartBatch 的单行(rowIndex)组装结构化行报告模型。该接口会在该行已存储的步骤输出上运行 Verifik 的内置报告编排器(colombia_vehicle),并在传入 score 或 scoreProfile 时可选地附加 verificationScore。

如果批次的 BatchConfiguration 未匹配任何内置编排器,此接口将返回 409 Conflict(no_report_composer_for_configuration)。对于任意自定义报告模板,请改用 POST /v2/smart-reports/run、GET /v2/smart-reports/{id}/html 或 /generate。读取此接口不消耗积分。

接口​

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

此接口也可通过 Smart-Agent 代理 https://ai.verifik.co/v2/smart-batches/{id}/rows/{rowIndex}/report 访问,需使用你自己的客户专属 Authorization: Bearer <VERIFIK_JWT>。共享 x402 执行会被拒绝并返回 403 Forbidden。

请求头​

名称值描述
Content-Typeapplication/json请求载荷格式。
AuthorizationBearer <VERIFIK_JWT>客户作用域的 JWT(authUser.clientId)。

路径参数​

名称类型必填描述
idstring是SmartBatch ObjectId。
rowIndexnumber是该行在批次内从 0 开始的索引。

查询参数​

名称类型必填描述
scoreboolean 或 string否传入 true 或 "1" 以计算并在响应中包含 verificationScore。
scoreProfilestring否评分配置方案标识符。提供 scoreProfile 也会同时启用 score。

请求示例​

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();

响应示例​

{
"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
}
}
}

注意事项​

  • 此接口仅提供内置的组合行报告(colombia_vehicle)。其他任何配置都会返回 409 Conflict(no_report_composer_for_configuration)。
  • 对于跨任意配置的自定义模板、主题化 HTML 渲染或 PDF 档案,请使用 POST /v2/smart-reports/run、GET /v2/smart-reports/{id}/html 或 /generate(请参阅运行 Smart Report)。
  • 除非提供 score=true、score=1 或 scoreProfile,否则响应中将省略 verificationScore。

相关文档​