Skip to main content
object

Requires read_markets for queries and both read_markets as well as write_markets 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 assignedCustomizationassignedCustomization
•Boolean!
non-null

Whether the market has a customization with the given ID.

Show arguments

Arguments

•ID!
required

The ID of the customization that the market has been assigned to.


•MarketCatalogConnection!
non-null

The catalogs that belong to the market.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•Count

The number of catalogs that belong to the market.

Show fields
•MarketConditions

The conditions under which a visitor is in the market.

Show fields
•MarketCurrencySettings

The market’s currency settings.

Show fields
•MarketDeliveryConfigurations!
non-null

The delivery settings for this market.

Show fields
•DiscountNodeConnection

The discounts that are available in this market.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•Count

The number of discounts that are assigned to this market.

Show fields
•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.

•Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Show fields

Arguments

•String!
required

The key for the metafield.

•String

The container the metafield belongs to. If omitted, the app-reserved namespace will be used.


•MetafieldConnection!
non-null

A list of custom fields that a merchant associates with a Shopify resource.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•[String!]

List of keys of metafields in the format namespace.key, will be returned in the same format.

•Int

The last n elements from the paginated list.

•String

The metafield namespace to filter by. If omitted, all metafields are returned.

•Boolean
Default:false

Reverse the order of the underlying list.


Anchor to metafieldsByIdentifiersmetafieldsByIdentifiers
•[Metafield]!
non-null

The metafields associated with the resource matching the supplied list of namespaces and keys.

Show fields

Arguments

•[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.

Show input fields

•String!
non-null

The name of the market. Not shown to customers.

•MarketPriceInclusions

The inclusive pricing strategy for a market. This determines if prices include duties and / or taxes.

Show fields
•ReturnPolicyProfile

The return policy profile for this market.

Show fields
•MarketStatus!
non-null

Status of the market. Replaces the enabled field.

Show enum values
•MarketType!
non-null

The type of the market.

Show enum values
•MarketWebPresenceConnection!
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.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


Deprecated fields

•Boolean!
non-nullDeprecated
Anchor to metafieldDefinitionsmetafieldDefinitions
•MetafieldDefinitionConnection!
non-nullDeprecated
Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•String

Filter metafield definitions by namespace.

•MetafieldDefinitionPinnedStatus
Default:ANY

Filter by the definition's pinned status.

Show enum values
•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
Anchor to default
•string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
Anchor to created_at
•time

Filter by the date and time when the metafield definition was created.

Example:

  • created_at:>'2020-10-21T23:39:20Z'
  • created_at:<now
  • created_at:<=2024
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
•string

Filter by the metafield definition key field.

Example:

  • key:some-key
Anchor to namespace
•string

Filter by the metafield definition namespace field.

Example:

  • namespace:some-namespace
Anchor to owner_type
•string

Filter by the metafield definition ownerType field.

Example:

  • owner_type:PRODUCT
•string

Filter by the metafield definition type field.

Example:

  • type:single_line_text_field
Anchor to updated_at
•time

Filter by the date and time when the metafield definition was last updated.

Example:

  • updated_at:>'2020-10-21T23:39:20Z'
  • updated_at:<now
  • updated_at:<=2024
•Boolean
Default:false

Reverse the order of the underlying list.

•MetafieldDefinitionSortKeys
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.

Show enum values

•PriceList
Deprecated
Show fields
•Boolean!
non-nullDeprecated
•MarketRegionConnection!
non-nullDeprecated
Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•MarketWebPresence
Deprecated
Show fields

Was this section helpful?

•query

Returns a Market resource by ID.

Show fields

Arguments

•ID!
required

The ID of the Market to return.


•query

Returns a paginated list of Market objects configured for the shop. Markets match buyers based on defined conditions to deliver customized shopping experiences.

Filter markets by MarketType and MarketStatus, search by name, and control sort order. Retrieve market configurations including MarketCurrencySettings, MarketWebPresence objects, and MarketConditions.

Learn more about Shopify Markets.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Boolean
Default:null

Filters markets by enabled status.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
Anchor to default
•string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to market_condition_types
•string

A comma-separated list of condition types.

Anchor to market_type
•string
•string
•string

Valid values:

  • ACTIVE
  • DRAFT
Anchor to wildcard_company_location_with_country_code
•string
•Boolean
Default:false

Reverse the order of the underlying list.

•MarketsSortKeys
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.

Show enum values
•MarketType
Default:null

Filters markets by type.

Show enum values

Deprecated queries

•query
Deprecated
Show fields

Arguments

•CountryCode!
required

The code for the country where the customer is.

Show enum values

•query
Deprecated
Show fields

Was this section helpful?

•mutation

Creates a Market to 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 MarketCurrencySettings to control currency behavior. Set MarketPriceInclusions to determine tax and duty display. Assign Catalog objects and MarketWebPresence configurations to control product availability and SEO strategy.

Learn more about Shopify Markets.

Show payload

Arguments

•MarketCreateInput!
required

The properties of the new market.

Show input fields

•mutation

Updates the properties of a market.

Show payload

Arguments

•ID!
required

The ID of the market to update.

•MarketUpdateInput!
required

The properties to update.

Show input fields

Deprecated mutations

•mutation
Deprecated
Show payload

Arguments

•MarketCurrencySettingsUpdateInput!
required

Properties to update for the market currency settings.

Show input fields
•ID!
required

The ID of the market definition to target.


•mutation
Deprecated
Show payload

Arguments

•ID!
required

The ID of the market region to delete.


•mutation
Deprecated
Show payload

Arguments

•ID!
required

The ID of the market to add the regions to.

•[MarketRegionCreateInput!]!
required

The regions to be created.

Show input fields

•mutation
Deprecated
Show payload

Arguments

•ID!
required

The ID of the market for which to create a web presence.

•MarketWebPresenceCreateInput!
required

The details of the web presence to be created.

Show input fields

•mutation
Deprecated
Show payload

Arguments

•ID!
required

The ID of the web presence to delete.


•mutation
Deprecated
Show payload

Arguments

•MarketWebPresenceUpdateInput!
required

The web_presence fields used to update the market's web presence.

Show input fields
•ID!
required

The ID of the web presence to update.



Was this section helpful?

•interface

Was this section helpful?