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.

The actor-chain contains the following parameters:

Parameter

Description

countryCode

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/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"
  },

...

  }
]}

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices