Run in Apidog
This endpoint retrieves a list of cities for a specific state with the state ID as a parameter in the URL. Request# URL: api/business/getcities/22/100
Response# Content-Type: application/json
{
"status" : true ,
"message" : "" ,
"data" : {
"total" : "" ,
"citylist" : [
{
"id" : "" ,
"cityname" : "" ,
"statename" : ""
}
]
}
}
The response contains a boolean status, an optional message, and a data object with the total count and a list of cities including their IDs, names, and associated state names.
Request Example: X-Token: ********************
Body Params multipart/form-data
Request Code Samples
curl --location '/api/business/getcities/?stateid=22&limit=50&offset=0&order=desc' \
--header 'marchant-id: BIZ12354124' Responses application/json
Generate Code
Modified at 2024-10-17 16:02:45