younifyd
Menu

market

Fetch a single market by its ID.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the market action (under Market).
  3. 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.

graphql
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.

idstringrequired

The ID of the `Market` to return.

json
{
  "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}}.

catalogsCountobject
countnumber
precisionstring

One ofEXACTAT_LEAST

conditionsobject
channelsConditionobject2 fields
companyLocationsConditionobject1 fields
conditionTypesarray<object>
locationsConditionobject1 fields
regionsConditionobject1 fields
currencySettingsobject
baseCurrencyobject5 fields
localCurrenciesboolean
roundingEnabledboolean
deliveryobject
shippingobject1 fields
discountsCountobject
countnumber
precisionstring

One ofEXACTAT_LEAST

enabledboolean
handlestring
idstring
namestring
priceInclusionsobject
adaptivePricingEnabledboolean
inclusiveDutiesPricingStrategystring

One ofADD_DUTIES_AT_CHECKOUTINCLUDE_DUTIES_IN_PRICE

inclusiveTaxPricingStrategystring

One ofADD_TAXES_AT_CHECKOUTINCLUDES_TAXES_IN_PRICEINCLUDES_TAXES_IN_PRICE_BASED_ON_COUNTRY

priceListobject
catalogobject6 fields
currencystring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

fixedPricesCountnumber
idstring
namestring
parentobject2 fields
primaryboolean
statusstring

One ofACTIVEDRAFT

typestring

One ofNONEREGIONLOCATIONCOMPANY_LOCATIONCHANNEL

webPresenceobject
alternateLocalesarray<object>
defaultLocaleobject5 fields
domainobject6 fields
idstring
marketobject

Recursive reference to Market, not further expanded.

rootUrlsarray<object>
subfolderSuffixstring

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

market — Shopify — Documentation