運転免許(ペルー)
エンドポイント
GET https://api.verifik.co/v2/pe/driver-license
DNI によりペルーの 運転免許 を照会します(区分、状態、有効期限、制限など)。
ヘッダー (Headers)
| 名前 | 値 |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
パラメータ
| 名前 | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
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。