{"slug":"mpp-biz-fmf-x402-workers-dev-invoice-pdf-7222a1","title":"Generate a multi-page invoice PDF from JSON","host":"mpp-biz.fmf-x402.workers.dev","method":"POST","resource":"https://mpp-biz.fmf-x402.workers.dev/invoice/pdf","category":"other","description":"Generate a multi-page invoice PDF from JSON: seller and buyer blocks, line items with per-line tax, discount, shipping, totals and amount due, with an optional payment QR block. Returns application/pdf, or format=json for base64 plus totals. Nothing is stored.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checked_on":"2026-12-01","checks_7d":5,"answered_7d":5,"latency_ms_median":93,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"buyer":{"name":"Client Co"},"crypto":{"address":"0xB2070a4A874E7141E551890a3642bF7B24a1a148","network":"base","token":"USDC"},"currency":"USDC","date":"2026-11-24","due_date":"2026-12-08","items":[{"description":"Smart contract audit","quantity":1,"unit_price":2500},{"description":"Gas reimbursement","quantity":3,"unit_price":12.5}],"number":"INV-1042","seller":{"email":"billing@acme.example","name":"Acme Labs"},"tax_label":"HST 13%","tax_rate":13},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"accent":{"description":"hex colour","type":"string"},"amount_paid":{"description":"amount_paid","type":"number"},"buyer":{"description":"buyer (default: {\"name\":\"Client Co\"})","type":"object"},"crypto":{"description":"{network: base|ethereum|arbitrum|optimism|polygon|solana|bitcoin, token: USDC|USDT|ETH|BTC, address, amount?, chain_id?, token_address?, decimals?, memo?} adds a pay-with-crypto block + QR (EIP-681 / solana: / bitcoin: URI) (default: {\"network\":\"base\",\"token\":\"USDC\",\"address\":\"0xB2070a4A874E7141E551","type":"object"},"currency":{"default":"USDC","description":"USD, CAD, EUR, USDC, ETH... (default: USDC)","type":"string"},"date":{"default":"2026-11-24","description":"date (default: 2026-11-24)","type":"string"},"discount":{"description":"amount or \"10%\"","type":"string"},"due_date":{"default":"2026-12-08","description":"due_date (default: 2026-12-08)","type":"string"},"footer":{"description":"footer","type":"string"},"format":{"description":"json returns base64 + totals","enum":["pdf","json"],"type":"string"},"items":{"description":"[{description, quantity, unit_price, tax_rate?}] up to 200 (default: [{\"description\":\"Smart contract audit\",\"quantity\":1,\"unit_price\":2500},{\"description\":\"Gas reimbursement\",\"quantity\":3,\"unit_price\":12.5}])","items":{"type":"object"},"type":"array"},"notes":{"description":"notes","type":"string"},"number":{"default":"INV-1042","description":"number (default: INV-1042)","type":"string"},"page_size":{"description":"page_size","enum":["letter","a4"],"type":"string"},"paid":{"description":"{tx_hash, date, explorer_url}","type":"object"},"seller":{"description":"{name, address, email, phone, tax_id, wallet} (default: {\"name\":\"Acme Labs\",\"email\":\"billing@acme.example\"})","type":"object"},"shipping":{"description":"shipping","type":"number"},"tax_label":{"default":"HST 13%","description":"tax_label (default: HST 13%)","type":"string"},"tax_rate":{"default":13,"description":"percent, applied to items without their own tax_rate (default: 13)","type":"number"},"terms":{"description":"terms","type":"string"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-12-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":93,"error":null},{"day":"2026-11-30","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":29,"error":null},{"day":"2026-11-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":94,"error":null},{"day":"2026-11-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":38,"error":null},{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":107,"error":null}],"description_full":"Generate a multi-page invoice PDF from JSON: seller and buyer blocks, line items with per-line tax, discount, shipping, totals and amount due, with an optional payment QR block. Returns application/pdf, or format=json for base64 plus totals. Nothing is stored.","last_updated":"2026-12-01T16:00:46.476Z","schemes":["exact"]}