POST api/order/Address/GeographicDrilldown/GetStatesV2

Gets the States for a given Country with translated state names based on LocaleID.

Request Information

URI Parameters

None.

Body Parameters

The Geographic Drilldown containing Country information.

GeographicDrilldownParameters
NameDescriptionTypeAdditional information
Country

The name of the Country

string

None.

State

The name of the State

string

None.

City

The name of the City

string

None.

County

The name of the County

string

None.

PostalCode

The Postal Code for the Geopgraphic location.

string

None.

AddressTypeID

Address Type ID for the address entry form (billing/shipping/both).

AddressTypeID

None.

LocaleID

integer

None.

Request Formats

application/xml, text/xml

Sample:
<GeographicDrilldownParameters>
  <Country>sample string 1</Country>
  <State>sample string 2</State>
  <City>sample string 3</City>
  <County>sample string 4</County>
  <PostalCode>sample string 5</PostalCode>
  <AddressTypeID>Both</AddressTypeID>
  <LocaleID>1</LocaleID>
</GeographicDrilldownParameters>

application/json, text/json

Sample:
{
  "Country": "sample string 1",
  "State": "sample string 2",
  "City": "sample string 3",
  "County": "sample string 4",
  "PostalCode": "sample string 5",
  "AddressTypeID": 1,
  "LocaleID": 1
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedFormatter' to write type 'GeographicDrilldownParameters'.

Response Information

Resource Description

An object containing a list of States with their display names and stored values.

Collection of IGeographicOptionViewModel
NameDescriptionTypeAdditional information
Description

string

None.

Value

string

None.

Response Formats

application/xml, text/xml, application/json, text/json

Sample:

Sample not available.