younifyd
Menu

inventoryLevel

Fetch a single inventory level by its ID.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the inventoryLevel action (under Inventory).
  3. Fill in the fields below, then reference the result from later steps as {{inventorylevel.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 InventoryLevel($id: ID!) {
  inventoryLevel(id: $id) {
    canDeactivate
    createdAt
    deactivationAlert
    id
    isActive
    item {
      countryCodeOfOrigin
      createdAt
      duplicateSkuCount
      harmonizedSystemCode
      id
      inventoryHistoryUrl
      legacyResourceId
      locationsCount {
        count
        precision
      }
      measurement {
        id
        weight
      }
      provinceCodeOfOrigin
      requiresShipping
      sku
      tracked
      trackedEditable {
        locked
        reason
      }
      unitCost {
        amount
        currencyCode
      }
      updatedAt
      variant {
        availableForSale
        availablePublicationsCount
        barcode
        compareAtPrice
        createdAt
        defaultCursor
        deliveryProfile
        displayName
        id
        inventoryItem
        inventoryPolicy
        inventoryQuantity
        legacyResourceId
        position
        price
        product
        publishedOnCurrentChannel
        publishedOnCurrentPublication
        requiresComponents
        selectedOptions
        sellableOnlineQuantity
        sellingPlanGroupCount
        sellingPlanGroupsCount
        showUnitPrice
        sku
        storefrontId
        taxCode
        taxable
        title
        unitPrice
        unitPriceMeasurement
        updatedAt
      }
    }
    location {
      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
    }
    updatedAt
  }
}

Variables

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

idstringrequired

The ID of the `InventoryLevel` to return.

json
{
  "id": "string"
}

Response

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

canDeactivateboolean
createdAtstring
deactivationAlertstring
idstring
isActiveboolean
itemobject
countryCodeOfOriginstring

One ofAFAXALDZADAOAIAGARAMAWACAUATAZBSBHBDBBBYBEBZBJBMBTBOBABWBVBRIOBNBGBFBIKHCACVBQKY

createdAtstring
duplicateSkuCountnumber
harmonizedSystemCodestring
idstring
inventoryHistoryUrlstring
legacyResourceIdstring
locationsCountobject2 fields
measurementobject2 fields
provinceCodeOfOriginstring
requiresShippingboolean
skustring
trackedboolean
trackedEditableobject2 fields
unitCostobject2 fields
updatedAtstring
variantobject32 fields
locationobject
activatableboolean
addressobject12 fields
addressVerifiedboolean
createdAtstring
deactivatableboolean
deactivatedAtstring
deletableboolean
fulfillmentServiceobject10 fields
fulfillsOnlineOrdersboolean
hasActiveInventoryboolean
hasUnfulfilledOrdersboolean
idstring
isActiveboolean
isFulfillmentServiceboolean
isPrimaryboolean
legacyResourceIdstring
localPickupSettingsV2object2 fields
namestring
shipsInventoryboolean
suggestedAddressesarray<object>
updatedAtstring
updatedAtstring

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