GET api/Order/GetStatesbyCountryCode?countrycode={countrycode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countrycode

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CountryStates
NameDescriptionTypeAdditional information
StateCode

string

None.

StateName

string

None.

Response Formats

application/json, text/json, text/html

Sample:
[
  {
    "StateCode": "sample string 1",
    "StateName": "sample string 2"
  },
  {
    "StateCode": "sample string 1",
    "StateName": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCountryStates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.Entities.Commerce">
  <CountryStates>
    <_x003C_StateCode_x003E_k__BackingField>sample string 1</_x003C_StateCode_x003E_k__BackingField>
    <_x003C_StateName_x003E_k__BackingField>sample string 2</_x003C_StateName_x003E_k__BackingField>
  </CountryStates>
  <CountryStates>
    <_x003C_StateCode_x003E_k__BackingField>sample string 1</_x003C_StateCode_x003E_k__BackingField>
    <_x003C_StateName_x003E_k__BackingField>sample string 2</_x003C_StateName_x003E_k__BackingField>
  </CountryStates>
</ArrayOfCountryStates>