# BRAINIAC Failed Delivery Pattern Detector

> BRAINIAC Failed Delivery Pattern Detector 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 set of orders, shipping events, addresses, and carrier rates to detect suspicious or problematic failed-delivery patterns such as shared postcodes or repeated carrier failures

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/returns-delivery/failed-pattern-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-failed-delivery-pattern-detector-94124283
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-QUeY5Y_-nYQ6-EXXx9ZV

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-failed-delivery-pattern-detector-94124283 -d '<json body>'
```

Example prompt: Can you check these 15 orders for suspicious failed-delivery patterns? Here's my order list with statuses, carrier names, postcodes, and tracking events — look for things like multiple failed deliveries to the same postcode or repeated failures with the same carrier.

## When to prefer this

Use this endpoint when you need a lightweight, stateless, pay-per-call analysis of failed delivery patterns across a batch of orders without setting up a full fraud or logistics platform. It is ideal for ecommerce agents that need to flag suspicious clusters (shared postcodes, shared carriers) in real time, with no account required and a fixed $0.05 USDC cost. Prefer this over manual analysis or heavier logistics APIs when you want a structured signal report with explicit limitations and no side effects.

## Known failure modes

- Malformed or missing order/event data returns an error or empty signals
- Orders with unrecognized status codes are not classified as failures
- Postcode validation only covers AU, CA, DE, ES, FR, GB, IT, NL, US — others pass through without shape check
- Input exceeding maxItems limits (80 orders, 80 events) is rejected
- File uploads must be text/plain, text/csv, or application/json — other formats rejected
- No external carrier data is fetched — findings are limited to what is supplied

## 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

A JSON object with a review level (e.g. 'review'), a status ('checked'), an array of signals (e.g. shared_postcode, shared_carrier) each with detail text and affected order IDs, an array of confirmed findings, a checkedAt timestamp, a list of limitations (what was not done, e.g. no carrier contacted, no refund granted), and boolean flags confirming no side effects were taken (refundGranted, returnInitiated, carrierContacted, eventsInvented, deliverabilityConfirmed).

## 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
  },
  "rates": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "basis": {
      "type": "string",
      "maxLength": 40
     },
     "amount": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "carrier": {
      "type": "string",
      "maxLength": 80
     },
     "country": {
      "type": "string",
      "maxLength": 80
     },
     "currency": {
      "type": "string",
      "maxLength": 12
     }
    },
    "additionalProperties": false
   },
   "maxItems": 40
  },
  "rules": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name",
     "value"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 40,
      "minLength": 1
     },
     "value": {
      "type": "string",
      "maxLength": 40
     }
    },
    "additionalProperties": false
   },
   "maxItems": 8
  },
  "events": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "code": {
      "type": "string",
      "maxLength": 80
     },
     "detail": {
      "type": "string",
      "maxLength": 500
     },
     "orderId": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 80
  },
  "orders": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "status": {
      "type": "string",
      "maxLength": 80
     },
     "weight": {
      "type": "number",
      "maximum": 1000000,
      "minimum": 0
     },
     "carrier": {
      "type": "string",
      "maxLength": 80
  
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "level": "review",
  "status": "checked",
  "signals": [
   {
    "code": "shared_postcode",
    "detail": "3 failed orders share postcode sw1a 1aa|gb. This is not a carrier finding.",
    "orders": [
     "O-1",
     "O-2",
     "O-3"
    ],
    "confirmed": false
   },
   {
    "code": "shared_carrier",
    "detail": "3 failed orders share carrier example carrier. This is not a carrier finding.",
    "orders": [
     "O-1",
     "O-2",
     "O-3"
    ],
    "confirmed": false
   }
  ],
  "findings": [],
  "checkedAt": "2026-11-04T12:00:00.000Z",
  "limitations": [
   "Orders, addresses, events, returns, and rates are copied only from labeled fields supplied by the caller.",
   "No carrier tracking event is added. A code is classified only when it is failed, delivery_failed, not_delivered, undeliverable, refused, damaged, delayed, late, held, hold, address, address_issue, bad_address, returned, returned_to_sender, rts, or exception.",
   "An address check is structural. Postcode shape is checked only for AU, CA, DE, ES, FR, GB, IT, NL, and US. Delivery is not confirmed.",
   "A return cost uses only a supplied rate, and a window uses only a supplied day count. No refund is granted.",
   "No carrier account is contacted and no return is initiated."
  ],
  "refundGranted": false,
  "eventsInvented": false,
  "returnInitiated": false,
  "carrierContacted": false,
  "deliverabilityConfirmed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-failed-delivery-pattern-detector-94124283/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)
