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 API authentication (JWT) |
Content-Type | Yes | application/json |
Parameter | Type | Required | Description |
---|---|---|---|
source_state | String | Yes | Source state identifier in snake_case format (e.g., "uttar_pradesh") |
source_name | String | Yes | Source city/location name (e.g., "ghazipur") |
destination_state | String | Yes | Destination state identifier in snake_case format (e.g., "bihar") |
destination_name | String | Yes | Destination city/location name (e.g., "patna") |
vehicle_type | String | Yes | Vehicle type identifier for toll calculation (e.g., "4_to_6_axle") |
{
"source_state": "uttar_pradesh",
"source_name": "ghazipur",
"destination_state": "bihar",
"destination_name": "patna",
"vehicle_type": "4_to_6_axle"
}
Parameter | Type | Description |
---|---|---|
data | Object | Container object holding all route and toll information |
data.client_id | String | Unique identifier for this route calculation request |
data.source_state | String | Echo of the source state from request |
data.source_name | String | Echo of the source location from request |
data.destination_state | String | Echo of the destination state from request |
data.destination_name | String | Echo of the destination location from request |
data.vehicle_type | String | Echo of the vehicle type from request |
data.duration | String | Total travel time in human-readable format |
data.distance | String | Total route distance with units |
data.toll_plaza_details | Array[Object] | Array of toll plaza information objects |
data.toll_plaza_details[].toll_plaza_name | String | Name of the toll plaza |
data.toll_plaza_details[].cost | String | Toll cost for the specified vehicle type |
data.toll_plaza_details[].toll_plaza_longitude | String | Longitude coordinate of toll plaza |
data.toll_plaza_details[].toll_plaza_latitude | String | Latitude coordinate of toll plaza |
status_code | Integer | HTTP status code (200 for successful requests) |
success | Boolean | Indicates whether the request was successful |
message | String | Human-readable response message |
message_code | String | Internal message code indicating request status |
{
"data": {
"client_id": "toll_enroute_oSRrvUpyPXhpRqflvmzU",
"source_state": "uttar_pradesh",
"source_name": "ghazipur",
"destination_state": "bihar",
"destination_name": "patna",
"vehicle_type": "4_to_6_axle",
"duration": "4 hour 53 mins",
"distance": "195.2 km",
"toll_plaza_details": [
{
"toll_plaza_name": "Kulhariya",
"cost": "565",
"toll_plaza_longitude": "84.76861",
"toll_plaza_latitude": "25.58056"
},
{
"toll_plaza_name": "Dalsagar",
"cost": "525",
"toll_plaza_longitude": "84.060688",
"toll_plaza_latitude": "25.580548"
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 400,
"success": false,
"message": "Source and destination can't be same",
"message_code": null
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/nhai/toll-enroute' \
--header 'Content-Type: application/json' \
--data-raw '{
"source_state": "uttar_pradesh",
"source_name": "ghazipur",
"destination_state": "bihar",
"destination_name": "patna",
"vehicle_type": "4_to_6_axle"
}'
{
"data": {
"client_id": "toll_enroute_oSRrvUpyPXhpRqflvmzU",
"source_state": "uttar_pradesh",
"source_name": "ghazipur",
"destination_state": "bihar",
"destination_name": "patna",
"vehicle_type": "4_to_6_axle",
"duration": "4 hour 53 mins",
"distance": "195.2 km",
"toll_plaza_details": [
{
"toll_plaza_name": "Kulhariya",
"cost": "565",
"toll_plaza_longitude": "84.76861",
"toll_plaza_latitude": "25.58056"
},
{
"toll_plaza_name": "Dalsagar",
"cost": "525",
"toll_plaza_longitude": "84.060688",
"toll_plaza_latitude": "25.580548"
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}