DocuHook

DocuHook

Webhook JSON to PDF.

Merge webhook JSON into an HTML template and get a PDF back. Built for WooCommerce invoices, Next.js routes, Zapier/n8n, and any HTTP client — preview live, no account.

Live sandbox

Edit either pane. Tokens like {{customer.name}} pull from your JSON.

Preview

WordPress & WooCommerce

Turn a WooCommerce order.completed webhook into a PDF invoice without running Puppeteer on your server. Install the plugin, add your API key under Settings → DocuHook, call docuhook_render().

HTML to PDF API

Register for an API key. POST data (JSON) + html (template). Sync returns a PDF immediately; async accepts webhook bursts with a 202 job — no connection held open.

POST /api/v1/render
Authorization: Bearer dh_...
Content-Type: application/json

{
  "mode": "sync",
  "data": { "invoice": { "number": "INV-1" } },
  "html": "<h1>{{invoice.number}}</h1>"
}

# Returns application/pdf by default. Use "format": "html" for merge-only.
# Bursts / webhooks (returns 202 job):
POST /api/v1/hooks/render
Authorization: Bearer dh_...

Guides

Copy-paste recipes for webhook→PDF vs Zapier/n8n, Next.js, WooCommerce, and serverless Puppeteer.