List of Cities
Fire this api to list the cities of given state id.
GET
https://castleindia.in/emart/public /api/city/{stateid} /api/city/{stateid}
Path Parameters
Name
Type
Description
state_id*
Integer
State id from the list of states.
Query Parameters
Name
Type
Description
secret*
String
Client secret which obtained from admin panel.
Headers
Name
Type
Description
Accept*
String
application/json
{
"cities": [
{
"id": 6066,
"name": "Kelcyre",
"state_id": 100,
"pincode": null,
"updated_at": null
},
{
"id": 6067,
"name": "Permet",
"state_id": 100,
"pincode": null,
"updated_at": null
}
],
"status": "success"
}
IF response fail
{
"msg": "The secret field is required.",
"status": "fail"
}
Last updated
Was this helpful?