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
| Field | Type | Description |
|---|---|---|
id | String! | Store ID. |
name | String! | Public name. |
description | String! | Public description. Can be "". |
slug | String | Store slug. |
domain | String | Primary domain. |
logo | String | Logo URL. |
icon | String | Icon URL. |
type | StoreType! | Store type. |
currency | String! | Currency code, for example PEN. |
language | String! | Language code, for example es. |
StoreType
| Value | Store |
|---|---|
B2C | Sells its own catalog. |
MARKETPLACE | Brings several sellers together. |
RETAIL | Retail. |
B2B | Wholesale. |
SOCIAL | Social commerce. |
HUB | Centralizes catalog and stock for external channels. |
RESTAURANT | Restaurant or food. |
Example
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 } }"
}'{
"data": {
"store": {
"id": "123",
"name": "Store",
"description": "Description",
"slug": "store",
"domain": null,
"logo": null,
"icon": null,
"type": "MARKETPLACE",
"currency": "PEN",
"language": "es"
}
}
}Errors
| Code | Cause |
|---|---|
STORE_CONTEXT_REQUIRED | x-Store-Domain is missing or doesn't match a store. |
NOT_FOUND | The store no longer exists. |
REST equivalent
GET / returns every public setting: checkout, theme, features, pages and menus. Use store when you only need these ten fields.
Last updated: