Shotmint›PDF templates›Gift vouchers›Gift voucher
Gift voucher rendered PDF preview
210 × 99 mm · 1 page · Landscape · 79 KB sample PDF — rendered with Shotmint Chromium

Gift voucher

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.

Gift vouchers 210 × 99 mm Landscape DL third of A4QR codePersonal messageExpiry and terms

About this template

  • 210 × 99 mm, a third of an A4 sheet (fits a DL envelope); send page.size "148mm 105mm" or any size for other card stock
  • voucher.value prints an amount (€50) in large type; voucher.title prints an experience ("One 60-minute massage") in serif; colours from brand.color, brand.ink and brand.paper
  • QR code from voucher.redeem_url (opens your shop's redeem page) or from the code itself (voucher.qr_code: true), drawn by the qr helper
  • For, from, message, expiry, how to redeem and terms are each optional: leave one out and its space closes

Template specifications

CategoryGift vouchers
Page size210 × 99 mm (a third of A4); A6 or any size through page.size
OrientationLandscape
Template engineHandlebars (HTML + print CSS, Chromium renderer)
Built-in helpersqr (inline SVG, no external scripts)
Gallery JSONGET /v1/templates/gallery/voucher-gift (public, no key needed)
Sample PDFDownload voucher-gift.pdf (79 KB)

How to use this template

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.

REST API (cURL)

# 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.

AI agents & MCP (Claude, Cursor, custom agents)

// 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).

More PDF templates

Deliver instant printable gift vouchers via API

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.