{"uid":"cap_zp_T7tFLV-S1TVtAnrnff","slug":"paidpilot-receivables-health-report-61c7ec11","name":"PaidPilot Receivables Health Report","description":"Analyze accounts receivable aging from an invoice CSV or JSON export. $1 USDC on Base per call. Takes up to 1000 open invoices (QuickBooks, Xero, FreshBooks, Wave, Stripe or custom). Returns an A-F health grade, 0-100 score, aging buckets, overdue %, DSO and a collection priority list. Don't use this for a single invoice; use /v1/reminder-draft or /v1/late-fee.","url":"https://api.paidpilot.io/v1/receivables-report?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":60000,"description":"CSV export (QuickBooks, Xero, FreshBooks, Wave, Stripe or your own). Header row required. Recognized columns: invoice number, customer, amount/total, amount paid, balance/open balance, invoice date, due date, terms, paid date, status."},"as_of":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Report date, default today (UTC)"},"currency":{"type":"string","default":"USD"},"invoices":{"type":"array","items":{"type":"object","required":["invoice_number","customer","amount"],"properties":{"terms":{"type":"string","maxLength":40},"amount":{"type":"number","maximum":10000000000,"minimum":0},"status":{"type":"string","maxLength":30},"balance":{"type":"number","maximum":10000000000},"customer":{"type":"string","maxLength":120,"minLength":1},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"paid_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"issue_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"amount_paid":{"type":"number","maximum":10000000000,"minimum":0},"invoice_number":{"type":"string","maxLength":60,"minLength":1}},"additionalProperties":false},"maxItems":1000,"description":"Or JSON rows instead of CSV"},"default_terms":{"type":"string","default":"Net 30","maxLength":40,"description":"Used when a row has no due date and no terms"},"revenue_window_days":{"type":"integer","default":90,"maximum":365,"minimum":30,"description":"Window for DSO: invoiced amount in the last N days"}}},"responseSchema":{"type":"json","example":{"aging":{"1_30":{"count":2,"amount":1285.5,"display":"$1,285.50","percent":14.7},"31_60":{"count":1,"amount":1850,"display":"$1,850.00","percent":21.2},"61_90":{"count":0,"amount":0,"display":"$0.00","percent":0},"current":{"count":1,"amount":3200,"display":"$3,200.00","percent":36.6},"over_90":{"count":1,"amount":2400,"display":"$2,400.00","percent":27.5},"no_due_date":{"count":0,"amount":0,"display":"$0.00","percent":0}},"as_of":"2026-10-13","notes":["Pure calculation on the data you sent: nothing is stored or sent anywhere.","Days overdue and buckets use the due date; rows without one use the invoice date plus the row's terms (or default_terms).","Not accounting, legal or credit advice."],"report":"receivables_health","summary":{"grade":"F","score":48,"dso_days":79,"dso_note":"Open balance / amount invoiced in the last 90 days x 90. Needs every invoice from that window (paid ones too) in the input to be accurate.","headline":"$5,535.50 of $8,735.50 owed to you is past due (63.4%), across 4 invoices.","open_balance":8735.5,"open_display":"$8,735.50","open_invoices":5,"score_reasons":["63.4% of open receivables are past due (-32).","27.5% are more than 60 days past due, the part least likely to be collected (-18).","Maple Street Realty holds 36.6% of what you are owed (-2)."],"over_60_percent":27.5,"overdue_balance":5535.5,"overdue_percent":63.4,"overdue_invoices":4,"average_days_to_pay":38,"paid_invoices_measured":2,"weighted_days_outstanding":68,"top_customer_share_percent":36.6,"customers_with_open_balance":4},"currency":"USD","customers":[{"display":"$3,200.00","customer":"Maple Street Realty","invoices":1,"open_balance":3200,"share_percent":36.6,"overdue_balance":0,"oldest_days_overdue":0},{"display":"$2,960.00","customer":"Blue River Bakery","invoices":2,"open_balance":2960,"share_percent":33.9,"overdue_balance":2960,"oldest_days_overdue":103},{"display":"$1,850.00","customer":"Hill & Co Dental","invoices":1,"open_balance":1850,"share_percent":21.2,"overdue_balance":1850,"oldest_days_overdue":39},{"display":"$725.50","customer":"Prairie Auto Repair","invoices":1,"open_balance":725.5,"share_percent":8.3,"overdue_balance":725.5,"oldest_days_overdue":12}],"input_report":{"rows_read":7,"rows_skipped":[],"default_terms":"Net 30","csv_columns_used":{"amount":"Total","status":"Status","customer":"Customer","due_date":"Due Date","paid_date":"Paid Date","issue_date":"Invoice Date","amount_paid":"Amount Paid","invoice_number":"Invoice Number"},"due_dates_assumed_from_terms":0,"rows_excluded_void_draft_or_future":0},"recommendations":["Start with the 1 invoice over 60 days ($2,400.00): the older an invoice gets, the less likely it is to be paid.","Send reminders on the 2 invoices 1-30 days late ($1,285.50) this week, before they age.","Maple Street Realty is 36.6% of your receivables. Ask for a deposit or shorter terms on new work, and watch this account weekly.","Customers take 38 days to pay on average. Offer card/ACH payment links, send invoices the day work is done, and consider 2/10 Net 30 to reward fast payment."],"collection_priority":[{"bucket":"over_90","balance":2400,"display":"$2,400.00","customer":"Blue River Bakery","due_date":"2026-07-02","next_action":{"step":"final_notice","tool":"POST /v1/reminder-draft with tone=final","detail":"Send a final notice with a date, then decide on a payment plan, collections or small-claims court."},"days_overdue":103,"invoice_number":"INV-1001"},{"bucket":"31_60","balance":1850,"display":"$1,850.00","customer":"Hill & Co Dental","due_date":"2026-09-04","next_action":{"step":"firm_reminder_and_late_fee","tool":"POST /v1/reminder-draft with tone=firm; POST /v1/late-fee","detail":"Send a firm reminder and add the late fee your terms allow."},"days_overdue":39,"invoice_number":"INV-1002"},{"bucket":"1_30","balance":725.5,"display":"$725.50","customer":"Prairie Auto Repair","due_date":"2026-10-01","next_action":{"step":"friendly_reminder","tool":"POST /v1/reminder-draft with tone=friendly","detail":"Send a friendly reminder with the payment link."},"days_overdue":12,"invoice_number":"INV-1006"},{"bucket":"1_30","balance":560,"display":"$560.00","customer":"Blue River Bakery","due_date":"2026-09-19","next_action":{"step":"friendly_reminder","tool":"POST /v1/reminder-draft with tone=friendly","detail":"Send a friendly reminder with the payment link."},"days_overdue":24,"invoice_number":"INV-1003"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","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":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lbr3AaAlQ3LfQ9gSG3NP4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes accounts receivable aging from invoice data (CSV or JSON) and returns an A-F health grade, aging buckets, DSO, overdue percentage, and a collection priority list.","exampleAgentPrompt":"I just exported my open invoices from QuickBooks as a CSV — can you run a receivables health report on them and tell me my A-F grade, DSO, and which customers I should chase first? Use today as the as-of date and assume Net 30 terms for any invoices missing a due date.","exampleUseCases":[{"title":"Monthly AR health check for bookkeeper","prompt":"Here's a CSV of all our open invoices from Xero as of today — can you give me our receivables health grade, the aging breakdown by bucket, our DSO, and a list of which customers to prioritize for collections this month?"},{"title":"Freelancer cash flow triage","prompt":"I've got 12 open invoices and I'm worried about cash flow — here's the JSON with invoice numbers, customers, amounts, and due dates. Give me my AR score and tell me what percentage is overdue and which clients are the biggest risk."},{"title":"End-of-quarter CFO receivables review","prompt":"Run an AR aging report on these 200 invoices from our Stripe export for the quarter ending September 30 2025, using a 90-day revenue window, and give me the health grade, over-60-days percentage, and the top customers by overdue balance."}],"resultDescription":"Returns a JSON object with: an A-F letter grade and 0-100 numeric score, aging bucket breakdown (current, 1-30, 31-60, 61-90, over-90 days, no due date) with counts, amounts, and percentages, overall summary metrics (open balance, overdue balance, overdue %, DSO in days, average days to pay, weighted days outstanding, top customer concentration), a per-customer table sorted by collection priority, and human-readable score_reasons explaining the grade. Also includes notes clarifying that no data is stored.","failureModes":["Missing required columns in CSV (no invoice_number, customer, or amount header) — returns validation error","More than 1000 invoices submitted — rejected with maxItems error","Malformed date strings not matching YYYY-MM-DD pattern — row-level parse error or rejection","Payment of $1 USDC on Base fails or is not included — 402 Payment Required","CSV exceeds 60,000 character limit — rejected","Insufficient invoice history to compute meaningful DSO — dso_note warns about inaccuracy","All invoices missing due dates with no default_terms set — buckets computed from issue date plus Net 30 default"],"whenToPreferThis":"Use this endpoint when you need a portfolio-level view of all open receivables — health grading, aging distribution, DSO, and collection prioritization across many customers and invoices. Do not use it for a single invoice action (use /v1/reminder-draft for payment reminders or /v1/late-fee for late fee calculation). Ideal for periodic AR reviews, bookkeeper dashboards, and cash flow assessments. Accepts exports from QuickBooks, Xero, FreshBooks, Wave, Stripe, or any custom CSV format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T18:31:34.420Z","isFirstParty":false,"canonicalSlug":"paidpilot-receivables-health-report-61c7ec11"}