fraudAlert
query · in the family Fraud alert
What it does
One fraud alert — which signal fired, the score, who or where it implicates, and the evidence records.
One FraudAlert by id. The record must belong to your organization group; an id from another group reads as not found.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Fraud review — Reviewing the fraud signals raised on staff conduct.
Roles that may call it:
- Owner
- Manager
- An API key whose scope allows
api:fraudAlert
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
id | ID ID! | yes | The id of the record. |
Returns
FraudAlert — A FraudAlert — the merchant triage register over the derived fraud-signal layer: a signal crossing a policy threshold raises an alert naming the signal family (void_no_sale · return_refund_abuse · discount_override_abuse · override_pattern · cash_over_short · dispute_chargeback), the normalized score (0..100) vs the crossed threshold, the implicated staff principal and/or facility, the scoring window, and the triggering records. Signals, not enforcement: the / authority layer enforces; an alert only records and asks. System-raised end to end — no create surface exists; the merchant triages: acknowledge (open → acknowledged — investigating; disarms the age-out), then confirm (a kept immutable finding — terminal but NOT doomed) or dismiss (a false positive — the reason is required). Untriaged alerts age out after 30 days. Triage identity/notes are the revision causes (History + the org-bus render actor + reason + instant — never duplicated fields). NOT searchable (sensitive review data — reached via the A17_FRAUD-gated paginated listing, never name-found); the listing pages newest-first and drops doomed (dismissed/expired) per the - law while confirmed findings stay listed.
Example request
query ExampleFraudAlert($id: ID!) {
fraudAlert(id: $id) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
signalKind
score
threshold
reason
periodKey
implicatedUserId
logicalFacilityId
expiresAt
}
}Variables:
{
"id": "01900000-0000-7000-8000-debfd5e50000"
}Example response
{
"data": {
"fraudAlert": {
"id": "01900000-0000-7000-8000-debfd5e50000",
"sysId": "FA-EXMP-0000-000F",
"type": "FraudAlert",
"caption": "Blue jeans",
"status": "open",
"parentId": "01900000-0000-7000-8000-eacdfcfd0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"signalKind": "<signal kind>",
"score": 1,
"threshold": 1,
"reason": "Correcting a miscount.",
"periodKey": "<period key>",
"implicatedUserId": "01900000-0000-7000-8000-956939dc0000",
"logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
"expiresAt": "2028-01-31T00:00:00.000Z"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)