Guides

GET_STATE_LIST

This Action returns all the cities available for the provided state

Request

payload: {
  "state": "Haryana",
    "operation": "getCitiesByState"
},

Response

{
    "headers": {},
    "body": {
        "stateAndCityListDTO": [
            {
                "state": "Haryana",
                "city": "AMBALA"
            },
            {
                "state": "Haryana",
                "city": "ROHTAK"
            },
            {
                "state": "Haryana",
                "city": "GURGAON"
            },
            {
                "state": "Haryana",
                "city": "FARIDABAD"
            },
            {
                "state": "Haryana",
                "city": "KARNAL"
            },
            {
                "state": "Haryana",
                "city": "HISSAR"
            },
            {
                "state": "Haryana",
                "city": "BHIWANI"
            },
            {
                "state": "Haryana",
                "city": "SONEPAT"
            },
            {
                "state": "Haryana",
                "city": "KURUKSHETRA"
            }
        ]
    },
    "statusCode": "OK",
    "statusCodeValue": 200
}

Payload

FieldTypeSupported ValuesDescription
operationStringgetCitiesByState, getStateAndPinCodeByCity, getPinCodeByStateAndCity and getStateAndCityByPinCodeoperation that is being performed. in this operation getCitiesByState will return all the cities available in the state