Skip to content

Timesheet

Return, create and update timesheet entries for Australian Files.

Released
Updated
URLSupports
/{cf_uri}/Payroll/Timesheet
GETPUT

Attribute Details

Paging: default page size is set to 400 with a maximum of 1000 results.

AttributeTypeNotes
EmployeeobjectThe following set of information pulls through details for the employee contact
Employee.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the employee contact. Required when creating a new timesheet entry through the PUT operator, include on the end of the URL call.
Employee.Name
Read-only
String (30)Name of the employee.
Employee.DisplayIDString (15)Employee contact Card ID, can also be used as a unique employee contact identifier.
Employee.URI
Read-only
StringUniform resource identifier associated with the employee object.
StartDate
Required
DateTimeDate when the timesheet period starts, format YYYY-MM-DD HH:MM:SS { 'StartDate': '2014-09-10 13:33:02' }
EndDate
Required
DateTimeDate when the timesheet period finishes, format YYYY-MM-DD HH:MM:SS { 'EndDate': '2014-09-10 13:33:02' }
LinesarrayAn array of timesheet line information
Lines.PayrollCategoryobjectThe following set of information pulls through details for the payroll category
Lines.PayrollCategory.UID
Required
Guid (36)Required: only if passing on PUT. Unique payroll wage category identifier in the form of a guid.
Lines.PayrollCategory.Name
Read-only
String (31)Name of the payroll wage category.
Lines.PayrollCategory.Type
Read-only
StringIndicates the type of payroll category ie: Wage, Deduction, Tax.
Lines.PayrollCategory.URI
Read-only
StringUniform resource identifier associated with the payroll wage category object.
Lines.JobobjectThe following set of information pulls through details for jobs
Lines.Job.UIDGUID (36)Foreign Key : Unique guid identifier belonging to the job for this line of the timesheet entry
Lines.Job.Number
Read-only
String (15)Number assigned to the job
Lines.Job.Name
Read-only
String (30)Name assigned to the job
Lines.Job.URI
Read-only
StringUniform resource identifier associated with the job object
Lines.ActivityobjectThe following set of information pulls through details for the Activity Please note: can only be used if preference UseTimesheetsFor = TimeBillingAndPayroll
Lines.Activity.UIDGuid (36)Foreign Key : Unique guid identifier belonging to the activity assigned for this line of the timesheet entry.
Lines.Activity.Name
Read-only
String (30)Name of the activity.
Lines.Activity.URI
Read-only
StringUniform resource identifier associated with the activity object.
Lines.CustomerobjectThe following set of information pulls through details for the Customer contact. Please note: can only be used if preference I Use Timesheets for Time Billing has been selected.
Lines.Customer.UIDGuid (36)Foreign Key : Unique guid identifier belonging to the customer assigned for this line of the timesheet entry.
Lines.Customer.Name
Read-only
String (30)Name of the customer.
Lines.Customer.DisplayIDString (15)Customer contact Card ID, can also be used as a unique customer contact identifier.
Lines.Customer.URI
Read-only
StringUniform resource identifier associated with the customer object.
Lines.NotesString (255)Notes attached to the timesheet entry.
Lines.EntriesarrayAn array of timesheet entry information
Lines.Entries.UIDGuid (36)Unique guid identifier belonging to the line entry.
Lines.Entries.Date
Required
DateTimeDate of the entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2014-09-10 13:33:02' }
Lines.Entries.Hours
Required
IntegerNumber of hours assigned for entry day.
Lines.Entries.Processed
Read-only
BooleanTrue indicates the timesheet entry has been processed as part of payroll False indicates the timesheet entry has not been processed as part of payroll
URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.

Example json GET response

Example

json
{
  "UID": "22985a06-eeaa-4634-89ef-ee4ff314f406",
  "Name": "Alan Long",
  "DisplayID": "EMP00002",
  "URI": "{cf_uri}/Payroll/Timesheet/22985a06-eeaa-4634-89ef-ee4ff314f406?StartDate=2014-05-05T00:00:00&EndDate=2014-05-11T00:00:00",
  "StartDate": "2014-05-05T00:00:00Z",
  "EndDate": "2014-05-11T00:00:00Z"
}

The {cf_uri} is provided by the businessId parameter as described here.