Pdf · Invoice
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.
POST https://tex.x.gl/v1/pdf/invoice
0.01 USDC on Base · payTo 0x5e18Dfb04F64e1D0d3593178a004A251506c2e16
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"amount_paid": "500.00",
"currency": "USD",
"discount_percent": "5",
"due_date": "2026-12-22",
"from": {
"address": "548 Market St, Suite 41200, San Francisco, CA 94104",
"email": "billing@northstarlabs.example",
"name": "Northstar Cloud Labs LLC",
"tax_id": "EIN 94-3829104"
},
"include_page_previews": true,
"invoice_number": "INV-2026-1042",
"issue_date": "2026-11-22",
"line_items": [
{
"description": "Dedicated GPU Inference Cluster (A100 80GB x 4) - November 2026",
"quantity": 1,
"unit_price": "2400.00"
},
{
"description": "Sandboxed Document Rendering API Calls (blocks of 1,000)",
"quantity": 15,
"unit_price": "8.00"
}
],
"notes": "Thank you for your business.",
"paper_size": "letter",
"payment_instructions": {
"account_number": "****4829",
"bank_name": "Mercury Business Checking",
"method": "ACH / Wire or USDC on Base",
"payment_url": "https://tex.x.gl",
"routing_or_swift": "084106768"
},
"status": "unpaid",
"tax_label": "Sales Tax (8.5%)",
"tax_rate_percent": "8.5",
"terms": "Net 30. Please reference INV-2026-1042 on remittance.",
"theme": "clean",
"to": {
"address": "100 CambridgePark Dr, Cambridge, MA 02140",
"email": "ap@horizonrobotics.example",
"name": "Horizon Robotics Inc."
}
}{
"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 (A100 80GB x 4) - November 2026",
"quantity": "1",
"unit_price": "2400.00"
},
{
"amount": "120.00",
"description": "Sandboxed Document Rendering API Calls (blocks of 1,000)",
"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": [],
"page_count": 1,
"page_previews_base64": [
"iVBORw0KGgoAAAANSUhEUgAA..."
],
"pdf_base64": "JVBERi0xLjUNCi...",
"success": true,
"theme_used": "clean"
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://tex.x.gl/v1/pdf/invoice · input in body · spec from live-challenge
Input schema
{
"type": "object",
"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": {
"theme": {
"type": "string",
"enum": [
"clean",
"ledger",
"minimal",
"web3"
],
"default": "clean",
"description": "Visual LaTeX theme for the generated invoice PDF"
},
"accent_color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "Optional 6-digit hex accent color such as #0f172a"
},
"paper_size": {
"type": "string",
"enum": [
"letter",
"a4"
],
"default": "letter"
},
"include_page_previews": {
"type": "boolean",
"default": false
},
"invoice_number": {
"type": "string",
"description": "Unique invoice identifier such as INV-2026-0042"
},
"issue_date": {
"type": "string"
},
"due_date": {
"type": "string"
},
"po_number": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"unpaid",
"paid",
"draft",
"overdue",
"void"
],
"default": "unpaid"
},
"currency": {
"type": "string",
"default": "USD",
"description": "ISO 4217 currency or token ticker such as USD, EUR, JPY, or USDC"
},
"currency_symbol": {
"type": "string",
"description": "Optional explicit currency symbol override"
},
"from": {
"type": "object",
"description": "Seller or issuer party details",
"properties": {
"name": {
"type": "string"
},
"company": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"address": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "object"
}
]
},
"tax_id": {
"type": "string"
},
"website": {
"type": "string"
}
},
"required": [
"name"
]
},
"to": {
"type": "object",
"description": "Buyer or recipient party details",
"properties": {
"name": {
"type": "string"
},
"company": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"address": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "object"
}
]
},
"tax_id": {
"type": "string"
}
},
"required": [
"name"
]
},
"line_items": {
"type": "array",
"minItems": 1,
"maxItems": 200,
"items": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"quantity": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"unit_price": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
}
},
"required": [
"description",
"unit_price"
]
}
},
"discount_percent": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"discount_amount": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"tax_rate_percent": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"tax_label": {
"type": "string"
},
"shipping_amount": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"amount_paid": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"payment_instructions": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"bank_name": {
"type": "string"
},
"account_name": {
"type": "string"
},
"account_number": {
"type": "string"
},
"routing_or_swift": {
"type": "string"
},
"iban": {
"type": "string"
},
"wallet_address": {
"type": "string"
},
"network": {
"type": "string"
},
"memo": {
"type": "string"
},
"payment_url": {
"type": "string"
},
"qr_data": {
"type": "string"
}
}
},
"logo_base64": {
"type": "string",
"description": "Optional PNG or JPEG company logo encoded as base64 or base64:... (at most 1 MB decoded)"
},
"notes": {
"type": "string"
},
"terms": {
"type": "string"
}
},
"required": [
"invoice_number",
"from",
"to",
"line_items"
],
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"theme_used": {
"type": "string",
"enum": [
"clean",
"ledger",
"minimal",
"web3"
]
},
"computed_totals": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"currency_symbol": {
"type": "string"
},
"subtotal": {
"type": "string"
},
"discount_amount": {
"type": "string"
},
"taxable_amount": {
"type": "string"
},
"tax_amount": {
"type": "string"
},
"shipping_amount": {
"type": "string"
},
"total": {
"type": "string"
},
"amount_paid": {
"type": "string"
},
"balance_due": {
"type": "string"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"quantity": {
"type": "string"
},
"unit_price": {
"type": "string"
},
"amount": {
"type": "string"
}
},
"required": [
"description",
"quantity",
"unit_price",
"amount"
]
}
}
},
"required": [
"currency",
"currency_symbol",
"subtotal",
"discount_amount",
"taxable_amount",
"tax_amount",
"shipping_amount",
"total",
"amount_paid",
"balance_due",
"line_items"
]
},
"pdf_base64": {
"type": [
"string",
"null"
]
},
"page_count": {
"type": "integer",
"minimum": 0
},
"page_previews_base64": {
"type": "array",
"items": {
"type": "string"
}
},
"compile_time_ms": {
"type": "number",
"minimum": 0
},
"diagnostics": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"line": {
"type": [
"integer",
"null"
]
},
"severity": {
"type": "string",
"enum": [
"error",
"warning",
"info"
]
},
"message": {
"type": "string"
},
"context_snippet": {
"type": "string"
},
"suggested_fix": {
"type": "string"
}
},
"required": [
"file",
"line",
"severity",
"message",
"context_snippet",
"suggested_fix"
]
}
}
},
"required": [
"success",
"theme_used",
"computed_totals",
"pdf_base64",
"page_count",
"page_previews_base64",
"compile_time_ms",
"diagnostics"
]
}curl -i -X POST 'https://tex.x.gl/v1/pdf/invoice' \
-H 'content-type: application/json' -d '{"theme":"clean","paper_size":"letter","include_page_previews":true,"invoice_number":"INV-2026-1042","issue_date":"2026-11-22","due_date":"2026-12-22","status":"unpaid","currency":"USD","from":{"name":"Northstar Cloud Labs LLC","email":"billing@northstarlabs.example","address":"548 Market St, Suite 41200, San Francisco, CA 94104","tax_id":"EIN 94-3829104"},"to":{"name":"Horizon Robotics Inc.","email":"ap@horizonrobotics.example","address":"100 CambridgePark Dr, Cambridge, MA 02140"},"line_items":[{"description":"Dedicated GPU Inference Cluster (A100 80GB x 4) - November 2026","quantity":1,"unit_price":"2400.00"},{"description":"Sandboxed Document Rendering API Calls (blocks of 1,000)","quantity":15,"unit_price":"8.00"}],"discount_percent":"5","tax_rate_percent":"8.5","tax_label":"Sales Tax (8.5%)","amount_paid":"500.00","payment_instructions":{"method":"ACH / Wire or USDC on Base","bank_name":"Mercury Business Checking","routing_or_swift":"084106768","account_number":"****4829","payment_url":"https://tex.x.gl"},"notes":"Thank you for your business.","terms":"Net 30. Please reference INV-2026-1042 on remittance."}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs