{"partialResults":false,"resources":[{"accepts":[{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x5e18Dfb04F64e1D0d3593178a004A251506c2e16","scheme":"exact"},{"amount":"10000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","extra":{"feePayer":"BENrLoUbndxoNMUS5JXApGMtNykLjFXXixMtpDwDR9SP","transactionVersions":[0,1]},"maxTimeoutSeconds":300,"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","payTo":"Gjpthm1vAehaLZo9y58oSzWUNHCvTpZm8Cz69PgwGW7S","scheme":"exact"}],"description":"Generate print-ready business and crypto invoice, receipt, and billing PDFs from structured JSON — deterministic server-side BigInt fixed-point tax and discount totals, offline vector payment QR codes, company logos, 4 LaTeX themes (clean, ledger, minimal, web3), and 150-DPI PNG page previews.","extensions":{"bazaar":{"info":{"input":{"body":{"amount_paid":"500.00","currency":"USD","discount_percent":"5","due_date":"2026-12-22","from":{"address":"San Francisco, CA","email":"billing@northstarcloud.io","name":"Northstar Cloud Labs LLC"},"include_page_previews":true,"invoice_number":"INV-2026-1042","issue_date":"2026-11-22","line_items":[{"description":"Dedicated GPU Inference Cluster (Nov 2026)","quantity":1,"unit_price":"2400.00"},{"description":"Sandboxed PDF Rendering API (15k calls)","quantity":15,"unit_price":"8.00"}],"paper_size":"letter","payment_instructions":{"method":"ACH or USDC on Base","payment_url":"https://tex.x.gl"},"status":"unpaid","tax_label":"Sales Tax (8.5%)","tax_rate_percent":"8.5","terms":"Net 30.","theme":"clean","to":{"address":"Cambridge, MA","email":"ap@horizonrobotics.io","name":"Horizon Robotics Inc."}},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"compile_time_ms":465,"computed_totals":{"amount_paid":"500.00","balance_due":"2097.49","currency":"USD","currency_symbol":"$","discount_amount":"126.00","line_items":[{"amount":"2400.00","description":"Dedicated GPU Inference Cluster (Nov 2026)","quantity":"1","unit_price":"2400.00"},{"amount":"120.00","description":"Sandboxed PDF Rendering API (15k calls)","quantity":"15","unit_price":"8.00"}],"shipping_amount":"0.00","subtotal":"2520.00","tax_amount":"203.49","taxable_amount":"2394.00","total":"2597.49"},"diagnostics":[],"download_expires_at":"2026-11-23T19:45:00.000Z","download_url":"https://tex.x.gl/v1/downloads/m4Np8xQrW2vK9yLzT6bJcF1hD7sG3aE0uV5iO8pM2qB/tex402-invoice.pdf","page_count":1,"page_previews_base64":["iVBORw0KGgoAAAANSUhEUgAA..."],"pdf_base64":"JVBERi0xLjUNCi...","success":true,"theme_used":"clean"},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"description":"Structured invoice payload with exact server-side 10^6-scaled BigInt fixed-point math, multi-page line items, optional company logo, and vector payment QR code.","properties":{"accent_color":{"description":"Optional 6-digit hex accent color such as #0f172a","pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"amount_paid":{"oneOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]},"currency":{"default":"USD","description":"ISO 4217 currency or token ticker such as USD, EUR, JPY, or USDC","pattern":"^[A-Za-z0-9]{2,12}$","type":"string"},"currency_symbol":{"description":"Optional explicit currency symbol override","type":"string"},"discount_amount":{"oneOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]},"discount_percent":{"oneOf":[{"maximum":100,"minimum":0,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]},"due_date":{"type":"string"},"from":{"description":"Seller or issuer party details","properties":{"address":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"object"}]},"company":{"type":"string"},"email":{"type":"string"},"name":{"minLength":1,"type":"string"},"phone":{"type":"string"},"tax_id":{"type":"string"},"website":{"type":"string"}},"required":["name"],"type":"object"},"include_page_previews":{"default":false,"type":"boolean"},"invoice_number":{"description":"Unique invoice identifier such as INV-2026-0042","minLength":1,"type":"string"},"issue_date":{"type":"string"},"items":{"description":"Optional alias for line_items","items":{"properties":{"description":{"minLength":1,"type":"string"},"quantity":{"oneOf":[{"default":1,"minimum":0.000001,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]},"unit_price":{"oneOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]}},"required":["description","unit_price"],"type":"object"},"maxItems":200,"minItems":1,"type":"array"},"line_items":{"items":{"properties":{"description":{"minLength":1,"type":"string"},"quantity":{"oneOf":[{"default":1,"minimum":0.000001,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]},"unit_price":{"oneOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]}},"required":["description","unit_price"],"type":"object"},"maxItems":200,"minItems":1,"type":"array"},"logo_base64":{"description":"Optional PNG or JPEG company logo encoded as base64 or base64:... (at most 1 MB decoded)","type":"string"},"notes":{"type":"string"},"paper_size":{"default":"letter","enum":["letter","a4"],"type":"string"},"payment_instructions":{"properties":{"account_name":{"type":"string"},"account_number":{"type":"string"},"bank_name":{"type":"string"},"iban":{"type":"string"},"memo":{"type":"string"},"method":{"type":"string"},"network":{"type":"string"},"payment_url":{"maxLength":256,"pattern":"^https?://\\S+$","type":"string"},"qr_data":{"maxLength":256,"type":"string"},"routing_or_swift":{"type":"string"},"wallet_address":{"type":"string"}},"type":"object"},"po_number":{"type":"string"},"shipping_amount":{"oneOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]},"status":{"default":"unpaid","enum":["unpaid","paid","draft","overdue","void"],"type":"string"},"tax_label":{"type":"string"},"tax_rate_percent":{"oneOf":[{"maximum":100,"minimum":0,"type":"number"},{"pattern":"^\\d+(\\.\\d{1,6})?$","type":"string"}]},"terms":{"type":"string"},"theme":{"default":"clean","description":"Visual LaTeX theme for the generated invoice PDF","enum":["clean","ledger","minimal","web3"],"type":"string"},"to":{"description":"Buyer or recipient party details","properties":{"address":{"oneOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"object"}]},"company":{"type":"string"},"email":{"type":"string"},"name":{"minLength":1,"type":"string"},"phone":{"type":"string"},"tax_id":{"type":"string"}},"required":["name"],"type":"object"}},"required":["invoice_number","from","to","line_items"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"compile_time_ms":{"minimum":0,"type":"number"},"computed_totals":{"properties":{"amount_paid":{"type":"string"},"balance_due":{"type":"string"},"currency":{"type":"string"},"currency_symbol":{"type":"string"},"discount_amount":{"type":"string"},"line_items":{"items":{"properties":{"amount":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"string"},"unit_price":{"type":"string"}},"required":["description","quantity","unit_price","amount"],"type":"object"},"type":"array"},"shipping_amount":{"type":"string"},"subtotal":{"type":"string"},"tax_amount":{"type":"string"},"taxable_amount":{"type":"string"},"total":{"type":"string"}},"required":["currency","currency_symbol","subtotal","discount_amount","taxable_amount","tax_amount","shipping_amount","total","amount_paid","balance_due","line_items"],"type":"object"},"diagnostics":{"items":{"properties":{"context_snippet":{"type":"string"},"file":{"type":"string"},"line":{"type":["integer","null"]},"message":{"type":"string"},"severity":{"enum":["error","warning","info"],"type":"string"},"suggested_fix":{"type":"string"}},"required":["file","line","severity","message","context_snippet","suggested_fix"],"type":"object"},"type":"array"},"download_expires_at":{"description":"ISO-8601 UTC expiration timestamp for download_url.","type":["string","null"]},"download_url":{"description":"Short-lived 15-minute capability URL to download the rendered PDF binary directly (null on failure).","type":["string","null"]},"page_count":{"minimum":0,"type":"integer"},"page_previews_base64":{"items":{"type":"string"},"type":"array"},"pdf_base64":{"type":["string","null"]},"success":{"type":"boolean"},"theme_used":{"enum":["clean","ledger","minimal","web3"],"type":"string"}},"required":["success","theme_used","computed_totals","pdf_base64","download_url","download_expires_at","page_count","page_previews_base64","compile_time_ms","diagnostics"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-30T04:18:22.077Z","quality":{"l30DaysTotalCalls":3,"l30DaysUniquePayers":2,"lastCalledAt":"2026-11-30T04:18:21.539Z"},"resource":"https://tex.x.gl/v1/pdf/invoice","serviceName":"TeX402 PDF - Invoice to PDF","tags":["invoice","pdf","billing","receipt","accounting"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"b2usdkfo64mdeaa"}}
