{"slug":"mpp-biz-fmf-x402-workers-dev-receipt-pdf-47c432","title":"Generate a receipt PDF with a PAID stamp, totals, amount paid and balance, plus ","host":"mpp-biz.fmf-x402.workers.dev","method":"POST","resource":"https://mpp-biz.fmf-x402.workers.dev/receipt/pdf","category":"market","description":"Generate a receipt PDF with a PAID stamp, totals, amount paid and balance, plus a payment record (reference, date, link). Takes the same JSON as the invoice route. Returns application/pdf, or format=json for base64.","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":92,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amount_paid":2867.38,"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":"R-1042","paid":{"date":"2026-11-24","tx_hash":"0x5c50e1"},"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":{"default":2867.38,"description":"amount_paid (default: 2867.38)","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":"R-1042","description":"number (default: R-1042)","type":"string"},"page_size":{"description":"page_size","enum":["letter","a4"],"type":"string"},"paid":{"description":"{tx_hash, date, explorer_url} (default: {\"tx_hash\":\"0x5c50e1\",\"date\":\"2026-11-24\"})","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":244,"error":null},{"day":"2026-11-30","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":87,"error":null},{"day":"2026-11-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":42,"error":null},{"day":"2026-11-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":153,"error":null},{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":92,"error":null}],"description_full":"Generate a receipt PDF with a PAID stamp, totals, amount paid and balance, plus a payment record (reference, date, link). Takes the same JSON as the invoice route. Returns application/pdf, or format=json for base64.","last_updated":"2026-12-01T16:00:46.76Z","schemes":["exact"]}