GetStateByCountryId
Request Parameters:
Retrieve all state by country Id
URL: ../Api/Client/GetAllStateByCountryId
Header:
Content-Type:application/json
Required Parameters :
Case-1. Exception Respons :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "",
"CountryId":""
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Respons :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CountryId":"1"
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": [
{
"CountryName": "United States",
"StateId": 1,
"CountryId": 1,
"StateName": "AA (Armed Forces Americas)",
"Abbreviation": "AA"
},
{
"CountryName": "United States",
"StateId": 54,
"CountryId": 1,
"StateName": "AE (Armed Forces Europe)",
"Abbreviation": "AE"
},
{
"CountryName": "United States",
"StateId": 53,
"CountryId": 1,
"StateName": "Alabama",
"Abbreviation": "AL"
},
{
"CountryName": "United States",
"StateId": 52,
"CountryId": 1,
"StateName": "Alaska",
"Abbreviation": "AK"
},
{
"CountryName": "United States",
"StateId": 51,
"CountryId": 1,
"StateName": "American Samoa",
"Abbreviation": "AS"
},
{
"CountryName": "United States",
"StateId": 50,
"CountryId": 1,
"StateName": "AP (Armed Forces Pacific)",
"Abbreviation": "AP"
},
{
"CountryName": "United States",
"StateId": 49,
"CountryId": 1,
"StateName": "Arizona",
"Abbreviation": "AZ"
},
{
"CountryName": "United States",
"StateId": 48,
"CountryId": 1,
"StateName": "Arkansas",
"Abbreviation": "AR"
},
{
"CountryName": "United States",
"StateId": 47,
"CountryId": 1,
"StateName": "California",
"Abbreviation": "CA"
},
{
"CountryName": "United States",
"StateId": 46,
"CountryId": 1,
"StateName": "Colorado",
"Abbreviation": "CO"
},
{
"CountryName": "United States",
"StateId": 45,
"CountryId": 1,
"StateName": "Connecticut",
"Abbreviation": "CT"
},
{
"CountryName": "United States",
"StateId": 44,
"CountryId": 1,
"StateName": "Delaware",
"Abbreviation": "DE"
},
{
"CountryName": "United States",
"StateId": 43,
"CountryId": 1,
"StateName": "District of Columbia",
"Abbreviation": "DC"
},
{
"CountryName": "United States",
"StateId": 42,
"CountryId": 1,
"StateName": "Federated States of Micronesia",
"Abbreviation": "FM"
},
{
"CountryName": "United States",
"StateId": 41,
"CountryId": 1,
"StateName": "Florida",
"Abbreviation": "FL"
},
{
"CountryName": "United States",
"StateId": 40,
"CountryId": 1,
"StateName": "Georgia",
"Abbreviation": "GA"
},
{
"CountryName": "United States",
"StateId": 55,
"CountryId": 1,
"StateName": "Guam",
"Abbreviation": "GU"
},
{
"CountryName": "United States",
"StateId": 57,
"CountryId": 1,
"StateName": "Hawaii",
"Abbreviation": "HI"
},
{
"CountryName": "United States",
"StateId": 74,
"CountryId": 1,
"StateName": "Idaho",
"Abbreviation": "ID"
},
{
"CountryName": "United States",
"StateId": 58,
"CountryId": 1,
"StateName": "Illinois",
"Abbreviation": "IL"
},
{
"CountryName": "United States",
"StateId": 73,
"CountryId": 1,
"StateName": "Indiana",
"Abbreviation": "IN"
},
{
"CountryName": "United States",
"StateId": 72,
"CountryId": 1,
"StateName": "Iowa",
"Abbreviation": "IA"
},
{
"CountryName": "United States",
"StateId": 71,
"CountryId": 1,
"StateName": "Kansas",
"Abbreviation": "KS"
},
{
"CountryName": "United States",
"StateId": 70,
"CountryId": 1,
"StateName": "Kentucky",
"Abbreviation": "KY"
},
{
"CountryName": "United States",
"StateId": 69,
"CountryId": 1,
"StateName": "Louisiana",
"Abbreviation": "LA"
},
{
"CountryName": "United States",
"StateId": 68,
"CountryId": 1,
"StateName": "Maine",
"Abbreviation": "ME"
},
{
"CountryName": "United States",
"StateId": 67,
"CountryId": 1,
"StateName": "Marshall Islands",
"Abbreviation": "MH"
},
{
"CountryName": "United States",
"StateId": 66,
"CountryId": 1,
"StateName": "Maryland",
"Abbreviation": "MD"
},
{
"CountryName": "United States",
"StateId": 65,
"CountryId": 1,
"StateName": "Massachusetts",
"Abbreviation": "MA"
},
{
"CountryName": "United States",
"StateId": 64,
"CountryId": 1,
"StateName": "Michigan",
"Abbreviation": "MI"
},
{
"CountryName": "United States",
"StateId": 63,
"CountryId": 1,
"StateName": "Minnesota",
"Abbreviation": "MN"
},
{
"CountryName": "United States",
"StateId": 62,
"CountryId": 1,
"StateName": "Mississippi",
"Abbreviation": "MS"
},
{
"CountryName": "United States",
"StateId": 61,
"CountryId": 1,
"StateName": "Missouri",
"Abbreviation": "MO"
},
{
"CountryName": "United States",
"StateId": 60,
"CountryId": 1,
"StateName": "Montana",
"Abbreviation": "MT"
},
{
"CountryName": "United States",
"StateId": 59,
"CountryId": 1,
"StateName": "Nebraska",
"Abbreviation": "NE"
},
{
"CountryName": "United States",
"StateId": 39,
"CountryId": 1,
"StateName": "Nevada",
"Abbreviation": "NV"
},
{
"CountryName": "United States",
"StateId": 56,
"CountryId": 1,
"StateName": "New Hampshire",
"Abbreviation": "NH"
},
{
"CountryName": "United States",
"StateId": 38,
"CountryId": 1,
"StateName": "New Jersey",
"Abbreviation": "NJ"
},
{
"CountryName": "United States",
"StateId": 18,
"CountryId": 1,
"StateName": "New Mexico",
"Abbreviation": "NM"
},
{
"CountryName": "United States",
"StateId": 16,
"CountryId": 1,
"StateName": "New York",
"Abbreviation": "NY"
},
{
"CountryName": "United States",
"StateId": 15,
"CountryId": 1,
"StateName": "North Carolina",
"Abbreviation": "NC"
},
{
"CountryName": "United States",
"StateId": 14,
"CountryId": 1,
"StateName": "North Dakota",
"Abbreviation": "ND"
},
{
"CountryName": "United States",
"StateId": 13,
"CountryId": 1,
"StateName": "Northern Mariana Islands",
"Abbreviation": "MP"
},
{
"CountryName": "United States",
"StateId": 12,
"CountryId": 1,
"StateName": "Ohio",
"Abbreviation": "OH"
},
{
"CountryName": "United States",
"StateId": 11,
"CountryId": 1,
"StateName": "Oklahoma",
"Abbreviation": "OK"
},
{
"CountryName": "United States",
"StateId": 10,
"CountryId": 1,
"StateName": "Oregon",
"Abbreviation": "OR"
},
{
"CountryName": "United States",
"StateId": 9,
"CountryId": 1,
"StateName": "Palau",
"Abbreviation": "PW"
},
{
"CountryName": "United States",
"StateId": 8,
"CountryId": 1,
"StateName": "Pennsylvania",
"Abbreviation": "PA"
},
{
"CountryName": "United States",
"StateId": 7,
"CountryId": 1,
"StateName": "Puerto Rico",
"Abbreviation": "PR"
},
{
"CountryName": "United States",
"StateId": 6,
"CountryId": 1,
"StateName": "Rhode Island",
"Abbreviation": "RI"
},
{
"CountryName": "United States",
"StateId": 5,
"CountryId": 1,
"StateName": "South Carolina",
"Abbreviation": "SC"
},
{
"CountryName": "United States",
"StateId": 4,
"CountryId": 1,
"StateName": "South Dakota",
"Abbreviation": "SD"
},
{
"CountryName": "United States",
"StateId": 3,
"CountryId": 1,
"StateName": "Tennessee",
"Abbreviation": "TN"
},
{
"CountryName": "United States",
"StateId": 2,
"CountryId": 1,
"StateName": "Texas",
"Abbreviation": "TX"
},
{
"CountryName": "United States",
"StateId": 17,
"CountryId": 1,
"StateName": "Utah",
"Abbreviation": "UT"
},
{
"CountryName": "United States",
"StateId": 19,
"CountryId": 1,
"StateName": "Vermont",
"Abbreviation": "VT"
},
{
"CountryName": "United States",
"StateId": 36,
"CountryId": 1,
"StateName": "Virgin Islands",
"Abbreviation": "VI"
},
{
"CountryName": "United States",
"StateId": 20,
"CountryId": 1,
"StateName": "Virginia",
"Abbreviation": "VA"
},
{
"CountryName": "United States",
"StateId": 35,
"CountryId": 1,
"StateName": "Washington",
"Abbreviation": "WA"
},
{
"CountryName": "United States",
"StateId": 34,
"CountryId": 1,
"StateName": "West Virginia",
"Abbreviation": "WV"
},
{
"CountryName": "United States",
"StateId": 33,
"CountryId": 1,
"StateName": "Wisconsin",
"Abbreviation": "WI"
},
{
"CountryName": "United States",
"StateId": 32,
"CountryId": 1,
"StateName": "Wyoming",
"Abbreviation": "WY"
}
],
"ValidationMessage": [],
"ErrorMessage": null
}