Wiki

Clone wiki

API-2.0 / Get_states

API method DEPRECATED, please use country -> states from Get settings instead


Method: GET

Path: /api/states

Return list of client's country states.

Example response JSON

{"states":[
  "AK","AL","AR","AZ","CA",
  "CO","CT","DC","DE","FL",
  "GA","HI","IA","ID","IL",
  "IN","KS","KY","LA","MA",
  "MD","ME","MI","MN","MO",
  "MS","MT","NC","ND","NE",
  "NH","NJ","NM","NV","NY",
  "OH","OK","OR","PA","RI",
  "SC","SD","TN","TX","UT",
  "VA","VT","WA","WI","WV","WY"
]}

Example request:

For production, replace https://acme-sandbox.l27.co with https://<your subdomain>.launch27.com

curl -H "X-API-Key: test_8kBFkhmf8TA7TZyQBh" \
     -H "Content-Type: application/json" \
     -H "Accept: application/launch27.v2" \
     -X GET -k \
     https://acme-sandbox.l27.co/api/states

Updated