CorefinityCorefinityDocs
Open the Control PanelControl Panel
Magento stores · 2 of 2

List a site's Magento stores

Reads Magento's websites, store views, base URLs and mapped addresses. The result may be reused for 60 seconds; a save checks Magento again.

GET/api/corestack/sites/{site}/magento/stores

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Returns

200 The stores, their addresses, both versions and any warnings.

Fields of the 200 answer
default_hostsarray of stringsRequired

Addresses without their own store choice, including the platform address.

default_storeobject or any or nullRequired

The explicit default, or Magento's default website when none was selected.

domains_versionintegerRequired

At least 0.

nginx_versionintegerRequired

At least 0.

read_atstringRequired

Format: date-time.

store_hostsarray of stringsRequired

Extra store addresses set up by support. Non-empty makes customer store changes read-only.

warningsarray of objectsRequired

Non-blocking warnings such as base_url_elsewhere, base_url_host_unchosen, store_codes_in_urls and store_not_shown.

Fields of each item
messagestringRequired
reasonstringRequired
websitesarray of objectsRequired
Fields of each item
activebooleanRequired
base_urlstring or nullRequired
base_url_elsewherebooleanRequired

The base URL is on a host not showing this store.

base_url_ownbooleanRequired

The base URL is on the site's preview address, primary domain or its www form and can move automatically with a store domain.

codestringRequired
idintegerRequired
namestringRequired
shown_onarray of stringsRequired
default_group_idintegerRequired
is_defaultbooleanRequired
store_viewsarray of objectsRequired
Fields of each item
activebooleanRequired
base_urlstring or nullRequired
base_url_elsewherebooleanRequired

The base URL is on a host not showing this store.

base_url_ownbooleanRequired

The base URL is on the site's preview address, primary domain or its www form and can move automatically with a store domain.

codestringRequired
idintegerRequired
namestringRequired
shown_onarray of stringsRequired
group_idintegerRequired
is_activebooleanRequired
website_idintegerRequired

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
404not_magentoOnly a Magento 2 site has Magento stores. Choose a Magento 2 site.
409staleWhat you read has changed since you read it. Read it again, then send the change with its new version or quote.
409store_hostsThis site serves extra Magento stores on their own addresses. Ask Corefinity support to change its domains.
409store_mapping_unreadableThe store mapping in this site's nginx rules has been edited by hand. Remove the edit in the Nginx tab, or ask Corefinity support.
429rate_limitedWait for the seconds in Retry-After.
502stores_unreadableMagento's stores could not be read. Try again in a moment.
503switched_offCorefinity has switched this action off for the moment. Try again later.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/sites/1042/magento/stores \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "default_hosts": [
    "shop.example.com"
  ],
  "default_store": {
    "code": "base",
    "type": "website"
  },
  "domains_version": 0,
  "nginx_version": 0,
  "read_at": "2026-11-11T12:00:00Z",
  "store_hosts": [],
  "warnings": [],
  "websites": [
    {
      "active": true,
      "base_url": "https://shop.example.com/",
      "base_url_elsewhere": false,
      "base_url_own": true,
      "code": "base",
      "default_group_id": 1,
      "id": 1,
      "is_default": true,
      "name": "Main shop",
      "shown_on": [
        "shop.example.com"
      ],
      "store_views": [
        {
          "active": true,
          "base_url": "https://shop.example.com/",
          "base_url_elsewhere": true,
          "base_url_own": true,
          "code": "default",
          "group_id": 1,
          "id": 1,
          "is_active": true,
          "name": "English",
          "shown_on": [],
          "website_id": 1
        }
      ]
    }
  ]
}
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT