API Reference

Stock Locations

6 endpoints· Auth: JWT or API Key
get/api/v1/console/inventory/stock-locations JWT API Key

List the branch's locations

Ungated for the same reason as the item list: every transfer, count and production screen needs the picker, and gating it would make catalogue administration a prerequisite for ordinary floor work.

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

Query parameters

Kind
string
One of `STOCK_LOCATION_KINDS`. Optional.
Active
boolean
The operational pause flag. Distinct from a tombstone: `Active = false` is "closed this week", `DeletedAt` is "gone for good, and here is why" (FR-INV-077).
IncludeDeleted
boolean
Include tombstoned rows. Needs `manage_stock_locations`.
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/stock-locations" \
  -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/stock-locations JWT API Key

Create a location

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

Request body

application/json
{
  "name": "string",
  "kind": "string",
  "parentLocationId": "00000000-0000-0000-0000-000000000000",
  "allowsSales": false,
  "allowsProduction": false,
  "active": false
}
name
string
—
kind
string
`storage` | `raw` | `prep` | `finished` | `in_transit` | `warehouse` | `kitchen`. Defaults to `storage`. <br>The kind decides the movement's compatibility tag through `BookOf` — kitchen to the kitchen book, everything else to the warehouse book (FR-INV-016).
parentLocationId
string (uuid)
—
allowsSales
boolean
—
allowsProduction
boolean
—
active
boolean
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/stock-locations" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "kind": "string",
  "parentLocationId": "00000000-0000-0000-0000-000000000000",
  "allowsSales": false,
  "allowsProduction": false,
  "active": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

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

One location

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

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/inventory/stock-locations/{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/stock-locations/{id} JWT API Key

Rename, reclassify or pause a location

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "kind": "string",
  "parentLocationId": "00000000-0000-0000-0000-000000000000",
  "allowsSales": false,
  "allowsProduction": false,
  "active": false
}
name
string
—
kind
string
—
parentLocationId
string (uuid)
—
allowsSales
boolean
—
allowsProduction
boolean
—
active
boolean
The operational pause. Retiring for good is `DELETE`, and needs a reason.

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/inventory/stock-locations/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "kind": "string",
  "parentLocationId": "00000000-0000-0000-0000-000000000000",
  "allowsSales": false,
  "allowsProduction": false,
  "active": false
}'
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/stock-locations/{id} JWT API Key

Retire a location.,

Refused with `CONFLICT` while the location still holds stock.

Capability
manage_stock_locations
API key scope
cap:manage_stock_locations (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/stock-locations/{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
get/api/v1/console/inventory/stock-locations/{id}/stock JWT API Key

The stock book at one location.,

One page per location, deliberately — never a pooled roll-up across them. Each location keeps its own average cost, and blending them produces a figure no physical count can reproduce.

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

Path parameters

idrequired
string (uuid)
—

Query parameters

BelowMinimumOnly
boolean
Only rows whose available quantity is at or below the item's minimum level.
NonZeroOnly
boolean
Hide rows that have gone to zero. A zero pair is kept, never retired.
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/stock-locations/{id}/stock" \
  -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