For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
guide

Create and manage time entries

Use the Time Entry REST API to create, update, and list time entries.

Use with AI:Rippling AI ChatGPT Claude Cursor

Overview​

The Time Entry API lets you create, update, and delete time entries. Each time entry represents a single work session or shift, and is reflected on timecards in Rippling's Time & Attendance.

Available endpoints​

EndpointDescription
GET List time entriesLists time entries.
POST Create a new time entryCreates a new time entry.
GET Retrieve a specific time entryRetrieves a specific time entry by ID.
PATCH Update a time entryUpdates a time entry.
DELETE Delete a time entryDeletes a time entry.

Requirements​

  • The Rippling API SKU
  • An API token with the following scopes:
    • time-entries.read to fetch time entries
    • time-entries.read-write to fetch and manage time entries

Fetch​

Use GET List time entries to return a list of company time entries.

Request:

curl -L -X GET 'https://rest.ripplingapis.com/time-entries/'
-H 'Accept: application/json'
-H 'Authorization: Bearer REDACTED'

Response:

{
"results": [
{
"id": "66a43405af71f094991bf94f",
"created_at": "2024-09-18T16:00:21.551000+00:00",
"updated_at": "2024-09-18T16:05:50.632000+00:00",
"worker_id": "65699281fb7bc7c3510f44a6",
"worker": null,
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T17:00:00-07:00",
"comments": [],
"job_shifts": [
{
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T17:00:00-07:00",
"original_start_time": null,
"original_end_time": null,
"job_codes_id": ["66b2512c4ad1db34abae1e82"],
"is_hours_only_input": false
}
],
"breaks": [
{
"start_time": "2024-09-18T12:00:00-07:00",
"end_time": "2024-09-18T12:30:00-07:00",
"break_type_id": "66a8171c73afe1eced2f08ea"
}
],
"tags": ["projectX"],
"idempotency_key": "unique-key-987",
"create_extra_hours_run": false,
"status": "DRAFT",
"pay_period": {
"start_date": "2024-09-16",
"end_date": "2024-09-29",
"pay_schedule_id": "65699295fb7bc7c3510f4075"
},
"time_entry_summary": {
"regular_hours": 7.5,
"over_time_hours": 0,
"double_over_time_hours": 0,
"duration": 8
},
"time_card_id": "66a43410af71f094991bf960",
"time_card": null,
"shift_input_values": []
}
],
"next_link": null
}
Response fieldRequiredDescription
idYesTime entry ID.
created_atYesWhen the time entry was created.
updated_atYesWhen the time entry was last updated.
worker_idYesWorker for this entry. This is the Rippling role ID.
workerNoWorker record. Expand worker to populate this. null when not expanded.
start_timeNoStart time of the entry.
end_timeNoEnd time of the entry.
commentsNoComments on the entry. Each item can include text, author_id, and created_at.
job_shiftsNoShifts worked during the entry. Each item includes start_time, end_time, original_start_time, original_end_time, job_codes_id, and is_hours_only_input.
breaksNoBreaks clocked during the entry. Each item includes start_time, end_time, and break_type_id.
tagsNoLabels attached to the entry.
idempotency_keyNoUnique key from an external system.
create_extra_hours_runNoWhether the entry should create an extra hours run.
statusNoDRAFT, APPROVED, PAID, or FINALIZED.
pay_periodNoPay period for the entry: start_date, end_date, and pay_schedule_id.
time_entry_summaryNoCalculated hours for the entry: regular_hours, over_time_hours, double_over_time_hours, and duration.
time_card_idNoTime card this entry belongs to.
time_cardNoTime card record. Expand time_card to populate this. null when not expanded.
shift_input_valuesNoPiece-rate values collected on the entry.

Use GET Retrieve a specific time entry to fetch a specific time entry.


Create​

Use POST Create a new time entry to create a new time entry. This time entry will populate in Rippling's Time & Attendance.

Request:

