{"uid":"cap_mNicNJWOt5oVHmn4ZpzSh","slug":"freelancedesk-invoice-html-renderer-f0505fd0","name":"FreelanceDesk Invoice HTML Renderer","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/render?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":{"html":"<!doctype html><html lang=\"en\"></html>","total":"242.00","currency":"EUR"}},"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_NLBAyN_b8Dz5GRtjWYKwL","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":"Generates a self-contained HTML invoice document from structured invoice JSON, returned in the same response after a $0.10 USDC micropayment on Base.","exampleAgentPrompt":"Generate an HTML invoice for my client Acme Corp (acme@example.com, VAT DE123456789) from my company Pixel Studio (studio@pixelstudio.dev) — invoice number 2026-014, issued 2026-06-01, due 2026-06-30, for 8 hours of web design at €120/hour plus 20% VAT exclusive, currency EUR.","exampleUseCases":[{"title":"Freelance web developer billing client","prompt":"Create an HTML invoice for my client TechStartup GmbH (billing@techstartup.de, VAT DE987654321) from my studio CodeCraft (hello@codecraft.dev), invoice 2026-031, dated 2026-06-15, due 2026-07-15 — 12 hours of backend development at €95/hour and 1 deployment setup at €200 flat, 19% VAT exclusive, EUR."},{"title":"Consultant generating multi-line project invoice","prompt":"I need an HTML invoice from me, Sara Consulting (sara@saraconsulting.com), to my client Nordic Retail AS (finance@nordicretail.no, VAT NO123456789) — invoice 2026-007, date 2026-05-28, due 2026-06-28. Line items: 3 days of strategy workshop at €1,500/day and 5 hours of follow-up at €200/hour, VAT 25% exclusive, currency EUR."},{"title":"Agency issuing monthly retainer invoice","prompt":"Generate an HTML invoice for our monthly retainer — from BrightAgency (accounts@brightagency.io) to MegaBrand Ltd (ap@megabrand.com), invoice 2026-MAY-R, issued 2026-05-01, due 2026-05-31. One line item: monthly retainer fee, quantity 1, €4,500.00, no tax, EUR. Add a note: 'Thank you for your continued partnership.'"}],"resultDescription":"A JSON object containing a 'html' field with the complete self-contained HTML invoice document as a string, a 'total' field with the computed invoice total as a formatted string, and a 'currency' field with the ISO 4217 currency code used.","failureModes":["Missing required seller or client name returns 422 validation error","Invalid date format (not YYYY-MM-DD) causes rejection","Line items with negative or zero quantity are rejected (exclusiveMinimum: 0)","unitPrice with more than 2 decimal places may be rejected","Payment not settled (insufficient USDC balance or wrong chain) returns 402 with payment challenge and no document","More than 100 line items exceeds maxItems limit","Invalid currency code (non-ISO 4217) may produce unexpected output or error"],"whenToPreferThis":"Choose this endpoint when you need a self-contained, browser-renderable HTML invoice document that can be emailed directly or embedded in a web page — as opposed to the PDF endpoint when a print-ready fixed-layout file is needed, or the validate endpoint when you only want to check invoice data without generating a document. Ideal for agents that need to deliver invoices via email HTML or display them inline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:30:23.114Z","isFirstParty":false,"canonicalSlug":"freelancedesk-invoice-html-renderer-f0505fd0"}