Store

The Store API endpoints allow fetching supported store details.

Gets a Store by ID or Alias

GET/umbraco/commerce/storefront/api/v1/store/{idOrAlias}
Path parameters
idOrAlias*string

The ID or the alias of the given resource

Query parameters
Header parameters
Response

Success

Body
idstring (uuid)
aliasstring
namenullable string
defaultCountryCountryReferenceDto (object)
defaultTaxClassTaxClassReferenceDto (object)
baseCurrencyCurrencyReferenceDto (object)
pricesIncludeTaxnullable boolean
Request
const response = await fetch('/umbraco/commerce/storefront/api/v1/store/{idOrAlias}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "alias": "text",
  "name": "text",
  "defaultCountry": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "code": "text"
  },
  "defaultTaxClass": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "alias": "text"
  },
  "baseCurrency": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "code": "text"
  },
  "pricesIncludeTax": false
}

Last updated