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 | JWT Bearer token for authentication. Format: Bearer <your_token> |
Content-Type | Yes | Must be set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
state | String | Yes | The name of the Indian state for which fuel prices are requested. State name should be provided in lowercase. |
{
"state": "maharashtra"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the fuel price information |
data.client_id | String | Unique identifier for the client making the request |
data.state | String | Name of the state for which fuel prices are provided |
data.petrol_price | Object | Object containing petrol prices for each city in the state (city name as key, price as value) |
data.diesel_price | Object | Object containing diesel prices for each city in the state (city name as key, price as value) |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Response message |
message_code | String | Code representing the response message |
{
"data": {
"client_id": "fuel_price_sruzxOWjjvVHbcTlHjoF",
"state": "kerala",
"petrol_price": {
"alappuzha": "105.82",
"ernakulam": "105.72",
"idukki": "107.07",
"kannur": "105.88",
"kasaragod": "106.58",
"kollam": "107.05",
"kottayam": "106.37",
"kozhikode": "106.04",
"malappuram": "106.20",
"palakkad": "106.62",
"pathananthitta": "106.46",
"thiruvananthapuram": "107.46",
"thrissur": "105.92",
"wayanad": "106.88"
},
"diesel_price": {
"alappuzha": "94.80",
"ernakulam": "94.70",
"idukki": "95.96",
"kannur": "94.88",
"kasaragod": "95.53",
"kollam": "95.95",
"kottayam": "95.31",
"kozhikode": "95.02",
"malappuram": "95.18",
"palakkad": "95.54",
"pathananthitta": "95.39",
"thiruvananthapuram": "96.33",
"thrissur": "94.89",
"wayanad": "95.73"
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"errors": {
"state": "state The value '{input_state}' is not a valid choice for 'state'."
},
"message": "Input payload validation failed"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/utilities/fuel-price' \
--header 'Content-Type: application/json' \
--data-raw '{
"state": "maharashtra"
}'
{
"data": {
"client_id": "fuel_price_sruzxOWjjvVHbcTlHjoF",
"state": "kerala",
"petrol_price": {
"alappuzha": "105.82",
"ernakulam": "105.72",
"idukki": "107.07",
"kannur": "105.88",
"kasaragod": "106.58",
"kollam": "107.05",
"kottayam": "106.37",
"kozhikode": "106.04",
"malappuram": "106.20",
"palakkad": "106.62",
"pathananthitta": "106.46",
"thiruvananthapuram": "107.46",
"thrissur": "105.92",
"wayanad": "106.88"
},
"diesel_price": {
"alappuzha": "94.80",
"ernakulam": "94.70",
"idukki": "95.96",
"kannur": "94.88",
"kasaragod": "95.53",
"kollam": "95.95",
"kottayam": "95.31",
"kozhikode": "95.02",
"malappuram": "95.18",
"palakkad": "95.54",
"pathananthitta": "95.39",
"thiruvananthapuram": "96.33",
"thrissur": "94.89",
"wayanad": "95.73"
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}