# BRAINIAC Suspicious Order Detection

> BRAINIAC Suspicious Order Detection is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-12).

Analyzes a batch of e-commerce orders to detect fraud signals such as amount outliers, address changes, and billing/shipping mismatches using statistical rules.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/ecommerce-fraud/suspicious-order-detect?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-suspicious-order-detection-4bc41f2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ma499xw0r4Whn1SVy2kI2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-suspicious-order-detection-4bc41f2b -d '<json body>'
```

Example prompt: Can you check these 15 orders from the last 48 hours for fraud signals? I want to flag anything with an unusual amount compared to customer history, a shipping address change, or a billing/shipping country mismatch — use a review threshold of at least 3 orders and flag quantities over 100 units as suspicious.

## When to prefer this

Use this endpoint when you need statistical fraud signal detection on a batch of e-commerce orders without setting up a full fraud platform. It is ideal for agents that process order feeds periodically, want explainable rule-based signals (Tukey IQR, 3x median, address history), and need per-order risk levels with no account or integration overhead. Prefer this over manual review or heavyweight fraud SaaS when you need a lightweight, pay-per-call, explainable fraud check with structured output for downstream triage workflows.

## Known failure modes

- Fewer than 3 orders supplied — minimum order count rule requires at least 3 orders
- Order fields missing required values such as id or customer causing schema validation failure
- CSV or JSON payload exceeds 200,000 character limit
- Base64 encoded file exceeds 12MB limit
- Ambiguous or missing currency fields causing amount comparison failure
- Window parameter out of 1–10080 minute range

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object with an overall fraud level (e.g. 'review', 'none'), a list of active signal codes with rule names and human-readable detail (e.g. amount_outlier using Tukey IQR, amount_vs_history, address_changed), Tukey fence bounds for amount analysis, per-order risk levels and signal codes, and additional findings such as country mismatches. Each signal includes which orders triggered it and whether fraud is confirmed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "rules": {
   "type": "object",
   "properties": {
    "orders": {
     "type": "integer",
     "maximum": 50,
     "minimum": 3
    },
    "quantity": {
     "type": "integer",
     "maximum": 1000000,
     "minimum": 1
    },
    "smallAmount": {
     "type": "number",
     "maximum": 1000000,
     "minimum": 0
    }
   },
   "additionalProperties": false
  },
  "orders": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "ip": {
      "type": "string",
      "maxLength": 80
     },
     "card": {
      "type": "string",
      "maxLength": 40
     },
     "promo": {
      "type": "string",
      "maxLength": 40
     },
     "amount": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "status": {
      "type": "string",
      "maxLength": 40
     },
     "address": {
      "type": "string",
      "maxLength": 200
     },
     "country": {
      "type": "string",
      "maxLength": 40
     },
     "created": {
      "type": "string",
      "maxLength": 40
     },
     "currency": {
      "type": "string",
      "maxLength": 12
     },
     "customer": {
      "type": "string",
      "maxLength": 160
     },
     "quantity": {
      "type": "integer",
      "maximum": 1000000,
      "minimum": 0
     },
     "billCountry": {
      "type": "string",
      "maxLength": 40
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "window": {
   "type": "integer",
   "maximum": 10080,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "level": "review",
  "fences": [
   {
    "lower": 16,
    "upper": 26,
    "sample": 8,
    "applied": true,
    "currency": "USD"
   }
  ],
  "orders": [
   {
    "id": "O-4",
    "level": "review",
    "signals": "amount_outlier,amount_vs_history,address_changed",
    "customer": "C-1",
    "signalCount": 3
   },
   {
    "id": "O-1",
    "level": "none",
    "signals": "",
    "customer": "C-1",
    "signalCount": 0
   },
   {
    "id": "O-2",
    "level": "none",
    "signals": "",
    "customer": "C-1",
    "signalCount": 0
   },
   {
    "id": "O-3",
    "level": "none",
    "signals": "",
    "customer": "C-1",
    "signalCount": 0
   },
   {
    "id": "O-5",
    "level": "none",
    "signals": "",
    "customer": "C-2",
    "signalCount": 0
   },
   {
    "id": "O-6",
    "level": "none",
    "signals": "",
    "customer": "C-3",
    "signalCount": 0
   },
   {
    "id": "O-7",
    "level": "none",
    "signals": "",
    "customer": "C-4",
    "signalCount": 0
   },
   {
    "id": "O-8",
    "level": "none",
    "signals": "",
    "customer": "C-5",
    "signalCount": 0
   }
  ],
  "status": "checked",
  "signals": [
   {
    "code": "amount_outlier",
    "rule": "tukey_1_5_iqr",
    "detail": "1 of 8 supplied USD amounts are outside the Tukey fence 16 to 26. This is a statistical outlier, not confirmed fraud.",
    "orders": [
     "O-4"
    ],
    "confirmed": false
   },
   {
    "code": "amount_vs_history",
    "rule": "above_3x_median",
    "detail": "Order O-4 is above 3 times the median of this customer's other supplied USD amounts (O-1, O-2, O-3). This is one indicator.",
    "orders": [
     "O-4"
    ],
    "confirmed": false
   },
   {
    "code": "address_changed",
    "rule": "new_address_after_history",
    "detail": "Order O-4 uses a shipping address that does not match this customer's earlier supplied orders (O-1, O-2, O-3).",
    "orders": [
     "O-4"
    ],
    "confirmed": false
   }
  ],
  "findings": [
   {
    "code": "country_mismatch",
    "kind": "observation",
    "detail": "The supplied ship and bill countries differ. One mismatch is not a pattern and is not a fraud finding.",
    "subject": "O-4"
   },
   {
    "code": "country_mismatch",
    "kind": "observation",
    "detail": "The supplied ship and bill countries differ. One mismatch is not a pattern and is not a fraud finding.",
    "subject": "O-6"
   },
   {
    "code": "amount_outlier",
    "kind": "indicator",
    "detail": "1
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-suspicious-order-detection-4bc41f2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
