# BRAINIAC Receivables Dilution Analyzer

> BRAINIAC Receivables Dilution Analyzer is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-14).

Analyzes a portfolio of receivables against dilution events (credit notes, disputes, returns, etc.) to compute expected value, dilution amounts, and basis points per receivable and currency.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/fintech/receivables-dilution-analyze?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-receivables-dilution-analyzer-1eebf9c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aEkAHg7aP9TbqI86bLWti

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-receivables-dilution-analyzer-1eebf9c1 -d '<json body>'
```

Example prompt: Analyze the dilution on these two invoices: inv-1 is USD 10000 with a credit note of USD 1500 (id d1) and a dispute of USD 500 (id d2), and inv-2 is USD 5000 with a return of USD 2000 (id d3). Tell me the expected value and dilution basis points for each.

## When to prefer this

Use this endpoint when you need deterministic, auditable dilution calculations on a batch of receivables with structured dilution events — particularly for pre-factoring due diligence, AR risk reporting, or working-capital forecasting. It is better than a general-purpose LLM calculation because it provides exact integer arithmetic, per-receivable evidence trails, and currency-grouped summaries without risk of hallucination. No account setup or API key is required — pay per call with USDC on Base via x402.

## Known failure modes

- Missing required receivable fields (id, face_value, currency) returns a validation error
- Dilution referencing an unknown receivable_id may be ignored or cause an error
- Exceeding 5000 receivables or 20000 dilution events returns a payload-too-large error
- Currency codes not matching the ^[A-Z]{3}$ pattern are rejected
- Payment not processed via x402 returns HTTP 402 before computation
- Submitting an empty receivables array fails minItems:1 validation

## 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: a summary (count of receivables and dilution events), a by_currency array (face value, dilution amount, dilution basis points, expected value per currency), and a per-receivable array (each with its dilution events, face value, dilution amount in integer minor units, dilution_bps, expected_value, and an evidence array of human-readable calculation steps). No external accounting system or factoring platform is queried; all computation is local to the submitted data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dilutions": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "receivable_id",
     "kind",
     "amount"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "kind": {
      "enum": [
       "credit_note",
       "dispute",
       "return",
       "rebate",
       "write_off",
       "other"
      ],
      "type": "string"
     },
     "amount": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "detail": {
      "type": "string",
      "maxLength": 240,
      "minLength": 1
     },
     "receivable_id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20000
  },
  "receivables": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "face_value",
     "currency"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
     },
     "face_value": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 5000,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "summary": {
   "receivables": 2,
   "dilution_events": 3
  },
  "by_currency": [
   {
    "currency": "USD",
    "face_value": 15000,
    "dilution_bps": 2666,
    "expected_value": 11000,
    "dilution_amount": 4000
   }
  ],
  "receivables": [
   {
    "events": [
     {
      "kind": "credit_note",
      "amount": 1500,
      "dilution_id": "d1"
     },
     {
      "kind": "dispute",
      "amount": 500,
      "dilution_id": "d2"
     }
    ],
    "currency": "USD",
    "evidence": [
     "expected_value = face_value 10000 - min(sum(dilutions), face_value) 2000 = 8000.",
     "dilution_bps = floor(dilution_amount * 10000 / face_value) = 2000."
    ],
    "face_value": 10000,
    "dilution_bps": 2000,
    "receivable_id": "inv-1",
    "expected_value": 8000,
    "dilution_amount": 2000
   },
   {
    "events": [
     {
      "kind": "return",
      "amount": 2000,
      "dilution_id": "d3"
     }
    ],
    "currency": "USD",
    "evidence": [
     "expected_value = face_value 5000 - min(sum(dilutions), face_value) 2000 = 3000.",
     "dilution_bps = floor(dilution_amount * 10000 / face_value) = 4000."
    ],
    "face_value": 5000,
    "dilution_bps": 4000,
    "receivable_id": "inv-2",
    "expected_value": 3000,
    "dilution_amount": 2000
   }
  ],
  "explanations": [
   "Dilution events are summed per receivable and capped at face_value. Currencies are never converted.",
   "No factoring platform or accounting system is queried."
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-receivables-dilution-analyzer-1eebf9c1/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)
