API Reference

Stock Lots

Lot numbers and the trace of where a lot went.

2 endpoints· Auth: JWT or API Key
get/api/v1/console/inventory/lots JWT API Key

Get lots

Capability (any)
manage_inventory_itemsorrecord_waste
API key scope
cap:manage_inventory_itemsorcap:record_waste (the key's owner must also hold the capability)

Query parameters

InventoryItemId
string (uuid)
—
StockLocationId
string (uuid)
—
IncludeDrained
boolean
Include lots drawn to zero (tombstoned "Lot fully drawn."). A recall needs them.
ExpiringWithinDays
integer (int32)
Only lots expiring within this many days of today (expired ones included). 1–365.
Page
integer (int32)
—
PerPage
integer (int32)
—
Search
string
Free-text filter. Its meaning is per-resource and documented on the endpoint.
Skip
integer (int32)
Rows to skip, derived — never sent by the caller on this surface.
Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/inventory/lots" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/inventory/lots/{id}/trace JWT API Key

Get trace

Capability (any)
manage_inventory_itemsorrecord_waste
API key scope
cap:manage_inventory_itemsorcap:record_waste (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/inventory/lots/{id}/trace" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu