GET api/Location/GetStateList/{countryCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| countryCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of State| Name | Description | Type | Additional information |
|---|---|---|---|
| StateCode | string |
None |
|
| StateName | string |
None |
Response Formats
application/json, text/json
Sample:
[
{
"stateCode": "sample string 1",
"stateName": "sample string 2"
},
{
"stateCode": "sample string 1",
"stateName": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Priceline.WebServices.Models">
<State>
<StateCode>sample string 1</StateCode>
<StateName>sample string 2</StateName>
</State>
<State>
<StateCode>sample string 1</StateCode>
<StateName>sample string 2</StateName>
</State>
</ArrayOfState>