The StateListActor
is used to identify the state of a user’s profile locale. The path of this actor is /atg/commerce/util
, and it contains the states
actor-chain.
Parameter | Description |
---|---|
| Identifies the country code of a specific customer. |
State Identification Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{ \"countryCode\":\"US\" }" "http://localhost:8280/rest/model/atg/commerce/ util/StateListActor/states"
The server response may be similar to the following:
{"states":[ { "code":"AK", "displayName":"AK - Alaska" }, { "code":"AL", "displayName":"AL - Alabama" }, { "code":"AR", "displayName":"AR - Arkansas" }, ... } ]}