Market
Requires for queries and both as well as for mutations.
A merchant-defined group of buyers identified by conditions such as their region, retail location, or company location. Each market allows configuration of a distinct, localized buyer experience. Customizations include, but are not limited to, currency, pricing and product availability, web presence, and content translations.
Anchor to FieldsFields
- assignedCustomization (Boolean!)
- catalogs (MarketCatalogConnection!)
- catalogsCount (Count)
- conditions (MarketConditions)
- currencySettings (MarketCurrencySettings)
- handle (String!)
- id (ID!)
- metafield (Metafield)
- metafields (MetafieldConnection!)
- name (String!)
- priceInclusions (MarketPriceInclusions)
- status (MarketStatus!)
- type (MarketType!)
- webPresences (MarketWebPresenceConnection!)
- Anchor to assignedCustomizationassigned•Boolean!
Customization non-null Whether the market has a customization with the given ID.
- Anchor to customizationIdcustomization•ID!
Id required The ID of the customization that the market has been assigned to.
Arguments
- Anchor to catalogscatalogs•Market
Catalog Connection! non-null The catalogs that belong to the market.
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to catalogsCountcatalogs•Count
Count The number of catalogs that belong to the market.
- Anchor to conditionsconditions•Market
Conditions The conditions under which a visitor is in the market.
- Anchor to currencySettingscurrency•Market
Settings Currency Settings The market’s currency settings.
- Anchor to handlehandle•String!non-null
A short, human-readable unique identifier for the market. This is changeable by the merchant.
- •ID!non-null
A globally-unique ID.
- Anchor to metafieldmetafield•Metafield
A custom field, including its
namespaceandkey, that's associated with a Shopify resource for the purposes of adding and storing additional information.- •String!required
The key for the metafield.
- Anchor to namespacenamespace•String
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
Arguments
- •String!
- Anchor to metafieldsmetafields•Metafield
Connection! non-null A list of custom fields that a merchant associates with a Shopify resource.
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to keyskeys•[String!]
List of keys of metafields in the format
namespace.key, will be returned in the same format.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to namespacenamespace•String
The metafield namespace to filter by. If omitted, all metafields are returned.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to namename•String!non-null
The name of the market. Not shown to customers.
- Anchor to priceInclusionsprice•Market
Inclusions Price Inclusions The inclusive pricing strategy for a market. This determines if prices include duties and / or taxes.
- Anchor to statusstatus•Market
Status! non-null Status of the market. Replaces the enabled field.
- Anchor to typetype•Market
Type! non-null The type of the market.
- Anchor to webPresencesweb•Market
Presences Web Presence Connection! non-null The market’s web presences, which defines its SEO strategy. This can be a different domain, subdomain, or subfolders of the primary domain. Each web presence comprises one or more language variants. If a market doesn't have any web presences, then the market is accessible on the primary market's domains using country selectors.
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
Deprecated fields
- enabled (Boolean!): deprecated
- metafieldDefinitions (MetafieldDefinitionConnection!): deprecated
- priceList (PriceList): deprecated
- primary (Boolean!): deprecated
- regions (MarketRegionConnection!): deprecated
- webPresence (MarketWebPresence): deprecated
- Anchor to enabledenabled•Boolean!non-nullDeprecated
- Anchor to metafieldDefinitionsmetafield•Metafield
Definitions Definition Connection! non-nullDeprecated - Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to namespacenamespace•String
Filter metafield definitions by namespace.
- Anchor to pinnedStatuspinned•Metafield
Status Definition Pinned Status Default:ANY Filter by the definition's pinned status.
- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators.
name type description acceptable_values default_value example_use default string Filter by a case-insensitive search of multiple fields in a document. - query=Bob Norman
-query=title:green hoodiecreated_at time Filter by the date and time when the metafield definition was created. -
-
-id id Filter by idrange.- id:1234
-id:>=1234
-id:<=1234key string Filter by the metafield definition keyfield. - key:some-keynamespace string Filter by the metafield definition namespacefield. - namespace:some-namespaceowner_type string Filter by the metafield definition field. - type string Filter by the metafield definition typefield. - updated_at time Filter by the date and time when the metafield definition was last updated. -
-| You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Metafield
Key Definition Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
Arguments
- Anchor to priceListprice•Price
List List Deprecated - Anchor to primaryprimary•Boolean!non-nullDeprecated
- Anchor to regionsregions•Market
Region Connection! non-nullDeprecated - Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to webPresenceweb•Market
Presence Web Presence Deprecated
Anchor to QueriesQueries
- market (Market)
- markets (MarketConnection!)
- •query
Returns a
Marketresource by ID.- •ID!required
The ID of the
Marketto return.
Arguments
- •ID!
- •query
Returns a paginated list of
Marketobjects configured for the shop. Markets match buyers based on defined conditions to deliver customized shopping experiences.Filter markets by
and, search by name, and control sort order. Retrieve market configurations including,objects, and.Learn more about Shopify Markets.
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators.
name type description acceptable_values default_value example_use default string Filter by a case-insensitive search of multiple fields in a document. - query=Bob Norman
-query=title:green hoodieid id Filter by idrange.- id:1234
-id:>=1234
-id:<=1234market_condition_types string A comma-separated list of condition types. market_type string name string status string -
-wildcard_company_location_with_country_code string You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax). - Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Markets
Key Sort Keys Default:NAME Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
- Anchor to typetype•Market
Type Default:null Filters markets by type.
Arguments
Deprecated queries
- marketByGeography (Market): deprecated
- primaryMarket (Market!): deprecated
- •queryDeprecated
- Anchor to countryCodecountry•Country
Code Code! required The code for the country where the customer is.
Arguments
- •queryDeprecated
Anchor to MutationsMutations
- marketCreate (MarketCreatePayload)
- marketUpdate (MarketUpdatePayload)
- •mutation
Creates a
Marketto deliver customized shopping experiences. Markets define various aspects of the buyer experience including pricing, product availability, custom content, inventory and fulfillment priorities, and payment methods.Define conditions to match buyers by region, company location, retail location, or other criteria. Configure
to control currency behavior. Setto determine tax and duty display. AssignCatalogobjects andconfigurations to control product availability and SEO strategy.Learn more about Shopify Markets.
- Anchor to inputinput•Market
Create Input! required The properties of the new market.
Arguments
- •mutation
Updates the properties of a market.
- •ID!required
The ID of the market to update.
- Anchor to inputinput•Market
Update Input! required The properties to update.
Arguments
- •ID!
Deprecated mutations
- marketCurrencySettingsUpdate (MarketCurrencySettingsUpdatePayload): deprecated
- marketRegionDelete (MarketRegionDeletePayload): deprecated
- marketRegionsCreate (MarketRegionsCreatePayload): deprecated
- marketWebPresenceCreate (MarketWebPresenceCreatePayload): deprecated
- marketWebPresenceDelete (MarketWebPresenceDeletePayload): deprecated
- marketWebPresenceUpdate (MarketWebPresenceUpdatePayload): deprecated
- •mutationDeprecated
- Anchor to inputinput•Market
Currency Settings Update Input! required Properties to update for the market currency settings.
- Anchor to marketIdmarket•ID!
Id required The ID of the market definition to target.
Arguments
- •mutationDeprecated
- •ID!required
The ID of the market region to delete.
Arguments
- •ID!
- •mutationDeprecated
- Anchor to marketIdmarket•ID!
Id required The ID of the market to add the regions to.
- Anchor to regionsregions•[Market
Region Create Input!]! required The regions to be created.
Arguments
- •mutationDeprecated
- Anchor to marketIdmarket•ID!
Id required The ID of the market for which to create a web presence.
- Anchor to webPresenceweb•Market
Presence Web Presence Create Input! required The details of the web presence to be created.
Arguments
- •mutationDeprecated
- Anchor to webPresenceIdweb•ID!
Presence Id required The ID of the web presence to delete.
Arguments
- •mutationDeprecated
- Anchor to webPresenceweb•Market
Presence Web Presence Update Input! required The web_presence fields used to update the market's web presence.
- Anchor to webPresenceIdweb•ID!
Presence Id required The ID of the web presence to update.
Arguments
Anchor to InterfacesInterfaces
- HasMetafieldDefinitions
- HasMetafields
- Node
- •interface
- •interface