驾驶证(秘鲁)
Endpoint
GET https://api.verifik.co/v2/pe/driver-license
按 DNI 查询秘鲁 驾驶证(类别、状态、有效期、限制等)。
请求头(Headers)
| 名称 | 取值 |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
参数(Parameters)
| 名称 | 类型 | 必填 | 描述 | 示例 |
|---|---|---|---|---|
documentType | string | 是 | 证件类型。取值:DNI。 | DNI |
documentNumber | string | 是 | DNI 号码(6–8 位数字)。 | 10000001 |
请求(Request)
- JavaScript
- Python
import axios from 'axios';
const { data } = await axios.get('https://api.verifik.co/v2/pe/driver-license', {
params: { documentType: 'DNI', documentNumber: '10000001' },
headers: { Accept: 'application/json', Authorization: 'Bearer <您的令牌>' },
});
console.log(data);
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {"Accept": "application/json", "Authorization": "Bearer <您的令牌>"}
conn.request("GET", "/v2/pe/driver-license?documentType=DNI&documentNumber=10000001", headers=headers)
print(conn.getresponse().read().decode("utf-8"))
响应(Response)
- 200
- 404
- 409
{
"data": {
"documentType": "DNI",
"documentNumber": "10000001",
"firstName": "MARIA ELENA",
"fullName": "MARIA ELENA LOPEZ GARCIA",
"hasLicensesA": true,
"licenses": [
{
"licenseNumber": "R10000001",
"licenseCategory": "A IIb",
"licenseStatus": "Vigente",
"expirationDate": "14/12/2027",
"restrictions": "SIN RESTRICCIONES"
}
],
"procedures": [
{
"procedure": "Revalidación",
"category": "A IIb",
"status": "Vigente"
}
],
"regulatoryCourses": [{ "hours": 6 }],
"tickets": [],
"sanctions": null
},
"signature": {
"dateTime": "June 23, 2026 10:00 AM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentType\n. missing documentNumber\n"
}
说明
- 仅支持
documentType=DNI。 - 沙盒模式:
documentNumber10000001–10000010;90040401→ 404。