Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Timesheet

put

Update a timesheet record

Authorizations
Path parameters
timesheetIdstringRequired

Timesheet ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Body

Timesheet update data

startTimestring · date-timeOptional

Start date and time of the work period in UTC

Example: 2024-01-15T09:00:00.000Z
endTimestring · date-timeOptional

End date and time of the work period in UTC

Example: 2024-01-15T17:00:00.000Z
periodTypestring · enumOptional

Type of period: ACTIVE, VACATION, BANK_HOLIDAY, SICK_LEAVE, INDISPOSITION_ABSENCE, or DAY_OFF

Example: ACTIVEPossible values:
changeReasonstring · min: 1Required

Reason for updating this timesheet record

Example: Manual correction requested by manager
timeZonestring · min: 1Required

IANA timezone ID for this update (e.g. Europe/Madrid). Stored on the timesheet document; start/end times above are still stored as UTC.

Example: Europe/Madrid
Responses
200

OK

application/json

DTO representing a person's timesheet entry

idstringOptional

Timesheet entry ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
personIdstringOptional

Person ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
startTimestring · date-timeOptional

Start time of the timesheet entry

endTimestring · date-timeOptional

End time of the timesheet entry

isActivebooleanOptional

Whether the timesheet entry is currently active

isEditablebooleanOptional

Whether the timesheet entry can be edited

periodTypestring · enumOptional

Type of timesheet period

Possible values:
timeZonestringOptional

IANA timezone ID stored for this entry when provided by the client

put/api/v1/employee/timesheet/{timesheetId}
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"
}
200

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"
    }
  ]
}
post

Start work time for an employee

Authorizations
Path parameters
employeeIdstringRequired

Employee ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Body

Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format

dateTimestringRequired

Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)

Example: 2024-01-15T09:00:00Z
timeZonestring · min: 1Required

IANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.

Example: Europe/Madrid
Responses
200

OK

No content

post/api/v1/employee/timesheet/{employeeId}/start
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"
}
200

OK

No content

post

End work time for an employee

Authorizations
Path parameters
employeeIdstringRequired

Employee ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Body

Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format

dateTimestringRequired

Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)

Example: 2024-01-15T09:00:00Z
timeZonestring · min: 1Required

IANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.

Example: Europe/Madrid
Responses
200

OK

No content

post/api/v1/employee/timesheet/{employeeId}/end
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"
}
200

OK

No content

post

Start break time for an employee

Authorizations
Path parameters
employeeIdstringRequired

Employee ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Body

Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format

dateTimestringRequired

Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)

Example: 2024-01-15T09:00:00Z
timeZonestring · min: 1Required

IANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.

Example: Europe/Madrid
Responses
200

OK

No content

post/api/v1/employee/timesheet/{employeeId}/break/start
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"
}
200

OK

No content

post

End break time for an employee

Authorizations
Path parameters
employeeIdstringRequired

Employee ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Body

Request body for timesheet start/end/break operations with a single date-time in ISO-8601 format

dateTimestringRequired

Date and time in ISO-8601 format (e.g. 2024-01-15T09:00:00Z)

Example: 2024-01-15T09:00:00Z
timeZonestring · min: 1Required

IANA timezone ID for this operation (e.g. Europe/Madrid). Stored on the timesheet document; dateTime is still interpreted as a UTC instant.

Example: Europe/Madrid
Responses
200

OK

No content

post/api/v1/employee/timesheet/{employeeId}/break/end
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"
}
200

OK

No content

get

Get timesheet state for an employee

Authorizations
Path parameters
employeeIdstringRequired

Employee ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
datestring · date-timeRequired

Date to get timesheet state (format: ddMMyyyy)

Responses
200

OK

application/json

DTO representing a person's timesheet entry

idstringOptional

Timesheet entry ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
personIdstringOptional

Person ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
startTimestring · date-timeOptional

Start time of the timesheet entry

endTimestring · date-timeOptional

End time of the timesheet entry

isActivebooleanOptional

Whether the timesheet entry is currently active

isEditablebooleanOptional

Whether the timesheet entry can be edited

periodTypestring · enumOptional

Type of timesheet period

Possible values:
timeZonestringOptional

IANA timezone ID stored for this entry when provided by the client

get/api/v1/employee/timesheet/{employeeId}/state
GET /api/v1/employee/timesheet/{employeeId}/state?date=2026-01-01T00%3A00%3A00.000Z HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

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

Get timesheet records for a specific month

Authorizations
Path parameters
employeeIdstringRequired

Employee ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
startDatestring · date-timeRequired

Start date (format: ddMMyyyy)

endDatestring · date-timeRequired

End date (format: ddMMyyyy)

Responses
200

OK

application/json
frominteger · int32Optional
tointeger · int32Optional
totalinteger · int32Optional
noContentbooleanOptional
get/api/v1/employee/timesheet/{employeeId}/records
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: */*
200

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

Get timesheet history for an employee

Authorizations
Path parameters
employeeIdstringRequired

Employee ID

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
frominteger · int32Optional

Pagination offset

Default: 0
tointeger · int32Optional

Pagination limit

Default: 10
dateFromstring · date-timeOptional

Start date filter (format: ddMMyyyy)

dateTostring · date-timeOptional

End date filter (format: ddMMyyyy)

Responses
200

OK

application/json
fromstring · dateOptional
tostring · dateOptional
totalCountinteger · int64Optional
get/api/v1/employee/timesheet/{employeeId}/history
GET /api/v1/employee/timesheet/{employeeId}/history HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

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