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.

app.docpuffin.com/templates
Templates
INVOICE
invoice-eu POST /api/render
RECEIPT
receipt POST /api/render
+ New template more on request
Recent renders
FileTemplateStatusTimeRegion
invoice-2026-1042.pdfinvoice-eu20034 msfra1
receipt-R-20841.pdfreceipt2006 msfra1
invoice-2026-1041.pdfinvoice-eu20031 msfra1
invoice-2026-1040.pdfinvoice-eu20029 msfra1
Live demo

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.

payload.json

Switching templates resets the JSON.

Your PDF appears here
The API

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
Templates

Six templates at launch, more on request

INVOICE
invoice-eu

EU-style invoice with org numbers, VAT groups and payment references.

RECEIPT
receipt

Compact receipt for point-of-sale and simple confirmations.

QUOTE
quote

Priced proposal with validity date and acceptance line.

ORDER
order-confirmation

Order summary your customers can file away.

PACKING
packing-slip

Pick-and-pack list with quantities, no prices.

CREDIT
credit-note

Refund document mirroring the original invoice.

How it works

Template + JSON in, PDF out — in three steps

01

Pick a template

Six templates at launch, more on request.

02

POST your JSON

One request to /api/render with your data.

03

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.

Works with

Any language that can POST JSON

No SDK required — if it speaks HTTP, it renders PDFs.

JavaScriptJavaScript PythonPython PHPPHP RubyRuby JavaJava PostmanPostman TSTypeScript GoGo .NET.NET >_curl
Nordic accounting

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.

Fortnox Visma
FOUNDING CREDIT PACK
$39 once
  • 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
Preorder credits for $39

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.

FAQ

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.

DocPuffin

Founding credit pack — $39, once.

Preorder credits for $39 POST https://docpuffin.com/api/render → application/pdf