{"uid":"cap_aEkAHg7aP9TbqI86bLWti","slug":"brainiac-receivables-dilution-analyzer-1eebf9c1","name":"BRAINIAC Receivables Dilution 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/fintech/receivables-dilution-analyze?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"dilutions":{"type":"array","items":{"type":"object","required":["id","receivable_id","kind","amount"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"kind":{"enum":["credit_note","dispute","return","rebate","write_off","other"],"type":"string"},"amount":{"type":"integer","maximum":9007199254740991,"minimum":0},"detail":{"type":"string","maxLength":240,"minLength":1},"receivable_id":{"type":"string","maxLength":120,"minLength":1}},"additionalProperties":false},"maxItems":20000},"receivables":{"type":"array","items":{"type":"object","required":["id","face_value","currency"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"face_value":{"type":"integer","maximum":9007199254740991,"minimum":0}},"additionalProperties":false},"maxItems":5000,"minItems":1}}},"responseSchema":{"type":"json","example":{"summary":{"receivables":2,"dilution_events":3},"by_currency":[{"currency":"USD","face_value":15000,"dilution_bps":2666,"expected_value":11000,"dilution_amount":4000}],"receivables":[{"events":[{"kind":"credit_note","amount":1500,"dilution_id":"d1"},{"kind":"dispute","amount":500,"dilution_id":"d2"}],"currency":"USD","evidence":["expected_value = face_value 10000 - min(sum(dilutions), face_value) 2000 = 8000.","dilution_bps = floor(dilution_amount * 10000 / face_value) = 2000."],"face_value":10000,"dilution_bps":2000,"receivable_id":"inv-1","expected_value":8000,"dilution_amount":2000},{"events":[{"kind":"return","amount":2000,"dilution_id":"d3"}],"currency":"USD","evidence":["expected_value = face_value 5000 - min(sum(dilutions), face_value) 2000 = 3000.","dilution_bps = floor(dilution_amount * 10000 / face_value) = 4000."],"face_value":5000,"dilution_bps":4000,"receivable_id":"inv-2","expected_value":3000,"dilution_amount":2000}],"explanations":["Dilution events are summed per receivable and capped at face_value. Currencies are never converted.","No factoring platform or accounting system is queried."]}},"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_WPZPEZg2_yYJslnRL8m91","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 portfolio of receivables against dilution events (credit notes, disputes, returns, etc.) to compute expected value, dilution amounts, and basis points per receivable and currency.","exampleAgentPrompt":"Analyze the dilution on these two invoices: inv-1 is USD 10000 with a credit note of USD 1500 (id d1) and a dispute of USD 500 (id d2), and inv-2 is USD 5000 with a return of USD 2000 (id d3). Tell me the expected value and dilution basis points for each.","exampleUseCases":[{"title":"Invoice portfolio dilution report","prompt":"I have a batch of 50 customer invoices totaling USD 200000 and I need to know the expected collectible value after accounting for all the credit notes and returns we've issued — can you calculate the dilution amount and basis points per invoice and give me a currency summary?"},{"title":"Pre-factoring receivables quality check","prompt":"Before I sell these receivables to a factoring platform, calculate the dilution impact of the open disputes and rebates on each invoice so I know the adjusted face value I should present."},{"title":"Monthly accounts receivable write-off analysis","prompt":"Run a dilution analysis on this month's AR — I have 30 invoices in USD and EUR with a mix of write-offs, credit notes, and returns, and I need to see the dilution basis points and expected value broken down by currency."}],"resultDescription":"Returns a JSON object with: a summary (count of receivables and dilution events), a by_currency array (face value, dilution amount, dilution basis points, expected value per currency), and a per-receivable array (each with its dilution events, face value, dilution amount in integer minor units, dilution_bps, expected_value, and an evidence array of human-readable calculation steps). No external accounting system or factoring platform is queried; all computation is local to the submitted data.","failureModes":["Missing required receivable fields (id, face_value, currency) returns a validation error","Dilution referencing an unknown receivable_id may be ignored or cause an error","Exceeding 5000 receivables or 20000 dilution events returns a payload-too-large error","Currency codes not matching the ^[A-Z]{3}$ pattern are rejected","Payment not processed via x402 returns HTTP 402 before computation","Submitting an empty receivables array fails minItems:1 validation"],"whenToPreferThis":"Use this endpoint when you need deterministic, auditable dilution calculations on a batch of receivables with structured dilution events — particularly for pre-factoring due diligence, AR risk reporting, or working-capital forecasting. It is better than a general-purpose LLM calculation because it provides exact integer arithmetic, per-receivable evidence trails, and currency-grouped summaries without risk of hallucination. No account setup or API key is required — pay per call with USDC on Base via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T18:35:31.249Z","isFirstParty":false,"canonicalSlug":"brainiac-receivables-dilution-analyzer-1eebf9c1"}