API Reference

Sales Integrity

3 endpoints· Auth: JWT or API Key
get/api/v1/console/fraud/adjustments JWT API Key

Voids, comps and discounts by employee × hour × item

…,.

The report opens on `view_reports`; the comp-cost columns arrive as `null` without `view_profit` — null and not zero, because a suppressed cost rendered as 0 would read as "nothing was comped". The bilingual methodology statement travels in the payload so the footnote and any export subtitle cannot drift apart.

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

Query parameters

From
string (date)
Inclusive first business day. Defaults with Panoptes.Application.DTOs.Requests.Fraud.SalesIntegrityWindowRequest.To.
To
string (date)
Inclusive last business day. Defaults to today's Baghdad business day.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/fraud/adjustments" \
  -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/fraud/comp-void-by-server JWT API Key

Per-server comp-vs-void behaviour.,

Separates sweethearting — food comped to friends, valued at the forgone COGS — from mis-ring voids, whose food cost is never counted as comp value.

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

Query parameters

From
string (date)
Inclusive first business day. Defaults with Panoptes.Application.DTOs.Requests.Fraud.SalesIntegrityWindowRequest.To.
To
string (date)
Inclusive last business day. Defaults to today's Baghdad business day.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/fraud/comp-void-by-server" \
  -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/fraud/sales-integrity JWT API Key

Per-cashier discount- and void-rate peer outliers

Iglewicz–Hoaglin modified z against the peer cross-section, high outliers only, and a hard refusal below three cashiers — an accusation built on a two-person baseline is worse than no accusation, and `noteKey = not_enough_cashiers` says which the caller got.

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

Query parameters

Threshold
number (double)
The modified-z cutoff. Null uses the Iglewicz–Hoaglin default of 3.5 (`CashierIntegrityFormulas.DefaultThreshold`). Clamped to a sane band by the service — a threshold of 0 would flag every cashier above the median as a fraud suspect.
From
string (date)
Inclusive first business day. Defaults with Panoptes.Application.DTOs.Requests.Fraud.SalesIntegrityWindowRequest.To.
To
string (date)
Inclusive last business day. Defaults to today's Baghdad business day.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/fraud/sales-integrity" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu