Menu
market
Fetch a single market by its ID.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the market action (under Market).
- Fill in the fields below, then reference the result from later steps as
{{market.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query Market($id: ID!) {
market(id: $id) {
catalogsCount {
count
precision
}
conditions {
channelsCondition {
applicationLevel
channelsCount
}
companyLocationsCondition {
applicationLevel
}
conditionTypes
locationsCondition {
applicationLevel
}
regionsCondition {
applicationLevel
}
}
currencySettings {
baseCurrency {
currencyCode
currencyName
enabled
manualRate
rateUpdatedAt
}
localCurrencies
roundingEnabled
}
delivery {
shipping {
isEnabled
}
}
discountsCount {
count
precision
}
enabled
handle
id
name
priceInclusions {
adaptivePricingEnabled
inclusiveDutiesPricingStrategy
inclusiveTaxPricingStrategy
}
priceList {
catalog {
id
operations
priceList
publication
status
title
}
currency
fixedPricesCount
id
name
parent {
adjustment
settings
}
}
primary
status
type
webPresence {
alternateLocales {
locale
marketWebPresences
name
primary
published
}
defaultLocale {
locale
marketWebPresences
name
primary
published
}
domain {
host
id
localization
marketWebPresence
sslEnabled
url
}
id
market
rootUrls {
locale
url
}
subfolderSuffix
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string"
}
Response
Read the result with {{market.response.data.data.market}}. If the API returns errors, the step fails and they are at {{market.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?