GET
api/v1/get-state-list?countryId={countryId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
countryId | integer |
Required |
Response Information
Description:
Return type: Collection of StateProvince
Response Formats
application/json, text/json
[ { "StateProvinceId": 1, "CountryId": 1, "StateCode": "sample string 2", "StateName": "sample string 3", "SortOrder": 1, "IsActive": true, "ImagePath": "sample string 4" }, { "StateProvinceId": 1, "CountryId": 1, "StateCode": "sample string 2", "StateName": "sample string 3", "SortOrder": 1, "IsActive": true, "ImagePath": "sample string 4" } ]
text/html
[{"StateProvinceId":1,"CountryId":1,"StateCode":"sample string 2","StateName":"sample string 3","SortOrder":1,"IsActive":true,"ImagePath":"sample string 4"},{"StateProvinceId":1,"CountryId":1,"StateCode":"sample string 2","StateName":"sample string 3","SortOrder":1,"IsActive":true,"ImagePath":"sample string 4"}]
application/xml, text/xml
<ArrayOfStateProvince xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI.Models.Master"> <StateProvince> <CountryId>1</CountryId> <ImagePath>sample string 4</ImagePath> <IsActive>true</IsActive> <SortOrder>1</SortOrder> <StateCode>sample string 2</StateCode> <StateName>sample string 3</StateName> <StateProvinceId>1</StateProvinceId> </StateProvince> <StateProvince> <CountryId>1</CountryId> <ImagePath>sample string 4</ImagePath> <IsActive>true</IsActive> <SortOrder>1</SortOrder> <StateCode>sample string 2</StateCode> <StateName>sample string 3</StateName> <StateProvinceId>1</StateProvinceId> </StateProvince> </ArrayOfStateProvince>