Skip to content
Guides
Queries

store

Retrieve the resolved store's identity and basic public configuration.

Last updated:

store returns the store identified by x-Store-Domain. Use it to read its identity, basic branding, commerce model, currency, and language without requesting the complete REST snapshot.

Signature

store: StorefrontStore!

The query takes no arguments and always returns StorefrontStore when the store context can be resolved.

StorefrontStore fields

FieldTypeDescription
idString!Opaque public store identifier.
nameString!Public store name.
descriptionString!Public description; it can be an empty string.
slugStringAssigned store slug, when present.
domainStringConfigured primary domain, when present.
logoStringPublic logo URL or reference, when present.
iconStringPublic icon URL or reference, when present.
typeStoreType!Commerce model configured for the store.
currencyString!Configured currency code, for example PEN.
languageString!Configured language code, for example en.

Fields without ! can return null. Keep id as a string and do not try to interpret its format.

StoreType

type returns one of these exact values:

ValueModel
B2COnline store that sells its own catalog.
MARKETPLACEStore in which multiple sellers participate.
RETAILRetail operation.
B2BWholesale or business-to-business operation.
SOCIALSocial commerce operation.
HUBHub that centralizes catalog and stock for external channels.
RESTAURANTRestaurant or food operation.

Query

Store.graphql
query Store {
  store {
    id
    name
    description
    slug
    domain
    logo
    icon
    type
    currency
    language
  }
}

This operation does not need variables.

cURL

Terminal
curl --request POST "https://storefront.ecomiq.pe/graphql" \
  --header "Content-Type: application/json" \
  --header "x-Store-Domain: my-store" \
  --data-binary '{
    "query": "query Store { store { id name description slug domain logo icon type currency language } }"
  }'

Response

GraphQL returns only the requested fields:

Response
{
  "data": {
    "store": {
      "id": "123",
      "name": "Tienda",
      "description": "Descripción",
      "slug": "tienda",
      "domain": null,
      "logo": null,
      "icon": null,
      "type": "MARKETPLACE",
      "currency": "PEN",
      "language": "es"
    }
  }
}

Errors

CodeWhen it occurs
STORE_CONTEXT_REQUIREDx-Store-Domain does not resolve a store.
NOT_FOUNDThe context contains a store ID that can no longer be found.
Missing context
{
  "errors": [
    {
      "message": "Store context is required.",
      "path": ["store"],
      "extensions": {
        "code": "STORE_CONTEXT_REQUIRED"
      }
    }
  ],
  "data": null
}

Read GraphQL errors before using data: an HTTP 200 response can still contain errors.

REST equivalent

GET /v1/settings returns the complete public snapshot, including checkout, theme, features, pages, and menus. Use store when you only need the ten fields documented on this page.

On this page