Batch

Batch or lot tracking with manufacturing and expiry dates.

Path Parameter::AUTOKEY (integer) — internal ID, not a code

Endpoints

GET
/batch

List batches with pagination and filters

GET
/batch/:AUTOKEY

Get a single batch by autokey

POST
/batch

Create a new batch

PUT
/batch/:AUTOKEY

Update a batch by autokey

DELETE
/batch/:AUTOKEY

Delete a batch by autokey

Fields

FieldTypeRequiredNotes
autokeyintegerNoInternal auto-numbered ID used in the URL path.
codestring
Yes
Batch code. Proven: "BCH-T".
descriptionstring
Yes
Description. Proven: "Test Batch".
expdatedateNoExpiry date.
mfgdatedateNoManufacturing date.
isactivebooleanNoActive flag.

Examples

POST — Create Batch

POST /batch
{
  "code": "BCH-T",
  "description": "Test Batch"
}

GET — List Batches

GET /batch?offset=0