curl -L -X POST 'https://rest.ripplingapis.com/time-entries/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'

Request body:

{
"worker_id": "65699281fb7bc7c3510f44a6",
"status": "DRAFT",
"job_shifts": [
{
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T17:00:00-07:00",
"original_start_time": null,
"original_end_time": null,
"job_codes_id": ["66b2512c4ad1db34abae1e82"],
"is_hours_only_input": false
}
],
"breaks": [
{
"start_time": "2024-09-18T12:00:00-07:00",
"end_time": "2024-09-18T12:30:00-07:00",
"break_type_id": "66a8171c73afe1eced2f08ea"
}
],
"tags": ["projectX"],
"idempotency_key": "unique-key-987"
}
Request body fieldRequiredDescription
worker_idYESWorker for this entry. This is the Rippling role ID.
durationNOHours worked, as a decimal such as 1 or 1.5. Send this or job_shifts, not both.
start_dateNODate of a duration entry (YYYY-MM-DD). When omitted, the entry uses the date of the request.
job_shiftsNOShifts worked during the entry, including start and end times and job codes. start_time and end_time take precedence over original_start_time and original_end_time. Original times require start and end times. Each job code must already exist in Rippling.
breaksNOBreaks clocked during the entry.
commentsNOComments on the entry. Each item has text.
tagsNOLabels attached to the entry.
idempotency_keyNOUnique key from an external system. Rippling rejects a second entry with the same key.
statusNODRAFT (needs review), APPROVED (approved in Rippling), PAID (already paid, and no extra-hours pay run), or FINALIZED (treated like APPROVED).
pay_periodNOPay period for the entry: start_date, end_date, and pay_schedule_id. Periods are configured in Payroll.
shift_input_valuesNOPiece-rate values for the entry. Available with Global Payroll.
create_extra_hours_runNOWhether the entry should create an extra hours run.

Response:

{
"id": "66a43405af71f094991bf94f",
"created_at": "2024-09-18T16:00:21.551000+00:00",
"updated_at": "2024-09-18T16:05:50.632000+00:00",
"worker_id": "65699281fb7bc7c3510f44a6",
"worker": null,
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T17:00:00-07:00",
"comments": [],
"job_shifts": [
{
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T17:00:00-07:00",
"original_start_time": null,
"original_end_time": null,
"job_codes_id": ["66b2512c4ad1db34abae1e82"],
"is_hours_only_input": false
}
],
"breaks": [
{
"start_time": "2024-09-18T12:00:00-07:00",
"end_time": "2024-09-18T12:30:00-07:00",
"break_type_id": "66a8171c73afe1eced2f08ea"
}
],
"tags": ["projectX"],
"idempotency_key": "unique-key-987",
"create_extra_hours_run": false,
"status": "DRAFT",
"pay_period": {
"start_date": "2024-09-16",
"end_date": "2024-09-29",
"pay_schedule_id": "65699295fb7bc7c3510f4075"
},
"time_entry_summary": {
"regular_hours": 7.5,
"over_time_hours": 0,
"double_over_time_hours": 0,
"duration": 8
},
"time_card_id": "66a43410af71f094991bf960",
"time_card": null,
"shift_input_values": []
}

Update​

Use PATCH Update a time entry to update a time entry. worker_id is required, and include only the additional fields you are changing.

Request:

curl -L -X PATCH 'https://rest.ripplingapis.com/time-entries/66a43405af71f094991bf94f/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'

Request body:

{
"worker_id": "65699281fb7bc7c3510f44a6",
"job_shifts": [
{
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T18:00:00-07:00",
"original_start_time": null,
"original_end_time": null,
"job_codes_id": ["66b2512c4ad1db34abae1e82"],
"is_hours_only_input": false
}
],
"breaks": [
{
"start_time": "2024-09-18T12:00:00-07:00",
"end_time": "2024-09-18T12:30:00-07:00",
"break_type_id": "66a8171c73afe1eced2f08ea"
}
]
}

