Skip to main content

Batch

A batch of a product (e.g. lot, serial group). Used to track stock down to a batch level for products with expiry dates or batch-traceable inventory. The (productId, number) pair is unique.

type Batch implements Node {
id: ID!
comment: String
number: String
physicalStock: Int!
productId: ID!
goodsReceiptLineItems(
first: Int = 10
after: String
filter: GoodsReceiptLineItemFilterInput
): GoodsReceiptLineItemConnection
product: Product
tags(
first: Int = 10
after: String
filter: TagFilterInput
): TagConnection
}

Fields​

Batch.id ● ID! non-null scalar​

Global identifier for this entity.

Batch.comment ● String scalar​

Free-form note attached to the batch (handling instructions, source, …).

Batch.number ● String scalar​

Batch identifier (lot number, serial group, …). Unique per product.

Batch.physicalStock ● Int! non-null scalar​

Total units of this batch present across all warehouses.

Batch.productId ● ID! non-null scalar​

ID of the product this batch belongs to.

Batch.goodsReceiptLineItems ● GoodsReceiptLineItemConnection object​

Batch.goodsReceiptLineItems.first ● Int scalar​
Batch.goodsReceiptLineItems.after ● String scalar​
Batch.goodsReceiptLineItems.filter ● GoodsReceiptLineItemFilterInput input​

Batch.product ● Product object​

Batch.tags ● TagConnection object​

Batch.tags.first ● Int scalar​
Batch.tags.after ● String scalar​
Batch.tags.filter ● TagFilterInput input​

Interfaces​

Node interface​

Any entity that can be loaded by its global id through the node(id: ID!) query.

Returned By​

batch query ● createBatch mutation

Member Of​

BatchEdge object ● GoodsReceiptLineItem object