Skip to content
Fourohtwo

Generate an invoice PDF from JSON

api.paidpilot.io/v1/invoice.pdf

Generate 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.

BaseAnswering
POSThttps://api.paidpilot.io/v1/invoice.pdf

Uptime100% of 5 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.pdf", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"buyer":{"name":"Blue River Bakery","address":"45 Dodge St, Omaha, NE 68102"},"notes":"Thank you for your business.","seller":{"name":"Acme Web Studio LLC","email":"billing@acme.example","address":"123 Main St, Omaha, NE 68102"},"currency":"USD","due_date":"2026-11-08","tax_rate":7,"issue_date":"2026-10-09","line_items":[{"quantity":1,"unit_price":1200,"description":"Website redesign (fixed fee)"),
});
console.log(await res.json());

Example input

{"buyer":{"name":"Blue River Bakery","address":"45 Dodge St, Omaha, NE 68102"},"notes":"Thank you for your business.","seller":{"name":"Acme Web Studio LLC","email":"billing@acme.example","address":"123 Main St, Omaha, NE 68102"},"currency":"USD","due_date":"2026-11-08","tax_rate":7,"issue_date":"2026-10-09","line_items":[{"quantity":1,"unit_price":1200,"description":"Website redesign (fixed fee)"

More from PaidPilot Invoice APIProvider status