Menu
marketCreate
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…
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the marketCreate action (under Market).
- Fill in the fields below, then reference the result from later steps as
{{marketcreate.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation MarketCreate($input: MarketCreateInput!) {
marketCreate(input: $input) {
market {
catalogsCount {
count
precision
}
conditions {
channelsCondition
companyLocationsCondition
conditionTypes
locationsCondition
regionsCondition
}
currencySettings {
baseCurrency
localCurrencies
roundingEnabled
}
delivery {
shipping
}
discountsCount {
count
precision
}
enabled
handle
id
name
priceInclusions {
adaptivePricingEnabled
inclusiveDutiesPricingStrategy
inclusiveTaxPricingStrategy
}
priceList {
catalog
currency
fixedPricesCount
id
name
parent
}
primary
status
type
webPresence {
alternateLocales
defaultLocale
domain
id
market
rootUrls
subfolderSuffix
}
}
userErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"input": {
"name": "string",
"handle": "string",
"enabled": false,
"regions": [
{
"countryCode": "string"
}
],
"conditions": {
"companyLocationsCondition": {
"companyLocationIds": "string",
"applicationLevel": "string"
},
"locationsCondition": {
"locationIds": "string",
"applicationLevel": "string"
},
"regionsCondition": {
"regionIds": "string",
"regions": "string",
"applicationLevel": "string"
},
"channelsCondition": {
"channelIds": "string"
}
},
"catalogs": [
"string"
],
"makeDuplicateRegionMarketsDraft": false,
"makeDuplicateUniqueMarketsDraft": false,
"status": "ACTIVE",
"webPresences": [
"string"
],
"currencySettings": {
"baseCurrency": "USD",
"baseCurrencyManualRate": "string",
"localCurrencies": false,
"roundingEnabled": false
},
"priceInclusions": {
"taxPricingStrategy": "ADD_TAXES_AT_CHECKOUT",
"dutiesPricingStrategy": "ADD_DUTIES_AT_CHECKOUT",
"adaptivePricingEnabled": false
}
}
}
Response
Read the result with {{marketcreate.response.data.data.marketCreate}}. If the API returns errors, the step fails and they are at {{marketcreate.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?