Verify Driving Licence Details
Use this API to verify the driving license of your customer. We retrieve details of the driving licence that includes the type of licence, issue date, expiry date, and more. View the test data and use the information to trigger the validations. The test data are usable only in the test environments such as gamma and sandbox.
POST
/
driving-license
Copy
curl --request POST \
--url https://sandbox.cashfree.com/verification/driving-license \
--header 'Content-Type: application/json' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '{
"verification_id": "test001",
"dl_number": "KA0120198900984",
"dob": "1994-08-05"
}'
Copy
{
"verification_id": "69c5077c-d95a-48cb-b428-4ced025db671",
"reference_id": 76,
"dl_number": "KA51201900089895",
"dob": "1994-08-05",
"status": "VALID",
"badge_details": [
{
"badge_issue_date": null,
"badge_no": null,
"class_of_vehicle": [
"LMV"
]
}
],
"dl_validity": {
"non_transport": {
"to": "09/05/2039",
"from": "10/05/2019"
},
"hazardous_valid_till": null,
"transport": {
"to": null,
"from": null
},
"hill_valid_till": null
},
"details_of_driving_licence": {
"date_of_issue": "10/05/2019",
"date_of_last_transaction": null,
"status": null,
"last_transacted_at": null,
"name": "JOHN DOE",
"father_or_husband_name": "JOHN DOE",
"address_list": [
{
"complete_address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"type": "permanent",
"split_address": {
"district": [
"BANGALORE"
],
"state": [
[
"KARNATAKA",
"KA"
]
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"address_line": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
}
},
{
"complete_address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"type": "temporary",
"split_address": {
"district": [
"BANGALORE"
],
"state": [
[
"KARNATAKA",
"KA"
]
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"address_line": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
}
}
],
"address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"split_address": {
"district": [
"BANGALORE"
],
"state": [
""
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"address_line": "FLAT NO D-901 SUNCITY,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
},
"cov_details": []
}
}
Authorizations
Client ID. You can find your ID in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Headers
Send the signature if IP is not whitelisted.
Body
application/json
Find the request paramenters to retrieve your customer's driving license information
The body is of type object
.
Response
200
application/json
Success response for retrieving the driving licence information
The response is of type object
.
Copy
curl --request POST \
--url https://sandbox.cashfree.com/verification/driving-license \
--header 'Content-Type: application/json' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '{
"verification_id": "test001",
"dl_number": "KA0120198900984",
"dob": "1994-08-05"
}'
Copy
{
"verification_id": "69c5077c-d95a-48cb-b428-4ced025db671",
"reference_id": 76,
"dl_number": "KA51201900089895",
"dob": "1994-08-05",
"status": "VALID",
"badge_details": [
{
"badge_issue_date": null,
"badge_no": null,
"class_of_vehicle": [
"LMV"
]
}
],
"dl_validity": {
"non_transport": {
"to": "09/05/2039",
"from": "10/05/2019"
},
"hazardous_valid_till": null,
"transport": {
"to": null,
"from": null
},
"hill_valid_till": null
},
"details_of_driving_licence": {
"date_of_issue": "10/05/2019",
"date_of_last_transaction": null,
"status": null,
"last_transacted_at": null,
"name": "JOHN DOE",
"father_or_husband_name": "JOHN DOE",
"address_list": [
{
"complete_address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"type": "permanent",
"split_address": {
"district": [
"BANGALORE"
],
"state": [
[
"KARNATAKA",
"KA"
]
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"address_line": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
}
},
{
"complete_address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"type": "temporary",
"split_address": {
"district": [
"BANGALORE"
],
"state": [
[
"KARNATAKA",
"KA"
]
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"address_line": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
}
}
],
"address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
"split_address": {
"district": [
"BANGALORE"
],
"state": [
""
],
"city": [
"BELLANDUR"
],
"pincode": "560103",
"country": [
"IN",
"IND",
"INDIA"
],
"address_line": "FLAT NO D-901 SUNCITY,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
},
"cov_details": []
}
}
Assistant
Responses are generated using AI and may contain mistakes.