Skip to content

LiquidPDF

German donation receipt (Spendenbescheinigung)

A receipt for a monetary donation laid out after the wording of the official German sample: the amount in figures and, through numToWords, in capital letters as the form asks, the exemption notice of the tax office, and the liability note. It shows the mechanics; have your tax adviser check the wording for your organisation.

Free plan, no card. You get your own copy in the editor, published and ready for the API.

Rendered result

Rendered result: German donation receipt (Spendenbescheinigung)
PDF · 1 page · 111 KB ↓ download

What this example shows

  • donation.amount | numToWords: "de" | upper writes the amount as ZWEIHUNDERTFÜNFZIG, the spelled-out form the receipt asks for beside the figures.
  • The yes/no boxes for the waiver of reimbursement are one Liquid {% if donation.waiver %}.
  • Tax office, tax number, date and period of the exemption notice come from the data, so one template serves several organisations.
  • The year’s receipts are one batch: an item per donation, a zip at the end.
  • The wording is modelled on the official sample for monetary donations to corporations; it shows the mechanics and is no tax advice, so have your tax adviser check it for your organisation.

Helpers used

Template folder

templates/spendenbescheinigung/template.htmlLiquid
<p class="issuer"><strong>{{ organisation.name }}</strong><br>{{ organisation.street }} · {{ organisation.city }}</p>

<h1>Bestätigung über Geldzuwendungen</h1>
<p class="muted">im Sinne des § 10b des Einkommensteuergesetzes an eine der in § 5 Abs. 1 Nr. 9 des Körperschaftsteuergesetzes bezeichneten Körperschaften, Personenvereinigungen oder Vermögensmassen</p>

<h2>Name und Anschrift des Zuwendenden</h2>
<p class="box">{{ donor.name }}<br>{{ donor.street }}<br>{{ donor.city }}</p>

<table class="amount">
  <tr>
    <th>Betrag der Zuwendung in Ziffern</th>
    <th>in Buchstaben</th>
    <th>Tag der Zuwendung</th>
  </tr>
  <tr>
    <td>{{ donation.amount | money }}</td>
    <td>{{ donation.amount | numToWords: "de" | upper }} EURO</td>
    <td>{{ donation.date | date: "dd.MM.yyyy" }}</td>
  </tr>
</table>

<p>Es handelt sich um den Verzicht auf Erstattung von Aufwendungen: {% if donation.waiver %}Ja ☒ Nein ☐{% else %}Ja ☐ Nein ☒{% endif %}</p>

<p>
  Wir sind wegen Förderung {{ organisation.purpose }} nach dem Freistellungsbescheid des Finanzamts {{ organisation.tax_office }},
  StNr. {{ organisation.tax_number }}, vom {{ organisation.notice_date | date: "dd.MM.yyyy" }} für den letzten Veranlagungszeitraum
  {{ organisation.notice_period }} nach § 5 Abs. 1 Nr. 9 des Körperschaftsteuergesetzes von der Körperschaftsteuer und nach
  § 3 Nr. 6 des Gewerbesteuergesetzes von der Gewerbesteuer befreit.
</p>
<p>Es wird bestätigt, dass die Zuwendung nur zur Förderung {{ organisation.purpose }} verwendet wird.</p>

<div class="sign">
  <p>{{ receipt.place }}, {{ receipt.date | date: "dd.MM.yyyy" }}</p>
  <div><span></span>{{ receipt.signer }}, {{ receipt.signer_role }}</div>
</div>

<p class="note">
  <strong>Hinweis:</strong> Wer vorsätzlich oder grob fahrlässig eine unrichtige Zuwendungsbestätigung erstellt oder veranlasst,
  dass Zuwendungen nicht zu den in der Zuwendungsbestätigung angegebenen steuerbegünstigten Zwecken verwendet werden, haftet für
  die entgangene Steuer (§ 10b Abs. 4 EStG, § 9 Abs. 3 KStG, § 9 Nr. 5 GewStG).
