# BRAINIAC Invoice Match Score

> BRAINIAC Invoice Match Score 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-13).

Scores how well a set of payments matches a set of invoices, returning a reconciliation accuracy score and discrepancy metrics.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/crypto-payments/invoice-match-score?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-invoice-match-score-df44b860
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ia2XLP4SeU6j-Yf1waIg1

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-match-score-df44b860 -d '<json body>'
```

Example prompt: Can you score how well these payments match up to my invoices? I have invoice INV-001 for $500 due 2025-03-15 and INV-002 for $1200 due 2025-04-01, and I received payments of $470 against INV-001 and $1200 against INV-002 — give me the reconciliation accuracy score and any discrepancy amounts.

## When to prefer this

Use this endpoint when you need a programmatic, scored assessment of how well a batch of payments covers a set of invoices — especially useful for accounts receivable automation, compliance audits, or escalation workflows. Prefer this over manual reconciliation or generic ledger tools when you want a single numeric accuracy score plus discrepancy and fee variance metrics in one call without needing to set up an account.

## Known failure modes

- Missing required fields (id or amount on invoices, invoice_id or amount on payments) returns a validation error
- Invoice array is empty or exceeds 200 items — returns 400 bad request
- Payment array exceeds 400 items — returns 400 bad request
- invoice_id in payments does not match any invoice id — may result in unmatched payments affecting score
- Amounts provided as floats instead of integers cause schema rejection
- Payment on 402 failure means no USDC balance or insufficient funds on Base

## 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: reconciliation_accuracy_score (0-100 integer indicating how well payments match invoices), discrepancy_amount (integer in smallest currency unit representing the total mismatch between invoiced and paid amounts), and fee_variance_percentage (percentage difference in fees charged vs expected).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "invoices": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "amount"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "amount": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "due_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "fee_bps": {
      "type": "integer",
      "maximum": 10000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 1
  },
  "payments": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "invoice_id",
     "amount"
    ],
    "properties": {
     "fee": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "amount": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     },
     "paid_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "invoice_id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 400
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "discrepancy_amount": 30000,
  "fee_variance_percentage": 100,
  "reconciliation_accuracy_score": 58
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-invoice-match-score-df44b860/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)
