Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token for authentication (JWT format) |
Content-Type | Yes | application/json |
Parameter | Type | Required | Description |
---|---|---|---|
id_number | String | Yes | The driving license number to be verified |
dob | String | Yes | Date of birth of the license holder in "YYYY-MM-DD" format |
{
"id_number": "TS02620190003657",
"dob": "1998-06-15"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains all the driving license details |
data.client_id | String | Unique client identifier generated for this verification |
data.license_number | String | The verified driving license number |
data.state | String | State where the license was issued |
data.name | String | Full name of the license holder |
data.permanent_address | String | Permanent address of the license holder |
data.permanent_zip | String | Permanent address ZIP code |
data.temporary_address | String | Temporary address (if different from permanent) |
data.temporary_zip | String | Temporary address ZIP code |
data.citizenship | String | Citizenship information of the license holder |
data.ola_name | String | Office of Licensing Authority name |
data.ola_code | String | Office of Licensing Authority code |
data.gender | String | Gender of the license holder (M, F, or X) |
data.father_or_husband_name | String | Name of the license holder's father or husband |
data.dob | String | Date of birth in "YYYY-MM-DD" format |
data.doe | String | Date of expiry of the license in "YYYY-MM-DD" format |
data.transport_doe | String | Date of expiry of transport license in "YYYY-MM-DD" format |
data.doi | String | Date of issuance of the license in "YYYY-MM-DD" format |
data.transport_doi | String | Date of issuance of transport license in "YYYY-MM-DD" format |
data.profile_image | String | Base64 encoded profile image of the license holder |
data.has_image | Boolean | Indicates if a profile image is available |
data.blood_group | String | Blood group of the license holder |
data.vehicle_classes | Array | List of vehicle classes the holder is permitted to drive |
data.less_info | Boolean | Indicates if limited information is available |
data.initial_doi | String | Initial date of issuance in "YYYY-MM-DD" format |
data.current_status | String | Current status of the license (Active, Inactive, etc.) |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the API call was successful |
message | String | Additional message (null if successful) |
message_code | String | Code indicating the type of message |
{
"data": {
"client_id": "license_iDdklSZIkxXfDrhVupRZ",
"license_number": "TS02620190003657",
"state": "Uttar Pradesh",
"name": "MUNNA BHAIYA",
"permanent_address": "TRIPATHI HAVELI, MIRZAPUR, UTTAR PRADESH",
"permanent_zip": "",
"temporary_address": "TRIPATHI HAVELI, MIRZAPUR, UTTAR PRADESH",
"temporary_zip": "",
"citizenship": "",
"ola_name": "RTA MAHABUBABAD",
"ola_code": "TS026",
"gender": "M",
"father_or_husband_name": "KALEEN BHAIYA",
"dob": "1998-06-15",
"doe": "2039-07-23",
"transport_doe": "1800-01-01",
"doi": "2019-07-24",
"transport_doi": "1800-01-01",
"profile_image": "base64Image",
"has_image": true,
"blood_group": "",
"vehicle_classes": [
"MCWG",
"LMV-NT"
],
"less_info": false
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
{
"status_code": 422,
"success": false,
"message": "Verification Failed.",
"message_code": "verification_failed"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/driving-license/driving-license' \
--header 'Content-Type: application/json' \
--data-raw '{
"id_number": "{{license_number}}",
"dob": "{{dob}}"
}'
{
"data": {
"client_id": "license_iDdklSZIkxXfDrhVupRZ",
"license_number": "TS02620190003657",
"state": "Uttar Pradesh",
"name": "MUNNA BHAIYA",
"permanent_address": "TRIPATHI HAVELI, MIRZAPUR, UTTAR PRADESH",
"permanent_zip": "",
"temporary_address": "TRIPATHI HAVELI, MIRZAPUR, UTTAR PRADESH",
"temporary_zip": "",
"citizenship": "",
"ola_name": "RTA MAHABUBABAD",
"ola_code": "TS026",
"gender": "M",
"father_or_husband_name": "KALEEN BHAIYA",
"dob": "1998-06-15",
"doe": "2039-07-23",
"transport_doe": "1800-01-01",
"doi": "2019-07-24",
"transport_doi": "1800-01-01",
"profile_image": "base64Image",
"has_image": true,
"blood_group": "",
"vehicle_classes": [
"MCWG",
"LMV-NT"
],
"less_info": false
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}