Batch Numbers

Group: Inventory

Open in the interactive reference

A batch number identifies stock of one item that shares an expiry date, a cost, and a quality-control status.

A batch is a quantity of one item, in one warehouse, that shares one batch number. The same batch number on another item or in another warehouse is a separate batch.

Batches are created by these documents:

Batches cannot be deleted. To take a batch out of use, change its batchStatus or set active to false with PATCH inventory/batch-numbers/:id. You cannot change a batch's quantity, inStock, cost, originalCost, or locationId with PATCH. Documents that move or revalue stock, such as receipts, shipments, warehouse transfers, and inventory revaluations, change these fields.

A batch is blocked while any of these apply:

The application does not offer a blocked batch for picking, or a batch whose active is false. Committing a shipment with POST inventory/shipments/:id/commit fails if a line names a blocked batch. Inventory decreases, warehouse transfers, and purchase returns do not check these values. The stock stays in inventory either way, and a past expirationDate alone does not block a batch.

Endpoints