Skip to content
Preview of the Charity donation receipt template

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.

PathTypeExample
charityobject
charity.namestring"Fenwhistle Wetlands Trust"
charity.charity_numberstring"1234567"
charity.addressstring"The Boathouse, Reedway Lane, Ely CB7 4XY"
charity.emailstring"supporters@fenwhistle.example.org"
charity.websitestring"fenwhistle.example.org"
donorobject
donor.titlestring"Ms"
donor.first_namestring"Harriet"
donor.last_namestring"Pembleton"
donor.addressstring"14 Larch Crescent ⏎ Norwich ⏎ NR2 3XZ"
donor.supporter_numberstring"FWT-S-048213"
donationobject
donation.receipt_numberstring"FWT-DR-2026-08831"
donation.datedate"2026-09-12"
donation.amountnumber250
donation.methodstring"Bank transfer"
donation.appealstring"Reedbed restoration appeal"
donation.frequencystring"One-off gift"
donation.receipt_datedate"2026-09-14"
donation.currencystring"GBP"
donation.localestring"en-GB"
messagestring"Your gift will help us re-wet **three hectares…"
gift_aidobject
gift_aid.declaredbooleantrue
gift_aid.declaration_datedate"2026-09-12"
gift_aid.reclaim_ratenumber0.25
gift_aid.declaration_textstring"You told us that you pay UK tax and asked us t…"
signatoryobject
signatory.namestring"Dr Olwen Marchetti"
signatory.rolestring"Head of Supporter Care"
no_benefit_statementstring"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"
  }
}'