shop
Get a shop by its slug.
The slug argument accepts the shop's current slug as well as every slug it used before, so existing links keep
working after a rename. Shop.slug always resolves the current slug.
Resolves to null if no shop uses the given slug. No authorization is required.
This is the entry point for a storefront: Shop.events and Shop.eventGroups resolve what the shop offers,
and Shop.checkoutForm describes the data a customer has to supply. The Shop type walks through the whole
flow from browsing to checkout.
query GetShop($slug: ID!, $locale: String!) { shop(slug: $slug) { name events { id name(locale: $locale) earliestStart } } }query GetShop($slug: ID!, $locale: String!) { shop(slug: $slug) { name events { id name(locale: $locale) earliestStart } } }
Arguments
| Argument | Description | Type |
|---|---|---|
| slug | ID! |
Type
This field resolves to Shop, which has the following fields:
| Field | Description | Type |
|---|---|---|
acceptsDiscountCodes | Indicates whether the shop accepts discount codes. | Boolean |
checkoutAgreements | [ CheckoutAgreement! ]! | |
checkoutForm | Form! | |
customerSupportEmail | Email | |
event | ShopEvent | |
eventGroup | ShopEventGroup | |
eventGroups | [ ShopEventGroup! ]! | |
events | [ ShopEvent! ]! | |
logo | Image | |
marketingCode | String | |
name | String! | |
paymentMethods | [ PaymentMethod ] | |
slug | ID! | |
themeColor | Color |