{"uid":"cap_h6dBl0f3I03ylyyIdk5-K","slug":"brainiac-payment-failure-pattern-analyzer-eee113e4","name":"BRAINIAC Payment Failure Pattern Analyzer","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/payment-intelligence/failure-pattern-analyze?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":200},"type":{"type":"string","maxLength":80},"currency":{"type":"string","maxLength":12}},"additionalProperties":false},"maxItems":100},"merchants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":200},"aliases":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":20},"category":{"type":"string","maxLength":120}},"additionalProperties":false},"maxItems":400},"corrections":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string","maxLength":120},"from":{"type":"string","maxLength":120},"merchant":{"type":"string","maxLength":200},"transactionId":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":400},"transactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"mcc":{"type":"string","maxLength":20},"date":{"type":"string","maxLength":40},"amount":{"type":"number","maximum":1000000000,"minimum":-1000000000},"status":{"type":"string","maxLength":80},"category":{"type":"string","maxLength":120},"currency":{"type":"string","maxLength":12},"merchant":{"type":"string","maxLength":200},"accountId":{"type":"string","maxLength":80},"direction":{"type":"string","maxLength":40},"reference":{"type":"string","maxLength":160},"description":{"type":"string","maxLength":500}},"additionalProperties":false},"maxItems":2000}}},"responseSchema":{"type":"json","example":{"items":[{"id":"TX-1","date":"2026-10-02","amount":-50,"status":"failed","currency":"GBP","merchant":"UtilityCo","accountId":"","description":"Direct debit failed insufficient funds","reasonToken":"failed","bankConnected":false,"amountSupplied":true,"openBankingConnected":false},{"id":"TX-2","date":"2026-10-09","amount":-50,"status":"declined","currency":"GBP","merchant":"UtilityCo","accountId":"","description":"Direct debit declined","reasonToken":"declined","bankConnected":false,"amountSupplied":true,"openBankingConnected":false}],"status":"analyzed","findings":[{"code":"payment_failures","kind":"observation","detail":"Failure-like statuses or wording were found in supplied transactions only.","subject":""}],"patterns":[{"merchant":"utilityco","failureCount":2}],"checkedAt":"2026-11-04T21:00:00.000Z","limitations":["Transactions, accounts, merchants, and category corrections are copied only from labeled fields supplied by the caller.","No bank account is connected and no Open Banking credentials are required or used.","Income, affordability, and merchant identity are derived only from supplied rows. Missing values are not invented.","Recurring and subscription detection use date spacing and description/merchant similarity from the supplied set only.","An affordability or credit decision is never produced."],"failureCount":2,"bankConnected":false,"incomeInvented":false,"credentialsRequired":false,"openBankingConnected":false,"affordabilityDecision":false}},"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_RvXQJvEuEDW379uGG6H0R","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":"Analyzes a set of transactions to detect payment failure patterns, declined charges, and recurring failure behavior by merchant","exampleAgentPrompt":"Can you analyze these transactions for payment failure patterns? I have a list of 50 transactions including some declined and failed direct debits from UtilityCo — tell me which ones failed, why, and if there's a pattern by merchant.","exampleUseCases":[{"title":"Detect recurring failed direct debits","prompt":"I have a CSV of the last 3 months of bank transactions — can you check it for any failed or declined direct debits and tell me which merchants are repeatedly failing?"},{"title":"Lender pre-screening for payment failures","prompt":"Before we approve this loan application, can you scan the applicant's uploaded transaction file for any payment failure patterns or declined charges in the last 90 days?"},{"title":"Subscription payment failure audit","prompt":"We're trying to understand why some customers are churning — can you analyze this JSON of customer transactions and find any patterns around failed subscription or recurring payments by merchant?"}],"resultDescription":"Returns a list of transactions flagged as failures or declines with reason tokens, per-merchant failure counts, high-level findings, a status field, a checkedAt timestamp, and explicit limitation disclosures (no bank connection, no affordability decision, no invented values). Also includes boolean flags such as bankConnected, openBankingConnected, incomeInvented, and affordabilityDecision.","failureModes":["Transactions missing status or description fields may not be classified correctly","No bank connection means only supplied rows are analyzed — missing transactions are not fetched","Ambiguous status text may not trigger failure detection","Empty or malformed CSV/JSON input returns no items","Over-limit inputs (>200KB text, >400 merchants) are rejected","Insufficient context (no dates, no merchant names) produces low-confidence findings"],"whenToPreferThis":"Use this endpoint when you have a structured or semi-structured set of transaction records and need to identify which ones represent payment failures, declines, or recurring failure behavior — without connecting to a bank or Open Banking provider. It is especially useful for agents doing pre-screening, compliance review, or customer-support triage on supplied data. Prefer it over generic LLM analysis when you need structured output with per-merchant failure counts and explicit limitation attestations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:23.442Z","isFirstParty":false,"canonicalSlug":"brainiac-payment-failure-pattern-analyzer-eee113e4"}