Back to Service

Method Details for GetWorkingHoursRaw.

Gets a list of working hours


  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • employeeID Integer ID of specific employee. Set to 0 to get all employees
  • departmentID Integer ID of specific department. Set to 0 to get all employees
  • status Integer Set to 0 for inactive employees; 1 for active employees; -1 to get all employees
  • startDate String Limits result to working hours with date on or later than this date
  • endDate String Limits result to working hours with date on or prior to this date


A list of working hour objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:WorkingHours xmlns:tlp=""
  <tlp:WorkingHour ID="447656">

Result Schema

<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd=""
	<xsd:element name="WorkingHours" >
				<xsd:element name="WorkingHour" type="tlp:WorkingHour_Type" minOccurs="0" maxOccurs="unbounded" />
		<xsd:key name="WorkingHour_Key">
			<xsd:selector xpath=".//tlp:WorkingHour" />
			<xsd:field xpath="@ID" />

	<xsd:complexType name="WorkingHour_Type">
			<xsd:element name="Date" type="xsd:dateTime" minOccurs="1" maxOccurs="1" />
			<xsd:element name="Hours" type="xsd:decimal" minOccurs="1" maxOccurs="1" />
      <xsd:element name="EmployeeID" type="xsd:positiveInteger" minOccurs="1" maxOccurs="1" />
      <xsd:element name="EmployeeFirstName" type="xsd:string" minOccurs="1" maxOccurs="1" />
      <xsd:element name="EmployeeLastName" type="xsd:string" minOccurs="1" maxOccurs="1" />    
		<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />


Download the XSD