British Columbia License Validation
GET - https://api.verifik.co/v2/ca/british-columbia/driver-license
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.
Implementation
Headers
Query Parameters
Name Type ¿Required? Description Example Driver's license to consult, all data must be entered exactly as found in this document.
Last name that appears in the Driver License.
Request
JavaScript Python Swift PHP
Copy 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);
}
Copy import http . client
conn = http . client . HTTPSConnection ( "api.verifik.co" )
payload = ''
headers = {}
conn . request ( "GET" , "/v2/ca/british-columbia/driver-license?documentNumber=1123456&lastName=HELLO" , payload, headers)
res = conn . getresponse ()
data = res . read ()
print (data. decode ( "utf-8" ))
Copy var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/ca/british-columbia/driver-license?documentNumber=1123456&lastName=HELLO")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared. dataTask ( with : request ) { data, response, error in
guard let data = data else {
print ( String ( describing : error ))
return
}
print ( String ( data : data, encoding : . utf8 ) ! )
}
task. resume ()
Copy <? php
require_once 'HTTP/Request2.php' ;
$request = new HTTP_Request2 ();
$request -> setUrl ( 'https://api.verifik.co/v2/ca/british-columbia/driver-license?documentNumber=1123456&lastName=HELLO' ) ;
$request -> setMethod ( HTTP_Request2 :: METHOD_GET ) ;
$request -> setConfig ( array (
'follow_redirects' => TRUE
) ) ;
try {
$response = $request -> send () ;
if ($response -> getStatus () == 200 ) {
echo $response -> getBody () ;
}
else {
echo 'Unexpected HTTP status: ' . $response -> getStatus () . ' ' .
$response -> getReasonPhrase () ;
}
}
catch ( HTTP_Request2_Exception $e) {
echo 'Error: ' . $e -> getMessage () ;
}
Response
200 404 409 409
Copy {
"data" : {
"documentNumber" : "1123456" ,
"lastName" : "HELLO" ,
"valid" : true
} ,
"signature" : {
"dateTime" : "August 8, 2023 10:56 PM" ,
"message" : "Certified by Verifik.co"
} ,
"id" : "1234567"
}
Copy {
"code" : "NotFound" ,
"message" : "Record not found." ,
"signature" : {
"dateTime" : "August 31, 2022 3:24 PM" ,
"message" : "Certified by Verifik.co"
}
}
Copy {
"code" : "MissingParameter" ,
"message" : "missing lastName\n missing documentNumber\n"
}
Copy {
"code" : "MissingParameter" ,
"message" : "documentNumber maximum length: 15\n"
}
Last updated 2 months ago