Batch
Batch or lot tracking with manufacturing and expiry dates.
Path Parameter:
:AUTOKEY (integer) — internal ID, not a codeEndpoints
GET
/batchList batches with pagination and filters
GET
/batch/:AUTOKEYGet a single batch by autokey
POST
/batchCreate a new batch
PUT
/batch/:AUTOKEYUpdate a batch by autokey
DELETE
/batch/:AUTOKEYDelete a batch by autokey
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| autokey | integer | No | Internal auto-numbered ID used in the URL path. |
| code | string | Yes | Batch code. Proven: "BCH-T". |
| description | string | Yes | Description. Proven: "Test Batch". |
| expdate | date | No | Expiry date. |
| mfgdate | date | No | Manufacturing date. |
| isactive | boolean | No | Active flag. |
Examples
POST — Create Batch
POST /batch
{
"code": "BCH-T",
"description": "Test Batch"
}GET — List Batches
GET /batch?offset=0