The Ontario Driver's License service allows you to quickly obtain essential information about a driver's license issued in the province of Ontario, Canada. By providing the document number, you can access details such as the license status and the associated verification number.
Use this service to validate and verify the authenticity of Ontario driver's licenses efficiently. Whether you need to confirm the validity of a driver's license for identification or regulatory purposes, this service provides accurate and up-to-date license information.
Name | Type | ¿Required? | Description | Example |
---|---|---|---|---|
documentNumber | String | True |
Driver's license to consult, all data must be entered exactly as found in this document. | S123456789123456 |
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/ca/ontario/driver-license>',
params: {documentNumber: 'S123456789123456'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
{
"data": {
"documentNumber": "S123456789123456",
"licenceStatus": "Valid",
"verificationNumber": "123V5"
},
"signature": {
"dateTime": "March 12, 2024 3:47 PM",
"message": "Certified by Verifik.co"
},
"id": "8X9FD"
}
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 documentNumber\n" | |||
} |