# BRAINIAC Letter of Credit Discrepancy Detector

> BRAINIAC Letter of Credit Discrepancy Detector is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.06/call, status unknown (last checked 2026-11-12).

Detects discrepancies between letters of credit, invoices, contracts, and trade documents to flag compliance issues and financing readiness.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/trade-finance/letter-of-credit-discrepancy-detect?utm_source=zero.xyz
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-letter-of-credit-discrepancy-detector-1fd9ee8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_80NIaAuc9DtlF9V4tIMZI

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-letter-of-credit-discrepancy-detector-1fd9ee8e -d '<json body>'
```

Example prompt: Can you check my letter of credit LC-77 against invoice INV-1 and the packing list to see if there are any discrepancies — specifically check the invoice amount, goods description, and shipment date?

## When to prefer this

Use this endpoint when you need automated, structured discrepancy detection between letters of credit and their associated trade documents (invoices, contracts, bills of lading, packing lists) without setting up an account or subscribing to a trade finance data provider. Ideal for AI agents in trade finance workflows that need pay-per-call compliance checks at $0.06 USDC with no standing subscription.

## Known failure modes

- Missing required LC or invoice fields cause incomplete comparison rather than hard failure
- Ambiguous or truncated document text may produce missed discrepancies
- System explicitly does not invent missing amounts, dates, or parties — gaps are reported as-is
- Financing readiness figures are descriptive only — not actual credit decisions
- Only data provided by caller is used; no external trade databases are queried

## 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 structured JSON with per-LC item results including discrepancy codes (e.g. amount, goods, shipment_date, missing_document), detail messages, subjects, invoice and document counts, a clean/not-clean flag, credit decision, financing approval status, and an overall findings list with conflict kinds. Also includes a checkedAt timestamp and a list of system limitations.

## 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",
    "clean": false,
    "lcNumber": "LC-77",
    "invoiceCount": 1,
    "discrepancies": [
     {
      "code": "amount",
      "detail": "Invoice amount differs from LC amount.",
      "subject": "INV-1"
     },
     {
      "code": "goods",
      "detail": "Goods description differs from the LC description.",
      "subject": "INV-1"
     },
     {
      "code": "document_amount",
      "detail": "Document amount differs from LC amount.",
      "subject": "DOC-1"
     },
     {
      "code": "shipment_date",
      "detail": "Shipment or bill date is after the LC latest shipment date.",
      "subject": "DOC-1"
     },
     {
      "code": "missing_document",
      "detail": "A required LC document type was not found in supplied documents.",
      "subject": "packing list"
     }
    ],
    "documentCount": 1,
    "creditDecision": false,
    "discrepancyCount": 5,
    "financingApproved": false,
    "discrepancyInvented": false
   }
  ],
  "status": "checked",
  "lcCount": 1,
  "findings": [
   {
    "code": "amount",
    "kind": "conflict",
    "detail": "Invoice amount differs from LC amount.",
    "subject": "INV-1"
   },
   {
    "code": "goods",
    "kind": "conflict",
    "detail": "Goods description differs from the LC description.",
    "subject": "INV-1"
   },
   {
    "code": "document_amount",
    "kind": "conflict",
    "detail": "Document amount differs from LC amount.",
    "subject": "DOC-1"
   },
   {
    "code": "shipment_date",
    "kind": "conflict",
    "detail": "Shipment or bill date is after the LC latest shipment date.",
    "subject": "DOC-1"
   },
   {
    "code": "missing_document",
    "kind": "conflict",
    "detail": "A required LC document type was not found in supplied documents.",
    "subject": "packing list"
   }
  ],
  "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 cont
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-letter-of-credit-discrepancy-detector-1fd9ee8e/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)
