{"uid":"cap_Ia2XLP4SeU6j-Yf1waIg1","slug":"brainiac-invoice-match-score-df44b860","name":"BRAINIAC Invoice Match Score","description":"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.","url":"https://www.brainiac.software/api/v1/crypto-payments/invoice-match-score?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"type":"json","example":{"discrepancy_amount":30000,"fee_variance_percentage":100,"reconciliation_accuracy_score":58}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-WWnn2dbJYj855XB3st9I","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores how well a set of payments matches a set of invoices, returning a reconciliation accuracy score and discrepancy metrics.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Monthly AR reconciliation audit","prompt":"I need to reconcile last month's accounts receivable. I have 3 invoices — INV-100 for $2000 due 2025-05-01, INV-101 for $850 due 2025-05-15, INV-102 for $3300 due 2025-05-20 — and payments came in: $2000 on INV-100, $800 on INV-101, and $3300 on INV-102. What's the reconciliation accuracy score and how much is the discrepancy?"},{"title":"Vendor payment compliance check","prompt":"Before we close the books, check whether our vendor payments properly matched the invoices we issued this quarter. Invoice VND-55 was for $10000 with a 50bps fee, and we received $9950. Invoice VND-56 was $4500 and we got $4500. Give me the match score and fee variance."},{"title":"Flagging underpaid invoices before escalation","prompt":"I want to know how accurately our clients paid their invoices before I escalate to collections. Invoice CLT-301 was $750 due 2025-04-10 and we got $600. Invoice CLT-302 was $1200 due 2025-04-20 and we got $1200. Score the match and tell me the total discrepancy amount."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:44:54.258Z","isFirstParty":false,"canonicalSlug":"brainiac-invoice-match-score-df44b860"}