TeX402 JSON Invoice to PDF ($0.010 USDC)
tex402_invoiceRender a print-ready business or Web3 Invoice/Receipt PDF from structured JSON with deterministic BigInt fixed-point totals, optional logo, and offline vector payment QR code across 4 LaTeX themes (clean, ledger, minimal, web3) via POST /v1/pdf/invoice ($0.010 USDC via x402). Returns computed_totals, a 15-minute PDF download_url, and optional 150-DPI PNG page preview image blocks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_number": "<invoice_number>",
"from": "<from>",
"to": "<to>",
"line_items": "<line_items>"
},
"name": "tex402_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Buyer or recipient party details | |
| from | Yes | Seller or issuer party details | |
| items | No | Optional alias for line_items | |
| notes | No | ||
| terms | No | ||
| theme | No | Visual LaTeX theme for the generated invoice PDF | clean |
| status | No | unpaid | |
| currency | No | ISO 4217 currency or token ticker such as USD, EUR, JPY, or USDC | USD |
| due_date | No | ||
| po_number | No | ||
| tax_label | No | ||
| issue_date | No | ||
| line_items | Yes | ||
| paper_size | No | letter | |
| amount_paid | No | ||
| logo_base64 | No | Optional PNG or JPEG company logo encoded as base64 or base64:... (at most 1 MB decoded) | |
| accent_color | No | Optional 6-digit hex accent color such as #0f172a | |
| invoice_number | Yes | Unique invoice identifier such as INV-2026-0042 | |
| currency_symbol | No | Optional explicit currency symbol override | |
| discount_amount | No | ||
| shipping_amount | No | ||
| discount_percent | No | ||
| tax_rate_percent | No | ||
| payment_instructions | No | ||
| include_page_previews | No |