Skip to main content

Search Batch Numbers (Typeahead)

GET 

/api/manufacturing/lot-genealogy/batches

Typeahead for the "Trace a Lot" batch-number field. Returns up to 25 distinct FIFO-layer batch numbers matching the search term, each with single-product context. Authentication: requires a Bearer token (PAT).

Required scope: manufacturing:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Returns an empty array ({"data": []}) for searches under 2 characters.

When a batch number maps to exactly one product, product_count is 1 and product_id/product_sku/product_name are populated. When product_count is greater than 1 the batch spans multiple products, so those context fields are null and the caller should also supply a product_id on the genealogy trace request (or follow the 409 candidates disambiguation flow from GET /api/manufacturing/lot-genealogy).

Request

Responses

OK

Response Headers
    Content-Type