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) |
Content-Type | Yes | application/json for JSON requests or multipart/form-data for file uploads |
Parameter | Type | Required | Description |
---|---|---|---|
file | File | Yes | Vehicle RC image to be processed |
use_pdf | Boolean | No | Set to true if the uploaded file is a PDF |
Parameter | Type | Required | Description |
---|---|---|---|
base_64 | String | Yes | Vehicle RC image encoded in Base64 format |
Parameter | Type | Required | Description |
---|---|---|---|
link | String | Yes | URL/link to the Vehicle RC image |
{
"base_64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL..."
}
{
"link": "https://example.com/vehicle-rc-image.jpg"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the extracted vehicle RC information |
data.client_id | String | Unique identifier for the OCR request |
data.registration_number | String | Vehicle's registration number |
data.chassis_number | String | Unique number identifying the vehicle's chassis |
data.engine_number | String | Unique number identifying the vehicle's engine |
data.owner_name | String | Name of the vehicle owner |
data.relative | String | Name of the relative of the vehicle owner |
data.address | String | Address of the vehicle owner |
data.fuel_used | String | Type of fuel used by the vehicle |
data.date_of_registration | String | Date when the vehicle was registered (YYYY-MM-DD) |
data.registration_validity | String | Validity date of the vehicle's registration (YYYY-MM-DD) |
data.owner_sr_no | String | Serial number of the owner |
data.state | String | State where the vehicle is registered |
data.vehicle_weight | String | Weight of the vehicle (may be null) |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the API call was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "ocr_vehicle_rc_LyycewqbxweVKvlURPpb",
"registration_number": "RJ14XJ1234",
"chassis_number": "ME3U3K5F1LK7312345",
"engine_number": "U3K5F1LK38123456",
"owner_name": "MAHENDARA SINGH RAJPUT",
"relative": "RAJENDAR SINGH RAJPUT",
"address": "A-403 JAGATPURA Jaipur RJ 302017",
"fuel_used": "PETROL",
"date_of_registration": "2020-10-08",
"registration_validity": "2035-10-07",
"owner_sr_no": "01",
"state": "Rajasthan",
"vehicle_weight": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"error": null,
"message": "Your token is invalid. Please ensure that correct token is being used.",
"status_code": 401,
"success": false,
"message_code": "invalid_token"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/vehicle-rc' \
--form 'file=@""'
{
"data": {
"client_id": "ocr_vehicle_rc_LyycewqbxweVKvlURPpb",
"registration_number": "RJ14XJ1234",
"chassis_number": "ME3U3K5F1LK7312345",
"engine_number": "U3K5F1LK38123456",
"owner_name": "MAHENDARA SINGH RAJPUT",
"relative": "RAJENDAR SINGH RAJPUT",
"address": "A-403 JAGATPURA Jaipur RJ 302017",
"fuel_used": "PETROL",
"date_of_registration": "2020-10-08",
"registration_validity": "2035-10-07",
"owner_sr_no": "01",
"state": "Rajasthan",
"vehicle_weight": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}