Skip to main content

哥斯达黎加 — 交通违法

哥斯达黎加交通违法查询读取一块车牌的 COSEVI 罚单。plate 必填,且为 3 到 6 个字符。校验失败返回 HTTP 409,代码是 409:invalid_params,不是 MissingParameter。没有罚单的车牌为 404 NotFound。

调用返回的内容​

  • plate 与 totalRecords
  • 含状态和金额的 infractions[]

使用场景​

  • 登记车辆前查看罚单。
  • 拒绝不是 3 到 6 个字符的车牌。
  • 读取每张罚单的总额。

API 参考​

Endpoint​

GET https://api.verifik.co/v2/cr/traffic-infractions

命中含 plate、totalRecords,以及带系列、号码、日期、状态、机关和金额的 infractions。

Headers​

名称值说明
Content-Typeapplication/json请求格式
Acceptapplication/json响应格式
AuthorizationBearer <token>客户端 JWT

Parameters​

名称类型必填示例说明
platestring是123456车牌,3 到 6 个字符,不要空格。缺失或长度不对时返回代码 409:invalid_params。

Request​

import axios from "axios";

const options = {
method: "GET",
url: "https://api.verifik.co/v2/cr/traffic-infractions",
params: {
plate: "123456",
},
headers: {
Accept: "application/json",
Authorization: "Bearer <your_token>",
},
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error.response ? error.response.data : error.message);
}

Response​

{
"data": {
"plate": "123456",
"totalRecords": "1",
"infractions": [
{
"series": "1996",
"number": "12052",
"plate": "123456",
"status": "CANCELADA",
"totalAmount": "2000.00"
}
]
},
"signature": {
"dateTime": "November 27, 2026 12:00 PM",
"message": "Certified by Verifik.co"
}
}

说明​

  • plate 必须是 3 到 6 个字符。
  • 无效车牌返回代码 409:invalid_params。
  • 该车牌没有罚单时为 404 NotFound。
  • 在 Authorization 头中发送 Bearer JWT。
  • JSON 示例只说明字段形状。实际调用返回你所发送数值对应的记录。
  • 不要发送绕过缓存的标志。本页只记录客户端参数。

沙盒​

场景参数结果
数据源有记录plate: "123456"含违法记录的 200。
缺少必填值Omit plate代码为 409:invalid_params 的 409。
未知的值plate: "ABC"COSEVI 没有罚单时为 404 NotFound。

401 when the bearer token is missing or rejected.