# BRAINIAC Payment Intelligence — Affordability Data Calculator

> BRAINIAC Payment Intelligence — Affordability Data Calculator 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 supplied transaction data to calculate inflows, outflows, recurring subscriptions, and income signals without connecting to any bank or requiring credentials.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/payment-intelligence/affordability-data-calculate?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-payment-intelligence-affordability-data-calculator-28c68cd9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QZUUd05duvmCYB6EkR9g-

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-payment-intelligence-affordability-data-calculator-28c68cd9 -d '<json body>'
```

Example prompt: Analyze these bank transactions I'm pasting in CSV format and calculate the total inflows, outflows, net cashflow, average monthly income, and flag any recurring subscriptions or salary patterns — as of November 2026.

## When to prefer this

Use this endpoint when you need to compute cashflow metrics and detect recurring financial patterns from already-gathered transaction data, without needing Open Banking connectivity or user credentials. It is ideal for agents that have already retrieved transactions from a bank API, a CSV export, or user-pasted data and need structured affordability signals. Prefer it over Open Banking solutions when privacy, simplicity, or lack of credentials is important, and over generic LLM analysis when you need structured, auditable numeric outputs with explicit limitation disclosures.

## Known failure modes

- Missing required transaction data — returns error if no transactions, csv, json, or text supplied
- Malformed date in asOf field — rejected with validation error
- CSV or JSON exceeds 200,000 character limit — truncation or rejection
- Transaction amounts outside ±1,000,000,000 range — validation error
- Insufficient transaction history to detect recurring patterns — returns observation with low confidence or no findings
- Payment failure via x402 — 402 response before processing begins

## 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 status 'calculated', total inflows, total outflows, net cashflow, average monthly income, outflow-to-income ratio, estimated monthly subscription cost, recurring pattern findings (e.g. salary, subscription services), boolean flags indicating whether a bank was connected or credentials used (always false), and a limitations list clarifying that no data is invented and no affordability decision is produced.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "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
  },
  "accounts": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "name": {
      "type": "string",
      "maxLength": 200
     },
     "type": {
      "type": "string",
      "maxLength": 80
     },
     "currency": {
      "type": "string",
      "maxLength": 12
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100
  },
  "merchants": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "name": {
      "type": "string",
      "maxLength": 200
     },
     "aliases": {
      "type": "array",
      "items": {
       "type": "string",
       "maxLength": 200
      },
      "maxItems": 20
     },
     "category": {
      "type": "string",
      "maxLength": 120
     }
    },
    "additionalProperties": false
   },
   "maxItems": 400
  },
  "corrections": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "to": {
      "type": "string",
      "maxLength": 120
     },
     "from": {
      "type": "string",
      "maxLength": 120
     },
     "merchant": {
      "type": "string",
      "maxLength": 200
     },
     "transactionId": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 400
  },
  "transactions": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "mcc": {
      "type": "string",
      "maxLength": 20
     },
     "date": {
      "type": "string",
      "maxLength": 40
     },
     "amount": {
      "type": "n
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "calculated",
  "findings": [
   {
    "code": "recurring_candidate",
    "kind": "observation",
    "detail": "A repeating amount and date spacing pattern was found in supplied transactions.",
    "subject": "salary payroll"
   },
   {
    "code": "recurring_candidate",
    "kind": "observation",
    "detail": "A repeating amount and date spacing pattern was found in supplied transactions.",
    "subject": "Spotify Premium"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "inflowTotal": 9000,
  "limitations": [
   "Transactions, accounts, merchants, and category corrections are copied only from labeled fields supplied by the caller.",
   "No bank account is connected and no Open Banking credentials are required or used.",
   "Income, affordability, and merchant identity are derived only from supplied rows. Missing values are not invented.",
   "Recurring and subscription detection use date spacing and description/merchant similarity from the supplied set only.",
   "An affordability or credit decision is never produced."
  ],
  "netCashflow": 8570.03,
  "outflowTotal": 429.97,
  "bankConnected": false,
  "averageOutflow": 107.49,
  "incomeInvented": false,
  "credentialsRequired": false,
  "inflowTotalSupplied": true,
  "netCashflowSupplied": true,
  "averageMonthlyIncome": 3000,
  "openBankingConnected": false,
  "outflowToIncomeRatio": 0.0392,
  "outflowTotalSupplied": true,
  "affordabilityDecision": false,
  "averageOutflowSupplied": true,
  "averageMonthlyIncomeSupplied": true,
  "outflowToIncomeRatioSupplied": true,
  "estimatedMonthlySubscriptions": 9.99,
  "estimatedMonthlySubscriptionsSupplied": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-payment-intelligence-affordability-data-calculator-28c68cd9/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)
