Timesheet
Update a timesheet record
Timesheet ID
64f8a0e2d5b7c9a1e3f4a5b6Timesheet update data
Start date and time of the work period in UTC
2024-01-15T09:00:00.000ZEnd date and time of the work period in UTC
2024-01-15T17:00:00.000ZType of period: ACTIVE, VACATION, BANK_HOLIDAY, SICK_LEAVE, INDISPOSITION_ABSENCE, or DAY_OFF
ACTIVEPossible values: Reason for updating this timesheet record
Manual correction requested by managerIANA timezone ID for this update (e.g. Europe/Madrid). Stored on the timesheet document; start/end times above are still stored as UTC.
Europe/MadridOK
DTO representing a person's timesheet entry
Timesheet entry ID
64f8a0e2d5b7c9a1e3f4a5b6Person ID
64f8a0e2d5b7c9a1e3f4a5b6Start time of the timesheet entry
End time of the timesheet entry
Whether the timesheet entry is currently active
Whether the timesheet entry can be edited
Type of timesheet period
IANA timezone ID stored for this entry when provided by the client
PUT /api/v1/employee/timesheet/{timesheetId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 182
{
"startTime": "2024-01-15T09:00:00.000Z",
"endTime": "2024-01-15T17:00:00.000Z",
"periodType": "ACTIVE",
"changeReason": "Manual correction requested by manager",
"timeZone": "Europe/Madrid"
}OK
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"personId": "64f8a0e2d5b7c9a1e3f4a5b6",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"isActive": true,
"isEditable": true,
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"timeZone": "text",
"changeHistory": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"changeReason": "text",
"changedBy": "64f8a0e2d5b7c9a1e3f4a5b6",
"changedAt": "2026-01-01T00:00:00.000Z"
}
]
}Start work time for an employee
Employee ID
64f8a0e2d5b7c9a1e3f4a5b6Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format
Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)
2024-01-15T09:00:00ZIANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.
Europe/MadridOK
No content
POST /api/v1/employee/timesheet/{employeeId}/start HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"dateTime": "2024-01-15T09:00:00Z",
"timeZone": "Europe/Madrid"
}OK
No content
End work time for an employee
Employee ID
64f8a0e2d5b7c9a1e3f4a5b6Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format
Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)
2024-01-15T09:00:00ZIANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.
Europe/MadridOK
No content
POST /api/v1/employee/timesheet/{employeeId}/end HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"dateTime": "2024-01-15T09:00:00Z",
"timeZone": "Europe/Madrid"
}OK
No content
Start break time for an employee
Employee ID
64f8a0e2d5b7c9a1e3f4a5b6Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format
Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)
2024-01-15T09:00:00ZIANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.
Europe/MadridOK
No content
POST /api/v1/employee/timesheet/{employeeId}/break/start HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"dateTime": "2024-01-15T09:00:00Z",
"timeZone": "Europe/Madrid"
}OK
No content
End break time for an employee
Employee ID
64f8a0e2d5b7c9a1e3f4a5b6Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format
Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)
2024-01-15T09:00:00ZIANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.
Europe/MadridOK
No content
POST /api/v1/employee/timesheet/{employeeId}/break/end HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"dateTime": "2024-01-15T09:00:00Z",
"timeZone": "Europe/Madrid"
}OK
No content
Get timesheet state for an employee
Employee ID
64f8a0e2d5b7c9a1e3f4a5b6Date to get timesheet state (format: ddMMyyyy)
OK
DTO representing a person's timesheet entry
Timesheet entry ID
64f8a0e2d5b7c9a1e3f4a5b6Person ID
64f8a0e2d5b7c9a1e3f4a5b6Start time of the timesheet entry
End time of the timesheet entry
Whether the timesheet entry is currently active
Whether the timesheet entry can be edited
Type of timesheet period
IANA timezone ID stored for this entry when provided by the client
GET /api/v1/employee/timesheet/{employeeId}/state?date=2026-01-01T00%3A00%3A00.000Z HTTP/1.1
Host: api.happyforce.com
Accept: */*
OK
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"personId": "64f8a0e2d5b7c9a1e3f4a5b6",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"isActive": true,
"isEditable": true,
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"timeZone": "text",
"changeHistory": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"changeReason": "text",
"changedBy": "64f8a0e2d5b7c9a1e3f4a5b6",
"changedAt": "2026-01-01T00:00:00.000Z"
}
]
}Get timesheet records for a specific month
Employee ID
64f8a0e2d5b7c9a1e3f4a5b6Start date (format: ddMMyyyy)
End date (format: ddMMyyyy)
OK
GET /api/v1/employee/timesheet/{employeeId}/records?startDate=2026-01-01T00%3A00%3A00.000Z&endDate=2026-01-01T00%3A00%3A00.000Z HTTP/1.1
Host: api.happyforce.com
Accept: */*
OK
{
"from": 1,
"to": 1,
"total": 1,
"noContent": true,
"results": [
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"personId": "64f8a0e2d5b7c9a1e3f4a5b6",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"isActive": true,
"isEditable": true,
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"timeZone": "text",
"changeHistory": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"changeReason": "text",
"changedBy": "64f8a0e2d5b7c9a1e3f4a5b6",
"changedAt": "2026-01-01T00:00:00.000Z"
}
]
}
]
}Get timesheet history for an employee
Employee ID
64f8a0e2d5b7c9a1e3f4a5b6Pagination offset
0Pagination limit
10Start date filter (format: ddMMyyyy)
End date filter (format: ddMMyyyy)
OK
GET /api/v1/employee/timesheet/{employeeId}/history HTTP/1.1
Host: api.happyforce.com
Accept: */*
OK
{
"from": "2026-01-01",
"to": "2026-01-01",
"byPersonTimeSheet": {
"ANY_ADDITIONAL_PROPERTY": [
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"personId": "64f8a0e2d5b7c9a1e3f4a5b6",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"isActive": true,
"isEditable": true,
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"timeZone": "text",
"changeHistory": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"breaks": [
{
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"periodType": "ACTIVE",
"changeReason": "text",
"changedBy": "64f8a0e2d5b7c9a1e3f4a5b6",
"changedAt": "2026-01-01T00:00:00.000Z"
}
]
}
]
},
"totalCount": 1
}Last updated