Commerce Engine is now in beta. We're working hard to make it better for you.
cURL
curl --request GET \ --url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/common/countries/{country_iso_code}/states \ --header 'Authorization: Bearer <token>'
{ "message": "<string>", "success": true, "content": { "states": [ { "id": "<string>", "name": "<string>", "iso_code": "<string>", "gst_code": "<string>", "state_alias": "<string>" } ] } }
Retrieve country wise states
Access token
country iso code in 2 chars. ex. IN for India
OK
The response is of type object.
object
Was this page helpful?