Secure & scalable document generation API
DocPuffin is a document-generation API for invoices, receipts and business docs.
- Document generation API
- Template + JSON → PDF in one POST
- Typical render ~35 ms
- Processed in memory — never stored
- TLS on every request
- Credit packs, no subscription
Preorder credits for $39 Render a PDF right now ↓
DocPuffin is pre-launch. The render box below calls the same live render function the API will expose — it's real, try it. Every preorder is refundable.
Template + JSON in, PDF out
Pick a template, edit the JSON, hit render. This is a real API call, not a mock — your payload is processed in memory and never stored.
Switching templates resets the JSON.
Four lines of curl, one PDF back
The same endpoint the demo calls. These commands work right now against the live function.
curl -X POST https://docpuffin.com/api/render \
-H 'Content-Type: application/json' \
-d '{"template":"invoice-eu","data":{
"invoice":{"number":"2026-1042","currency":"SEK"},
"seller":{"name":"Nordlund Konsult AB"},
"lines":[{"description":"Frontend development","qty":42,"unit_price":950,"vat_rate":25}]}}' \
--output invoice.pdf
curl -X POST https://docpuffin.com/api/render \
-H 'Content-Type: application/json' \
-d '{"template":"receipt","data":{
"receipt":{"number":"R-20841","currency":"EUR"},
"seller":{"name":"Café Linden GmbH"},
"lines":[{"description":"Flat white","qty":2,"unit_price":4.2}]}}' \
--output receipt.pdf
HTTP/1.1 200 OK Content-Type: application/pdf Content-Disposition: inline; filename="docpuffin-invoice-eu.pdf" X-Vercel-Id: arn1::fra1::xw7gx-1786645520138 Cache-Control: no-store
Six templates at launch, more on request
EU-style invoice with org numbers, VAT groups and payment references.
Compact receipt for point-of-sale and simple confirmations.
Priced proposal with validity date and acceptance line.
Order summary your customers can file away.
Pick-and-pack list with quantities, no prices.
Refund document mirroring the original invoice.
Template + JSON in, PDF out — in three steps
Pick a template
Six templates at launch, more on request.
POST your JSON
One request to /api/render with your data.
Get the PDF
Your PDF comes back in ~35 ms, typically.
Rendered in the EU
Rendering runs in Frankfurt (fra1). Payloads are processed in memory for the render and never stored.
Fortnox/Visma-ready schemas
Invoice templates use field names mapped to common Fortnox and Visma workflows — org numbers, VAT rates, payment references. Field mappings are a formatting convenience, not legal, tax, or compliance advice or guarantees.
Credits, not a treadmill
Founding credit packs instead of a subscription meter. Buy a pack, render at your own pace, refill at your locked founding rate.
Any language that can POST JSON
No SDK required — if it speaks HTTP, it renders PDFs.
Field-mapped for Fortnox and Visma
Invoice schemas use field names mapped to common Fortnox and Visma workflows — org numbers, VAT rates, payment references. A formatting convenience, not a compliance guarantee.
- 5,000 render credits at launch
- Locked founding rate on refills
- Six templates at launch, more on request
- Priority on template requests from founding buyers
- API key delivered by email at launch
Every preorder is fully refundable any time before launch — one email, no
questions asked.
Expected delivery: within 4–6 weeks after the 14-day window closes.
Payments handled securely by Stripe.
Questions, answered straight
When do I get my API key?
Expected delivery: within 4–6 weeks after the 14-day window closes. Your key and docs arrive by email the day we launch.
What if it slips, or I change my mind?
One email, full refund, no questions asked — any time before launch. That's the whole policy.
Is the demo above the real engine?
Yes. The render box calls the same live render function the API will expose, with the same templates and the same JSON schema.
Do the templates guarantee compliance?
No. Templates are field-mapped conveniences for common Fortnox/Visma-style workflows. They are not legal, tax, or compliance advice, and DocPuffin makes no compliance guarantees.