Back to Service

Method Details for GetLegalEntitiesRaw.

Get a list of price groups

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • status Integer legal entity status

Returns

A list of legal entities in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:LegalEntities 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/LegalEntitiesRaw.xsd">

	<tlp:LegalEntity ID="1" GUID="A117F7EF-1532-E611-80E1-005056B220E2">
		<tlp:Name>Your company</tlp:Name>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:CurrencyISO>EUR</tlp:CurrencyISO>
		<tlp:Country>Danmark</tlp:Country>
	</tlp:LegalEntity>
	<tlp:LegalEntity ID="3" GUID="3A7BB7E9-A4E4-4E59-9776-345FBA9B715C">
		<tlp:Name>Genting (UK)</tlp:Name>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:CurrencyISO>GBP</tlp:CurrencyISO>
		<tlp:Country>Storbritannien</tlp:Country>
	</tlp:LegalEntity>
	<tlp:LegalEntity ID="2" GUID="93E722C7-3863-4B2B-A65F-A4AFCBC1BE22">
		<tlp:Name>Genting (MY)</tlp:Name>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:CurrencyISO>MYR</tlp:CurrencyISO>
		<tlp:Country>Malaysia</tlp:Country>
	</tlp:LegalEntity>
		<tlp:LegalEntity ID="4" GUID="99AA32A2-2183-4DA6-8324-B28BCF3BE773">
		<tlp:Name>Microsoft (MY)</tlp:Name>
		<tlp:IsActive>1</tlp:IsActive>
		<tlp:CurrencyISO>MYR</tlp:CurrencyISO>
		<tlp:Country>Malaysia</tlp:Country>
	</tlp:LegalEntity>
</tlp:LegalEntities>

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="LegalEntities">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="LegalEntity" type="tlp:LegalEntityRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="LegalEntity_Key">
      <xsd:selector xpath=".//tlp:LegalEntity" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="LegalEntityRaw_Type">
    <xsd:sequence>
	  <xsd:element name="Name" type="xsd:string" />
	  <xsd:element name="IsActive" type="xsd:positiveInteger" />
	  <xsd:element name="CurrencyISO" type="xsd:string" />
	  <xsd:element name="Country" 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