Response:

{
"id": "66a43405af71f094991bf94f",
"created_at": "2024-09-18T16:00:21.551000+00:00",
"updated_at": "2024-09-18T18:10:12.104000+00:00",
"worker_id": "65699281fb7bc7c3510f44a6",
"worker": null,
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T18:00:00-07:00",
"comments": [],
"job_shifts": [
{
"start_time": "2024-09-18T09:00:00-07:00",
"end_time": "2024-09-18T18:00:00-07:00",
"original_start_time": null,
"original_end_time": null,
"job_codes_id": ["66b2512c4ad1db34abae1e82"],
"is_hours_only_input": false
}
],
"breaks": [
{
"start_time": "2024-09-18T12:00:00-07:00",
"end_time": "2024-09-18T12:30:00-07:00",
"break_type_id": "66a8171c73afe1eced2f08ea"
}
],
"tags": ["projectX"],
"idempotency_key": "unique-key-987",
"create_extra_hours_run": false,
"status": "DRAFT",
"pay_period": {
"start_date": "2024-09-16",
"end_date": "2024-09-29",
"pay_schedule_id": "65699295fb7bc7c3510f4075"
},
"time_entry_summary": {
"regular_hours": 8.5,
"over_time_hours": 0,
"double_over_time_hours": 0,
"duration": 9
},
"time_card_id": "66a43410af71f094991bf960",
"time_card": null,
"shift_input_values": []
}

Delete​

Use DELETE Delete a time entry to delete a time entry.

Request:

curl -L -X DELETE 'https://rest.ripplingapis.com/time-entries/66a43405af71f094991bf94f/'
-H 'Accept: application/json'
-H 'Authorization: Bearer REDACTED'

A successful delete returns 204 and no response body.


Best practices​

  • Utilize the idempotency_key: This helps prevent accidental duplicate entries by ensuring that no other time entry with the same key can be created. Unable to be used with PATCH Update a time entry.
  • Provide comprehensive data: Include all relevant optional fields to ensure that entries are as detailed and accurate as possible.
  • Handle optional fields: Implement checks in your integration to manage optional fields effectively, filling them only when necessary.

Validation​

A request is rejected when the hours, shifts, or breaks do not form a valid entry. Common issues to check for:

  • Shifts: Job shifts must cover the entry from start to end, must not overlap, and each shift’s start must be before its end. You cannot send both duration and job_shifts in the same request. Related errors include entryMustHaveJobShifts, spanningJobShiftsNotPresent, overlappingJobShiftTimes, and invalidJobShiftStartGreaterThanEnd.
  • Breaks: Breaks must fall inside the entry, must not overlap, and the entry cannot be only breaks. The worker must be eligible for the break type, and related errors include overlappingBreakTimes, mustEndBreakBeforeEndingEntry, entryCannotBeOnlyBreaks, and ineligibleForBreakType.
  • The time entry: Start must be before end, the entry cannot exceed 48 hours, and it cannot overlap another open or closed entry for that worker. Related errors include timeEntryStartGreaterThanEnd, entryLongerThanFortyEightHours, existingEntryOverlapsWithOpenEntry, and existingEntryOverlapsWithClosedEntry.
  • Worker setup: The worker needs to be assigned to an active Time & Attendance policy, the job code must be one they are assigned to, and the entry cannot start before their start date. Related errors include noActivePolicyForUser, noActiveTimekeepingPolicy, employeeIneligibleForJobCode, and cannotCreateEntryUntilStartDate.

Statuses​

Set the status upon time entry creation:

StatusOutcome
DRAFTNeeds admin review.
APPROVEDApproved in Rippling.
FINALIZEDTreated like APPROVED. A finalized entry cannot be changed or unapproved.
PAIDMarks the entry manually paid and does not create an extra-hours pay run. A paid entry cannot be unapproved.

Pay periods​

