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

NameTypeDescription

state_id*

Integer

State id from the list of states.

Query Parameters

NameTypeDescription

secret*

String

Client secret which obtained from admin panel.

Headers

NameTypeDescription

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