{"uid":"cap_vtJqLAdEs-7j4oIQvk-Va","slug":"ar-analyzer-collections-priority-d6e01c25","name":"AR Analyzer – Collections Priority","description":"Deterministic accounts-receivable analysis for AI agents running back-offices: aging buckets (0-30/31-60/61-90/90+), seriously-overdue totals under the strictly-greater-than-60-days rule, Days Sales Outstanding with benchmark bands and trend, and collections triage with a ranked call list and an explicit recovery-decay curve. Exact arithmetic, every rule stated in the response, nothing stochastic.","url":"https://ar-analyzer.rileycraig14.workers.dev/ar/collections-priority?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["invoices"],"properties":{"as_of":{"type":"string"},"invoices":{"type":"array"}}},"responseSchema":{"curve":"recovery probability by age: <=30d 97%, <=60d 90%, <=90d 70%, <=180d 50%, >180d 25%","at_risk":4193.31,"call_list":[{"id":"INV-504","days":71,"rank":1,"action":"escalate","amount":5600,"customer":"Delta Mfg","priority_score":8960}],"expected_recovery":13652.44},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fEx2ihgDKtSzE8XZCb12V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs deterministic accounts-receivable analysis on a list of invoices, producing aging buckets, DSO with trend, seriously-overdue totals, a ranked collections call list, and a recovery-decay curve with expected recovery amounts.","exampleAgentPrompt":"Run an AR collections priority analysis on my open invoices as of today — here's the list: INV-101 for $3,200 from Acme Corp due 45 days ago, INV-205 for $5,600 from Delta Mfg due 71 days ago, and INV-310 for $800 from Beta LLC due 12 days ago. Tell me who to call first, what my at-risk total is, and what recovery I should expect.","exampleUseCases":[{"title":"Monthly collections triage for finance team","prompt":"It's end of month — run a full AR aging and collections priority report on all our open invoices as of today. I need to know the aging buckets, which customers are past 60 days, our DSO, and a ranked call list so the collections team knows exactly who to escalate first."},{"title":"Identifying high-risk overdue accounts","prompt":"I've got a batch of unpaid invoices and I'm worried about cash flow. Can you analyze them as of today, flag everything that's seriously overdue under the strictly-greater-than-60-day rule, and show me the recovery-decay curve so I can see how much is realistically collectable?"},{"title":"Automated daily AR health check for back-office agent","prompt":"Every morning I want you to pull our current open invoices, run the AR collections priority analysis as of today's date, and surface any invoices that jumped into the 61–90 or 90+ day aging buckets overnight along with their priority scores and recommended actions."}],"resultDescription":"Returns a JSON object with: aging bucket totals (0-30, 31-60, 61-90, 90+ days), Days Sales Outstanding with benchmark bands and trend, the total at-risk amount for invoices strictly over 60 days old, a ranked call list with customer name, invoice ID, days overdue, priority score, and recommended action (e.g. escalate/call/monitor), a recovery-decay probability curve by age bracket (<=30d: 97%, <=60d: 90%, <=90d: 70%, <=180d: 50%, >180d: 25%), and total expected recovery value. All arithmetic is exact and every business rule applied is stated in the response.","failureModes":["Missing required 'invoices' array — returns 400 with validation error","Invoice objects missing required fields (amount, due date, ID) — returns 400 or partial results","as_of date in unrecognized format — may default to server date or return 400","Empty invoices array — returns zeroed-out report with no call list","Payment failure (x402) — returns 402 Payment Required before processing","Malformed JSON body — returns 400 parse error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based AR analysis with explicit arithmetic — not probabilistic or ML-based forecasting. It is ideal for back-office AI agents that must produce auditable, reproducible AR aging reports, collections priority rankings, and DSO calculations on demand. Prefer it over general-purpose finance APIs when you need the specific combination of aging buckets, a recovery-decay curve, and a ranked call list in a single response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:36:46.383Z","isFirstParty":false,"canonicalSlug":"ar-analyzer-collections-priority-d6e01c25"}