API Reference

Inventory Items

7 endpoints· Auth: JWT or API Key
get/api/v1/console/inventory/items JWT API Key

List the branch's items

Reading the item master needs no extra capability: the counting screen, the production picker and the transfer builder all depend on it, and gating the read would make `manage_inventory_items` a prerequisite for doing a count. Branch scope is the control here, and it is applied in the service.

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Query parameters

Category
string
One of `INVENTORY_CATEGORIES`. Optional.
ValuationMethod
string
`moving_average` | `fifo` | `standard`. Optional.
Active
boolean
Filter on the availability flag that replaced v1's dead `status` column.
ProductionEligible
boolean
Only items admitted to the production ingredient picker (FR-INV-003). Category-driven.
IncludeDeleted
boolean
Include tombstoned rows. Needs `manage_inventory_items` (FR-INV-121).
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/items" \
  -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/items JWT API Key

Create an item, with an optional opening balance

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

Request body

application/json
{
  "name": "string",
  "unitId": "00000000-0000-0000-0000-000000000000",
  "category": "string",
  "kind": "string",
  "defaultStockLocationId": "00000000-0000-0000-0000-000000000000",
  "minStockLevel": 0,
  "reorderPoint": 0,
  "parLevel": 0,
  "reorderQty": 0,
  "yieldFactor": 0,
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "active": false,
  "consumptionUnit": "string",
  "consumptionPerStockUnit": 0,
  "purchaseUnit": "string",
  "purchasePerStockUnit": 0,
  "eligibleForKitchenTransfer": false,
  "eligibleForProduction": false,
  "eligibleForSaleConsumables": false,
  "valuationMethod": "string",
  "standardCost": 0,
  "barcode": "string",
  "sku": "string",
  "externalId": "string",
  "openingQuantity": 0,
  "openingUnitCost": 0
}
name
string
—
unitId
string (uuid)
The stock unit, as a `uom` row id (FR-INV-001). <br>Not a string from a hard-coded list any more: a branch that buys by the drum adds a `uom` row rather than waiting for a release, so validation is "this id resolves to a live, active `uom` in this branch", never "this string is in a constant".
category
string
One of `INVENTORY_CATEGORIES`. A value outside the vocabulary <b>falls back</b> to `cooking_ingredient` rather than failing the request (FR-INV-002).
kind
string
The descriptive stockable role. Label-only — no engine branches on it.
defaultStockLocationId
string (uuid)
Where receipts land unless the receiving document names another (FR-INV-120).
minStockLevel
number (double)
—
reorderPoint
number (double)
The reorder point (benchmark INV/PUR B8): on-hand at or below it puts the item on the reorder suggestions. 0 = off. Stock units.
parLevel
number (double)
The par (order-up-to) level a suggestion tops back up to. 0 = no par. Stock units.
reorderQty
number (double)
A fixed reorder quantity, used when no par is set. 0 = none. Stock units.
yieldFactor
integer (int32)
The item's trim yield in basis points, 10000 = 100 % (DATABASE-SCHEMA `InventoryItem.yieldFactor`; benchmark INV B2): the share of what is bought that survives trimming. A recipe or modifier line authored without its own yield takes this one, frozen onto the line. Null = 100 %.
supplierId
string (uuid)
—
active
boolean
—
consumptionUnit
string
The finer consumption unit, as a `uom` code (FR-INV-004).
consumptionPerStockUnit
number (double)
Finer units per one stock unit, e.g. 1000 for kg → g. Must be > 0 when set.
purchaseUnit
string
The purchase unit, as a `uom` code (FR-INV-005).
purchasePerStockUnit
number (double)
Stock units per one purchase unit, e.g. 24 for carton → 24 pieces.
eligibleForKitchenTransfer
boolean
—
eligibleForProduction
boolean
—
eligibleForSaleConsumables
boolean
—
valuationMethod
string
`moving_average` | `fifo` | `standard` (FR-INV-006).
standardCost
number (double)
The standard-cost anchor, a unit cost in base-currency minor units. Nulled for every method other than `standard`. A `standard` item with no anchor is legal and books draws at zero, pushing the whole actual cost into `StockValuationVariance` — loud, never silent (FR-INV-007).
barcode
string
—
sku
string
—
externalId
string
—
openingQuantity
number (double)
Opening on-hand, recorded as an `ADJUSTMENT` movement reasoned "Opening balance" (FR-INV-008). Zero means no opening movement is written at all.
openingUnitCost
number (double)
The unit cost the opening `LocationStock` row is seeded at. Supplying nothing seeds the book at 0 — honest, and visible, rather than a fabricated average.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/items" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "unitId": "00000000-0000-0000-0000-000000000000",
  "category": "string",
  "kind": "string",
  "defaultStockLocationId": "00000000-0000-0000-0000-000000000000",
  "minStockLevel": 0,
  "reorderPoint": 0,
  "parLevel": 0,
  "reorderQty": 0,
  "yieldFactor": 0,
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "active": false,
  "consumptionUnit": "string",
  "consumptionPerStockUnit": 0,
  "purchaseUnit": "string",
  "purchasePerStockUnit": 0,
  "eligibleForKitchenTransfer": false,
  "eligibleForProduction": false,
  "eligibleForSaleConsumables": false,
  "valuationMethod": "string",
  "standardCost": 0,
  "barcode": "string",
  "sku": "string",
  "externalId": "string",
  "openingQuantity": 0,
  "openingUnitCost": 0
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

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

