API Reference

Shelf Life

2 endpoints· Auth: JWT or API Key
get/api/v1/console/inventory/shelf-life JWT API Key

Lots grouped per (location, item) into expired / expiring-soon buckets./037

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

Query parameters

AsOf
string (date)
The as-of business day. Defaults to today's Baghdad business day.
WithinDays
integer (int32)
The "expires soon" horizon in days. Defaults to 7 (`EXPIRING_SOON_DAYS`); 1..90.
StockLocationId
string (uuid)
Narrow to one stock location. Optional.
Bucket
string
`all` (default) | `expired` | `expiring_soon` | `attention` (either).

Responses

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

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/inventory/shelf-life/propose-waste JWT API Key

Create propose-waste

Propose an expired-stock write-off: main warehouse → a pending inventory_adjustment approval; main kitchen → a WASTE movement booked now./039.

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

Request body

application/json
{
  "stockLocationId": "00000000-0000-0000-0000-000000000000",
  "inventoryItemId": "00000000-0000-0000-0000-000000000000"
}
stockLocationId
string (uuid)
—
inventoryItemId
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/shelf-life/propose-waste" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "stockLocationId": "00000000-0000-0000-0000-000000000000",
  "inventoryItemId": "00000000-0000-0000-0000-000000000000"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu