Skip to main content
Submit the authenticated employee’s timesheet for a given pay period. This marks the employee’s PENDING entries as APPROVED and sets the pay period status to SUBMITTED.
Authentication: requires an employee JWT. The employee is taken from the token’s userId.

Request body

string
required
UUID of the pay period to submit. Must belong to the employee’s company (403 Access denied otherwise).

Behavior & preconditions

The request is rejected if any of the following hold: On success, the employee’s PENDING entries in the period are updated to APPROVED, the pay period status becomes SUBMITTED, and the response includes the updated period, the entry count, and computed totals.
On submission, this endpoint auto-approves the employee’s own PENDING entries (sets them to APPROVED) and flips the whole pay period to SUBMITTED. There is no per-employee submission state — submitting affects the shared pay period record.

Response

object
The updated pay period (now status: "SUBMITTED").
integer
Number of the employee’s entries in this pay period.
object
totalHours, regularHours, overtimeHours summed across those entries.
string
Timesheet submitted successfully.

Examples