The British Columbia Driver License Verification service offers a straightforward method to verify the authenticity and validity of a driver's license in the province of British Columbia, Canada. By utilizing this service, you can quickly validate a driver's license based on the provided document number and last name.
Parameters
Name |
Type |
¿Required? |
Description |
Example |
documentNumber |
String |
True |
Driver's license to consult, all data must be entered exactly as found in this document. |
1123456 |
documentType |
String |
True |
Last name that appears in the Driver License. |
DNIAR |
Implementation
Request
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/ca/british-columbia/driver-license>',
params: {documentNumber: '7793458', lastName: 'JIWA'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Response 200 - (Successful response)
{
"data": {
"documentNumber": "1123456",
"lastName": "HELLO",
"valid": true
},
"signature": {
"dateTime": "August 8, 2023 10:56 PM",
"message": "Certified by Verifik.co"
},
"id": "1234567"
}
Other responses
|
Code |
Description |
Response Body |
404 |
Not Found |
Information not found. |
{ |
"code": "NotFound", |
|
|
|
"message": "Record not found.", |
|
|
|
"signature": { |
|
|
|
"dateTime": "August 31, 2022 3:24 PM", |
|
|
|
"message": "Certified by Verifik.co" |
|
|
|
} |
|
|
|
} |
|
|
|
409 |
Conflict |
Some parameters are missing. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "missing lastName\n missing documentNumber\n" |
|
|
|
} |
|
|
|
409 |
Conflict |
documentNumber does not contain all characters. |
{ |
"code": "MissingParameter", |
|
|
|
"message": "documentNumber maximum length: 15\n" |
|
|
|
} |
|
|
|