Guides

GET_STATE_LIST

This API is used to fetch the address data based on the operation provided in the request params. below are the operations you can perform with this api. operation=getCitiesByState&state={state} operation=getStateAndPinCodeByCity&city={city} operation=getPinCodeByStateAndCity&state={state}&city={city} operation=getStateAndCityByPinCode&pinCode={pincode}.

Request

    payload: {
      "pinCode": "251201",
      "operation": "getStateAndCityByPinCode"
    },

Response

{
    "headers": {},
    "body": {
        "stateAndCityListDTO": [
            {
                "state": "UTTAR PRADESH",
                "stateEnum": "UTTAR_PRADESH",
                "city": "MUZAFFARNAGAR",
                "cityEnum": "MUZAFFARNAGAR",
                "pin": "251201"
            }
        ]
    },
    "statusCode": "OK",
    "statusCodeValue": 200
}