Company Timesheet
Updates an existing timesheet record by ID. Only provided fields will be updated.
Timesheet ID
Timesheet 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/MadridTimesheet updated successfully
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
Invalid request data
Timesheet not found
PUT /api/v1/company/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"
}{
"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"
}
]
}Deletes an existing timesheet record by ID. The deleted record is archived in the DeletedTimesheets collection.
Timesheet ID
Timesheet delete data
Reason for deleting this timesheet record
Duplicate record created by mistakeTimesheet deleted successfully
No content
Timesheet not found
DELETE /api/v1/company/timesheet/{timesheetId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"deleteReason": "Duplicate record created by mistake"
}No content
Creates timesheet records for multiple employees in a single request. Each element groups creation requests by employeeId.
Company ID
List of timesheet creation data grouped by employee
Employee ID
65a1b2c3d4e5f67890123456Timesheets created successfully
No content
Invalid request data
POST /api/v1/company/timesheet/{companyId}/users/batch HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 278
[
{
"employeeId": "65a1b2c3d4e5f67890123456",
"createRequests": [
{
"startTime": "2024-01-15T09:00:00.000Z",
"endTime": "2024-01-15T17:00:00.000Z",
"breaks": [
{
"startTime": "2024-01-15T13:00:00.000Z",
"endTime": "2024-01-15T14:00:00.000Z"
}
],
"periodType": "ACTIVE",
"timeZone": "Europe/Madrid"
}
]
}
]No content
Creates a new timesheet record for an employee. Includes start time, end time, breaks, and period type.
Company ID
Employee ID
Timesheet creation 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: IANA timezone ID for the client sending this request (e.g. Europe/Madrid). Stored on the timesheet document.
Europe/MadridTimesheet created successfully
No content
Invalid request data
POST /api/v1/company/timesheet/{companyId}/user/{employeeId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 215
{
"startTime": "2024-01-15T09:00:00.000Z",
"endTime": "2024-01-15T17:00:00.000Z",
"breaks": [
{
"startTime": "2024-01-15T13:00:00.000Z",
"endTime": "2024-01-15T14:00:00.000Z"
}
],
"periodType": "ACTIVE",
"timeZone": "Europe/Madrid"
}No content
Creates multiple timesheet records for an employee. Receives a list of TimesheetCreateRequestDTO and creates each one.
Company ID
Employee ID
List of timesheet creation 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: IANA timezone ID for the client sending this request (e.g. Europe/Madrid). Stored on the timesheet document.
Europe/MadridTimesheets created successfully
No content
Invalid request data
POST /api/v1/company/timesheet/{companyId}/user/{employeeId}/batch HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 217
[
{
"startTime": "2024-01-15T09:00:00.000Z",
"endTime": "2024-01-15T17:00:00.000Z",
"breaks": [
{
"startTime": "2024-01-15T13:00:00.000Z",
"endTime": "2024-01-15T14:00:00.000Z"
}
],
"periodType": "ACTIVE",
"timeZone": "Europe/Madrid"
}
]No content
Retrieves the timesheet history for a specific employee in a company. Supports pagination and date filtering.
Company ID
Employee ID
Starting index for pagination (default: 0)
0Ending index for pagination (default: 10)
10Start date filter (format: ddMMyyyy)
End date filter (format: ddMMyyyy)
Successfully retrieved user timesheet history
GET /api/v1/company/timesheet/{companyId}/user/{employeeId}/history HTTP/1.1
Host: api.happyforce.com
Accept: */*
Successfully retrieved user timesheet history
{
"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
}Retrieves the timesheet history for all employees in a company. Supports pagination and date filtering.
Company ID
Starting index for pagination (default: 0)
0Ending index for pagination (default: 10)
10Start date filter (format: ddMMyyyy)
End date filter (format: ddMMyyyy)
Successfully retrieved timesheet history
GET /api/v1/company/timesheet/{companyId}/history HTTP/1.1
Host: api.happyforce.com
Accept: */*
Successfully retrieved timesheet history
{
"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
}Deletes several timesheet records in a single request, sharing the same delete reason. Deletion is best-effort: ids that cannot be deleted (e.g. not found) are skipped without aborting the rest. The response reports which ids were deleted and which failed. Each deleted record is archived in the DeletedTimesheets collection.
Company ID
Batch delete data
Reason applied to every timesheet deleted in this batch
Duplicate records imported by mistakeBulk deletion processed; see response for per-id outcome
Outcome of a bulk timesheet deletion, reporting deleted and failed ids
Invalid request data
DELETE /api/v1/company/timesheet/{companyId}/batch HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"timesheetIds": [],
"deleteReason": "Duplicate records imported by mistake"
}{
"deleted": [],
"failed": [
{
"timesheetId": "text",
"reason": "text"
}
]
}Last updated