One item, with its book split by location.,

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Path parameters

idrequired
string (uuid)
—

Query parameters

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/items/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Query parameters

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/inventory/items/{id} JWT API Key

Edit master data

`manage_inventory_items`, not`manage_inventory`. They are different powers: Owner and Admin both maintain the catalogue, only the Owner may move stock.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "unitId": "00000000-0000-0000-0000-000000000000",
  "category": "string",
  "kind": "string",
  "defaultStockLocationId": "00000000-0000-0000-0000-000000000000",
  "minStockLevel": 0,
  "reorderPoint": 0,
  "parLevel": 0,
  "reorderQty": 0,
  "yieldFactor": 0,
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "active": false,
  "consumptionUnit": "string",
  "consumptionPerStockUnit": 0,
  "purchaseUnit": "string",
  "purchasePerStockUnit": 0,
  "eligibleForKitchenTransfer": false,
  "eligibleForProduction": false,
  "eligibleForSaleConsumables": false,
  "valuationMethod": "string",
  "standardCost": 0,
  "barcode": "string",
  "sku": "string",
  "externalId": "string"
}
name
string
—
unitId
string (uuid)
—
category
string
—
kind
string
—
defaultStockLocationId
string (uuid)
—
minStockLevel
number (double)
—
reorderPoint
number (double)
The reorder point; null leaves the stored value alone (benchmark INV/PUR B8).
parLevel
number (double)
The par (order-up-to) level; null leaves it alone.
reorderQty
number (double)
The fixed reorder quantity; null leaves it alone.
yieldFactor
integer (int32)
The trim yield, basis points; null leaves it alone. A change applies to recipe lines authored AFTER it — an existing line keeps the yield it was signed off at (benchmark INV B2).
supplierId
string (uuid)
—
active
boolean
—
consumptionUnit
string
An explicitly empty string <b>clears</b> the finer-unit pair; null leaves the stored pair untouched (FR-INV-004, FR-INV-005 — the same both-or-neither rule).
consumptionPerStockUnit
number (double)
—
purchaseUnit
string
—
purchasePerStockUnit
number (double)
—
eligibleForKitchenTransfer
boolean
—
eligibleForProduction
boolean
—
eligibleForSaleConsumables
boolean
—
valuationMethod
string
—
standardCost
number (double)
—
barcode
string
—
sku
string
—
externalId
string
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/inventory/items/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "unitId": "00000000-0000-0000-0000-000000000000",
  "category": "string",
  "kind": "string",
  "defaultStockLocationId": "00000000-0000-0000-0000-000000000000",
  "minStockLevel": 0,
  "reorderPoint": 0,
  "parLevel": 0,
  "reorderQty": 0,
  "yieldFactor": 0,
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "active": false,
  "consumptionUnit": "string",
  "consumptionPerStockUnit": 0,
  "purchaseUnit": "string",
  "purchasePerStockUnit": 0,
  "eligibleForKitchenTransfer": false,
  "eligibleForProduction": false,
  "eligibleForSaleConsumables": false,
  "valuationMethod": "string",
  "standardCost": 0,
  "barcode": "string",
  "sku": "string",
  "externalId": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/inventory/items/{id} JWT API Key

Retire an item

A tombstone with a mandatory reason, never a DELETE.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

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

Path parameters

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/inventory/items/{id}/valuation JWT API Key

Set or change the valuation method and standard cost.,,;

The standard-cost maintenance contract: `{ valuationMethod, standardCost }`, the same `manage_inventory_items` power as the item edit, the same audited `UPDATE_INVENTORY_ITEM` row with the old and new pair. Not effective-dated and not an approval — the specification treats the anchor as master data that values future draws only.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "valuationMethod": "string",
  "standardCost": 0
}
valuationMethod
string
`moving_average` | `fifo` | `standard`.
standardCost
number (double)
The standard unit cost in base-currency minor units per <b>stock</b> unit, `numeric(18,4)`. Read only for `standard`; stored as null for every other method. Null on a `standard` item is accepted and means "not configured": its draws book 0 and the whole actual cost becomes variance — loud, never silent (FR-INV-007).

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/inventory/items/{id}/valuation" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "valuationMethod": "string",
  "standardCost": 0
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/inventory/items/lookup JWT API Key

Resolve a wedge-scanned code.,

A live session but no extra capability — each scan surface keeps its own write gate, and requiring one here would mean a counter could not scan the items they are counting.

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Query parameters

code
string
—

Responses

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

Query parameters

Headers

Set credentials in the “Authorize” menu