Back to Service

Method Details for GetSalaryAccountsRaw.

Get a list of salary accounts

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password

Returns

A list of salary accounts in standard XML document

Result Example

<?xml version="1.0" encoding="utf-8" ?>
<tlp:SalaryAccounts 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/SalaryAccountsRaw.xsd">
  <tlp:SalaryAccount ID="1" GUID="AF629B0B-2554-49FA-A245-CA5056495574">
    <tlp:Name>Ferie</tlp:Name>
    <tlp:Description>Ferie</tlp:Description>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:AccountType>Absence</tlp:AccountType>
    <tlp:BalanceFormat>Days</tlp:BalanceFormat>
    <tlp:Code>20</tlp:Code>
  </tlp:SalaryAccount>
  <tlp:SalaryAccount ID="2" GUID="462FFA42-BFCC-4DB7-ACF0-493AFFE0114F">
    <tlp:Name>Sygdom</tlp:Name>
    <tlp:Description>Sygdom</tlp:Description>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:AccountType>Absence</tlp:AccountType>
    <tlp:BalanceFormat>Hours</tlp:BalanceFormat>
    <tlp:Code>30</tlp:Code>
  </tlp:SalaryAccount>
  <tlp:SalaryAccount ID="3" GUID="26D4F401-B1DD-4117-8CBD-A1344F87C494">
    <tlp:Name>Flex</tlp:Name>
    <tlp:Description>Flex</tlp:Description>
    <tlp:IsActive>1</tlp:IsActive>
    <tlp:AccountType>Flex</tlp:AccountType>
    <tlp:BalanceFormat>Hours</tlp:BalanceFormat>
    <tlp:Code>10</tlp:Code>
  </tlp:SalaryAccount>
</tlp:SalaryAccounts>

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="SalaryAccounts" >
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="SalaryAccount" type="tlp:SalaryAccountRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="SalaryAccount_Key">
      <xsd:selector xpath=".//tlp:SalaryAccount" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="SalaryAccountRaw_Type">
    <xsd:sequence>
      <xsd:element name="Name" type="xsd:string" />
      <xsd:element name="Description" type="xsd:string" />
      <xsd:element name="IsActive" type="xsd:integer" />
      <xsd:element name="AccountType" type="xsd:string" />
      <xsd:element name="BalanceFormat" type="xsd:string" />
      <xsd:element name="Code" type="xsd:string" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
    <xsd:attribute name="GUID" type="xsd:string" use="required" />
  </xsd:complexType>

</xsd:schema>

Download the XSD