Skip to main content

createBatch

Creates a new batch row for the given product. The (productId, number) tuple must be unique.

createBatch(
input: CreateBatchInput!
): Batch!

Arguments

createBatch.input ● CreateBatchInput! non-null input

Type

Batch object

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.