The Currency API endpoints allow fetching supported currencies from a store.
Last updated 11 months ago
Success
The ID or the alias of the given resource
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" } } ] } ]
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" } } ] }