Menu
marketUpdate
Updates the properties of a market.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the marketUpdate action (under Market).
- Fill in the fields below, then reference the result from later steps as
{{marketupdate.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 MarketUpdate($id: ID!, $input: MarketUpdateInput!) {
marketUpdate(id: $id, 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.
{
"id": "string",
"input": {
"name": "string",
"handle": "string",
"enabled": false,
"conditions": {
"conditionsToAdd": {
"companyLocationsCondition": "string",
"locationsCondition": "string",
"regionsCondition": "string",
"channelsCondition": "string"
},
"conditionsToDelete": {
"companyLocationsCondition": "string",
"locationsCondition": "string",
"regionsCondition": "string",
"channelsCondition": "string"
}
},
"catalogsToAdd": [
"string"
],
"catalogsToDelete": [
"string"
],
"webPresencesToAdd": [
"string"
],
"webPresencesToDelete": [
"string"
],
"discountsToAdd": [
"string"
],
"discountsToDelete": [
"string"
],
"makeDuplicateRegionMarketsDraft": false,
"makeDuplicateUniqueMarketsDraft": false
}
}
Response
Read the result with {{marketupdate.response.data.data.marketUpdate}}. If the API returns errors, the step fails and they are at {{marketupdate.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?