{"slug":"tex-x-gl-v1-pdf-invoice-566d79","title":"Generate print-ready business and crypto invoice, receipt, and billing PDFs from","host":"tex.x.gl","method":"POST","resource":"https://tex.x.gl/v1/pdf/invoice","category":"company","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.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":519,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_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_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":1e-06,"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":1e-06,"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"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":528,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":194,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":531,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":510,"error":null}],"description_full":"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.","last_updated":"2026-11-24T02:25:29.425Z","schemes":["exact"]}