Timesheet
Return, create and update timesheet entries for Australian Files.
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Payroll/Timesheet |
Attribute Details
Paging: default page size is set to 400 with a maximum of 1000 results.
| Attribute | Type | Notes |
|---|---|---|
Employee | object | The following set of information pulls through details for the employee contact |
Employee.UID | 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 | String (30) | Name of the employee. |
Employee.DisplayID | String (15) | Employee contact Card ID, can also be used as a unique employee contact identifier. |
Employee.URI | String | Uniform resource identifier associated with the employee object. |
StartDate | DateTime | Date when the timesheet period starts, format YYYY-MM-DD HH:MM:SS { 'StartDate': '2014-09-10 13:33:02' } |
EndDate | DateTime | Date when the timesheet period finishes, format YYYY-MM-DD HH:MM:SS { 'EndDate': '2014-09-10 13:33:02' } |
Lines | array | An array of timesheet line information |
Lines.PayrollCategory | object | The following set of information pulls through details for the payroll category |
Lines.PayrollCategory.UID | Guid (36) | Required: only if passing on PUT. Unique payroll wage category identifier in the form of a guid. |
Lines.PayrollCategory.Name | String (31) | Name of the payroll wage category. |
Lines.PayrollCategory.Type | String | Indicates the type of payroll category ie: Wage, Deduction, Tax. |
Lines.PayrollCategory.URI | String | Uniform resource identifier associated with the payroll wage category object. |
Lines.Job | object | The following set of information pulls through details for jobs |
Lines.Job.UID | GUID (36) | Foreign Key : Unique guid identifier belonging to the job for this line of the timesheet entry |
Lines.Job.Number | String (15) | Number assigned to the job |
Lines.Job.Name | String (30) | Name assigned to the job |
Lines.Job.URI | String | Uniform resource identifier associated with the job object |
Lines.Activity | object | The following set of information pulls through details for the Activity Please note: can only be used if preference UseTimesheetsFor = TimeBillingAndPayroll |
Lines.Activity.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the activity assigned for this line of the timesheet entry. |
Lines.Activity.Name | String (30) | Name of the activity. |
Lines.Activity.URI | String | Uniform resource identifier associated with the activity object. |
Lines.Customer | object | The 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.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the customer assigned for this line of the timesheet entry. |
Lines.Customer.Name | String (30) | Name of the customer. |
Lines.Customer.DisplayID | String (15) | Customer contact Card ID, can also be used as a unique customer contact identifier. |
Lines.Customer.URI | String | Uniform resource identifier associated with the customer object. |
Lines.Notes | String (255) | Notes attached to the timesheet entry. |
Lines.Entries | array | An array of timesheet entry information |
Lines.Entries.UID | Guid (36) | Unique guid identifier belonging to the line entry. |
Lines.Entries.Date | DateTime | Date of the entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2014-09-10 13:33:02' } |
Lines.Entries.Hours | Integer | Number of hours assigned for entry day. |
Lines.Entries.Processed | Boolean | True 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 | String | Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web. |
Example json GET response
Example
{
"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.