哥伦比亚警方犯罪记录核查
API 参考
Endpoint
https://api.verifik.co/v2/co/policia/consultar
哥伦比亚警方犯罪记录核查服务允许用户通过提交身份证件号码来核验某人在哥伦比亚的犯罪历史。该服务依据《哥伦比亚宪法》第 248 条核查其在哥伦比亚司法机关是否存在尚未处理的法律事项。响应中包含该人员的姓名全称、名、姓以及与其法律状态相关的更多详情。该服务非常适合企业与机构用于雇佣审核或尽职调查中的背景调查。
请求头(Headers)
| 名称 | 取值 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
参数(Parameters)
info
有关支持的证件类型及其专属必填参数的完整清单,请参阅 证件类型 指南。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
documentType | string | 是 | 证件类型。允许取值:CC、CE。 |
documentNumber | string | 是 | 待查询人员的证件号码,不含空格或圆点。 |
请求(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: "123456789" },
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=123456789", 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=123456789")!,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=123456789');
$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(无效的证件类型)
{
"data": {
"documentType": "CCAR",
"documentNumber": "123456789",
"fullName": "MATEO VERIFIK",
"firstName": "MATEO",
"lastName": "VERIFIK",
"arrayName": [
"MATEO",
"VERIFIK"
],
"details": "NO TIENE ASUNTOS PENDIENTES CON LAS AUTORIDADES JUDICIALES\\nde conformidad con lo establecido en el artículo 248 de la Constitución Política de Colombia. \\n\\nEn cumplimiento de la Sentencia SU-458 del 21 de junio de 2012, proferida por la Honorable Corte Constitucional, la leyenda \"NO TIENE ASUNTOS PENDIENTES CON LAS AUTORIDADES JUDICIALES\" aplica para todas aquellas personas que no registran antecedentes y para quienes la autoridad judicial competente haya decretado la extinción de la condena o la prescripción de la pena. "
},
"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]"
}