Available queries
Associated query | Returns multiple results |
---|---|
StockLevel | |
StockLevels | ✔️ |
Available fields
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) |
Example of a query
query{
StockLevels{
edges{
node{
active
barcode
bin_location
expiration_date
id
label
location{
id
}
sku
variant{
id
}
}
}
}
}