
210 × 297 mm
Statements
Monthly account statement
An A4 customer account statement: an account summary calculated from the month's transactions, a ledger with debit, credit and running balance columns, an overdue notice that appears only when needed, an ageing breakdown and a detachable remittance slip.
PDFA4 portraitLocale en-GBHTML + JinjaHeader & footer
Opens Dynamic Document API with this template preloaded in a free workspace.
Template language features
- Loops
- Conditionals
- Macros
- Filters
- Currency formatting
- Date formatting
- Repeating table headers
- Header & footer
- Page numbers
Filters such as format_currency and qrcode are described in the template language reference.
Variables
Derived from the sample data: 7 top-level fields, 43 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| supplier | object | |
| supplier.name | string | "Harbridge Wholesale Foods Ltd" |
| supplier.address | string | "Units 3–5, Quarry Lane Business Park ⏎ Chester…" |
| supplier.phone | string | "+44 20 7946 0788" |
| supplier.email | string | "accounts@harbridge.example.com" |
| supplier.vat_id | string | "GB 246 1357 90" |
| customer | object | |
| customer.name | string | "Figtree Corner Café" |
| customer.contact | string | "Rosa Delgado-Finch" |
| customer.address | string | "18 Market Row ⏎ Buxton SK17 6AE ⏎ United Kingd…" |
| customer.account_number | string | "FCC-0418" |
| customer.credit_limit | number | 3500 |
| statement | object | |
| statement.number | string | "ST-2608-0418" |
| statement.date | date | "2026-09-01" |
| statement.period_start | date | "2026-08-01" |
| statement.period_end | date | "2026-08-31" |
| statement.currency | string | "GBP" |
| statement.payment_terms_days | number | 30 |
| statement.opening_balance | number | 1284.6 |
| transactions | array<object> · 8 | |
| transactions[].date | date | "2026-08-03" |
| transactions[].type | string | "invoice" |
| transactions[].reference | string | "INV-31015" |
| transactions[].details | string | "Weekly delivery: dry goods and dairy" |
| transactions[].debit | number | 412.75 |
| transactions[].credit | number | 0 |
| transactions[].balance | number | 1697.35 |
| aging | object | |
| aging.current | number | 1575.95 |
| aging.days_1_30 | number | 600.4 |
| aging.days_31_60 | number | 0 |
| aging.days_61_90 | number | 0 |
| aging.days_over_90 | number | 0 |
| overdue_items | array<object> · 1 | |
| overdue_items[].reference | string | "INV-30902" |
| overdue_items[].date | date | "2026-07-22" |
| overdue_items[].amount | number | 600.4 |
| payment | object | |
| payment.bank | string | "Calderside Bank" |
| payment.account_name | string | "Harbridge Wholesale Foods Ltd" |
| payment.iban | string | "GB00 EXMP 4012 3456 7890 12" |
| payment.bic | string | "EXMPGB21" |
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": {
"supplier": {
"name": "Harbridge Wholesale Foods Ltd",
"address": "Units 3–5, Quarry Lane Business Park\nChesterfield S41 9QD\nUnited Kingdom",
"phone": "+44 20 7946 0788",
"email": "accounts@harbridge.example.com",
"vat_id": "GB 246 1357 90"
},
"customer": {
"name": "Figtree Corner Café",
"contact": "Rosa Delgado-Finch",
"address": "18 Market Row\nBuxton SK17 6AE\nUnited Kingdom",
"account_number": "FCC-0418",
"credit_limit": 3500
},
"statement": {
"number": "ST-2608-0418",
"date": "2026-09-01",
"period_start": "2026-08-01",
"period_end": "2026-08-31",
"currency": "GBP",
"payment_terms_days": 30,
"opening_balance": 1284.6
},
"transactions": [
{
"date": "2026-08-03",
"type": "invoice",
"reference": "INV-31015",
"details": "Weekly delivery: dry goods and dairy",
"debit": 412.75,
"credit": 0,
"balance": 1697.35
},
{
"date": "2026-08-06",
"type": "payment",
"reference": "PAY-7781",
"details": "Bank transfer received for INV-30871",
"debit": 0,
"credit": 684.2,
"balance": 1013.15
}
],
"aging": {
"current": 1575.95,
"days_1_30": 600.4,
"days_31_60": 0,
"days_61_90": 0,
"days_over_90": 0
},
"overdue_items": [
{
"reference": "INV-30902",
"date": "2026-07-22",
"amount": 600.4
}
],
"payment": {
"bank": "Calderside Bank",
"account_name": "Harbridge Wholesale Foods Ltd",
"iban": "GB00 EXMP 4012 3456 7890 12",
"bic": "EXMPGB21"
}
},
"output": {
"format": "pdf",
"filename": "statement-account-monthly.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": {
"supplier": {
"name": "Harbridge Wholesale Foods Ltd",
"address": "Units 3–5, Quarry Lane Business Park\nChesterfield S41 9QD\nUnited Kingdom",
"phone": "+44 20 7946 0788",
"email": "accounts@harbridge.example.com",
"vat_id": "GB 246 1357 90"
},
"customer": {
"name": "Figtree Corner Café",
"contact": "Rosa Delgado-Finch",
"address": "18 Market Row\nBuxton SK17 6AE\nUnited Kingdom",
"account_number": "FCC-0418",
"credit_limit": 3500
},
"statement": {
"number": "ST-2608-0418",
"date": "2026-09-01",
"period_start": "2026-08-01",
"period_end": "2026-08-31",
"currency": "GBP",
"payment_terms_days": 30,
"opening_balance": 1284.6
},
"transactions": [
{
"date": "2026-08-03",
"type": "invoice",
"reference": "INV-31015",
"details": "Weekly delivery: dry goods and dairy",
"debit": 412.75,
"credit": 0,
"balance": 1697.35
},
{
"date": "2026-08-06",
"type": "payment",
"reference": "PAY-7781",
"details": "Bank transfer received for INV-30871",
"debit": 0,
"credit": 684.2,
"balance": 1013.15
}
],
"aging": {
"current": 1575.95,
"days_1_30": 600.4,
"days_31_60": 0,
"days_61_90": 0,
"days_over_90": 0
},
"overdue_items": [
{
"reference": "INV-30902",
"date": "2026-07-22",
"amount": 600.4
}
],
"payment": {
"bank": "Calderside Bank",
"account_name": "Harbridge Wholesale Foods Ltd",
"iban": "GB00 EXMP 4012 3456 7890 12",
"bic": "EXMPGB21"
}
},
"output": {
"format": "pdf",
"filename": "statement-account-monthly.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": {
"supplier": {
"name": "Harbridge Wholesale Foods Ltd",
"address": "Units 3–5, Quarry Lane Business Park\nChesterfield S41 9QD\nUnited Kingdom",
"phone": "+44 20 7946 0788",
"email": "accounts@harbridge.example.com",
"vat_id": "GB 246 1357 90",
},
"customer": {
"name": "Figtree Corner Café",
"contact": "Rosa Delgado-Finch",
"address": "18 Market Row\nBuxton SK17 6AE\nUnited Kingdom",
"account_number": "FCC-0418",
"credit_limit": 3500,
},
"statement": {
"number": "ST-2608-0418",
"date": "2026-09-01",
"period_start": "2026-08-01",
"period_end": "2026-08-31",
"currency": "GBP",
"payment_terms_days": 30,
"opening_balance": 1284.6,
},
"transactions": [
{
"date": "2026-08-03",
"type": "invoice",
"reference": "INV-31015",
"details": "Weekly delivery: dry goods and dairy",
"debit": 412.75,
"credit": 0,
"balance": 1697.35,
},
{
"date": "2026-08-06",
"type": "payment",
"reference": "PAY-7781",
"details": "Bank transfer received for INV-30871",
"debit": 0,
"credit": 684.2,
"balance": 1013.15,
},
],
"aging": {
"current": 1575.95,
"days_1_30": 600.4,
"days_31_60": 0,
"days_61_90": 0,
"days_over_90": 0,
},
"overdue_items": [
{
"reference": "INV-30902",
"date": "2026-07-22",
"amount": 600.4,
},
],
"payment": {
"bank": "Calderside Bank",
"account_name": "Harbridge Wholesale Foods Ltd",
"iban": "GB00 EXMP 4012 3456 7890 12",
"bic": "EXMPGB21",
},
},
"output": {
"format": "pdf",
"filename": "statement-account-monthly.pdf",
},
},
timeout=90,
)
response.raise_for_status()
print(response.json())