get https://app.ecwid.com/api/v3//states?countryCode=US
Headers
Name | Type | Description |
---|---|---|
Authorization | string | oAuth token with mandatory Bearer before it. Example: Bearer e***s0 , where e***s0 should be replaced with your oAuth token. |
Query parameters
Name | Type | Description |
---|---|---|
countryCode | string | Required parameter. Country code must be in ISO 639-1 format |
Response
A JSON object with the following fields:
Field | Type | Description |
---|---|---|
code | string | Two-digit state code in ISO 639-1 format |
name | string | State name |