# PaidPilot Receivables Health Report

> PaidPilot Receivables Health Report is a paid API for AI agents from api.paidpilot.io, paid per call via x402, $1/call, status unknown (last checked 2026-11-23).

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.

## Facts

- Endpoint: POST https://api.paidpilot.io/v1/receivables-report?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/paidpilot-receivables-health-report-61c7ec11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zp_T7tFLV-S1TVtAnrnff

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability paidpilot-receivables-health-report-61c7ec11 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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_per
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/paidpilot-receivables-health-report-61c7ec11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.paidpilot.io](https://www.zero.xyz/host/api.paidpilot.io/llms.txt)
