{"uid":"cap_pOFda0gHJXdVOowdGnDEK","slug":"brainiac-refund-abuse-pattern-detector-c5a7192b","name":"BRAINIAC Refund Abuse Pattern Detector","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/ecommerce-fraud/refund-abuse-pattern-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000},"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},"rules":{"type":"object","properties":{"orders":{"type":"integer","maximum":50,"minimum":3},"quantity":{"type":"integer","maximum":1000000,"minimum":1},"smallAmount":{"type":"number","maximum":1000000,"minimum":0}},"additionalProperties":false},"orders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80,"minLength":1},"ip":{"type":"string","maxLength":80},"card":{"type":"string","maxLength":40},"promo":{"type":"string","maxLength":40},"amount":{"type":"number","maximum":1000000000,"minimum":0},"status":{"type":"string","maxLength":40},"address":{"type":"string","maxLength":200},"country":{"type":"string","maxLength":40},"created":{"type":"string","maxLength":40},"currency":{"type":"string","maxLength":12},"customer":{"type":"string","maxLength":160},"quantity":{"type":"integer","maximum":1000000,"minimum":0},"billCountry":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":200},"window":{"type":"integer","maximum":10080,"minimum":1}}},"responseSchema":{"type":"json","example":{"level":"review","status":"checked","signals":[{"code":"repeat_refund","rule":"min_refunded_orders","detail":"Customer C-1 has 3 supplied orders with status refunded.","orders":["R-1","R-2","R-3"],"confirmed":false},{"code":"refund_rate","rule":"refunded_share_at_least_half","detail":"Customer C-1 has 3 refunded orders out of 4 supplied orders. The share is at least half and at least 3 refunds.","orders":["R-1","R-2","R-3"],"confirmed":false}],"findings":[{"code":"repeat_refund","kind":"indicator","detail":"Customer C-1 has 3 supplied orders with status refunded.","subject":"R-1"},{"code":"refund_rate","kind":"indicator","detail":"Customer C-1 has 3 refunded orders out of 4 supplied orders. The share is at least half and at least 3 refunds.","subject":"R-1"}],"checkedAt":"2026-11-04T09:00:00.000Z","limitations":["Patterns are calculated only from the orders supplied in the request.","One signal is an indicator. It does not mean the customer is fraudulent.","No payment is processed, no order is blocked, and no merchant account is accessed.","A full card number is not copied. A statistical outlier is not confirmed fraud."],"orderBlocked":false,"fraudConfirmed":false,"accountAccessed":false,"paymentProcessed":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_8jwhtoluoNEonopaL4VQj","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 orders to detect refund abuse and repeat-refund fraud patterns for a customer or batch of transactions.","exampleAgentPrompt":"Check these 15 orders for refund abuse patterns — the customer has had 5 refunds out of 8 orders in the last 30 days. Flag any repeat refund or high refund rate signals and tell me whether this looks like policy abuse.","exampleUseCases":[{"title":"Serial refunder flagging for support team","prompt":"I have a customer with 6 refund requests out of 10 orders over the past 2 weeks — can you run their order history through the refund abuse detector and tell me if the pattern looks fraudulent or just unlucky?"},{"title":"Bulk CSV order audit for refund fraud","prompt":"I've got a CSV export of 150 orders from last month. Can you scan it for refund abuse patterns, using a rule that flags anyone with 3 or more refunds, and give me a list of risky customers?"},{"title":"Promo abuse combined with repeat refunds","prompt":"Several accounts placed orders using the same promo code and then all requested refunds — can you check these 20 orders for refund abuse signals and tell me the risk level?"}],"resultDescription":"Returns a JSON object with a risk level (e.g. 'review'), a status, an array of signals (each with a code, rule, detail, affected order IDs, and a confirmed flag), an array of findings with kind and subject, a checkedAt timestamp, boolean flags (fraudConfirmed, orderBlocked, accountAccessed, paymentProcessed), and a limitations list clarifying that only supplied data is analyzed and no blocking action is taken.","failureModes":["Fewer than the minimum required orders supplied — signals cannot be computed","Invalid order status values or missing required fields in order objects","CSV or JSON payload exceeds 200,000 character limit","Orders array exceeds 200-item limit","Rules parameters outside allowed min/max bounds — validation error returned","Ambiguous or missing customer identifiers prevent grouping — patterns may be incomplete","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-account, pay-per-call refund fraud signal on a small batch of orders (up to 200) without integrating a full fraud platform. Ideal for AI agents that need to flag suspicious refund patterns in real time during a support or review workflow, or for periodic batch audits of exported order data. Prefer this over manual review or heavyweight fraud suites when speed, low cost ($0.04/call), and zero onboarding friction matter. Not suited for real-time transaction blocking or when you need historical data beyond what you supply.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:35.177Z","isFirstParty":false,"canonicalSlug":"brainiac-refund-abuse-pattern-detector-c5a7192b"}