younifyd
Menu

locationByIdentifier

Fetch a single location by its ID.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the locationByIdentifier action (under Location).
  3. Fill in the fields below, then reference the result from later steps as {{locationbyidentifier.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 LocationByIdentifier($identifier: LocationIdentifierInput!) {
  locationByIdentifier(identifier: $identifier) {
    activatable
    address {
      address1
      address2
      city
      country
      countryCode
      formatted
      latitude
      longitude
      phone
      province
      provinceCode
      zip
    }
    addressVerified
    createdAt
    deactivatable
    deactivatedAt
    deletable
    fulfillmentService {
      callbackUrl
      fulfillmentOrdersOptIn
      handle
      id
      inventoryManagement
      location
      requiresShippingMethod
      serviceName
      trackingSupport
      type
    }
    fulfillsOnlineOrders
    hasActiveInventory
    hasUnfulfilledOrders
    id
    isActive
    isFulfillmentService
    isPrimary
    legacyResourceId
    localPickupSettingsV2 {
      instructions
      pickupTime
    }
    name
    shipsInventory
    suggestedAddresses {
      address1
      address2
      city
      country
      countryCode
      formatted
      province
      provinceCode
      zip
    }
    updatedAt
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

identifierobjectrequired

The identifier of the location.

idstring
customIdobject3 fields
json
{
  "identifier": {
    "id": "string",
    "customId": {
      "key": "string",
      "value": "string",
      "namespace": "string"
    }
  }
}

Response

Read the result with {{locationbyidentifier.response.data.data.locationByIdentifier}}. If the API returns errors, the step fails and they are at {{locationbyidentifier.response.data.errors}}.

activatableboolean
addressobject
address1string
address2string
citystring
countrystring
countryCodestring
formattedarray<object>
latitudenumber
longitudenumber
phonestring
provincestring
provinceCodestring
zipstring
addressVerifiedboolean
createdAtstring
deactivatableboolean
deactivatedAtstring
deletableboolean
fulfillmentServiceobject
callbackUrlstring
fulfillmentOrdersOptInboolean
handlestring
idstring
inventoryManagementboolean
locationobject

Recursive reference to Location, not further expanded.

requiresShippingMethodboolean
serviceNamestring
trackingSupportboolean
typestring

One ofGIFT_CARDMANUALTHIRD_PARTY

fulfillsOnlineOrdersboolean
hasActiveInventoryboolean
hasUnfulfilledOrdersboolean
idstring
isActiveboolean
isFulfillmentServiceboolean
isPrimaryboolean
legacyResourceIdstring
localPickupSettingsV2object
instructionsstring
pickupTimestring

One ofONE_HOURTWO_HOURSFOUR_HOURSTWENTY_FOUR_HOURSTWO_TO_FOUR_DAYSFIVE_OR_MORE_DAYSCUSTOM

namestring
shipsInventoryboolean
suggestedAddressesarray<object>
address1object
address2object
cityobject
countryobject
countryCodeobject
formattedobject
provinceobject
provinceCodeobject
zipobject
updatedAtstring

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

Was this page helpful?
locationByIdentifier — Shopify — Documentation