TeX402 PDF - Invoice to PDF
Sandboxed LaTeX-to-PDF compilation ($0.008 USDC), JSON Resume and Invoice PDF generation ($0.010 USDC), and sub-300ms ChkTeX + draftmode diagnostics ($0.002 USDC) on Base. Built for AI agents (npx -y tex402-mcp) and TypeScript (@x402/fetch).
Part of tex.x.gl · 5 endpoints · See the whole service
The wallet the 402 directs payment to. Its full payment record is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service; most of the catalog is unregistered.
Recent payments · which agents last used it
Every indexed settlement paid to this service’s wallet, newest first. The index does not record which endpoint a payment was for, so if this wallet serves more than one endpoint, the rows include payments for the others. Paged up to the newest 5,000; the full history is on the merchant page.
Accepts
The payment requirements as published to the catalog. Read the live 402 before paying: a price here is a claim, not a quote.
Pay 0.01 USDC on Base to 0x5e18…c2e16. The signed payment is good for 5 minutes.
- Paid to
- 0x5e18…c2e16
- USD Coin contract
- 0x8335…02913
- Payment window
- 5 minutes
- As published
- 10000 smallest units
That figure is in the token’s smallest units. Roundhouse does not hold this contract’s decimals, so it is shown as published rather than converted.
- Paid to
- Gjpthm…wGW7S
- Token contract
- EPjFWd…TDt1v
- Payment window
- 5 minutes
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0x5e18Dfb04F64e1D0d3593178a004A251506c2e16",
"amount": "10000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
},
{
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"extra": {
"feePayer": "BENrLoUbndxoNMUS5JXApGMtNykLjFXXixMtpDwDR9SP",
"transactionVersions": [
0,
1
]
},
"payTo": "Gjpthm1vAehaLZo9y58oSzWUNHCvTpZm8Cz69PgwGW7S",
"amount": "10000",
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"maxTimeoutSeconds": 300
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"to": {
"name": "Horizon Robotics Inc.",
"email": "ap@horizonrobotics.io",
"address": "Cambridge, MA"
},
"from": {
"name": "Northstar Cloud Labs LLC",
"email": "billing@northstarcloud.io",
"address": "San Francisco, CA"
},
"terms": "Net 30.",
"theme": "clean",
"status": "unpaid",
"currency": "USD",
"due_date": "2026-12-22",
"tax_label": "Sales Tax (8.5%)",
"issue_date": "2026-11-22",
"line_items": [
{
"quantity": 1,
"unit_price": "2400.00",
"description": "Dedicated GPU Inference Cluster (Nov 2026)"
},
{
"quantity": 15,
"unit_price": "8.00",
"description": "Sandboxed PDF Rendering API (15k calls)"
}
],
"paper_size": "letter",
"amount_paid": "500.00",
"invoice_number": "INV-2026-1042",
"discount_percent": "5",
"tax_rate_percent": "8.5",
"payment_instructions": {
"method": "ACH or USDC on Base",
"payment_url": "https://tex.x.gl"
},
"include_page_previews": true
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"success": true,
"page_count": 1,
"pdf_base64": "JVBERi0xLjUNCi...",
"theme_used": "clean",
"diagnostics": [],
"download_url": "https://tex.x.gl/v1/downloads/m4Np8xQrW2vK9yLzT6bJcF1hD7sG3aE0uV5iO8pM2qB/tex402-invoice.pdf",
"compile_time_ms": 465,
"computed_totals": {
"total": "2597.49",
"currency": "USD",
"subtotal": "2520.00",
"line_items": [
{
"amount": "2400.00",
"quantity": "1",
"unit_price": "2400.00",
"description": "Dedicated GPU Inference Cluster (Nov 2026)"
},
{
"amount": "120.00",
"quantity": "15",
"unit_price": "8.00",
"description": "Sandboxed PDF Rendering API (15k calls)"
}
],
"tax_amount": "203.49",
"amount_paid": "500.00",
"balance_due": "2097.49",
"taxable_amount": "2394.00",
"currency_symbol": "$",
"discount_amount": "126.00",
"shipping_amount": "0.00"
},
"download_expires_at": "2026-11-23T19:45:00.000Z",
"page_previews_base64": [
"iVBORw0KGgoAAAANSUhEUgAA..."
]
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType",
"body"
],
"properties": {
"body": {
"type": "object",
"required": [
"invoice_number",
"from",
"to",
"line_items"
],
"properties": {
"to": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"tax_id": {
"type": "string"
},
"address": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "object"
}
]
},
"company": {
"type": "string"
}
},
"description": "Buyer or recipient party details"
},
"from": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"tax_id": {
"type": "string"
},
"address": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "object"
}
]
},
"company": {
"type": "string"
},
"website": {
"type": "string"
}
},
"description": "Seller or issuer party details"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"unit_price"
],
"properties": {
"quantity": {
"oneOf": [
{
"type": "number",
"default": 1,
"minimum": 0.000001
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"unit_price": {
"oneOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"description": {
"type": "string",
"minLength": 1
}
}
},
"maxItems": 200,
"minItems": 1,
"description": "Optional alias for line_items"
},
"notes": {
"type": "string"
},
"terms": {
"type": "string"
},
"theme": {
"enum": [
"clean",
"ledger",
"minimal",
"web3"
],
"type": "string",
"default": "clean",
"description": "Visual LaTeX theme for the generated invoice PDF"
},
"status": {
"enum": [
"unpaid",
"paid",
"draft",
"overdue",
"void"
],
"type": "string",
"default": "unpaid"
},
"currency": {
"type": "string",
"default": "USD",
"pattern": "^[A-Za-z0-9]{2,12}$",
"description": "ISO 4217 currency or token ticker such as USD, EUR, JPY, or USDC"
},
"due_date": {
"type": "string"
},
"po_number": {
"type": "string"
},
"tax_label": {
"type": "string"
},
"issue_date": {
"type": "string"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"unit_price"
],
"properties": {
"quantity": {
"oneOf": [
{
"type": "number",
"default": 1,
"minimum": 0.000001
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"unit_price": {
"oneOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"description": {
"type": "string",
"minLength": 1
}
}
},
"maxItems": 200,
"minItems": 1
},
"paper_size": {
"enum": [
"letter",
"a4"
],
"type": "string",
"default": "letter"
},
"amount_paid": {
"oneOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"logo_base64": {
"type": "string",
"description": "Optional PNG or JPEG company logo encoded as base64 or base64:... (at most 1 MB decoded)"
},
"accent_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "Optional 6-digit hex accent color such as #0f172a"
},
"invoice_number": {
"type": "string",
"minLength": 1,
"description": "Unique invoice identifier such as INV-2026-0042"
},
"currency_symbol": {
"type": "string",
"description": "Optional explicit currency symbol override"
},
"discount_amount": {
"oneOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"shipping_amount": {
"oneOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"discount_percent": {
"oneOf": [
{
"type": "number",
"maximum": 100,
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"tax_rate_percent": {
"oneOf": [
{
"type": "number",
"maximum": 100,
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d+(\\.\\d{1,6})?$"
}
]
},
"payment_instructions": {
"type": "object",
"properties": {
"iban": {
"type": "string"
},
"memo": {
"type": "string"
},
"method": {
"type": "string"
},
"network": {
"type": "string"
},
"qr_data": {
"type": "string",
"maxLength": 256
},
"bank_name": {
"type": "string"
},
"payment_url": {
"type": "string",
"pattern": "^https?://\\S+$",
"maxLength": 256
},
"account_name": {
"type": "string"
},
"account_number": {
"type": "string"
},
"wallet_address": {
"type": "string"
},
"routing_or_swift": {
"type": "string"
}
}
},
"include_page_previews": {
"type": "boolean",
"default": 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.",
"additionalProperties": false
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"required": [
"success",
"theme_used",
"computed_totals",
"pdf_base64",
"download_url",
"download_expires_at",
"page_count",
"page_previews_base64",
"compile_time_ms",
"diagnostics"
],
"properties": {
"success": {
"type": "boolean"
},
"page_count": {
"type": "integer",
"minimum": 0
},
"pdf_base64": {
"type": [
"string",
"null"
]
},
"theme_used": {
"enum": [
"clean",
"ledger",
"minimal",
"web3"
],
"type": "string"
},
"diagnostics": {
"type": "array",
"items": {
"type": "object",
"required": [
"file",
"line",
"severity",
"message",
"context_snippet",
"suggested_fix"
],
"properties": {
"file": {
"type": "string"
},
"line": {
"type": [
"integer",
"null"
]
},
"message": {
"type": "string"
},
"severity": {
"enum": [
"error",
"warning",
"info"
],
"type": "string"
},
"suggested_fix": {
"type": "string"
},
"context_snippet": {
"type": "string"
}
}
}
},
"download_url": {
"type": [
"string",
"null"
],
"description": "Short-lived 15-minute capability URL to download the rendered PDF binary directly (null on failure)."
},
"compile_time_ms": {
"type": "number",
"minimum": 0
},
"computed_totals": {
"type": "object",
"required": [
"currency",
"currency_symbol",
"subtotal",
"discount_amount",
"taxable_amount",
"tax_amount",
"shipping_amount",
"total",
"amount_paid",
"balance_due",
"line_items"
],
"properties": {
"total": {
"type": "string"
},
"currency": {
"type": "string"
},
"subtotal": {
"type": "string"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"description",
"quantity",
"unit_price",
"amount"
],
"properties": {
"amount": {
"type": "string"
},
"quantity": {
"type": "string"
},
"unit_price": {
"type": "string"
},
"description": {
"type": "string"
}
}
}
},
"tax_amount": {
"type": "string"
},
"amount_paid": {
"type": "string"
},
"balance_due": {
"type": "string"
},
"taxable_amount": {
"type": "string"
},
"currency_symbol": {
"type": "string"
},
"discount_amount": {
"type": "string"
},
"shipping_amount": {
"type": "string"
}
}
},
"download_expires_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 UTC expiration timestamp for download_url."
},
"page_previews_base64": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-11-30 04:18Z
- Last indexed by Roundhouse
- 2026-12-03 00:30Z
- Last enriched (probe, favicon, geo)
- 2026-11-22 19:45Z
- x402 version
- 2
- Max timeout
- 300s
- Liveness probe
- HTTP 404
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent: it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 10 snapshots so far. Verified volume counts only settlements relayed by a known x402 facilitator.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service TeX402 PDF - Invoice to PDF and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=TeX402%20PDF%20-%20Invoice%20to%20PDF' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://tex.x.gl/v1/pdf/invoice, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.