# PaidPilot Invoice API > Invoice tools for agents, paid per call in USDC over x402: invoice PDF, payment reminder drafts, late-fee and payment-terms math, timesheet to invoice. No accounts, no API keys. Also an MCP server at /mcp. Payments: x402 v2, scheme "exact", USDC on Base mainnet (eip155:8453), asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payTo 0x2dAF658B01e257206375798a15832E9f547D65dD. No accounts or API keys. Flow: call the paid URL -> HTTP 402 with a base64 JSON PAYMENT-REQUIRED header -> sign an EIP-3009 USDC authorization for one of `accepts` -> retry with PAYMENT-SIGNATURE -> 200 + PAYMENT-RESPONSE (settlement receipt). Invalid input returns 400 and is never charged; upstream failures return 5xx and are not settled. Client libraries: @x402/fetch (wrapFetchWithPayment), @x402/axios, or any x402 v2 client. ## Paid endpoints - [POST /v1/invoice.pdf](https://api.paidpilot.io/v1/invoice.pdf) $0.02: Render one invoice PDF from JSON. Line items, tax, discount and totals computed server-side (integer minor units); 12 currencies; multi-page. Validate free first at POST /v1/invoice/validate. Body: JSON (see openapi.json). - [POST /v1/reminder-draft](https://api.paidpilot.io/v1/reminder-draft) $0.01: Draft a payment reminder email (friendly, firm or final notice). Returns subject + plain-text body for an unpaid invoice, days overdue, the recommended tone and the next step. Template-based, deterministic. Draft only: this API never sends email. Body: JSON (see openapi.json). - [POST /v1/late-fee](https://api.paidpilot.io/v1/late-fee) $0.01: Late fee on an overdue invoice. Flat fee, monthly % or annual %, simple or compounding, with grace days. Returns days late, fee, new total and a paste-ready invoice line. Optional US state for the legal note. Not legal advice; state caps are NOT looked up. Body: JSON (see openapi.json). - [POST /v1/payment-terms](https://api.paidpilot.io/v1/payment-terms) $0.01: Due date, status and early-pay discount for payment terms. Parses Net N, D/N Net M (e.g. 2/10 Net 30), Due on receipt, EOM, Net N EOM. Returns due date, days until due/overdue, discount amount and deadline, the annualized cost of skipping the discount, and suggested reminder dates. Body: JSON (see openapi.json). - [POST /v1/invoice-from-timesheet](https://api.paidpilot.io/v1/invoice-from-timesheet) $0.02: Timesheet to invoice JSON. Time entries (hours x rate, optional per-entry rounding, grouping by description, expenses, tax, terms) become a validated invoice JSON with totals, ready to POST to /v1/invoice.pdf for the PDF. Body: JSON (see openapi.json). - [POST /v1/receivables-report](https://api.paidpilot.io/v1/receivables-report) $1: Receivables health report from an invoice CSV or JSON rows. Send an open-invoices / AR export as CSV (QuickBooks, Xero, FreshBooks, Wave, Stripe or your own; columns auto-detected) or JSON rows, up to 1000 invoices. Returns an A-F health grade and 0-100 score with reasons, aging buckets (current, 1-30, 31-60, 61-90, 90+), overdue %, weighted days outstanding, DSO, average days to pay, customer concentration, a collection priority list with the next action for each overdue invoice, and recommendations. Pure calculation: nothing is stored or sent. Bad input 400, never charged. Body: JSON (see openapi.json). ## Free endpoints - GET https://api.paidpilot.io/v1/schema: example invoice JSON + field notes - POST https://api.paidpilot.io/v1/invoice/validate: validate an invoice JSON and return computed totals (same validation as the paid route) - GET https://api.paidpilot.io/v1/examples: example request bodies for every paid route - POST https://api.paidpilot.io/mcp: MCP server (stateless streamable HTTP); free tools pricing and validate_invoice, paid tools via x402 in _meta ## Discovery - OpenAPI: https://api.paidpilot.io/openapi.json - x402 manifest: https://api.paidpilot.io/.well-known/x402 - API catalog (RFC 9727): https://api.paidpilot.io/.well-known/api-catalog - Sitemap: https://api.paidpilot.io/sitemap.xml ## Related - Vendor safety check ($0.04 USDC per call, x402): GET https://vendor-safety.orioncmd.com/v1/vendor-safety?domain=&vendor= - MCP server (stdio): npx -y x402-paid-checks-mcp - Python: pip install x402-paid-checks ## Translations Reference translations (English is authoritative): /llms-es.txt, /llms-de.txt, /llms-ja.txt, /llms-zh.txt, /llms-pt.txt ## MCP Streamable HTTP at /mcp. Server Card (SEP-2127): /mcp/server-card. AI Catalog: /.well-known/ai-catalog.json. Paid tools: payment_reminder_draft, late_fee_calc, payment_terms_check, invoice_from_timesheet. ## Honesty All tools are deterministic calculators and templates: no AI text generation, nothing stored, and no email is ever sent. late_fee_calc does not look up state legal limits and is not legal advice. Dates are calendar days (no weekend/holiday adjustment); as_of defaults to today's UTC date. Published by DME Computer Services (Omaha, NE), makers of the free PaidPilot invoice generator at https://paidpilot.io/.