Batches, Expiry Dates & Serial Numbers — API and MCP
Overview
This area exposes 10 operations. Each of them is at the same time an MCP tool.
This area is behind the module switch module.batchserial. With the module off, these operations answer 404.
Operations
| Method | Path | Purpose | Permission | Parameters |
|---|---|---|---|---|
GET | /api/v1/batch-serial/batches | Collection of BatchSerialBatch | batchserial.tracking.view | page, productId, batchNumber, available, expiringInDays |
GET | /api/v1/batch-serial/batches/{ulid} | Read one BatchSerialBatch | batchserial.tracking.view | ulid |
POST | /api/v1/batch-serial/batches/{ulid}/block | Charge sperren (Rückruf) — Pflichtfeld reason (sonst 422). Die Charge wird ab sofort nicht mehr ausgeliefert, kommissioniert oder als verfügbar vorgeschlagen — laufende Aufträge auf diese Charge bleiben unerfüllt liegen. Der Bestand bleibt physisch und in der Bewertung stehen. Aufheben über /unblock. | batchserial.batch.block | ulid, + body |
POST | /api/v1/batch-serial/batches/{ulid}/unblock | Chargensperre aufheben — Hebt die Sperre einer Charge auf: sie darf wieder entnommen und verkauft werden. Vorbedingung: die Charge ist gesperrt. | batchserial.batch.block | ulid, + body |
GET | /api/v1/batch-serial/product-tracking | Collection of BatchSerialProductTracking | batchserial.tracking.view | page, productId, mode |
POST | /api/v1/batch-serial/product-tracking | Create a BatchSerialProductTracking | batchserial.tracking.manage | + body |
DELETE | /api/v1/batch-serial/product-tracking/{ulid} | Delete a BatchSerialProductTracking | batchserial.tracking.manage | ulid |
GET | /api/v1/batch-serial/product-tracking/{ulid} | Read one BatchSerialProductTracking | batchserial.tracking.view | ulid |
PATCH | /api/v1/batch-serial/product-tracking/{ulid} | Update a BatchSerialProductTracking | batchserial.tracking.manage | ulid, + body |
GET | /api/v1/batch-serial/trace | Collection of BatchSerialTrace | batchserial.tracking.view | batchNumber, serialNumber, productId |
Purpose texts that do not follow the standard pattern are taken verbatim from the interface description in the code.