The Currency API endpoints allow fetching supported currencies from a store.
Last updated 1 year ago
Success
const response = await fetch('/umbraco/commerce/storefront/api/v1/currencies', { method: 'GET', headers: { "Api-Key": "text", "Store": "text" }, }); const data = await response.json();
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "code": "text", "name": "text", "culture": "text", "formatTemplate": "text", "allowedCountries": [ { "country": { "id": "123e4567-e89b-12d3-a456-426614174000", "code": "text" } } ] } ]
The ID or the alias of the given resource
const response = await fetch('/umbraco/commerce/storefront/api/v1/currency/{idOrAlias}', { method: 'GET', headers: { "Api-Key": "text", "Store": "text" }, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "code": "text", "name": "text", "culture": "text", "formatTemplate": "text", "allowedCountries": [ { "country": { "id": "123e4567-e89b-12d3-a456-426614174000", "code": "text" } } ] }