Skip to content
Queries

store

Name, logo, type, currency and language of the store in x-Store-Domain.

store returns the store in x-Store-Domain: name, logo, type, currency and language.

store: StorefrontStore!

It takes no arguments.

StorefrontStore

FieldTypeDescription
idString!Store ID.
nameString!Public name.
descriptionString!Public description. Can be "".
slugStringStore slug.
domainStringPrimary domain.
logoStringLogo URL.
iconStringIcon URL.
typeStoreType!Store type.
currencyString!Currency code, for example PEN.
languageString!Language code, for example es.

StoreType

ValueStore
B2CSells its own catalog.
MARKETPLACEBrings several sellers together.
RETAILRetail.
B2BWholesale.
SOCIALSocial commerce.
HUBCentralizes catalog and stock for external channels.
RESTAURANTRestaurant or food.

Example

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
{
  "data": {
    "store": {
      "id": "123",
      "name": "Store",
      "description": "Description",
      "slug": "store",
      "domain": null,
      "logo": null,
      "icon": null,
      "type": "MARKETPLACE",
      "currency": "PEN",
      "language": "es"
    }
  }
}

Errors

CodeCause
STORE_CONTEXT_REQUIREDx-Store-Domain is missing or doesn't match a store.
NOT_FOUNDThe store no longer exists.

REST equivalent

GET /v1/settings returns every public setting: checkout, theme, features, pages and menus. Use store when you only need these ten fields.

Last updated:

On this page