哥伦比亚警方犯罪记录核查
API 参考
Endpoint
https://api.verifik.co/v2/co/policia/consultar
哥伦比亚警方犯罪记录核查根据宪法第 248 条,确认当事人是否与司法机关存在未决事项。通过 GET(查询参数)或 POST(JSON 正文)发送 documentType 和 documentNumber。成功的 data 包含 documentType、documentNumber、firstName、lastName、fullName、arrayName 和 details。适用于招聘、入职和尽职调查背景核验。
请求头(Headers)
| 名称 | 取值 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
参数(Parameters)
info
有关支持的证件类型及其专属必填参数的完整清单,请参阅 证件类型 指南。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
documentType | string | 是 | 证件类型。有效值:CC、CE、PPT、PA、DP。DP 为 Documento Diplomático(外交证件)。PPT 可接受;警方门户将其按护照映射。 |
documentNumber | string | 是 | 待查询人员的证件号码,不含空格或圆点。 |
此接口不接收 date 参数(与 RNMC 不同)。
请求(Request)
- JavaScript
- Python
- Swift
- PHP
import axios from "axios";
const options = {
method: "GET",
url: "https://api.verifik.co/v2/co/policia/consultar",
params: { documentType: "CC", documentNumber: "1032386359" },
headers: {
Accept: "application/json",
Authorization: "Bearer <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/co/policia/consultar?documentType=CC&documentNumber=1032386359", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/co/policia/consultar?documentType=CC&documentNumber=1032386359")!,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/co/policia/consultar?documentType=CC&documentNumber=1032386359');
$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(缺少参数)
- 409(无效证件类型)
- 409(上游不可用)
{
"data": {
"documentType": "CC",
"documentNumber": "1032386359",
"firstName": "LILIA MANUELA",
"lastName": "LESPORT FERNANDEZ",
"fullName": "LILIA MANUELA LESPORT FERNANDEZ",
"arrayName": ["LILIA", "MANUELA", "LESPORT", "FERNANDEZ"],
"details": "NO TIENE ASUNTOS PENDIENTES CON LAS AUTORIDADES JUDICIALES de conformidad con lo establecido en el artículo 248 de la Constitución Política de Colombia."
},
"signature": {
"dateTime": "March 13, 2024 10:48 PM",
"message": "Certified by Verifik.co"
},
"id": "7QS69"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentType\n. missing documentNumber\n"
}
{
"code": "MissingParameter",
"message": "documentType must be one of: [CC,CE,PPT,PA,DP]"
}
{
"code": "Endpoint_out_of_service",
"message": "Endpoint_out_of_service"
}
备注(Notes)
- 同时支持 GET 和 POST。POST 在 JSON 正文中发送相同字段。
- 警方门户按 姓(apellidos)在前、名(nombres)在后 显示。Verifik 先返回名:
firstName为LILIA MANUELA,lastName为LESPORT FERNANDEZ,fullName为LILIA MANUELA LESPORT FERNANDEZ,arrayName为名在前、姓在后。 - 生产环境的
data.details仅包含 NO TIENE / REGISTRA ASUNTOS 那一句。宪法说明文字会被去除。 - 沙箱响应可能还包含
legend。不要将legend视为生产环境保证字段。 - 允许的
documentType为 CC、CE、PPT、PA、DP(Documento Diplomático)。PPT 可接受;门户按护照映射。 - 此路由不需要签发
date(RNMC 需要)。 - 上游或验证码临时故障会返回 409,代码为
Endpoint_out_of_service或captcha_failed。 - 查询待履行矫正措施请使用 哥伦比亚 — RNMC 纠正措施(
GET /v2/co/policia/rnmc)。