The pay_period field identifies the Payroll period for the entry: start_date, end_date, and pay_schedule_id. Those periods are configured directly in the company's Payroll app. An entry outside that period returns timeEntryOutsidePayPeriod.

Hours that are still unapproved when the regular pay run is submitted can be paid on a separate off-cycle run. On update, create_extra_hours_run asks Rippling to create that extra-hours run. Setting status to PAID records the hours as already paid and skips that run.

To read entries for a pay period, call GET List time entries and filter on pay_period.start_date. The entry’s time_card is the pay-period summary (approved and paid hours). Time cards can be fetched on their own using GET List time cards, which also filters on pay_period.start_date.


Errors​

Create​

POST Create a new time entry errorDetails
entryMustHaveJobShiftsRaised if no job shifts are defined.
spanningJobShiftsNotPresentRaised if job shifts do not span the entire duration from start to end time.
invalidJobShiftStartGreaterThanEndRaised if a job shift's start time is after its end time.
invalidJobShiftEndTimeRaised if a job shift's end time is after the entry's end time.
invalidJobShiftStartEqualsEndTimeRaised if a job shift's start time is equal to its end time.
overlappingJobShiftTimesRaised if job shifts overlap.
employeeIneligibleForJobCodeRaised if the job code is not valid for the employee.
invalidBreakStartTimeRaised if a break's start time is invalid.
mustEndBreakBeforeEndingEntryRaised if a break doesn't end before the entry ends.
invalidBreakStartGreaterThanEndRaised if a break's start time is after its end time.
invalidBreakEndTimeRaised if a break's end time is after the entry's end time.
ineligibleForBreakTypeRaised if the break type is ineligible.
overlappingBreakTimesRaised if breaks overlap.
entryCannotBeOnlyBreaksRaised if the entry consists only of breaks.
timeEntryStartGreaterThanEndRaised if the entry's start time is after its end time.
cannotReopenClosedEntryRaised if attempting to reopen a closed entry.
existingEntryOverlapsWithClosedEntryRaised if an entry overlaps with another closed entry.
existingEntryOverlapsWithOpenEntryRaised if an entry overlaps with another open entry.
timeEntryOutsidePayPeriodRaised if the entry is outside the pay period.
cannotApproveOpenEntryRaised if trying to approve an entry without an end time.
cannotApproveEntryRaised if the approver is not eligible.
cannotUnapprovePaidEntryRaised if trying to unapprove a paid entry.
cannotUnapproveFinalizedEntryRaised if trying to unapprove a finalized entry.
cannotModifyApprovedEntryRaised if trying to modify an approved entry without proper permissions.
cannotModifyFinalizedEntryRaised if trying to modify a finalized entry.
cannotModifyPaidEntryRaised if trying to modify a paid entry without proper permissions.
noActivePolicyForUserRaised if a policy is not active for the user.
cannotCreateEntryUntilStartDateRaised if a new entry is created before the role's start date.
permissionDenied.authorDoesNotHavePermissionRaised if the author does not have permission to make

Update​

