A two-part gift voucher: a colour face with the shop name and the value in large type, and a paper stub with who it is for and from, a personal message, the voucher code, the expiry date, how to redeem it, a QR code and the terms.
| Category | Gift vouchers |
|---|---|
| Page size | 210 × 99 mm (a third of A4); A6 or any size through page.size |
| Orientation | Landscape |
| Template engine | Handlebars (HTML + print CSS, Chromium renderer) |
| Built-in helpers | qr (inline SVG, no external scripts) |
| Gallery JSON | GET /v1/templates/gallery/voucher-gift (public, no key needed) |
| Sample PDF | Download voucher-gift.pdf (79 KB) |
Copy voucher-gift to your Shotmint key (free) and render PDFs with your own JSON data (1 credit per PDF). Get a free key with curl -X POST https://shotmint.creasework.com/v1/keys/free — 25 free renders every month, no signup, no card.
# 1. Copy the template to your key and publish v1 (free)
TPL=$(curl -s -X POST https://shotmint.creasework.com/v1/templates \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"gallery":"voucher-gift","publish":true}' | node -e "console.log(JSON.parse(require('fs').readFileSync(0,'utf8')).id)")
# 2. Render a PDF with your JSON data (1 credit)
curl -X POST https://shotmint.creasework.com/v1/pdf \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d "{\"template_id\":\"$TPL\"}" -o voucher-gift.pdf
Pass your own template_data JSON object in step 2 (omit it to render with the built-in sample data). Inspect every field in GET /v1/templates/gallery/voucher-gift.
// 1. Copy & publish from the gallery
create_template_draft({ "gallery": "voucher-gift", "publish": true })
// 2. Render with your JSON payload
render_pdf({ "template_id": "<returned id>", "template_data": { ... } })
Connect to https://shotmint.creasework.com/mcp (streamable HTTP) and call get_template_contract or list_gallery_templates without a key. MCP setup guide · Authoring contract (JSON).
Render personalised vouchers on every checkout without maintaining a PDF layout engine. Free key in one call: POST https://shotmint.creasework.com/v1/keys/free. Prepaid packs: €5 for 2,000 renders, €19 for 10,000, €59 for 50,000 — credits never expire, no subscription.