Feel free to reach techsupport@surepass.io for any technical support or guidance.
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token for API authentication (JWT format) |
Content-Type | Yes | Must be set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
state_name | String | Yes | The state identifier for which toll plaza names are requested. Must match the standardized state naming convention (e.g., "uttarakhand", "maharashtra") |
{
"state_name": "uttarakhand"
}
Parameter | Type | Description |
---|---|---|
data | Object | Container object holding the response data |
data.client_id | String | Unique client identifier for tracking and audit purposes |
data.state_name | String | Echoed state name from the request for confirmation |
data.toll_plaza_list | Array[String] | List of toll plaza names within the specified state |
status_code | Number | HTTP status code indicating request success/failure |
success | Boolean | Flag indicating overall request success status |
message | String | Human-readable response message (null on success) |
message_code | String | Internal status code for programmatic handling |
{
"data": {
"client_id": "toll_plaza_name_bCIgBXcCmHfDctzAfOxu",
"state_name": "uttarakhand",
"toll_plaza_list": [
"Bahadrabad",
"Bhagwanpur",
"Chhapar",
"Jagatpur Patti",
"Koyla",
"Lacchiwala",
"Puraini",
"Sarsawa",
"Sayed Majra"
]
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
{
"errors": {
"source_state": "source_state The value 'uttar_prade' is not a valid choice for 'source_state'."
},
"message": "Input payload validation failed"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/nhai/get-toll-plaza-name' \
--header 'Content-Type: application/json' \
--data-raw '{
"state_name": "uttarakhand"
}'
{
"data": {
"client_id": "toll_plaza_name_bCIgBXcCmHfDctzAfOxu",
"state_name": "uttarakhand",
"toll_plaza_list": [
"Bahadrabad",
"Bhagwanpur",
"Chhapar",
"Jagatpur Patti",
"Koyla",
"Lacchiwala",
"Puraini",
"Sarsawa",
"Sayed Majra"
]
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}