API Reference

Fraud Cases

5 endpoints· Auth: JWT or API Key
get/api/v1/console/fraud/cases JWT API Key

The queue, newest first, branch-scoped.,

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Query parameters

Category
string
`inventory` | `financial` | `operational` | `vault`. Anything else is ignored (FR-FRD-026).
Status
string
`open` | `reviewing` | `resolved` | `closed`. Null shows the whole queue.
Type
string
A `FraudCase.type` token such as `inventory_shortage`. Deliberately not validated against a closed list: the column is a free string so a new detector ships without a migration (§5.11.11 limitation 2).
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/fraud/cases" \
  -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/cases/{id} JWT API Key

One case

Another branch's id reads as `NOT_FOUND`.

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/fraud/cases/{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
delete/api/v1/console/fraud/cases/{id} JWT API Key

Withdraw an accusation., Requirement 4.6-R4

Owner only.

A tombstone, never a row deletion, and never a substitute for the note-bearing `closed` move: closing records a verdict, withdrawing records that the row should not have existed. The reason is mandatory and the act writes its own audit row.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/fraud/cases/{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
patch/api/v1/console/fraud/cases/{id}/status JWT API Key

Move a case along its lifecycle

Owner only.

`PATCH` rather than `POST`: this is a status transition on an existing row, not a new resource. A close without a note is refused, a repeat of the current status is a `CONFLICT` so a double-click is a no-op, and a case that has already left the active queue no longer accepts a decision at all.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "status": "string",
  "note": "string"
}
status
string
`reviewing` | `resolved` | `closed`. Anything else is "Unknown case status." (FR-FRD-028). `open` is not a target — nothing re-opens a case.
note
string
The owner's reasoning. <b>Required when closing</b> (FR-FRD-029), because `FraudCase` has no note column and the `RESOLVE_FRAUD` audit row is the only place "why was this buried" will ever be answerable from (§5.11.11 limitation 1).

Responses

200Success
cURL
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/fraud/cases/{id}/status" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "status": "string",
  "note": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/fraud/cases/summary JWT API Key

The three StatCards plus the by-category distribution.,

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Responses

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

Headers

Set credentials in the “Authorize” menu