Query
query QueryStock($warehouseId: ID!) {
QueryStock(warehouseId: $warehouseId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
stockEntryId
warehouseId
binLocationId
articleId
availableQuantity
reservedQuantity
}
}
nodes {
stockEntryId
warehouseId
binLocationId
articleId
availableQuantity
reservedQuantity
}
totalCount
}
}Variables
{
"warehouseId": "id"
}Response
{
"data": {
"QueryStock": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"stockEntryId": "id",
"warehouseId": "id",
"binLocationId": "id",
"articleId": "id",
"availableQuantity": "value",
"reservedQuantity": "value"
}
}
],
"nodes": [
{
"stockEntryId": "id",
"warehouseId": "id",
"binLocationId": "id",
"articleId": "id",
"availableQuantity": "value",
"reservedQuantity": "value"
}
],
"totalCount": 1
}
}
}Queries
QueryStock
Returns stock entries for a warehouse filtered by bin location/article with optional batch, serial, and MHD filters.
QUERY
QueryStock(warehouseId: ID!, binLocationId: ID, articleId: ID, batchNumber: String, serialNumber: String, bestBeforeDateFrom: DateTime, bestBeforeDateTo: DateTime, first: Int, after: String, last: Int, before: String, where: QueryStockFilterInput, order: [QueryStockSortInput!]): QueryStockConnectionArguments
warehouseId
ID!
required
binLocationId
ID
articleId
ID
batchNumber
String
serialNumber
String
bestBeforeDateFrom
DateTime
bestBeforeDateTo
DateTime
first
Int
Returns the first n elements from the list.
after
String
Returns the elements in the list that come after the specified cursor.
last
Int
Returns the last n elements from the list.
before
String
Returns the elements in the list that come before the specified cursor.
order
Returns
pageInfo
Information to aid in pagination.
edges
A list of edges.
nodes
[QueryStock!]
A flattened list of the nodes.
totalCount
Int!
Identifies the total count of items in the connection.
Query
query QueryStock($warehouseId: ID!) {
QueryStock(warehouseId: $warehouseId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
stockEntryId
warehouseId
binLocationId
articleId
availableQuantity
reservedQuantity
}
}
nodes {
stockEntryId
warehouseId
binLocationId
articleId
availableQuantity
reservedQuantity
}
totalCount
}
}Variables
{
"warehouseId": "id"
}Response
{
"data": {
"QueryStock": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"stockEntryId": "id",
"warehouseId": "id",
"binLocationId": "id",
"articleId": "id",
"availableQuantity": "value",
"reservedQuantity": "value"
}
}
],
"nodes": [
{
"stockEntryId": "id",
"warehouseId": "id",
"binLocationId": "id",
"articleId": "id",
"availableQuantity": "value",
"reservedQuantity": "value"
}
],
"totalCount": 1
}
}
}Was this page helpful?