PATCH Update a time entry errorDetails
entryMustHaveJobShiftsRaised if no job shifts are defined.
spanningJobShiftsNotPresentRaised if job shifts do not span the entire duration from start to end time.
invalidJobShiftStartGreaterThanEndRaised if a job shift's start time is after its end time.
invalidJobShiftEndTimeRaised if a job shift's end time is after the entry's end time.
invalidJobShiftStartEqualsEndTimeRaised if a job shift's start time is equal to its end time.
employeeIneligibleForJobCodeRaised if the job code is not valid for the employee.
invalidBreakStartTimeRaised if a break's start time is invalid.
mustEndBreakBeforeEndingEntryRaised if a break doesn't end before the entry ends.
invalidBreakStartGreaterThanEndRaised if a break's start time is after its end time.
invalidBreakEndTimeRaised if a break's end time is after the entry's end time.
ineligibleForBreakTypeRaised if the break type is ineligible.
overlappingBreakTimesRaised if breaks overlap.
entryCannotBeOnlyBreaksRaised if the entry consists only of breaks.
timeEntryStartGreaterThanEndRaised if the entry's start time is after its end time.
cannotCreateFutureOpenEntryRaised if an open entry is created in the future.
cannotModifyApprovedEntryRaised if trying to modify an approved entry without proper permissions.
cannotModifyFinalizedEntryRaised if trying to modify a finalized entry.
cannotModifyPaidEntryRaised if trying to modify a paid entry without proper permissions.
noActivePolicyForUserRaised if a policy is not active for the user.
noActiveTimekeepingPolicyRaised if no active timekeeping policy is available.
permissionDenied.authorDoesNotHavePermissionRaised if the author does not have permission to make changes.
invalidShiftInputIdRaised if a shift input ID is invalid.
invalidShiftInputAuthorIdRaised if a shift input author ID is invalid.
entryLongerThanFortyEightHoursRaised if the entry duration exceeds 48 hours.
All ShiftInputGroupValues must have this TimeEntry as their parentRaised if a ShiftInputGroupValue is not correctly associated with the TimeEntry.

Delete​

DELETE Delete a time entry errorDetails
permissionDenied.authorDoesNotHavePermissionRaised if the author does not have permission to delete the time entry.
cannotModifyApprovedEntryRaised if trying to delete an approved entry without proper permissions.
cannotModifyFinalizedEntryRaised if trying to delete a finalized entry.
cannotModifyPaidEntryRaised if trying to delete a paid entry without proper permissions.
resourceNotFoundRaised if no time entry exists for the provided id.

Use cases​

Time entry for today​

A worker logs a full day without shifts, job codes, or breaks, and Rippling uses the worker's configured hours for the start time.

  1. Create the entry with POST Create a new time entry.
  2. Send worker_id and duration. Omit start_date so the entry uses today's date.
  3. A worker can have one time entry per day, and the entry cannot overlap an existing one.

Time entry for another date​

The same hours-only entry is for a day other than today.

  1. Create the entry with POST Create a new time entry.
  2. Send worker_id, duration, and start_date.
  3. Do not send job_shifts with duration. A worker can have one time entry per day, and the entry cannot overlap an existing one.

Approved time entry​

The shift is unchanged, so it does not need admin approval.

  1. Create the entry with POST Create a new time entry.
  2. Set status to APPROVED. Rippling treats the entry as approved.
  3. Omit start_date to use today's date. A worker can have one time entry per day, and the entry cannot overlap an existing one.

Time entry with a break​

The worker clocks a shift and a meal break. The worker must already be assigned to that break policy in Rippling in order to create a time entry with a break.

  1. Create the entry with POST Create a new time entry.
  2. Send duration and a breaks item with start_time, end_time, and break_type_id.
  3. A worker can have one time entry per day, and the entry cannot overlap an existing one.

Time entry with job codes​

A worker spends part of the day in one role and the rest in another, with each role having its own job code. The worker must already be assigned to those job codes in Rippling in order to create a time entry with job codes.

  1. Create the entry with POST Create a new time entry.
  2. Send job_shifts with one item per role. Each item needs start_time, end_time, and job_codes_id.
  3. Do not send duration with job_shifts. The entry cannot overlap an existing one.

Time entry with job codes and a break​

  1. Create the entry with POST Create a new time entry.
  2. Send job_shifts with start_time, end_time, and job_codes_id.
  3. Send breaks with start_time, end_time, and break_type_id.
  4. The worker must already be assigned to the job code and the break policy. The entry cannot overlap an existing one.

Time entry with a missed break​

A worker clocked a shift and forgot a break, and a manager adds the break to the existing entry.

  1. Find the entry with GET List time entries.
  2. Update it with PATCH Update a time entry.
  3. Send the current worker_id and job_shifts, and add the break to breaks with start_time, end_time, and break_type_id.

See also​