API Reference
End-of-Day Reports
Daily control ledger and EOD reports.
5 endpoints· Auth: JWT or API Key
get
/api/v1/console/loss/eod-reports JWT API KeyGet eod-reports
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(the key's owner must also hold the capability)
Query parameters
| From string (date) | Inclusive first business day. Defaults to 30 days before Panoptes.Application.DTOs.Requests.LossControl.ListEodReportsRequest.To. |
| To string (date) | Inclusive last business day. Defaults to today's Baghdad business day. |
| 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/loss/eod-reports" \
-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/loss/eod-reports JWT API KeySave the confirmed totals for a day — upserts that day's report./053
- 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
application/json
{
"businessDate": "2026-11-27",
"grossSalesIqd": 0,
"netSalesIqd": 0,
"cashSalesIqd": 0,
"cardSalesIqd": 0,
"qiSalesIqd": 0,
"deliverySalesIqd": 0,
"source": "string",
"breakdown": {
"directSalesIqd": 0,
"directOrders": 0,
"appSalesIqd": 0,
"appOrders": 0,
"pickupSalesIqd": 0,
"pickupOrders": 0,
"eventSalesIqd": 0,
"eventOrders": 0,
"orderCount": 0,
"walletSalesIqd": 0,
"appReceivableIqd": 0,
"creditSalesIqd": 0,
"discountsIqd": 0,
"voidsIqd": 0,
"refundsIqd": 0,
"staffMealsIqd": 0,
"compsIqd": 0,
"adjustmentNote": "string"
},
"creditCashToDrawer": false
}| businessDate string (date) | — |
| grossSalesIqd integer (int64) | — |
| netSalesIqd integer (int64) | — |
| cashSalesIqd integer (int64) | — |
| cardSalesIqd integer (int64) | — |
| qiSalesIqd integer (int64) | — |
| deliverySalesIqd integer (int64) | — |
| source string | How the numbers were captured: `manual` (default) | `photo` | `ocr`. Recorded honestly — the reference build hard-coded `manual` even for OCR (§5.10.11 item 12). |
| breakdown EodBreakdownRequest | — |
| creditCashToDrawer boolean | Credit the report's cash sales to the cashier drawer. For a branch that closes by Z-report instead of through the POS, so the drawer's expected cash includes the day's takings. Re-saving adjusts the credit by the difference; it never double-counts. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/loss/eod-reports" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"businessDate": "2026-11-27",
"grossSalesIqd": 0,
"netSalesIqd": 0,
"cashSalesIqd": 0,
"cardSalesIqd": 0,
"qiSalesIqd": 0,
"deliverySalesIqd": 0,
"source": "string",
"breakdown": {
"directSalesIqd": 0,
"directOrders": 0,
"appSalesIqd": 0,
"appOrders": 0,
"pickupSalesIqd": 0,
"pickupOrders": 0,
"eventSalesIqd": 0,
"eventOrders": 0,
"orderCount": 0,
"walletSalesIqd": 0,
"appReceivableIqd": 0,
"creditSalesIqd": 0,
"discountsIqd": 0,
"voidsIqd": 0,
"refundsIqd": 0,
"staffMealsIqd": 0,
"compsIqd": 0,
"adjustmentNote": "string"
},
"creditCashToDrawer": false
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/loss/eod-reports/{id} JWT API KeyGet id
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(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/loss/eod-reports/{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/loss/eod-reports/{id} JWT API KeyUpdate id
- 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
application/json
{
"grossSalesIqd": 0,
"netSalesIqd": 0,
"cashSalesIqd": 0,
"cardSalesIqd": 0,
"qiSalesIqd": 0,
"deliverySalesIqd": 0,
"source": "string",
"breakdown": {
"directSalesIqd": 0,
"directOrders": 0,
"appSalesIqd": 0,
"appOrders": 0,
"pickupSalesIqd": 0,
"pickupOrders": 0,
"eventSalesIqd": 0,
"eventOrders": 0,
"orderCount": 0,
"walletSalesIqd": 0,
"appReceivableIqd": 0,
"creditSalesIqd": 0,
"discountsIqd": 0,
"voidsIqd": 0,
"refundsIqd": 0,
"staffMealsIqd": 0,
"compsIqd": 0,
"adjustmentNote": "string"
},
"creditCashToDrawer": false
}| grossSalesIqd integer (int64) | — |
| netSalesIqd integer (int64) | — |
| cashSalesIqd integer (int64) | — |
| cardSalesIqd integer (int64) | — |
| qiSalesIqd integer (int64) | — |
| deliverySalesIqd integer (int64) | — |
| source string | — |
| breakdown EodBreakdownRequest | — |
| creditCashToDrawer boolean | Credit the report's cash sales to the cashier drawer. For a branch that closes by Z-report instead of through the POS, so the drawer's expected cash includes the day's takings. Re-saving adjusts the credit by the difference; it never double-counts. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/loss/eod-reports/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"grossSalesIqd": 0,
"netSalesIqd": 0,
"cashSalesIqd": 0,
"cardSalesIqd": 0,
"qiSalesIqd": 0,
"deliverySalesIqd": 0,
"source": "string",
"breakdown": {
"directSalesIqd": 0,
"directOrders": 0,
"appSalesIqd": 0,
"appOrders": 0,
"pickupSalesIqd": 0,
"pickupOrders": 0,
"eventSalesIqd": 0,
"eventOrders": 0,
"orderCount": 0,
"walletSalesIqd": 0,
"appReceivableIqd": 0,
"creditSalesIqd": 0,
"discountsIqd": 0,
"voidsIqd": 0,
"refundsIqd": 0,
"staffMealsIqd": 0,
"compsIqd": 0,
"adjustmentNote": "string"
},
"creditCashToDrawer": false
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/loss/eod-reports/parse JWT API KeyParse pasted report text into a draft
Writes nothing./050.
- Capability
enter_reconciliation- API key scope
cap:enter_reconciliation(the key's owner must also hold the capability)
Request body
application/json
{
"text": "string"
}| text string | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/loss/eod-reports/parse" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"text": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu