ANVEO.STATES.LIST - API REQUEST
|
|
|
ANVEO.STATES.LIST - Get a list of states for a country.
|
|
Description
|
|
ANVEO.STATES.LIST API Action is used to obtain a list of states for a country. This action is only requred for countries with HAS_STATES attribute set.
|
|
Arguments
|
|
DID_TYPE
Required. A type of DID to be ordered.
COUNTRY_ID
Required. Country ID from ANVEO.COUNTRIES.LIST action for which a list of states is needed.
|
|
|
Example:
<PARAMETER NAME="DID_TYPE">GEOGRAPHIC</PARAMETER>
<PARAMETER NAME="COUNTRY_ID">123.123.123.123.123.123.123.123.123.</PARAMETER>
|
|
Example:
param[DID_TYPE]=GEOGRAPHIC
param[COUNTRY_ID]=123.123.123.123.123.123.123.123.123
|
|
|
Response
|
|
STATES XML node contains a list of states.
|
|
API Request Example
|
|
<?xml version="1.0" standalone="no" ?>
<REQUEST>
<USERTOKEN>
<USERKEY>df141891e2e883904b0b294dc5bq79c1c1c13f6d</USERKEY>
</USERTOKEN>
<ACTION NAME="ANVEO.STATES.LIST">
<PARAMETER NAME="DID_TYPE">GEOGRAPHIC</PARAMETER>
<PARAMETER NAME="COUNTRY_ID">123.123.123.123.123.123.123.123.123</PARAMETER>
</ACTION>
</REQUEST>
|
|
https://www.anveo.com/api/v2.asp?userkey=df141891e2e883904b0b294dc5bq79c1c1c13f6d&action=ANVEO.STATES.LIST¶m[DID_TYPE]=GEOGRAPHIC¶m[COUNTRY_ID]=123.123.123.123.123.123.123.123.123
|
|
|
Response Example
|
<?xml version="1.0" standalone="no" ?>
<RESPONSE>
<RESULT>SUCCESS</RESULT>
<STATES>
<STATE STATE_ID="34.34.343" STATE_NAME="New York" STATE_CODE="NY">
</STATES>
</RESPONSE>
|
|
|