API Reference
Usage Variance
2 endpoints· Auth: JWT or API Key
get
/api/v1/console/inventory/usage-variance JWT API KeyThe table.,,
- Capability
view_profit- API key scope
cap:view_profit(the key's owner must also hold the capability)
Query parameters
| From string (date) | — |
| To string (date) | — |
| Location StockBook | `warehouse` | `kitchen` — narrow BOTH sides to one book (INV-017): the theoretical side to the draws that left that book, the actual side to the counts taken in it, the unit cost to that book's own average. Omitted = both books, each still measured in itself. |
| 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/usage-variance" \
-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/usage-variance/export JWT API KeyThe same run, streamed as a file.,
`?format=csv` branches to CSV; anything else, including nothing, streams the XLSX workbook. A failure still returns the envelope rather than a zero-byte download, so a client that asked for a spreadsheet and hit a refusal gets a code it can act on.
- Capability
view_profit- API key scope
cap:view_profit(the key's owner must also hold the capability)
Query parameters
| Format string | `csv` streams CSV and `pdf` the PDF; anything else, including nothing, streams the XLSX workbook (FR-RPT-113, RPT C12). |
| Lang string | — |
| Digits string | — |
| From string (date) | — |
| To string (date) | — |
| Location StockBook | `warehouse` | `kitchen` — narrow BOTH sides to one book (INV-017): the theoretical side to the draws that left that book, the actual side to the counts taken in it, the unit cost to that book's own average. Omitted = both books, each still measured in itself. |
| 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/usage-variance/export" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu