API Reference
Stock Movements
3 endpoints· Auth: JWT or API Key
get
/api/v1/console/inventory/movements JWT API KeyRead the ledger.,
- Capability
view_reports- API key scope
cap:view_reports(the key's owner must also hold the capability)
Query parameters
| Type string | One of the 13 `MOVEMENT_TYPES`. A value outside the vocabulary is <b>silently ignored</b> rather than rejected (FR-INV-018) — a stale bookmark should show the unfiltered ledger, not an error page. |
| Location string | The two-valued compatibility tag, `warehouse` | `kitchen`. Also silently ignored when outside the vocabulary. <br>This is a roll-up, <b>not</b> a physical-location filter (FR-INV-016). Use Panoptes.Application.DTOs.Requests.Inventory.ListStockMovementsRequest.StockLocationId to ask a physical question. |
| StockLocationId string (uuid) | The authoritative physical location dimension (FR-INV-016). |
| ItemId string (uuid) | — |
| From string (date) | Inclusive first business day of the window. Windowed as `createdAt >= start AND createdAt < endExclusive` over the Baghdad day, never a naive UTC-midnight range (FR-INV-019) — that mistake silently drops every movement recorded between 00:00 and 03:00 Baghdad, which is exactly the late-night window where loss happens. |
| To string (date) | Inclusive last business day of the window. |
| 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/movements" \
-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/movements/{id} JWT API KeyOne movement
- Capability
view_reports- API key scope
cap:view_reports(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/inventory/movements/{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
post
/api/v1/console/inventory/movements/adjustments JWT API KeyAdjust a location's on-hand for one item
`manage_inventory` is Owner-only, and that is the separation-of-duties control: an Admin holds `request_change` and files an `inventory_adjustment` approval request instead, so an Admin adjustment is always a two-person act. The service re-asserts the same capability, so a route that loses this attribute still cannot write stock.
A `POST`, not a `PUT`: the request creates a movement. It never edits one.
- Capability
manage_inventory- API key scope
cap:manage_inventory(the key's owner must also hold the capability)
Request body
application/json
{
"inventoryItemId": "00000000-0000-0000-0000-000000000000",
"stockLocationId": "00000000-0000-0000-0000-000000000000",
"newQuantity": 0,
"reason": "string",
"businessDate": "2026-11-27"
}| inventoryItemId string (uuid) | — |
| stockLocationId string (uuid) | The book to correct. Omitted, the service resolves the item's `DefaultStockLocationId`, then the branch's canonical warehouse (FR-INV-023). |
| newQuantity number (double) | The quantity the book should read after the adjustment. Finite and ≥ 0. |
| reason string | Mandatory (FR-INV-066). An unreasoned adjustment to the stock book is indistinguishable from a cover-up, which is also why the act opens a `manual_adjustment` fraud case. |
| businessDate string (date) | The business day to date the movement to. Omitted means "now", which cannot be locked while it is still open. A supplied day that falls in a closed period is a typed `PERIOD_LOCKED` refusal, never a silent write (FR-INV-068). |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/inventory/movements/adjustments" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"inventoryItemId": "00000000-0000-0000-0000-000000000000",
"stockLocationId": "00000000-0000-0000-0000-000000000000",
"newQuantity": 0,
"reason": "string",
"businessDate": "2026-11-27"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu