{"uid":"cap_jNgfepVYRv_lXnt4F6d-S","slug":"invoice-pdf-generator-a15f25a7","name":"Invoice PDF Generator","description":"Invoice PDF generator API — send buyer and line items as JSON, get a real A4 invoice PDF (base64) with VAT and totals computed; billing and invoicing API for AI agents, no account needed. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {\"serviceId\":\"aman-invoice-pdf\",\"request\":\"<input>\"}.","url":"https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-invoice-pdf","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"body":{"type":"object"}}},"output":{"type":"object","properties":{"example":{"type":"object","example":{"ok":true}}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004977","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.004977/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004977","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004977","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FP__3acDG00AUXA4mtm2g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004977","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a professional A4 invoice PDF (base64-encoded) from buyer details and line items, computing VAT and totals automatically, payable per-call via USDC on Base.","exampleAgentPrompt":"Generate an invoice PDF for my client Acme Corp at 123 Main St, billed for 5 hours of consulting at $150/hour and 2 software licenses at $200 each, with 20% VAT, invoice number INV-2024-042.","exampleUseCases":[{"title":"Freelancer client invoice generation","prompt":"Create an invoice PDF for my client TechStart Ltd — 10 hours of web development at $120/hour and a hosting setup fee of $250, with 15% VAT applied. Invoice number should be INV-2024-099."},{"title":"E-commerce order billing document","prompt":"Generate an A4 invoice for an online order: buyer is Sarah Johnson at 45 Oak Avenue, London. Items are: 2x Wireless Headphones at $89.99 each and 1x USB Hub at $34.50, with 20% VAT. Use order number ORD-78523 as the invoice reference."},{"title":"Agency retainer monthly invoice","prompt":"Make a monthly retainer invoice PDF for client Bright Media Group — line items are SEO services $1,500, social media management $800, and content writing $600, all plus 10% VAT. Invoice number BM-MAR-2024."}],"resultDescription":"A base64-encoded A4 PDF invoice document containing buyer and seller details, an itemized list of line items with quantities and unit prices, computed subtotals, VAT amounts per applicable rate, and the final total due. The agent receives the PDF data ready for decoding, saving, or emailing to the end recipient.","failureModes":["Missing required buyer or line item fields returns a validation error","Invalid or malformed JSON in the request body causes a 400 bad request","Insufficient USDC payment via x402 returns a 402 Payment Required response","Malformed serviceId value causes the relay to reject the request","Network timeout on the Cloudflare Workers relay results in a 504 error"],"whenToPreferThis":"Choose this endpoint when you need to generate a ready-to-send A4 invoice PDF on-the-fly without any account registration or API key setup. It is ideal for AI agents automating billing workflows, freelancers, or e-commerce systems that need VAT-inclusive invoices computed and rendered instantly. Prefer it over template-based document tools when you want a single API call that handles VAT computation and PDF rendering together, paid per-use with USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:42:45.607Z","isFirstParty":false}