State codes by country

GET https://app.ecwid.com/api/v3/{storeId}/states?countryCode=US

Required access scopes

Your app doesn't need any specific access scopes to make this request.

Path params

All path params are required.

Param
Type
Description

storeId

number

Ecwid store ID.

Query params

Some query params are required.

Name
Type
Description

lang

string

Language ISO code for translations in JSON response, e.g. en, fr. If not specified, response will be in English.

countryCode

string

Country code in ISO 639-1. Required

Headers

The Authorization header is optional. Request works the same way with or without access token.

Header
Format
Description

Authorization

Bearer secret_ab***cd

Access token of the application.

Response JSON

A JSON array of objects with the following fields:

Field
Type
Description

code

string

Two-digit state code in ISO 639-1 format.

name

string

State name.

Last updated

Was this helpful?