GET api/Utility/GetStates?CountryId={CountryId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of AC_StateViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StateID | integer |
None. |
|
| State | string |
None. |
|
| StateCode | string |
None. |
|
| GSTStateName | string |
None. |
|
| GSTStateCode | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"StateID": 1,
"State": "sample string 2",
"StateCode": "sample string 3",
"GSTStateName": "sample string 4",
"GSTStateCode": "sample string 5"
},
{
"StateID": 1,
"State": "sample string 2",
"StateCode": "sample string 3",
"GSTStateName": "sample string 4",
"GSTStateCode": "sample string 5"
}
]
application/xml, text/xml
Sample:
<ArrayOfAC_StateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAL.ViewModel">
<AC_StateViewModel>
<GSTStateCode>sample string 5</GSTStateCode>
<GSTStateName>sample string 4</GSTStateName>
<State>sample string 2</State>
<StateCode>sample string 3</StateCode>
<StateID>1</StateID>
</AC_StateViewModel>
<AC_StateViewModel>
<GSTStateCode>sample string 5</GSTStateCode>
<GSTStateName>sample string 4</GSTStateName>
<State>sample string 2</State>
<StateCode>sample string 3</StateCode>
<StateID>1</StateID>
</AC_StateViewModel>
</ArrayOfAC_StateViewModel>