# BRAINIAC Invoice Assignment Conflict Detector

> BRAINIAC Invoice Assignment Conflict Detector 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).

Detects duplicate or conflicting assignments of the same invoice to multiple financiers or banks in a trade finance dataset

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/trade-finance/invoice-assignment-conflict-detect?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-invoice-assignment-conflict-detector-78feb2d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BU2SAiCmRn01SRttikP_p

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-invoice-assignment-conflict-detector-78feb2d8 -d '<json body>'
```

Example prompt: Check these invoices and assignment records for any conflicts — specifically flag any cases where the same invoice has been assigned to more than one bank or factor at the same time.

## When to prefer this

Use this endpoint when you need a lightweight, no-account, pay-per-call check for duplicate invoice assignment conflicts in trade finance workflows. It is best suited for agents that need to screen receivables portfolios, validate assignment integrity before financing decisions, or audit invoice datasets for double-pledging without integrating with a full trade finance platform. Prefer this over manual review or heavier compliance platforms when speed, low cost ($0.04/call), and no-registration access are priorities.

## Known failure modes

- Missing required invoice or assignment fields result in incomplete conflict analysis
- Invoices without unique IDs may not be matched correctly across assignments
- Exceeding the 1000-invoice or 200-party limits will cause request rejection
- Malformed CSV, JSON, or base64 file data may fail to parse
- Ambiguous party names (e.g. slight spelling variations) may not be recognized as the same assignee
- Payment failure via x402 results in 402 response with no analysis performed

## 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-invoice conflict details including assignee lists, assignment records, conflict boolean flags, assignment counts, and overall findings. Also includes aggregate counts (invoiceCount, conflictCount), a checkedAt timestamp, and explicit limitation statements clarifying that no credit decisions are made, no data is invented, and no external registries are contacted.

## 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": [
   {
    "conflict": true,
    "assignees": [
     "Bank A",
     "Factor B"
    ],
    "invoiceKey": "inv-1",
    "assignments": [
     {
      "id": "ASG-1",
      "date": "2026-09-10",
      "amount": 100000,
      "assignee": "Bank A",
      "assignor": "Seller Co",
      "currency": "USD",
      "amountSupplied": true
     },
     {
      "id": "ASG-2",
      "date": "2026-09-12",
      "amount": 100000,
      "assignee": "Factor B",
      "assignor": "Seller Co",
      "currency": "USD",
      "amountSupplied": true
     }
    ],
    "amountInvented": false,
    "creditDecision": false,
    "assignmentCount": 2,
    "financingApproved": false
   },
   {
    "conflict": false,
    "assignees": [
     "Bank A"
    ],
    "invoiceKey": "inv-2",
    "assignments": [
     {
      "id": "ASG-3",
      "date": "2026-09-11",
      "amount": 40000,
      "assignee": "Bank A",
      "assignor": "Seller Co",
      "currency": "USD",
      "amountSupplied": true
     }
    ],
    "amountInvented": false,
    "creditDecision": false,
    "assignmentCount": 1,
    "financingApproved": false
   }
  ],
  "status": "checked",
  "findings": [
   {
    "code": "assignment_conflict",
    "kind": "conflict",
    "detail": "The same invoice is assigned to more than one assignee in the supplied set.",
    "subject": "inv-1"
   }
  ],
  "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": 2,
  "conflictCount": 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-invoice-assignment-conflict-detector-78feb2d8/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)
