Skip to content
Preview of the Monthly timesheet template

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.

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
  • 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.

PathTypeExample
companyobject
company.namestring"Copperbeech Facilities Ltd"
company.sitestring"Harbour Point Business Park, Bristol"
company.emailstring"payroll@copperbeech.example.com"
employeeobject
employee.namestring"Daniel Okafor"
employee.numberstring"EMP-0472"
employee.rolestring"Maintenance Technician"
employee.departmentstring"Estates and Facilities"
employee.managerstring"Rachel Whitmore"
employee.manager_rolestring"Estates Manager"
employee.daily_hoursnumber7.5
employee.weekly_hoursnumber37.5
periodobject
period.labelstring"August 2026"
period.startdate"2026-08-01"
period.enddate"2026-08-31"
period.submitted_ondate"2026-09-01"
codesarray<object> · 4
codes[].codestring"PPM"
codes[].labelstring"Planned maintenance"
codes[].colorstring"#2f6f8f"
entriesarray<object> · 22
entries[].datedate"2026-08-03"
entries[].start?string"07:30"
entries[].end?string"16:00"
entries[].break_minutes?number30
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"
  }
}'