# BRAINIAC Trade Finance Credit Exposure Calculator

> BRAINIAC Trade Finance Credit Exposure Calculator 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-12).

Calculates outstanding credit exposure across trade counterparties from invoices, contracts, and letters of credit

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/trade-finance/credit-exposure-calculate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-trade-finance-credit-exposure-calculator-1fbaa033
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sIrIEaTvqUgSSIjtiMyBm

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-trade-finance-credit-exposure-calculator-1fbaa033 -d '<json body>'
```

Example prompt: Calculate the total credit exposure across all my trade counterparties as of today — I have invoices from Buyer Co for $120,000 and Other Co for €25,000 that are still outstanding, and I need a breakdown by buyer showing invoice counts and total amounts owed.

## When to prefer this

Use this endpoint when you need a structured, verifiable aggregation of trade credit exposure from your own invoice and contract data without relying on a paid credit data provider. It is ideal for agents that need a transparent, no-hallucination calculation where data gaps are explicitly reported rather than estimated. Prefer this over general-purpose LLM analysis when you need reproducible, audit-ready output with explicit limitation disclosures and boolean integrity flags.

## Known failure modes

- Missing required fields like invoice amounts or buyer identifiers result in incomplete aggregation
- Amounts or due dates not supplied in the input are not estimated or invented — gaps are reported in findings
- Conflicting data across fields (e.g. mismatched buyer names) flagged as discrepancy findings but not resolved against external registries
- Malformed CSV, JSON, or base64 file input may cause parsing failures
- Input exceeding field size limits (e.g. more than 1000 invoices or 200 parties) will be rejected
- Currency inconsistencies across invoices reported but not automatically converted

## 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 per-counterparty breakdown of outstanding amounts, invoice counts, and currencies; a total outstanding sum; counterparty count; a checkedAt timestamp; data limitation disclosures; discrepancy findings; and boolean flags confirming no amounts were invented, no paid data providers were used, and no credit decision was made.

## 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
  },
  "parties": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "name": {
      "type": "string",
      "maxLength": 200
     },
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "country": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "invoices": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "lcId": {
      "type": "string",
      "maxLength": 80
     },
     "buyer": {
      "type": "string",
      "maxLength": 200
     },
     "goods": {
      "type": "string",
      "maxLength": 400
     },
     "amount": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": 0
     },
     "number": {
      "type": "string",
      "maxLength": 80
     },
     "seller": {
      "type": "string",
      "maxLength": 200
     },
     "source": {
      "type": "string",
      "maxLength": 160
     },
     "status": {
      "type": "string",
      "maxLength": 80
     },
     "country": {
      "type": "string",
      "maxLength": 80
     },
     "dueDate": {
      "type": "string",
      "maxLength": 40
     },
     "currency": {
      "type": "string",
      "maxLength": 12
     },
     "incoterm": {
      "type": "string",
      "maxLength": 40
     },
     "issueDate": {
      "type": "string",
      "maxLength": 40
     },
     "contractId": {
      "type": "string",
      "maxLength": 80
     },
     "outstanding": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": 0
     },
     "pay
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "buyer": "Buyer Co",
    "currency": "USD",
    "outstanding": 120000,
    "invoiceCount": 2,
    "amountInvented": false,
    "creditDecision": false,
    "financingApproved": false,
    "outstandingSupplied": true
   },
   {
    "buyer": "Other Co",
    "currency": "EUR",
    "outstanding": 25000,
    "invoiceCount": 1,
    "amountInvented": false,
    "creditDecision": false,
    "financingApproved": false,
    "outstandingSupplied": true
   }
  ],
  "status": "calculated",
  "findings": [],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Invoices, contracts, letters of credit, trade documents, and assignments are copied only from labeled fields supplied by the caller, or from key-free public World Bank trade responses when requested.",
   "No paid trade-finance data provider is used and no API key is required.",
   "Missing amounts, due dates, parties, and document fields are not invented.",
   "Financing readiness and discounting figures are descriptive calculations only. A credit or financing decision is never produced.",
   "Discrepancy and conflict findings compare supplied fields only and do not contact banks or registries."
  ],
  "publicSources": [],
  "amountInvented": false,
  "apiKeyRequired": false,
  "creditDecision": false,
  "paidProviderUsed": false,
  "totalOutstanding": 145000,
  "counterpartyCount": 2,
  "financingApproved": false,
  "discrepancyInvented": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-trade-finance-credit-exposure-calculator-1fbaa033/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)