</p>
templates/spendenbescheinigung/style.cssCSS
body { font-family: 'Inter', sans-serif; font-size: 9.5pt; line-height: 1.5; color: #1e293b; }
.issuer { margin: 0 0 12mm; padding-bottom: 4mm; border-bottom: 1px solid #cbd5e1; }
h1 { margin: 0 0 1mm; font-size: 15pt; }
h2 { margin: 8mm 0 2mm; font-size: 8pt; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
.muted { margin: 0; font-size: 8pt; color: #64748b; }
.box { margin: 0; padding: 3mm 4mm; border: 1px solid #cbd5e1; border-radius: 1.5mm; }
.amount { width: 100%; margin: 8mm 0 6mm; border-collapse: collapse; }
.amount th { padding: 0 2mm 1.5mm 0; text-align: left; font-size: 7.5pt; font-weight: 400; color: #64748b; }
.amount td { padding: 2.5mm 2mm 2.5mm 0; border-top: 1.5px solid #1e293b; border-bottom: 1px solid #cbd5e1; font-weight: 600; }
p { margin: 0 0 4mm; }
.sign { margin-top: 14mm; break-inside: avoid; }
.sign div { width: 80mm; margin-top: 14mm; font-size: 8pt; color: #64748b; }
.sign span { display: block; margin-bottom: 1.5mm; border-top: 1px solid #1e293b; }
.note { margin-top: 12mm; font-size: 7.5pt; color: #64748b; }
templates/spendenbescheinigung/head.htmlHTML
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap">
templates/spendenbescheinigung/settings.jsonJSON
{
  "pdf": {
    "metadata": {
      "title": "Bestätigung über Geldzuwendungen"
    }
  },
  "paper": {
    "format": "A4"
  },
  "margin": {
    "top": "20mm",
    "right": "20mm",
    "bottom": "20mm",
    "left": "22mm"
  },
  "locale": "de-DE",
  "timezone": "Europe/Berlin",
  "currency": "EUR"
}
templates/spendenbescheinigung/data/default.jsonJSON
{
  "organisation": {
    "name": "Förderverein Musterstadt e. V.",
    "street": "Musterstraße 1",
    "city": "12345 Musterstadt",
    "purpose": "der Jugendhilfe",
    "tax_office": "Musterstadt",
    "tax_number": "000/000/00000",
    "notice_date": "2025-03-14",
    "notice_period": "2021 bis 2023"
  },
  "donor": {
    "name": "Erika Mustermann",
    "street": "Beispielweg 2",
    "city": "54321 Beispielstadt"
  },
  "donation": {
    "amount": 250,
    "date": "2026-09-10",
    "waiver": false
  },
  "receipt": {
    "place": "Musterstadt",
    "date": "2026-09-18",
    "signer": "Max Mustermann",
    "signer_role": "Schatzmeister"
  }
}

Render it through the API

Save the sample data as data.json and send it with the template’s name. TypeScript and Python use the SDKs; every other language posts the same JSON to the REST API with its standard library. Renders with a key that starts with ff_test_ are not metered; on the Free plan they carry a small watermark.

render.shShell
jq '{template: "spendenbescheinigung", data: .}' data.json \
  | curl https://api-eu.formfeed.dev/v1/renders \
      -H "Authorization: Bearer ff_test_..." \
      -H "Content-Type: application/json" \
      --data-binary @-
render.tsTypeScript
import { Formfeed } from '@formfeed/sdk';
import data from './data.json' with { type: 'json' };

const formfeed = new Formfeed({ apiKey: process.env.FORMFEED_API_KEY! });

const render = await formfeed.renders.create({
  template: 'spendenbescheinigung',
  data,
});
console.log(render.status, render.download_url);
render.pyPython
import json
import os

from formfeed import Formfeed

formfeed = Formfeed(api_key=os.environ["FORMFEED_API_KEY"])

with open("data.json", encoding="utf-8") as file:
    data = json.load(file)

render = formfeed.renders.create(
    template="spendenbescheinigung",
    data=data,
)
print(render.status, render.download_url)
render.phpPHP
<?php
$body = [
    'template' => 'spendenbescheinigung',
    'data' => json_decode(file_get_contents('data.json'), true),
];

$curl = curl_init('https://api-eu.formfeed.dev/v1/renders');
curl_setopt_array($curl, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('FORMFEED_API_KEY'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode($body),
]);
$render = json_decode(curl_exec($curl), true);

echo $render['status'], ' ', $render['download_url'], PHP_EOL;
main.goGo
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/http"
	"os"
)

func main() {
	data, err := os.ReadFile("data.json")
	if err != nil {
		panic(err)
	}
	body, _ := json.Marshal(map[string]any{
		"template": "spendenbescheinigung",
		"data":     json.RawMessage(data),
	})

	request, _ := http.NewRequest("POST", "https://api-eu.formfeed.dev/v1/renders", bytes.NewReader(body))
	request.Header.Set("Authorization", "Bearer "+os.Getenv("FORMFEED_API_KEY"))
	request.Header.Set("Content-Type", "application/json")

	response, err := http.DefaultClient.Do(request)
	if err != nil {
		panic(err)
	}
	defer response.Body.Close()

	var render struct {
		Status      string `json:"status"`
		DownloadURL string `json:"download_url"`
	}
	json.NewDecoder(response.Body).Decode(&render)
	fmt.Println(render.Status, render.DownloadURL)
}
Program.csC#
using System.Net.Http.Headers;
using System.Net.Http.Json;
using System.Text.Json;

var body = new
{
    template = "spendenbescheinigung",
    data = JsonDocument.Parse(File.ReadAllText("data.json")).RootElement,
};

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("FORMFEED_API_KEY"));

var response = await http.PostAsJsonAsync("https://api-eu.formfeed.dev/v1/renders", body);
var render = await response.Content.ReadFromJsonAsync<JsonElement>();

Console.WriteLine($"{render.GetProperty("status")} {render.GetProperty("download_url")}");
Render.javaJava
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Files;
import java.nio.file.Path;

public class Render {
  public static void main(String[] args) throws Exception {
    String data = Files.readString(Path.of("data.json"));
    String body = """
        {
          "template": "spendenbescheinigung",
          "data": %s
        }
        """.formatted(data);

    HttpRequest request = HttpRequest.newBuilder(URI.create("https://api-eu.formfeed.dev/v1/renders"))
        .header("Authorization", "Bearer " + System.getenv("FORMFEED_API_KEY"))
        .header("Content-Type", "application/json")
        .POST(HttpRequest.BodyPublishers.ofString(body))
        .build();

    HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
    System.out.println(response.body()); // status, download_url, page_count, units …
  }
}
render.rbRuby
require "json"
require "net/http"

body = {
  template: "spendenbescheinigung",
  data: JSON.parse(File.read("data.json")),
}

response = Net::HTTP.post(
  URI("https://api-eu.formfeed.dev/v1/renders"),
  JSON.generate(body),
  "Authorization" => "Bearer #{ENV.fetch("FORMFEED_API_KEY")}",
  "Content-Type" => "application/json"
)
render = JSON.parse(response.body)

puts render["status"], render["download_url"]

More ways to call it

TypeScript
// the year's receipts in one job, one PDF per donor
const job = await formfeed.renders.batch({
  template: 'spendenbescheinigung',
  zip: true,
  items: donations.map((donation) => ({
    data: { organisation, donor: donation.donor, donation, receipt },
  })),
});

Start rendering today

The free plan includes 100 units a month and free test renders. Change plans when you need more.