Get cities by state
Country
Get cities by state
Retrieve cities for a specific state within a country
GET
Get cities by state
Request
Headers
| Header | Type | Description |
|---|---|---|
Authorization | string | Provide the customer token in the format Bearer <jwt>. |
x-shop-id | string | Identify the shop for which the country metadata is requested. |
Query parameters
| Parameter | Type | Description |
|---|---|---|
shortName | string | Country short code (e.g., NG, US, GB). Defaults to NG if omitted. |
state | string | State/region name to pull cities for. Required. |
Request examples
Nigerian cities
United States cities
United Kingdom cities
Successful response
Error responses
400 Bad Request
404 Not Found
Authorizations
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Query Parameters
Country short name (e.g., NG, US, GB). Defaults to NG if not provided.
State/region name to retrieve cities for.

