
148 × 210 mm
Receipts
Charity donation receipt
An A5 thank-you receipt for charitable donations with donor details, the amount in figures and words, and a signature line. A tax-relief panel with the potential reclaim appears only when the donor has made a declaration; the declaration wording is sample text to replace with your own.
PDFA5 portraitLocale en-GBHTML + Jinja
Opens Dynamic Document API with this template preloaded in a free workspace.
Generating this from your own data? See the Receipt Generation API.
Template language features
- Conditionals
- Filters
- Currency formatting
- Date formatting
- Number formatting
- Markdown
Filters such as format_currency and qrcode are described in the template language reference.
Variables
Derived from the sample data: 7 top-level fields, 32 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| charity | object | |
| charity.name | string | "Fenwhistle Wetlands Trust" |
| charity.charity_number | string | "1234567" |
| charity.address | string | "The Boathouse, Reedway Lane, Ely CB7 4XY" |
| charity.email | string | "supporters@fenwhistle.example.org" |
| charity.website | string | "fenwhistle.example.org" |
| donor | object | |
| donor.title | string | "Ms" |
| donor.first_name | string | "Harriet" |
| donor.last_name | string | "Pembleton" |
| donor.address | string | "14 Larch Crescent ⏎ Norwich ⏎ NR2 3XZ" |
| donor.supporter_number | string | "FWT-S-048213" |
| donation | object | |
| donation.receipt_number | string | "FWT-DR-2026-08831" |
| donation.date | date | "2026-09-12" |
| donation.amount | number | 250 |
| donation.method | string | "Bank transfer" |
| donation.appeal | string | "Reedbed restoration appeal" |
| donation.frequency | string | "One-off gift" |
| donation.receipt_date | date | "2026-09-14" |
| donation.currency | string | "GBP" |
| donation.locale | string | "en-GB" |
| message | string | "Your gift will help us re-wet **three hectares…" |
| gift_aid | object | |
| gift_aid.declared | boolean | true |
| gift_aid.declaration_date | date | "2026-09-12" |
| gift_aid.reclaim_rate | number | 0.25 |
| gift_aid.declaration_text | string | "You told us that you pay UK tax and asked us t…" |
| signatory | object | |
| signatory.name | string | "Dr Olwen Marchetti" |
| signatory.role | string | "Head of Supporter Care" |
| no_benefit_statement | string | "No goods or services were provided in return f…" |
Render it with the API
After adding the template to your workspace, render it by ID and pass your data. Arrays are shortened here.
curl -X POST https://api-eu.dynamicdocumentapi.com/v1/renders \
-H "Authorization: Bearer $DYNAMIC_DOCUMENT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"charity": {
"name": "Fenwhistle Wetlands Trust",
"charity_number": "1234567",
"address": "The Boathouse, Reedway Lane, Ely CB7 4XY",
"email": "supporters@fenwhistle.example.org",
"website": "fenwhistle.example.org"
},
"donor": {
"title": "Ms",
"first_name": "Harriet",
"last_name": "Pembleton",
"address": "14 Larch Crescent\nNorwich\nNR2 3XZ",
"supporter_number": "FWT-S-048213"
},
"donation": {
"receipt_number": "FWT-DR-2026-08831",
"date": "2026-09-12",
"amount": 250,
"method": "Bank transfer",
"appeal": "Reedbed restoration appeal",
"frequency": "One-off gift",
"receipt_date": "2026-09-14",
"currency": "GBP",
"locale": "en-GB"
},
"message": "Your gift will help us re-wet **three hectares** of drained fen at Oxhide Meadows this winter, creating new nesting habitat for bitterns and marsh harriers.",
"gift_aid": {
"declared": true,
"declaration_date": "2026-09-12",
"reclaim_rate": 0.25,
"declaration_text": "You told us that you pay UK tax and asked us to reclaim basic-rate tax on this gift. Please tell us if you stop paying enough tax to cover the amount we reclaim, or if your name or home address changes."
},
"signatory": {
"name": "Dr Olwen Marchetti",
"role": "Head of Supporter Care"
},
"no_benefit_statement": "No goods or services were provided in return for this donation."
},
"output": {
"format": "pdf",
"filename": "receipt-donation.pdf"
}
}'const response = await fetch("https://api-eu.dynamicdocumentapi.com/v1/renders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DYNAMIC_DOCUMENT_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"charity": {
"name": "Fenwhistle Wetlands Trust",
"charity_number": "1234567",
"address": "The Boathouse, Reedway Lane, Ely CB7 4XY",
"email": "supporters@fenwhistle.example.org",
"website": "fenwhistle.example.org"
},
"donor": {
"title": "Ms",
"first_name": "Harriet",
"last_name": "Pembleton",
"address": "14 Larch Crescent\nNorwich\nNR2 3XZ",
"supporter_number": "FWT-S-048213"
},
"donation": {
"receipt_number": "FWT-DR-2026-08831",
"date": "2026-09-12",
"amount": 250,
"method": "Bank transfer",
"appeal": "Reedbed restoration appeal",
"frequency": "One-off gift",
"receipt_date": "2026-09-14",
"currency": "GBP",
"locale": "en-GB"
},
"message": "Your gift will help us re-wet **three hectares** of drained fen at Oxhide Meadows this winter, creating new nesting habitat for bitterns and marsh harriers.",
"gift_aid": {
"declared": true,
"declaration_date": "2026-09-12",
"reclaim_rate": 0.25,
"declaration_text": "You told us that you pay UK tax and asked us to reclaim basic-rate tax on this gift. Please tell us if you stop paying enough tax to cover the amount we reclaim, or if your name or home address changes."
},
"signatory": {
"name": "Dr Olwen Marchetti",
"role": "Head of Supporter Care"
},
"no_benefit_statement": "No goods or services were provided in return for this donation."
},
"output": {
"format": "pdf",
"filename": "receipt-donation.pdf"
}
}),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const result = await response.json();
console.log(result);import os
import uuid
import requests
response = requests.post(
"https://api-eu.dynamicdocumentapi.com/v1/renders",
headers={
"Authorization": f"Bearer {os.environ['DYNAMIC_DOCUMENT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C",
},
"data": {
"charity": {
"name": "Fenwhistle Wetlands Trust",
"charity_number": "1234567",
"address": "The Boathouse, Reedway Lane, Ely CB7 4XY",
"email": "supporters@fenwhistle.example.org",
"website": "fenwhistle.example.org",
},
"donor": {
"title": "Ms",
"first_name": "Harriet",
"last_name": "Pembleton",
"address": "14 Larch Crescent\nNorwich\nNR2 3XZ",
"supporter_number": "FWT-S-048213",
},
"donation": {
"receipt_number": "FWT-DR-2026-08831",
"date": "2026-09-12",
"amount": 250,
"method": "Bank transfer",
"appeal": "Reedbed restoration appeal",
"frequency": "One-off gift",
"receipt_date": "2026-09-14",
"currency": "GBP",
"locale": "en-GB",
},
"message": "Your gift will help us re-wet **three hectares** of drained fen at Oxhide Meadows this winter, creating new nesting habitat for bitterns and marsh harriers.",
"gift_aid": {
"declared": True,
"declaration_date": "2026-09-12",
"reclaim_rate": 0.25,
"declaration_text": "You told us that you pay UK tax and asked us to reclaim basic-rate tax on this gift. Please tell us if you stop paying enough tax to cover the amount we reclaim, or if your name or home address changes.",
},
"signatory": {
"name": "Dr Olwen Marchetti",
"role": "Head of Supporter Care",
},
"no_benefit_statement": "No goods or services were provided in return for this donation.",
},
"output": {
"format": "pdf",
"filename": "receipt-donation.pdf",
},
},
timeout=90,
)
response.raise_for_status()
print(response.json())