Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token authentication using JWT format |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| id_number | String | Yes | The driving license number to verify |
| additional_details | Object | No | Optional object containing supplementary information |
| additional_details.full_name | String | No | Full name of the license holder for additional verification |
| additional_details.dob | String | No | Date of birth in YYYY-MM-DD format for additional verification |
{
"id_number": "UP20 20150000000",
"additional_details": {
"full_name": "Amit Mittal",
"dob": "1996-11-23"
}
}| Parameter | Type | Description |
|---|---|---|
| data | Object | Contains the driving license details |
| data.temporary_address | String | Temporary address registered with the license |
| data.father_or_husband_name | String | Name of father or husband as registered |
| data.doe | String | Date of expiry of the license in YYYY-MM-DD format |
| data.temporary_zip | String | ZIP/Postal code of temporary address |
| data.permanent_address | String | Permanent address registered with the license |
| data.doi | String | Date of issue of the license in YYYY-MM-DD format |
| data.client_id | String | Unique client identifier |
| data.citizenship | String | Citizenship code (e.g., "IND" for India) |
| data.dob | String | Date of birth in YYYY-MM-DD format |
| data.permanent_zip | String | ZIP/Postal code of permanent address |
| data.gender | String | Gender of the license holder |
| data.license_number | String | Driving license number |
| data.name | String | Full name of the license holder |
| data.state | String | State code where the license was issued |
| data.ola_name | String | Name of the issuing authority |
| data.ola_code | String | Code of the issuing authority |
| status_code | Integer | HTTP status code of the response |
| message | String | Additional message (if any) |
| success | Boolean | Indicates if the request was successful |
{
"data": {
"temporary_address": "TRIPATHI HAVELI, MIRZAPUR",
"father_or_husband_name": "KALEEN BHAIYA",
"doe": "2032-07-23",
"temporary_zip": "231001",
"permanent_address": "TRIPATHI HAVELI, MIRZAPUR",
"doi": "2012-07-24",
"client_id": "dIysSjHnIG",
"citizenship": "IND",
"dob": "1990-08-31",
"permanent_zip": "231001",
"gender": "Male",
"license_number": "UP20 20150000000",
"name": "MUNNA BHAIYA",
"state": "UP",
"ola_name": "DISTRICT TRANSPORT OFFICE, MIRZAPUR",
"ola_code": "UP20"
},
"status_code": 200,
"message": "",
"success": true
}{
"data": null,
"status_code": 400,
"message": "Invalid license number format",
"success": false
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/driving-license/driving-license' \
--header 'X-Customer-Id: {{customer_id}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id_number": "{{license_number}}",
"additional_details": {
"full_name": "Amit Mittal",
"dob": "1996-11-23"
}
}'{
"data": {
"temporary_address": "TRIPATHI HAVELI, MIRZAPUR",
"father_or_husband_name": "KALEEN BHAIYA",
"doe": "2032-07-23",
"temporary_zip": "231001",
"permanent_address": "TRIPATHI HAVELI, MIRZAPUR",
"doi": "2012-07-24",
"client_id": "dIysSjHnIG",
"citizenship": "IND",
"dob": "1990-08-31",
"permanent_zip": "231001",
"gender": "Male",
"license_number": "UP20 20150000000",
"name": "MUNNA BHAIYA",
"state": "UP",
"ola_name": "DISTRICT TRANSPORT OFFICE, MIRZAPUR",
"ola_code": "UP20"
},
"status_code": 200,
"message": "",
"success": true
}