Turn timesheet entries into invoice JSON
api.paidpilot.io/v1/invoice-from-timesheet
Turn timesheet entries into invoice JSON. $0.02 USDC on Base per call. Hours x rate, optional rounding, grouping, expenses, tax and terms become a validated invoice JSON with totals, ready for /v1/invoice.pdf. Don't use this for the PDF itself; send the result to /v1/invoice.pdf.
POST
https://api.paidpilot.io/v1/invoice-from-timesheetUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.paidpilot.io/v1/invoice-from-timesheet", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"buyer":{"name":"Blue River Bakery"},"terms":"Net 15","seller":{"name":"Acme Web Studio LLC","email":"billing@acme.example"},"entries":[{"date":"2026-10-05","hours":1.6,"description":"Website fixes"},{"date":"2026-10-06","hours":2.25,"description":"Website fixes"},{"date":"2026-10-08","rate":95,"hours":3,"description":"Menu photo shoot"}],"currency":"USD","expenses":[{"amount":29,"description":"S),
});
console.log(await res.json());Example input
{"buyer":{"name":"Blue River Bakery"},"terms":"Net 15","seller":{"name":"Acme Web Studio LLC","email":"billing@acme.example"},"entries":[{"date":"2026-10-05","hours":1.6,"description":"Website fixes"},{"date":"2026-10-06","hours":2.25,"description":"Website fixes"},{"date":"2026-10-08","rate":95,"hours":3,"description":"Menu photo shoot"}],"currency":"USD","expenses":[{"amount":29,"description":"SMore from PaidPilot Invoice APIProvider status
- api.paidpilot.io/v1/invoice.pdfGenerate an invoice PDF from JSON. $0.02 USDC on Base per call. Computes line items, tax, discount and totals server-side; 12 currencies; multi-page. Validate free first at POST /v1/invoice/validate. Don't use this for sending the invoice; it only returns the PDF.0.02
- api.paidpilot.io/v1/late-feeCalculate a late fee on an overdue invoice. $0.01 USDC on Base per call. Flat, monthly % or annual %, simple or compounding, with grace days. Returns days late, fee, new total and a paste-ready invoice line. Don't use this for legal advice; state caps are not looked up.0.01
- api.paidpilot.io/v1/payment-termsWork out an invoice due date and early-pay discount from terms like Net 30 or 2/10 Net 30. $0.01 USDC on Base per call. Parses Net N, D/N Net M, Due on receipt, EOM and Net N EOM. Returns due date, days until due or overdue, discount and deadline, the annualized cost of skipping it and reminder dates. Don't use this for late fees; use /v1/late-fee.0.01
- api.paidpilot.io/v1/receivables-reportAnalyze 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.1.00
- api.paidpilot.io/v1/reminder-draftWrite a payment reminder email for an unpaid invoice (friendly, firm or final notice). $0.01 USDC on Base per call. Returns subject and plain-text body, days overdue, the recommended tone and the next step. Template-based and deterministic. Don't use this for sending email; it only drafts.0.01
- paidpilot-invoice-api.dario-9fa.workers.dev/v1/invoice.pdfTurn invoice JSON into a print-ready PDF. Input (JSON body): seller, buyer, invoice_number, issue_date, line_items[{description,quantity,unit_price}], optional due_date, currency, tax_rate, discount, notes, payment_instructions. Returns application/pdf bytes, multi-page if needed. Totals, tax and discount are computed server-side; the X-Invoice-Total header carries the total. 12 currencies. $0.02 0.02
