{"uid":"cap_tP6it42rh7TWxE-TPib_7","slug":"docforge-invoice-pdf-generator-130eeff4","name":"DocForge Invoice PDF Generator","description":"Machine-payable document & media generation via x402 (USDC on Base). Endpoints respond 402 with payment instructions; retry with an x402 payment header.","url":"https://docforge-selim.duckdns.org/invoice?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["seller","buyer","items"],"properties":{"date":{"type":"string","description":"Issue date"},"buyer":{"type":"object","description":"Client: { name (required), address?, email?, taxId? }"},"items":{"type":"array","description":"Line items: { description, unitPrice, quantity?, vatRate? }"},"notes":{"type":"string","description":"Free-text notes shown at the bottom"},"locale":{"type":"string","description":"Label language: en or fr"},"number":{"type":"string","description":"Invoice number"},"seller":{"type":"object","description":"Issuer: { name (required), address?, email?, taxId? }"},"dueDate":{"type":"string","description":"Payment due date"},"currency":{"type":"string","description":"Currency code, e.g. USD or EUR"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":"Binary PDF invoice (application/pdf)"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","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_bPas84PtrDoCfKVNPMndA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a PDF invoice document on-demand via a machine-payable x402 micropayment (0.02 USDC on Base).","exampleAgentPrompt":"Generate a PDF invoice for my client Acme Corp for 3 hours of consulting at $150/hour and a $50 software license fee, billed from my company Bright Labs LLC — I need it as a downloadable PDF.","exampleUseCases":null,"resultDescription":"Returns a binary PDF file (Content-Type: application/pdf) representing a formatted invoice document. The call first receives a 402 Payment Required response with x402 payment instructions; after submitting a valid USDC payment header on Base, the endpoint returns the generated PDF invoice ready for download or forwarding.","failureModes":["402 returned without payment header — expected; retry with x402 payment header","Payment rejected due to insufficient USDC balance on Base","Malformed invoice input data resulting in 400 Bad Request","DuckDNS dynamic DNS resolution failure causing connection timeout","Server unavailable or cold-start delay resulting in 503","Invalid or expired payment token causing 401/402 re-prompt"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate a PDF invoice document and can settle payment via USDC on Base using the x402 micropayment protocol. Ideal for AI agents automating billing workflows where each invoice generation costs a flat $0.02 USDC. Prefer this over heavier SaaS invoicing APIs when you just need a one-shot PDF output without account setup or subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T03:27:00.142Z","isFirstParty":false,"canonicalSlug":"docforge-invoice-pdf-generator-130eeff4"}