Authorizations
Access token
Path Parameters
country iso code in 2 chars. ex. IN for India
Commerce Engine is now in beta. We're working hard to make it better for you.
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
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>"
}
]
}
}
Access token
country iso code in 2 chars. ex. IN for India
Was this page helpful?