秘鲁 — 车辆保险
Endpoint
https://api.verifik.co/v2/pe/vehiculo/soat
本服务可返回秘鲁车辆的保险状态信息。返回内容包括保险公司名称、保单起止日期、车辆牌号、保单号、用途类型、车辆类别及保单状态等。
请求头(Headers)
| 名称 | 取值 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
参数(Parameters)
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
plate | string | 是 | 待查询的车牌,不含空格或圆点。 |
请求(Request)
- JavaScript
- Python
- Swift
- PHP
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/pe/vehiculo/soat',
params: {plate: 'ABC123'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <your_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
payload = ''
headers = {}
conn.request("GET", "/v2/pe/vehiculo/soat?plate=", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/pe/vehiculo/soat?plate=")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/pe/vehiculo/soat?plate=');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
响应(Response)
- 200
- 404
- 409
{
"data": {
"plate": "ABC123",
"soat": {
"ConsultarSoatResult": {
"NombreCompania": "Interseguro",
"FechaInicio": "27/04/2022",
"FechaFin": "27/04/2023",
"Placa": "ABC123",
"NúmeroPoliza": "000000000000000000001",
"NombreUsovehiculo": "PARTICULAR",
"NombreClasevehiculo": "AUTOMOVIL",
"Estado": "VIGENTE",
"CodigoUnicoPoliza": "0000000000000000000000008",
"CodigoSBSAseguradora": "001",
"FechaControlPolicial": "26/04/2022"
}
}
},
"signature": {
"dateTime": "July 19, 2022 3:08 PM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing plate\n"
}
使用场景
- SOAT 核验:核验机动车强制责任险(SOAT)的当前状态。
- 保险服务:核验有效保单与到期日。
- 交通管控:核验是否符合强制保险要求。
- 运输企业:核验车队车辆的保险情况。
- 合规核验:确认保单的有效性。
功能特性
- ✅ 按车牌查询。
- ✅ 完整的 SOAT 保单信息。
- ✅ 保险公司名称。
- ✅ 保单起止日期。
- ✅ 保单状态(VIGENTE/已失效)。
- ✅ 保单唯一编码。
- ✅ SBS 保险公司代码。
- ✅ 警方控制日期。
- ✅ 响应由 Verifik.co 认证。