Associated query Returns multiple results StockLevel StockLevels ✔️
Label Type Notes Null available integer The quantity of available stock barcode string The barcode of this stock ✔️ bin_location string ✔️ expiration_date Date The stock's expiration date ✔️ id integer The id of this stock label string The label of this stock's product (or variant of a product). Automatically generated location Location The location this stock is stored at on_hand integer The quantity of stock on hand purchased integer The quantity of purchased stock sku string The sku of this stock ✔️ variant Variant The variant of a product contained in this stock (might be the product's default variant)
JSON
query{
StockLevels{
edges{
node{
active
barcode
bin_location
expiration_date
id
label
location{
id
}
sku
variant{
id
}
}
}
}
}
GraphQL
mutation {
StockLevelAdjust (
input: {
variant: {
id: 1631
},
location: {
id: 11
},
on_hand: 100
}
)
}
This will adjust of a variant in the specified location. This will adjust both on_hand and available inventory.