Carteira de motorista (Peru)
Endpoint
GET https://api.verifik.co/v2/pe/driver-license
Consulta uma carteira de motorista peruana por DNI (categoria, status, validade, restrições, etc.).
Cabeçalhos (Headers)
| Nome | Valor |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
Parâmetros
| Nome | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
documentType | string | Sim | Tipo de documento. Valor: DNI. | DNI |
documentNumber | string | Sim | Número DNI (6–8 dígitos). | 10000001 |
Requisição (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 <seu_token>' },
});
console.log(data);
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {"Accept": "application/json", "Authorization": "Bearer <seu_token>"}
conn.request("GET", "/v2/pe/driver-license?documentType=DNI&documentNumber=10000001", headers=headers)
print(conn.getresponse().read().decode("utf-8"))
Resposta (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"
}
Notas
- Apenas
documentType=DNIé suportado. - Em modo sandbox:
documentNumber10000001–10000010;90040401→ 404.