City
City List
Use this API to get all city based on state.
GET /city/city-list
Query string parameters
Field | Type | Description |
---|---|---|
stateId required | integer | State ID |
q | string | filter data by city name |
- Response
- Schema
- Error Codes
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"cityList": [
{
"cityId": 1,
"name": "Bombuflat"
},
],
"totalRecords": 1
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
Field | Type | Description |
---|---|---|
cityId | integer | City ID |
name | string | City Name |
totalRecords | integer | count of records returned |
Code | Description |
---|---|
1001 | "Missing stateId" |
1002 | "Invalid stateId" |
For general error details, click here.