
210 × 297 mm
HR & employment
Monthly timesheet
An A4 monthly timesheet that lists every day of the period grouped by ISO week, works out hours from start, end and break, credits leave and sickness, compares the total with the contracted hours, charts hours by activity and ends with employee, manager and payroll sign-off boxes.
Opens Dynamic Document API with this template preloaded in a free workspace.
Template language features
- Loops
- Conditionals
- Macros
- Filters
- Date formatting
- Number formatting
- Grouping
- Repeating table headers
- Header & footer
- Page numbers
- Signature
Filters such as format_currency and qrcode are described in the template language reference.
Variables
Derived from the sample data: 5 top-level fields, 30 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| company | object | |
| company.name | string | "Copperbeech Facilities Ltd" |
| company.site | string | "Harbour Point Business Park, Bristol" |
| company.email | string | "payroll@copperbeech.example.com" |
| employee | object | |
| employee.name | string | "Daniel Okafor" |
| employee.number | string | "EMP-0472" |
| employee.role | string | "Maintenance Technician" |
| employee.department | string | "Estates and Facilities" |
| employee.manager | string | "Rachel Whitmore" |
| employee.manager_role | string | "Estates Manager" |
| employee.daily_hours | number | 7.5 |
| employee.weekly_hours | number | 37.5 |
| period | object | |
| period.label | string | "August 2026" |
| period.start | date | "2026-08-01" |
| period.end | date | "2026-08-31" |
| period.submitted_on | date | "2026-09-01" |
| codes | array<object> · 4 | |
| codes[].code | string | "PPM" |
| codes[].label | string | "Planned maintenance" |
| codes[].color | string | "#2f6f8f" |
| entries | array<object> · 22 | |
| entries[].date | date | "2026-08-03" |
| entries[].start? | string | "07:30" |
| entries[].end? | string | "16:00" |
| entries[].break_minutes? | number | 30 |
| entries[].code? | string | "PPM" |
| entries[].note? | string | "HVAC filter changes, Block A" |
| entries[].type? | string | "leave" |
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": {
"company": {
"name": "Copperbeech Facilities Ltd",
"site": "Harbour Point Business Park, Bristol",
"email": "payroll@copperbeech.example.com"
},
"employee": {
"name": "Daniel Okafor",
"number": "EMP-0472",
"role": "Maintenance Technician",
"department": "Estates and Facilities",
"manager": "Rachel Whitmore",
"manager_role": "Estates Manager",
"daily_hours": 7.5,
"weekly_hours": 37.5
},
"period": {
"label": "August 2026",
"start": "2026-08-01",
"end": "2026-08-31",
"submitted_on": "2026-09-01"
},
"codes": [
{
"code": "PPM",
"label": "Planned maintenance",
"color": "#2f6f8f"
},
{
"code": "REACT",
"label": "Reactive repairs",
"color": "#d17a22"
}
],
"entries": [
{
"date": "2026-08-03",
"start": "07:30",
"end": "16:00",
"break_minutes": 30,
"code": "PPM",
"note": "HVAC filter changes, Block A"
},
{
"date": "2026-08-04",
"start": "07:30",
"end": "16:00",
"break_minutes": 30,
"code": "PPM",
"note": "Fire door inspections, levels 1–4"
}
]
},
"output": {
"format": "pdf",
"filename": "timesheet-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": {
"company": {
"name": "Copperbeech Facilities Ltd",
"site": "Harbour Point Business Park, Bristol",
"email": "payroll@copperbeech.example.com"
},
"employee": {
"name": "Daniel Okafor",
"number": "EMP-0472",
"role": "Maintenance Technician",
"department": "Estates and Facilities",
"manager": "Rachel Whitmore",
"manager_role": "Estates Manager",
"daily_hours": 7.5,
"weekly_hours": 37.5
},
"period": {
"label": "August 2026",
"start": "2026-08-01",
"end": "2026-08-31",
"submitted_on": "2026-09-01"
},
"codes": [
{
"code": "PPM",
"label": "Planned maintenance",
"color": "#2f6f8f"
},
{
"code": "REACT",
"label": "Reactive repairs",
"color": "#d17a22"
}
],
"entries": [
{
"date": "2026-08-03",
"start": "07:30",
"end": "16:00",
"break_minutes": 30,
"code": "PPM",
"note": "HVAC filter changes, Block A"
},
{
"date": "2026-08-04",
"start": "07:30",
"end": "16:00",
"break_minutes": 30,
"code": "PPM",
"note": "Fire door inspections, levels 1–4"
}
]
},
"output": {
"format": "pdf",
"filename": "timesheet-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": {
"company": {
"name": "Copperbeech Facilities Ltd",
"site": "Harbour Point Business Park, Bristol",
"email": "payroll@copperbeech.example.com",
},
"employee": {
"name": "Daniel Okafor",
"number": "EMP-0472",
"role": "Maintenance Technician",
"department": "Estates and Facilities",
"manager": "Rachel Whitmore",
"manager_role": "Estates Manager",
"daily_hours": 7.5,
"weekly_hours": 37.5,
},
"period": {
"label": "August 2026",
"start": "2026-08-01",
"end": "2026-08-31",
"submitted_on": "2026-09-01",
},
"codes": [
{
"code": "PPM",
"label": "Planned maintenance",
"color": "#2f6f8f",
},
{
"code": "REACT",
"label": "Reactive repairs",
"color": "#d17a22",
},
],
"entries": [
{
"date": "2026-08-03",
"start": "07:30",
"end": "16:00",
"break_minutes": 30,
"code": "PPM",
"note": "HVAC filter changes, Block A",
},
{
"date": "2026-08-04",
"start": "07:30",
"end": "16:00",
"break_minutes": 30,
"code": "PPM",
"note": "Fire door inspections, levels 1–4",
},
],
},
"output": {
"format": "pdf",
"filename": "timesheet-monthly.pdf",
},
},
timeout=90,
)
response.raise_for_status()
print(response.json())More hr & employment templates

Arbeitszeugnis (employment reference)
A4A German qualified employment reference on letterhead: the template writes the opening, the overall rating, the conduct sentence and the closing formula from the rating and the reason for leaving, in the right grammatical forms, switches to an interim reference with one field, and ends with two signature lines.

Expense claim
A4An A4 employee expense claim: receipts in other currencies are converted at their exchange rate, mileage is paid per mile, reclaimable VAT is worked out per line, and the totals, the spend by category and the amount due after an advance follow, with a QR code to the receipt images and three sign-off boxes.