Search City (03/02)

Fire this api to find available cities without providing state id.

This endpoint allows you to get free cakes.

GET https://castleindia.in/emart/public /api/search/city?name=xxxx&secret=xxxxx /api/search/city/

Query Parameters

NameTypeDescription

name*

String

City name eg: Newyork

secret*

String

Client secret which obtained from the admin panel.

Headers

NameTypeDescription

Accept*

String

application/json

[
    {
        "cityid": 612,
        "cityname": "Bhilai",
        "pincode": 101102,
        "stateid": 7,
        "statename": "Chhattisgarh",
        "countryid": 101,
        "countryname": "India"
    },
    {
        "cityid": 2142,
        "cityname": "Bhilakhedi",
        "pincode": 311002,
        "stateid": 21,
        "statename": "Madhya Pradesh",
        "countryid": 101,
        "countryname": "India"
    },
    {
        "cityid": 3327,
        "cityname": "Bhilwara",
        "pincode": 311001,
        "stateid": 33,
        "statename": "Rajasthan",
        "countryid": 101,
        "countryname": "India"
    }
]

IF response fail

{
    "msg": "No result found !",
    "status": "fail"
}

Last updated