{"uid":"cap_Od_9wcLEftdOgvA7oOhML","slug":"paidpilot-invoice-api-f2b60b7a","name":"PaidPilot Invoice API","description":"JSON in, invoice PDF out. Pay per PDF in USDC over x402. No accounts, no API keys.","url":"https://paidpilot-invoice-api.dario-9fa.workers.dev/v1/invoice.pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"buyer":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":120,"minLength":1},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","maxLength":254},"phone":{"type":"string","maxLength":40},"tax_id":{"type":"string","maxLength":60},"address":{"type":"string","maxLength":400}}},"notes":{"type":"string","maxLength":2000},"seller":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":120,"minLength":1},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","maxLength":254},"phone":{"type":"string","maxLength":40},"tax_id":{"type":"string","maxLength":60},"address":{"type":"string","maxLength":400}}},"currency":{"type":"string","default":"USD"},"discount":{"type":"number","maximum":1000000000,"minimum":0,"description":"absolute amount subtracted before tax"},"due_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"tax_rate":{"type":"number","maximum":100,"minimum":0,"description":"percent, e.g. 7.5"},"issue_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"line_items":{"type":"array","items":{"type":"object","required":["description","quantity","unit_price"],"properties":{"quantity":{"type":"number","maximum":1000000,"exclusiveMinimum":0},"unit_price":{"type":"number","maximum":1000000000,"minimum":0},"description":{"type":"string","maxLength":300,"minLength":1}}},"maxItems":200,"minItems":1},"invoice_number":{"type":"string","maxLength":64,"minLength":1},"payment_instructions":{"type":"string","maxLength":1000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H3cnT2qcBrUF-hN6-AEoC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a professional invoice PDF from structured JSON data, billed per-PDF in USDC with no account or API key required.","exampleAgentPrompt":"Generate an invoice PDF for my freelance design work: seller is Luna Creative Studio (luna@lunacreative.io), buyer is Apex Corp (billing@apexcorp.com), invoice number INV-2024-042, issued 2024-07-01, due 2024-07-31, USD currency, one line item — 'Brand Identity Design' for 1 unit at $2500, 8.5% tax rate, and add a note saying 'Thank you for your business.'","exampleUseCases":[{"title":"Freelancer billing a client","prompt":"Create an invoice PDF for me: I'm Alex Rivera (alex@alexrivera.dev), billing TechFlow Inc (accounts@techflow.com), invoice INV-007, issued today 2024-07-15, due 2024-08-15, USD, two line items — 'API Integration' 10 hours at $150 each and 'Code Review' 3 hours at $120 each, with a 7% tax rate."},{"title":"Agency invoicing for a project with discount","prompt":"Generate a PDF invoice from Bright Agency (hello@brightagency.com) to StyleBrand Co (finance@stylebrand.co), invoice number BA-2024-88, issued 2024-07-10, due 2024-07-25, line items: 'Social Media Campaign' 1 unit at $5000 and 'Photography' 1 unit at $1200, apply a $500 discount and 10% tax, and add payment instructions saying 'Pay via bank transfer to account 12345678'."},{"title":"Consultant generating quick invoice on the fly","prompt":"I just finished a consulting gig — make me an invoice PDF. Seller: Marcus Obi Consulting (marcus@obiConsulting.com), buyer: GreenLeaf Partners (ap@greenleafpartners.com), invoice MO-55, issued 2024-06-30, due 2024-07-14, USD, one item: 'Strategic Planning Workshop' quantity 2 days at $2000 per day, no tax, with a note: 'Pleasure working with your team.'"}],"resultDescription":"A binary PDF file returned directly in the HTTP response body, representing a fully rendered invoice document with seller/buyer details, line items, subtotals, discounts, tax, totals, dates, invoice number, and any notes or payment instructions provided.","failureModes":["Missing required fields (seller.name, buyer.name, or line_items) returns a 4xx validation error","Invalid date format (not YYYY-MM-DD) causes a schema validation failure","line_items array is empty or exceeds 200 items triggers a validation error","Payment not completed or x402 payment rejected results in a 402 Payment Required response","Malformed email format in seller or buyer fields causes rejection","tax_rate outside 0–100 or unit_price outside allowed range returns validation error"],"whenToPreferThis":"Choose this endpoint when you need to generate a one-off invoice PDF programmatically without creating an account or managing API keys, and want to pay per document in USDC via the x402 protocol. It is ideal for AI agents, automation workflows, or headless applications that need to produce professional billing documents on demand with full control over line items, tax, discount, and party details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:30:11.802Z","isFirstParty":false,"canonicalSlug":"paidpilot-invoice-api-f2b60b7a"}