Back to Service

Method Details for GetHourlyRatesRaw.

Get a list of hourly rates

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • CustomerID Integer ID of the specific customer. Set to 0 to get for all customers.
  • Status Integer Set to 0 to get inactive hourly rates, 1 for active hourly rates, -1 to get all hourly rates.

Returns

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:HourlyRates xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://www.timelog.com/XML/Schema/tlp/v4_4 http://www.timelog.com/api/xsd/HourlyRatesRaw.xsd">
	<tlp:HourlyRate ID="384" GUID="E261EF9F-1532-E611-80E1-005056B220E2">
		<tlp:Name>Secretary</tlp:Name>
		<tlp:Amount>80.0000</tlp:Amount>
		<tlp:CurrencyISO>EUR</tlp:CurrencyISO>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:PriceGroupID>1</tlp:PriceGroupID>
		<tlp:PriceGroupName>Denmark</tlp:PriceGroupName>
	</tlp:HourlyRate>
	<tlp:HourlyRate ID="385" GUID="E361EF9F-1532-E611-80E1-005056B220E2">
		<tlp:Name>Consultant</tlp:Name>
		<tlp:Amount>150.0000</tlp:Amount>
		<tlp:CurrencyISO>EUR</tlp:CurrencyISO>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:PriceGroupID>1</tlp:PriceGroupID>
		<tlp:PriceGroupName>Denmark</tlp:PriceGroupName>
	</tlp:HourlyRate>
	<tlp:HourlyRate ID="391" GUID="FBBF9B30-7697-413B-A1F1-A56285BEE1C8">
		<tlp:Name>TimeLog Internal</tlp:Name>
		<tlp:Amount>0.0000</tlp:Amount>
		<tlp:CurrencyISO>USD</tlp:CurrencyISO>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:PriceGroupID>3</tlp:PriceGroupID>
		<tlp:PriceGroupName>USD</tlp:PriceGroupName>
	</tlp:HourlyRate>
	<tlp:HourlyRate ID="397" GUID="0A8DB770-7547-4C92-8F74-A99700E40E32">
		<tlp:Name>customer</tlp:Name>
		<tlp:Amount>0.0000</tlp:Amount>
		<tlp:CurrencyISO>USD</tlp:CurrencyISO>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:PriceGroupID>5</tlp:PriceGroupID>
		<tlp:PriceGroupName>USD</tlp:PriceGroupName>
		<tlp:CustomerID>672</tlp:CustomerID>
		<tlp:CustomerName>Inscale</tlp:CustomerName>
	</tlp:HourlyRate>
</tlp:HourlyRates>

Result Schema

<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"
            targetNamespace="http://www.timelog.com/XML/Schema/tlp/v4_4"
            elementFormDefault="qualified"
            attributeFormDefault="unqualified">
  <xsd:element name="HourlyRates">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="HourlyRate" type="tlp:HourlyRateRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="HourlyRate_Key">
      <xsd:selector xpath=".//tlp:HourlyRate" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="HourlyRateRaw_Type">
    <xsd:sequence>
	  <xsd:element name="Name" type="xsd:string" />
	  <xsd:element name="Amount" type="xsd:decimal" />
	  <xsd:element name="CurrencyISO" type="xsd:string" />
	  <xsd:element name="IsActive" type="xsd:positiveInteger" />
	  <xsd:element name="PriceGroupID" type="xsd:positiveInteger" />
	  <xsd:element name="PriceGroupName" type="xsd:string" />
	  <xsd:element name="CustomerID" type="xsd:positiveInteger" />
	  <xsd:element name="CustomerName" type="xsd:string" />
    </xsd:sequence>
	<xsd:attribute name="ID" type="xsd:positiveInteger" use="optional" />
	<xsd:attribute name="GUID" type="xsd:string" use="optional" />
  </xsd:complexType>

</xsd:schema>

Download the XSD