lot_create
Create a unique lot (batch) for a lot-tracked item and record optional expiry, manufacture date, supplier reference, notes, and status; stock on hand comes from movements, not a quantity field.
Instructions
Create a lot (a batch) against a lot-tracked item. number is 1-60 chars, unique per item case-insensitively (lot_number_taken); the item must be lot-tracked (else tracking_not_applicable). Optional expiryDate, manufacturedDate, supplierReference, notes and an initial status (default open). No quantity column: on-hand is always derived from movements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| itemId | Yes | ||
| number | Yes | ||
| status | No | ||
| expiryDate | No | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes | ||
| manufacturedDate | No | ||
| supplierReference | No |