Available queries

Associated queryReturns multiple results
StockLevel
StockLevels✔️

Available fields

LabelTypeNotesNull
availableintegerThe quantity of available stock
barcodestringThe barcode of this stock✔️
bin_locationstring✔️
expiration_dateDateThe stock's expiration date✔️
idintegerThe id of this stock
labelstringThe label of this stock's product (or variant of a product). Automatically generated
locationLocationThe location this stock is stored at
on_handintegerThe quantity of stock on hand
purchasedintegerThe quantity of purchased stock
skustringThe sku of this stock✔️
variantVariantThe variant of a product contained in this stock (might be the product's default variant)

Example of a query

query{
  StockLevels{
    edges{
      node{
        active
        barcode
        bin_location
        expiration_date
        id
        label
        location{
          id
        }
        sku
        variant{
          id
        }
      }
    }
  }
}