Skip to content
Preview of the Monthly payslip template

210 × 297 mm

Payslips

Monthly payslip

An A4 monthly payslip with employer and employee details, earnings and deductions tables with this-period and year-to-date columns, employer contributions, a net pay panel with the amount in words, payment details and annual leave. Sample figures are illustrative.

PDFA4 portraitLocale en-GBHTML + Jinja

Opens Dynamic Document API with this template preloaded in a free workspace.

Template language features

  • Loops
  • Conditionals
  • Macros
  • Filters
  • Currency formatting
  • Number formatting
  • Date formatting

Filters such as format_currency and qrcode are described in the template language reference.

Variables

Derived from the sample data: 9 top-level fields, 44 paths in total. Send the same shape as data.

PathTypeExample
employerobject
employer.namestring"Fennick & Rowe Instruments Ltd"
employer.addressstring"Unit 2, Heathfield Science Park ⏎ Cambridge CB…"
employer.paye_referencestring"123/AB45678"
employer.payroll_emailstring"payroll@fennickrowe.example.com"
employeeobject
employee.namestring"Saoirse Pembridge"
employee.employee_numberstring"E-00417"
employee.job_titlestring"Senior Test Engineer"
employee.departmentstring"Test Engineering"
employee.ni_numberstring"QQ 12 34 56 C"
employee.tax_codestring"1257L"
employee.ni_categorystring"A"
employee.start_datedate"2021-04-12"
periodobject
period.labelstring"September 2026"
period.tax_yearstring"2026/27"
period.tax_periodnumber6
period.frequencystring"Monthly"
period.pay_datedate"2026-09-25"
period.currencystring"GBP"
earningsarray<object> · 4
earnings[].descriptionstring"Basic salary"
earnings[].detailstring"£46,800.00 a year"
earnings[].amountnumber3900
earnings[].ytdnumber23400
deductionsarray<object> · 5
deductions[].descriptionstring"Income tax"
deductions[].detailstring"Tax code 1257L"
deductions[].amountnumber604.46
deductions[].ytdnumber3654.88
employer_contributionsarray<object> · 2
employer_contributions[].descriptionstring"Employer National Insurance"
employer_contributions[].detailstring"Paid on your earnings"
employer_contributions[].amountnumber580.1
employer_contributions[].ytdnumber3502.8
paymentobject
payment.methodstring"Bank transfer"
payment.account_hintstring"account ending 4821"
leaveobject
leave.entitlement_daysnumber27
leave.taken_daysnumber12.5
leave.remaining_daysnumber14.5
messagestring"The pension scheme's annual statements are now…"

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": {
    "employer": {
      "name": "Fennick & Rowe Instruments Ltd",
      "address": "Unit 2, Heathfield Science Park\nCambridge CB4 0XX\nUnited Kingdom",
      "paye_reference": "123/AB45678",
      "payroll_email": "payroll@fennickrowe.example.com"
    },
    "employee": {
      "name": "Saoirse Pembridge",
      "employee_number": "E-00417",
      "job_title": "Senior Test Engineer",
      "department": "Test Engineering",
      "ni_number": "QQ 12 34 56 C",
      "tax_code": "1257L",
      "ni_category": "A",
      "start_date": "2021-04-12"
    },
    "period": {
      "label": "September 2026",
      "tax_year": "2026/27",
      "tax_period": 6,
      "frequency": "Monthly",
      "pay_date": "2026-09-25",
      "currency": "GBP"
    },
    "earnings": [
      {
        "description": "Basic salary",
        "detail": "£46,800.00 a year",
        "amount": 3900,
        "ytd": 23400
      },
      {
        "description": "Overtime at time and a half",
        "detail": "6.5 hours × £36.00",
        "amount": 234,
        "ytd": 1152
      }
    ],
    "deductions": [
      {
        "description": "Income tax",
        "detail": "Tax code 1257L",
        "amount": 604.46,
        "ytd": 3654.88
      },
      {
        "description": "National Insurance",
        "detail": "Category A",
        "amount": 258.88,
        "ytd": 1565.12
      }
    ],
    "employer_contributions": [
      {
        "description": "Employer National Insurance",
        "detail": "Paid on your earnings",
        "amount": 580.1,
        "ytd": 3502.8
      },
      {
        "description": "Employer pension contribution",
        "detail": "8% of gross pay",
        "amount": 342.72,
        "ytd": 2068.16
      }
    ],
    "payment": {
      "method": "Bank transfer",
      "account_hint": "account ending 4821"
    },
    "leave": {
      "entitlement_days": 27,
      "taken_days": 12.5,
      "remaining_days": 14.5
    },
    "message": "The pension scheme'\''s annual statements are now available in the employee portal. Contact payroll by 5 October if any details on this payslip look wrong."
  },
  "output": {
    "format": "pdf",
    "filename": "payslip-monthly.pdf"
  }
}'