Menu
companyLocation
Fetch a single company location by its ID.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the companyLocation action (under Company).
- Fill in the fields below, then reference the result from later steps as
{{companylocation.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 CompanyLocation($id: ID!) {
companyLocation(id: $id) {
billingAddress {
address1
address2
city
companyName
country
countryCode
createdAt
firstName
formattedArea
id
lastName
phone
province
recipient
updatedAt
zip
zoneCode
}
buyerExperienceConfiguration {
checkoutToDraft
deposit
editableShippingAddress
payNowOnly
paymentTermsTemplate {
description
dueInDays
id
name
paymentTermsType
translatedName
}
}
company {
contactCount
contactsCount {
count
precision
}
createdAt
customerSince
defaultCursor
defaultRole {
id
name
note
}
externalId
hasTimelineComment
id
lifetimeDuration
locationsCount {
count
precision
}
mainContact {
company
createdAt
customer
id
isMainContact
lifetimeDuration
locale
title
updatedAt
}
name
note
ordersCount {
count
precision
}
totalSpent {
amount
currencyCode
}
updatedAt
}
createdAt
currency
defaultCursor
externalId
hasTimelineComment
id
locale
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
}
}
name
note
orderCount
ordersCount {
count
precision
}
phone
shippingAddress {
address1
address2
city
companyName
country
countryCode
createdAt
firstName
formattedArea
id
lastName
phone
province
recipient
updatedAt
zip
zoneCode
}
taxExemptions
taxRegistrationId
taxSettings {
taxExempt
taxExemptions
taxRegistrationId
}
totalSpent {
amount
currencyCode
}
updatedAt
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string"
}
Response
Read the result with {{companylocation.response.data.data.companyLocation}}. If the API returns errors, the step fails and they are at {{companylocation.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?