Driving License Check
Driving License Check API for KYC driving license verification, entitlement and penalty data retrieval, and fraud detection.
Run a driving license check
To run a Driving License Check, you must create a check with type set to driving_license_check.
This check can only be performed on a client of type person.
The documentId provided must meet the following conditions:
It must be of type
driving_license.It must include a valid
documentNumber, which represents the driving licence number.
Check request
clientId
string
The ID of the client associated with this check. (Required)
type
string
This must be set to driving_license_check. (Required)
documentId
string
The ID of the document. (Required)
Example requests
Simple request
curl -X POST https://api.complycube.com/v1/checks \
-H 'Authorization: <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"clientId":"CLIENT_ID",
"documentId":"DOCUMENT_ID",
"type": "driving_license_check"
}'const check = await complycube.check.create("CLIENT_ID", {
documentId: "DOCUMENT_ID",
type: "driving_license_check"
});check = cc_api.check.create(
'CLIENT_ID',
'driving_license_check',
documentId='DOCUMENT_ID'
)$result = $ccapi->checks()->create('CLIENT_ID',
['type' => 'driving_license_check',
'documentId' => 'DOCUMENT_ID']);var checkRequest = new CheckRequest {
clientId = "CLIENT_ID",
documentId = "DOCUMENT_ID",
type = "driving_license_check"
};
var check = await checkApi.CreateAsync(checkRequest);Result object
The result object is only returned when the status of the check is complete . It has two components - outcome and breakdown.
Outcome
The outcome attribute represents the overall check result. Returned values include:
clear: Indicates every analysis type conducted returned a successful result.attention: Indicates at least one of the analysis results requires attention.
Breakdown
The breakdown comprises the following objects:
documentData object
This represents the data retrieved from the issuing authority. It has the following constituents:
documentDetails: Data relating to the driving license.licenseType: The detected driving license type. Values includefullandprovisional.issuingCountry: The issuing country of the document. This will be the two-letter country ISO code.expirationDate: The expiry date of the driving license. This will be a structured date.documentNumber: The driving license number.points: The number of active penalty points currently associated with the driving license.issuingDate: The issuing date of the driving license. This will be a structured date.entitlements: An array of driving entitlements associated with the licence. Each object represents a specific category or class of vehicle the licence holder is permitted to drive. It includes:code: The entitlement category code.description: A detailed explanation of the entitlement.type: The type of entitlement (e.g.full,provisional).issuingDate: The date the entitlement was issued inYYYY-MM-DDformat.expirationDate: The date the entitlement expires inYYYY-MM-DDformat.restrictions: A list of restriction codes and their descriptions that apply to the entitlement.
additionalDetails: Any additional retrieved details, returned as an array of objects. Each object will contain akey,value, anddescription.
holderDetails: Data relating to the driving license holder.firstName: The list of first/given names as an array.lastName: The list of last names as an array.dob: The date of birth. This will be a structured date.nationality: The nationality. This will be the two-letter country ISO code.gender: The gender. Values include:malefemaleother
address: This will be the structured address, which includes the following:propertyNumber: The property number.line: The address line.city: The address city.state: The address state.postalCode: The address postal code.country: The address country. This will be the two-letter country ISO code.
Analysis
For each conducted analysis, the returned values include:
clear: Indicates the analysis returned a successful result.attention: Indicates the analysis returned a result that requires a review.
licenseVerification object
The driving license verification results. It has the following constituents:
status: Indicates whether the license has an active status.infractions: Indicates whether the license has any recorded infractions.breakdown: Breakdown related to license verification.infractionsBreakdown: An array detailing recorded infractions associated with the driving licence. Each entry includes:offenseCode: The official code assigned to the offence.offenseDate: The date the offence occurred inYYYY-MM-DDformat.offenseLegalDescription: A legal description of the offence.penaltyPoints: The number of penalty points applied to the licence as a result of the offence.penaltyPointsExpiryDate: The date the penalty points expire, inYYYY-MM-DDformat.convictionDate: The date the offence was convicted by the court,in
YYYY-MM-DDformat.sentenceDate: The date the sentence was imposed by the court,in
YYYY-MM-DDformat.disqualification: The driving disqualification details, including:months: The duration of the disqualification in months.startDate: The date the disqualification period begins, inYYYY-MM-DDformat.
clientDataConsistency object
The client data consistency results. It has the following constituents::
name: Indicates whether the client provided name matches the one retrieved.dob: Indicates whether the client’s provided date of birth matches the one retrieved.nationality: Indicates whether the client’s provided nationality matches the one retrieved.address: Indicates whether any of the client provided addresses match the one retrieved.

