警方矫正措施合规核查
API 参考
Endpoint
https://api.verifik.co/v2/co/policia/rnmc
警方 RNMC 服务用于核查某人是否存在尚未履行的矫正措施。提交姓名、证件类型、证件号码及核查日期后,可获取与待履行矫正措施相关的详细信息。
该服务可帮助确认相关人员是否遵守矫正措施,并支持基于其合规情况进行更知情的决策。
请求头(Headers)
| 名称 | 取值 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
参数(Parameters)
info
有关支持的证件类型及其专属必填参数的完整清单,请参阅 证件类型 指南。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
documentType | string | 是 | 证件类型。允许取值:CC、CE。 |
documentNumber | string | 是 | 待查询人员的证件号码,不含空格或圆点。 |
date | string | 是 | 证件签发日期,格式:DD/MM/YYYY。 |
请求(Request)
- JavaScript
- Python
- Swift
- PHP
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/co/policia/rnmc',
params: {
documentType: 'CC',
documentNumber: '123456789',
date: '10/10/2020'
},
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/rnmc?documentType=CC&documentNumber=&date=", 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/rnmc?documentType=CC&documentNumber=&date=")!,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/rnmc?documentType=CC&documentNumber=&date=');
$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": {
"arrayName": [
"MATEO",
"VERIFIK"
],
"correctiveMeasures": [
{
"attribution": "INSPECTOR DE POLICÍA",
"address": "KR 12 26 25",
"status": "IMPONER O RATIFICAR MEDIDA",
"measure": "Multa General Tipo 2",
"referredTo": "INSPECCION PERMANENTE TURNO 3"
}
],
"date": "22/07/2005",
"documentNumber": "123456789",
"documentType": "CC",
"firstName": "MATEO",
"fullName": "MATEO VERIFIK",
"lastName": "VERIFIK",
"records": [
{
"date": "16/12/2023 01:46:37 p. m.",
"department": "CALDAS",
"file": "17-001-6-2023-20697",
"format": "002",
"identification": "123456789",
"municipality": "MANIZALES",
"offender": "MATEO VERIFIK"
}
]
},
"signature": {
"dateTime": "April 18, 2024 6:33 PM",
"message": "Certified by Verifik.co"
},
"id": "12NC7"
}
{
"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]"
}