{"uid":"cap_j_8pBNQ-55eaqRYpY30OM","slug":"brainiac-float-loss-attribution-api-042c5c8c","name":"BRAINIAC Float Loss Attribution API","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/agent-networks/float-loss-attribution?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"agents":{"type":"array","items":{"type":"object","required":["id","opening_balance","closing_balance"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"closing_balance":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"opening_balance":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"expected_balance":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991}},"additionalProperties":false},"maxItems":200,"minItems":1},"transactions":{"type":"array","items":{"type":"object","required":["id","agent_id","category","amount"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"amount":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"agent_id":{"type":"string","maxLength":120,"minLength":1},"category":{"enum":["cash_in","cash_out","commission","fee","reversal","adjustment"],"type":"string"},"reverses":{"type":"string","maxLength":120,"minLength":1}},"additionalProperties":false},"maxItems":2000}}},"responseSchema":{"type":"json","example":{"transactions":[{"id":"c1","amount":5000,"agent_id":"ag-1","category":"cash_in","signed_amount":5000},{"id":"c2","amount":2000,"agent_id":"ag-1","category":"cash_out","signed_amount":-2000},"…"],"discrepancy_breakdown":[{"agent_id":"ag-1","category":"cash_in","signed_amount":5000,"transaction_ids":["c1"]},{"agent_id":"ag-1","category":"cash_out","signed_amount":-2000,"transaction_ids":["c2"]},"…"],"expected_closing_balances":[{"agent_id":"ag-1","opening_balance":10000,"expected_closing_balance":14700},{"agent_id":"ag-2","opening_balance":8000,"expected_closing_balance":9000}],"unexplained_discrepancies":[{"agent_id":"ag-1","closing_balance":14000,"opening_balance":10000,"supplied_variance":300,"unexplained_amount":-700,"expected_closing_balance":14700,"supplied_expected_balance":15000}]}},"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_HMXgWE-qRrLFdu_k1CiUA","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":"Attributes unexplained balance discrepancies across a fleet of agents by reconciling opening/closing balances against categorized transactions","exampleAgentPrompt":"Can you reconcile the balances for my two agents — agent ag-1 had an opening balance of 10000 and closed at 14000, and ag-2 opened at 8000 and closed at 9000 — against their transaction history (cash ins, cash outs, fees, commissions, reversals, and adjustments) and tell me what unexplained discrepancies exist?","exampleUseCases":[{"title":"Nightly agent fleet reconciliation","prompt":"Run a full balance reconciliation for all 50 agents in my network using their opening and closing balances from today and the full list of their transactions — cash ins, cash outs, commissions, fees, reversals, and adjustments — and flag any agents with unexplained discrepancies."},{"title":"Investigating a single agent's float loss","prompt":"Agent ag-7 opened with a balance of 25000 and closed at 18000, but we expected it to close at 22000. Here are all its transactions for the period — can you break down the discrepancy by category and tell me how much is still unexplained?"},{"title":"Compliance audit of commission and fee leakage","prompt":"I need to audit agent ag-99 for the week: opening balance was 50000, closing was 47500, expected was 49000. Run the float loss attribution across its transactions so I can see exactly how much of the variance comes from commissions versus fees versus unexplained sources."}],"resultDescription":"Returns an array of transactions with computed signed amounts (positive for inflows, negative for outflows), a discrepancy breakdown grouped by agent and category with totals and transaction IDs, expected closing balances computed from opening balances plus net transactions per agent, and a list of unexplained discrepancies per agent showing the closing balance, expected closing balance, supplied expected balance, and the unexplained amount remaining after accounting for all categorized transactions.","failureModes":["Missing required agent fields (id, opening_balance, closing_balance) returns validation error","Transaction references non-existent agent_id causing attribution mismatch","Reversal transaction references unknown transaction ID via reverses field","Input exceeds limits (>200 agents or >2000 transactions) triggers rejection","Integer overflow for very large balance values near MAX_SAFE_INTEGER boundary","Payment failure via x402 (insufficient USDC balance on Base) blocks the call"],"whenToPreferThis":"Use this endpoint when you need to reconcile agent-level float balances against a structured transaction ledger and identify unexplained variance by category. It is purpose-built for multi-agent financial networks where transactions span cash_in, cash_out, commission, fee, reversal, and adjustment categories. Prefer it over generic accounting tools when you need per-agent attribution with reversal-aware signed amounts and a structured unexplained discrepancy report. It is pay-per-call with no account setup required, making it ideal for ad-hoc audits or automated nightly reconciliation in agent pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T18:35:10.949Z","isFirstParty":false,"canonicalSlug":"brainiac-float-loss-attribution-api-042c5c8c"}