Attendance record template

A monthly attendance record with a daily table of clock-in, clock-out, breaks, hours worked, overtime and notes, monthly totals such as days worked, paid leave and total hours, and approval stamps. All 31 days plus a total row fit on one A4 portrait page, and weekdays can be colored blue for Saturdays and red for Sundays and holidays.

  • A4 portrait
  • 26 merge fields
  • Issued as PDF
  • Company names, people, addresses and amounts in the sample are fictional.
  • The sample layout is in Japanese. You can change any text in the template editor.
Sample of the attendance record template (first page of a PDF issued with DocRelay)

Use cases

  • Monthly attendance exports from time and attendance systems
  • Attendance records kept alongside payroll ledgers
  • Monthly review and approval of staff attendance

Merge fields

The data fields you send to the API. Fields inside an array are shown as array.field.

FieldDescription
monthMonth (e.g. 2026年10月度)
period.startPeriod start (YYYY-MM-DD)
period.endPeriod end (YYYY-MM-DD)
employee.numberEmployee number
employee.departmentDepartment
employee.nameEmployee name
employee.employment_typeEmployment type
companyCompany or office name
daysDaily rows (array; a total row can be added last)
days.dayDay of month
days.dowWeekday (text, or colored segments)
days.startClock-in
days.endClock-out
days.breakBreak time
days.hoursHours worked
days.overtimeOvertime
days.noteNotes
summary.work_daysDays worked
summary.holiday_workHoliday work days
summary.paid_leavePaid leave days
summary.absenceAbsences
summary.lateLate arrivals and early departures
summary.total_hoursTotal hours worked
summary.overtimeTotal overtime
summary.nightTotal night work
noteMemo

How to use it

  1. In the dashboard, choose Create template, select "Start from a template" and pick "Attendance record". The layout and sample data are copied into your project.
  2. Edit the company name, logo and field positions in the template editor to match your own format.
  3. Send the template name and data to POST /v1/renders to issue a PDF.

With a test API key (sk_test_) you can issue documents from the draft. Publish a version before issuing with a production API key. From an AI assistant, specify the same template in the from of the MCP create_template tool.

Create and issue via the API

Create a template by setting from to the template ID (attendance) in POST /v1/templates, then send the template name and data to POST /v1/renders.

1. Create a template from the ready-made one
curl https://api.docrelay.jp/v1/templates \
  -H "Authorization: Bearer $DOCRELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Attendance record", "from": "attendance" }'
2. Send data and issue a PDF
curl https://api.docrelay.jp/v1/renders \
  -H "Authorization: Bearer $DOCRELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d @attendance.json \
  -o attendance.pdf
attendance.json (sample data; arrays show the first item and long text is shortened)
{
  "template": "Attendance record",
  "format": "pdf",
  "data": {
    "month": "2026年10月度",
    "period": {
      "start": "2026-10-01",
      "end": "2026-10-31"
    },
    "employee": {
      "number": "E-102345",
      "department": "営業本部 第一営業部",
      "name": "見本 太郎",
      "employment_type": "正社員"
    },
    "company": "サンプル商事株式会社 本社",
    "days": [
      {
        "day": 1,
        "dow": "木",
        "start": "9:00",
        "end": "18:00",
        "break": "1:00",
        "hours": "8:00",
        "overtime": "",
        "note": ""
      }
    ],
    "summary": {
      "work_days": "20 日",
      "holiday_work": "0 日",
      "paid_leave": "1 日",
      "absence": "0 日",
      "late": "0 回",
      "total_hours": "172:30",
      "overtime": "12:30",
      "night": "0:00"
    },
    "note": "時間外労働は、いずれも事前に所属長の承認を得ています。"
  }
}

API reference

Early access is open

We are preparing for launch. Pre-register and we will notify you when the service becomes available.