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 \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"countries": [
{
"id": "<string>",
"country_name": "<string>",
"country_code": "<string>",
"country_iso_code": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"currency_name": "<string>",
"flag_icon_url": "<string>",
"country_alias": "<string>",
"continent": "<string>"
}
]
}
}
Retrieve all countries
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/common/countries \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"countries": [
{
"id": "<string>",
"country_name": "<string>",
"country_code": "<string>",
"country_iso_code": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"currency_name": "<string>",
"flag_icon_url": "<string>",
"country_alias": "<string>",
"continent": "<string>"
}
]
}
}
Access token
OK
The response is of type object
.