API Reference

Inventory Counts

8 endpoints· Auth: JWT or API Key
get/api/v1/console/inventory/counts JWT API Key

Count history

Readable by either side of the workflow — the counter needs to see what they submitted, the owner needs the sign-off queue — so the attribute names both capabilities and the service asserts the same disjunction.

Capability (any)
enter_countorapprove_variance
API key scope
cap:enter_countorcap:approve_variance (the key's owner must also hold the capability)

Query parameters

From
string (date)
—
To
string (date)
—
Shift
OperatingShift
—
Book
StockBook
Filter to one book. INV-017: the two are never blended, so they are never summed together either.
Status
string
`open | submitted | approved`. An unrecognised value is ignored, not rejected — a stale bookmark shows the unfiltered list.
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/counts" \
  -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/counts JWT API Key

Record a count

A dated write: a locked business day comes back as `PERIOD_LOCKED` — a 409 with a code the client switches on, never a bare conflict. A replayed `clientOpId` comes back as a 201 success carrying the original count, because the sync engine must acknowledge the op rather than retry a stock-bearing write forever.

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

Request body

application/json
{
  "shift": "Morning",
  "location": "Warehouse",
  "lines": [
    {
      "inventoryItemId": "00000000-0000-0000-0000-000000000000",
      "countedQty": 0,
      "reason": "string"
    }
  ],
  "note": "string",
  "clientOpId": "string",
  "capturedAt": "2026-11-27T14:05:11.784Z",
  "deviceId": "string"
}
shift
OperatingShift
—
location
StockBook
—
lines
SubmitCountLineRequest[]
At least one line (FR-INV-047). A count of nothing is not a count.
note
string
—
clientOpId
string
The offline capture's operation id. Replay is idempotent on `(branchId, clientOpId)` and a dedup hit is reported as a <b>SUCCESS</b> carrying the original count, so the sync engine acknowledges the op instead of retrying a stock-bearing write forever (FR-INV-060, FR-INV-116).
capturedAt
string (date-time)
When the device took the count. Absent or non-UTC is normalised rather than rejected (FR-INV-061): a device that queued a count offline gets no second chance at a better timestamp, and refusing the op over its metadata strands it in the outbox.
deviceId
string
Null when the count was taken online (FR-INV-061).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/counts" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "shift": "Morning",
  "location": "Warehouse",
  "lines": [
    {
      "inventoryItemId": "00000000-0000-0000-0000-000000000000",
      "countedQty": 0,
      "reason": "string"
    }
  ],
  "note": "string",
  "clientOpId": "string",
  "capturedAt": "2026-11-27T14:05:11.781Z",
  "deviceId": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/inventory/counts/{countId}/lines/{lineId}/approve JWT API Key

Sign off one `high` line.,

Owner only.

This is the control that stops "approve the count" from meaning "approve the one line nobody looked at": until the signature lands, that line's ledger row stays `PENDING_OWNER_APPROVAL` and is held out of every money total.

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

Path parameters

countIdrequired
string (uuid)
—
lineIdrequired
string (uuid)
—

Request body

application/json
{
  "note": "string"
}
note
string
Optional context, folded into the audit row.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/counts/{countId}/lines/{lineId}/approve" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "note": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/inventory/counts/{countId}/lines/{lineId}/evidence JWT API Key

Attach a hashed evidence photo to a count line

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

Path parameters

countIdrequired
string (uuid)
—
lineIdrequired
string (uuid)
—

Request body

application/json
{
  "image": "string"
}
image
string
`data:image/jpeg;base64,…`, `data:image/png;base64,…`, `data:image/webp;base64,…`, or the bare base64 payload of one of those three.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/counts/{countId}/lines/{lineId}/evidence" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "image": "string"
}'
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/counts/{id} JWT API Key

One count with its lines

A count in another branch reads as `NOT_FOUND`.

`?sort=&dir=` orders the lines (`InventoryCountSort.Lines`). The parameter is deliberately not named `sort`: a complex parameter whose name matches a query key binds that key as its prefix and would look for `sort.sort`.

Capability (any)
enter_countorapprove_variance
API key scope
cap:enter_countorcap:approve_variance (the key's owner must also hold the capability)

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/counts/{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
post/api/v1/console/inventory/counts/{id}/approve JWT API Key

Sign off a submitted count.,

Owner only.

It moves the count to `approved` and rebuilds the day's ledger slices. It does not sign off the count's `high` lines — keeps that a separate act, and the response reports how many still need one.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "note": "string"
}
note
string
Optional context, folded into the audit row.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/counts/{id}/approve" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "note": "string"
}'
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/counts/evidence/{evidenceId} JWT API Key

Read an evidence photo through a hash-on-read verification

A `GET` that writes, and deliberately so: every view appends a custody row, and a digest mismatch raises an integrity alert. The alternative — serving bytes nobody re-checked — is what makes a photo decoration rather than evidence.

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

Path parameters

evidenceIdrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/inventory/counts/evidence/{evidenceId}" \
  -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/counts/sheet JWT API Key

The count sheet for one book.,

Gated on `enter_count` rather than a reporting capability: the sheet carries the system quantity of every item in the book, which is the anchor a counter reads. item 3 accepts that exposure for the counter; widening it to every report reader would be a different decision made by accident.

Declared before `{id:guid}` is irrelevant — the `guid` constraint is what keeps the two apart, so `sheet` can never be mistaken for an id.

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

Query parameters

Book
StockBook
`warehouse` (default) or `kitchen`. Anything else collapses to `warehouse` rather than failing (FR-INV-047) — a stale bookmark should show a sheet, not an error page.
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/counts/sheet" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu