# BRAINIAC Trade Finance Document Match

> BRAINIAC Trade Finance Document Match 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).

Cross-checks invoices, letters of credit, contracts, and trade documents for alignment, discrepancies, and financing readiness without inventing data or contacting banks

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/trade-finance/document-match?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-trade-finance-document-match-5b322fd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K0xqemCP4BmlyUvq3IX3-

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-document-match-5b322fd3 -d '<json body>'
```

Example prompt: Check whether my invoice INV-1001 for $50,000 USD from Seller Corp to Buyer Ltd matches the letter of credit LC-2024-007 and contract CT-890 — verify that the parties, amounts, and goods descriptions align and flag any discrepancies.

## When to prefer this

Use this endpoint when you need a pay-per-call, no-account trade finance document cross-check that is transparent about its data sources and never fabricates missing fields or issues credit decisions. It is best suited for agents operating in export/import finance, factoring, or supply chain finance workflows that need a quick automated consistency check across invoices, LCs, contracts, and trade documents. Prefer it over general LLM document comparison when you need structured, schema-defined match results with explicit financing-readiness flags and audit-safe limitation disclosures.

## Known failure modes

- Missing required document fields cause incomplete match results with explicit 'not compared' flags rather than invented values
- Amounts or parties not supplied in input are reported as uncompared rather than fetched from external sources
- Oversized inputs exceeding field maxLength or maxItems limits may be rejected
- Malformed base64 file content or unsupported media types return validation errors
- Complex multi-party structures with ambiguous IDs may produce partial matches with limitation notes

## 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 containing per-document match results indicating whether each invoice is matched to a contract and LC, whether amounts and parties are aligned, a list of discrepancy findings, an overall match status, a checkedAt timestamp, and explicit disclaimers about what data sources were used and what was not invented or decided (e.g. no credit decision, no paid provider used).

## 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": [
   {
    "lcId": "LC-1",
    "matched": true,
    "invoiceId": "INV-1",
    "contractId": "CT-1",
    "documentIds": [
     "DOC-1"
    ],
    "amountAligned": true,
    "documentCount": 1,
    "invoiceNumber": "INV-1001",
    "amountCompared": true,
    "amountInvented": false,
    "creditDecision": false,
    "partiesAligned": true,
    "partiesCompared": true,
    "financingApproved": false
   }
  ],
  "status": "matched",
  "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."
  ],
  "invoiceCount": 1,
  "matchedCount": 1,
  "publicSources": [],
  "amountInvented": false,
  "apiKeyRequired": false,
  "creditDecision": false,
  "paidProviderUsed": false,
  "financingApproved": false,
  "discrepancyInvented": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-trade-finance-document-match-5b322fd3/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)
