{"uid":"cap_GLViA82-qt9ZETZemTZPc","slug":"freelancedesk-invoice-pdf-generator-3a9ceb49","name":"FreelanceDesk Invoice PDF Generator","description":"Invoicing and billing resources sold per call to software. POST invoice JSON to check it (0.05 USD), get a print-ready A4 invoice as PDF (0.10 USD) or as self-contained HTML (0.10 USD), or GET the FreelanceDesk app and document pack as zip downloads. Each endpoint answers 402 with two payment options: an x402 v2 PAYMENT-REQUIRED challenge and an MPP WWW-Authenticate challenge (method evm, intent charge). Both settle an exact USDC EIP-3009 transfer on Base (eip155:8453) and return the resource in the same response.","url":"https://afraid-butterfly-5236.obtranzat.deno.net/v1/invoice/pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"type":"string","description":"Issue date, YYYY-MM-DD"},"items":{"type":"array","items":{"type":"object","required":["description","quantity","unitPrice"],"properties":{"taxRate":{"type":"number","maximum":100,"minimum":0},"quantity":{"type":"number","exclusiveMinimum":0},"unitPrice":{"type":"string","description":"Non-negative amount, max 2 decimals"},"description":{"type":"string"}}},"maxItems":100,"minItems":1},"notes":{"type":"string"},"client":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"vatId":{"type":"string"},"address":{"type":"string"}}},"number":{"type":"string","description":"Invoice number, e.g. 2026-014"},"seller":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"vatId":{"type":"string"},"address":{"type":"string"}}},"dueDate":{"type":"string","description":"Due date, YYYY-MM-DD"},"taxMode":{"enum":["exclusive","inclusive"],"type":"string","description":"default exclusive"},"currency":{"type":"string","description":"ISO 4217 code, default EUR"},"taxLabel":{"type":"string","description":"default VAT"}}},"responseSchema":{"type":"json","example":{"file":"invoice-2026-014.pdf","total":"242.00","currency":"EUR","contentType":"application/pdf"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_709_61I1BSy7t_L6rb6lw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a structured invoice JSON payload into a print-ready A4 PDF document, settling payment via USDC on Base.","exampleAgentPrompt":"Generate a PDF invoice numbered 2026-014 from Acme Studio (acme@studio.com) to Bright Corp (bright@corp.com) for 8 hours of design work at $150 each and 2 logo files at $200 each, 20% VAT exclusive, due 2026-02-28, issued 2026-02-01, in EUR.","exampleUseCases":[{"title":"Freelance designer invoicing a client","prompt":"Create a PDF invoice numbered 2026-022 for my client TechStart Ltd (techstart@email.com) from my studio Jane Designs (jane@janedesigns.com) for 10 hours of UI design at €120 each and 1 brand guide at €500, VAT at 21% exclusive, issued 2026-03-01, due 2026-03-31, currency EUR."},{"title":"Agency billing for monthly retainer","prompt":"I need a print-ready A4 invoice PDF numbered RET-2026-05 from Pixel Agency (VAT ID DE123456789) to GlobalMart GmbH for a monthly retainer of 5 units at €2000 each, 19% VAT exclusive, issued 2026-05-01, due 2026-05-15, in EUR, with a note saying 'Thank you for your continued business'."},{"title":"Software consultant sending project invoice","prompt":"Generate a PDF invoice numbered INV-2026-099 from CodeCraft (codecraft@dev.io, VAT GB987654321) to Retail Co Ltd for 3 sprint deliverables at $4500 each and 5 hours of support at $200 each, tax 0%, issued 2026-04-15, due 2026-05-15, currency USD."}],"resultDescription":"Returns a PDF file as a download with metadata: the filename (e.g. invoice-2026-014.pdf), the computed invoice total, the currency, and the content type (application/pdf). The PDF is a formatted A4 print-ready invoice document.","failureModes":["Payment not settled — 402 response with x402 and MPP payment challenges returned","Invalid invoice JSON — missing required fields like seller name, client name, or line items returns a validation error","Invalid date format — dates not in YYYY-MM-DD format rejected","Unit price with more than 2 decimal places rejected","Line items array empty or exceeds 100 items","Unknown currency code causes processing error","Network timeout during PDF rendering"],"whenToPreferThis":"Choose this endpoint when you need a professionally formatted, print-ready A4 PDF invoice and are comfortable paying per-call in USDC on Base via x402 or MPP. Prefer this over the HTML sibling when the output must be printed, emailed as an attachment, or archived as a fixed-layout document. Use the cheaper /validate endpoint first to check the invoice JSON before paying for the PDF render.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:49:02.428Z","isFirstParty":false,"canonicalSlug":"freelancedesk-invoice-pdf-generator-3a9ceb49"}