Build invoices, receipts, reports, statements, certificates, and customer-facing PDFs using reusable hosted templates with variable injection and direct delivery workflows.
<h1>Invoice #{{invoice.number}}</h1>
<p>{{customer.name}}</p>
<p>Due: {{invoice.due_date}}</p>
<p>Total: {{invoice.total}}</p>
{
"invoice": {
"number": "INV-1024",
"due_date": "30 Apr 2026",
"total": "$499"
},
"customer": {
"name": "Acme Inc"
}
}
Hosted templates help engineering teams separate layout from data, reduce duplication, and keep document generation consistent across product workflows.
Create a reusable hosted template instead of maintaining repeated HTML in multiple places.
Pass structured JSON data into variables and generate clean, consistent output every time.
Trigger rendering from billing flows, exports, background jobs, webhooks, and scheduled tasks.
Return files directly, store in your own bucket, or deliver through downstream automation.
Keep branded output consistent across all customers and document types.
Reduce repeated HTML maintenance and simplify rendering logic.
Insert names, totals, tables, dates, and line items from live application data.
Combine templates with async jobs, storage routing, and delivery workflows.
Build a document layout once, define variables, and save it in your account.
Pass JSON payloads into the template to fill customer, invoice, order, or report data.
Stream the PDF directly, store it in your own bucket, or use async workflows and webhooks.
Use the same structured request format as the rest of the platform and swap the source type to a hosted template.
{
"source": {
"type": "template",
"template_id": "invoice-default"
},
"options": {
"format": "A4",
"print_background": true
},
"data": {
"invoice": {
"number": "INV-1024",
"total": "$499"
},
"customer": {
"name": "Acme Inc"
}
},
"delivery": {
"type": "s3"
}
}
Template rendering helps move document generation from one-off page conversion into repeatable production workflows.
Start with a hosted template, inject live data, and generate production-ready PDFs in minutes.