API Reference
Reconciliation
/api/v1/console/cash/reconciliations JWT API KeyThe reconciliation history
Every row carries its shift's expected cash and card, so reading it is the readers' alone: whoever counts declared, the owner who signs the difference off, and the reporting readers. A cashier who closes blind (`count_drawer`) must never read an expectation — not before the count, and not afterwards for the next shift (owner decision, round 7). The service re-asserts it. Tombstoned rows are excluded by the query filter.
- Capability (any)
enter_reconciliationorapprove_varianceorview_reports- API key scope
cap:enter_reconciliationorcap:approve_varianceorcap:view_reports(the key's owner must also hold the capability)
Query parameters
| From string (date) | — |
| To string (date) | — |
| Shift OperatingShift | — |
| 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/cash/reconciliations" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/cash/reconciliations JWT API KeyEnter the end-of-shift count
Owner and Admin.
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.
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(the key's owner must also hold the capability)- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Request body
{
"date": "2026-11-27",
"shift": "Morning",
"countedCash": 0,
"settledCard": 0,
"note": "string",
"clientOpId": "string",
"capturedAt": "2026-11-27T14:05:12.195Z",
"deviceId": "string",
"expectedSnapshot": {
"expectedCash": 0,
"expectedCard": 0,
"orderCount": 0
},
"expectedFrom": "string",
"openingFloat": 0,
"handedToVault": 0,
"denominations": {}
}| date string (date) | — |
| shift OperatingShift | — |
| countedCash integer (int64) | What a human physically counted, in minor units of the branch's base currency. Being a <b>physical</b> figure it must be a whole multiple of `Currency.cashRoundingIncrement` (250 for IQD — Iraqi notes start at 250, so no drawer can hold 1,127 dinars; BR-CSH-12, FR-CSH-096). |
| settledCard integer (int64) | What the card terminal actually settled. Deliberately <b>not</b> subject to the cash rounding rule: a terminal settles to the minor unit, and rounding a card total would manufacture a variance that never existed (FR-CSH-096). |
| 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>, so the sync engine acknowledges the op instead of retrying it forever (FR-CSH-046, FR-CSH-047). |
| capturedAt string (date-time) | When the device took the count. Absent or unparseable substitutes "now" (FR-CSH-053). |
| deviceId string | — |
| expectedSnapshot ExpectedSnapshotRequest | — |
| expectedFrom string | Where the expected cash comes from. `pos` (default): the POS orders of the shift. `drawer`: the drawer book — for a branch that closes by Z-report, where the float, the credited cash sales, the expenses and the cash purchases already moved the drawer. In drawer mode the count also CORRECTS the drawer to the physical cash, so the next shift starts from what is really there; the variance is kept on the row and opens a case as usual. |
| openingFloat integer (int64) | The change float at the start of the shift, as recorded on the close sheet. |
| handedToVault integer (int64) | Cash handed from the drawer to the safe after the count. Moves both books. |
| denominations object | The blind count by note: {"50000": 1, "25000": 4}. When given, it must add up to CountedCash. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/cash/reconciliations" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"date": "2026-11-27",
"shift": "Morning",
"countedCash": 0,
"settledCard": 0,
"note": "string",
"clientOpId": "string",
"capturedAt": "2026-11-27T14:05:12.194Z",
"deviceId": "string",
"expectedSnapshot": {
"expectedCash": 0,
"expectedCard": 0,
"orderCount": 0
},
"expectedFrom": "string",
"openingFloat": 0,
"handedToVault": 0,
"denominations": {}
}'Request body (JSON)
Headers
/api/v1/console/cash/reconciliations/{id} JWT API KeyOne reconciliation
The history's readers, for the same reason.
- Capability (any)
enter_reconciliationorapprove_varianceorview_reports- API key scope
cap:enter_reconciliationorcap:approve_varianceorcap:view_reports(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/cash/reconciliations/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/cash/reconciliations/{id} JWT API KeyRetire a mis-entered reconciliation
A tombstone with a mandatory reason, never a hard `DELETE` — and the day's ledger slice is rebuilt without it in the same transaction, so the owner's loss number stops citing a count that has been withdrawn.
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(the key's owner must also hold the capability)- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/cash/reconciliations/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/cash/reconciliations/{id}/approve JWT API KeySign off a reconciliation's cash and card variance.,
Owner only.
Until this lands, a non-zero variance holds the shift's cash and card ledger rows at `PENDING_OWNER_APPROVAL` — counted by the loss summary as money awaiting a signature, and out of the money total. Approving moves them to `CLOSED` in the same transaction.
- 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
{
"note": "string"
}| note string | Optional context, folded into the audit row. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/cash/reconciliations/{id}/approve" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"note": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/cash/reconciliations/blind JWT API KeyThe cashier's blind shift close (owner decision, round 7)
`count_drawer`.
The cashier counts the whole drawer and never sees the expectation: there is no date (the server dates it on the business day of the shift it closes — an evening counted after midnight and before 06:00 Baghdad belongs to the day it started), no mode and no float on the request, and the answer is the counter's own result — counted, the differences and their severities — never the expected figures. A second count of the same shift is a named `409` (`SHIFT_ALREADY_COUNTED`). From there on it is a declared close's: submitted, a variance case per non-zero side, held at `PENDING_OWNER_APPROVAL` until the owner signs.
- Capability
count_drawer- API key scope
cap:count_drawer(the key's owner must also hold the capability)- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Request body
{
"shift": "Morning",
"countedCash": 0,
"settledCard": 0,
"note": "string",
"clientOpId": "string",
"deviceId": "string",
"denominations": {}
}| shift OperatingShift | — |
| countedCash integer (int64) | Every note in the drawer, the change float included, in minor units of the branch's base currency — a whole multiple of the currency's cash increment (BR-CSH-12). |
| settledCard integer (int64) | What the card terminal settled for the shift. Not rounded (FR-CSH-096). |
| note string | — |
| clientOpId string | One per close, reused only when resubmitting the same close — a double-tap or a lost answer is answered with the original rather than refused (FR-CSH-046). |
| deviceId string | — |
| denominations object | The count by note: {"50000": 1, "25000": 4}. When given, it must add up to CountedCash. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/cash/reconciliations/blind" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"shift": "Morning",
"countedCash": 0,
"settledCard": 0,
"note": "string",
"clientOpId": "string",
"deviceId": "string",
"denominations": {}
}'Request body (JSON)
Headers
/api/v1/console/cash/reconciliations/expected JWT API KeyWhat the shift should have taken, before anyone counts
Gated on `enter_reconciliation` rather than a reporting capability: the expected figure is the anchor a counter would be reading, and item 3 already records that Panoptes counts are declared rather than blind. Widening who can see it widens that exposure.
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(the key's owner must also hold the capability)
Query parameters
| Date string (date) | The Asia/Baghdad business day being reconciled (BR-CSH-8). |
| Shift OperatingShift | The shared `shift` vocabulary — a reconciliation, a count and a sale agree on what a shift is by construction rather than by convention (FR-CSH-104). |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/cash/reconciliations/expected" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers