latestOpenAPI 3.0.12026-08-192092911.2 MB

916e669fc527

Timesheets

Get a resource timesheet

Retrieve the details of a single timesheet for a resource (required scope resources:read)

get/v1/resources/{resourceId}/timesheets/{timesheetId}

Path parameters

resourceIdinteger required

The unique identifier of the resource associated with the timesheet

timesheetIdinteger required

The unique identifier of the timesheet

Headers

Customer-Idinteger required

The customer identifier

Response

OK

idinteger

The unique identifier associated with the timesheet

startedAtstring date-time

The date and time the resource clocked in

endedAtstring date-time nullable

The date and time the resource clocked out. Null if the resource has not yet clocked out

status'unsigned' | 'signed' | 'queried' | 'rejected' | 'approved' | 'paid'

The status of a resource timesheet.<p>Possible values:</p><ul><li><b>unsigned</b>: The timesheet has not yet been signed by the resource.</li><li><b>signed</b>: The timesheet has been signed by the resource.</li><li><b>queried</b>: The timesheet has been queried and requires review.</li><li><b>rejected</b>: The timesheet has been rejected.</li><li><b>approved</b>: The timesheet has been approved.</li><li><b>paid</b>: The timesheet has been paid.</li></ul>

totalHoursnumber double

The total number of hours worked. Zero if the resource has not yet clocked out

createdAtstring date-time
updatedAtstring date-time

The date and time the timesheet was last updated

Example response

{
  "id": 12345,
  "status": "unsigned",
  "totalHours": 7.5
}