Method Details for GetPriceGroupsRaw.
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
- legalEntityId Integer Unique identification for your legal entity
- customerId Integer The customer ID
Returns
A list of price groups in XML format
Result Example
<?xml version="1.0" encoding="utf-8"?> <tlp:PriceGroups 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/PriceGroupsRaw.xsd"> <tlp:PriceGroup ID="1" GUID="A217F7EF-1532-E611-80E1-005056B220E2"> <tlp:Name>Denmark</tlp:Name> <tlp:LegalEntityID>1</tlp:LegalEntityID> <tlp:LegalEntityName>Your company</tlp:LegalEntityName> <tlp:CurrencyISO>EUR</tlp:CurrencyISO> <tlp:IsActive>1</tlp:IsActive> </tlp:PriceGroup> <tlp:PriceGroup ID="2" GUID="6B0FB9FC-967A-48A2-A7BC-A99700DC594E"> <tlp:Name>Default</tlp:Name> <tlp:LegalEntityID>2</tlp:LegalEntityID> <tlp:LegalEntityName>Genting (MY)</tlp:LegalEntityName> <tlp:CurrencyISO>MYR</tlp:CurrencyISO> <tlp:IsActive>1</tlp:IsActive> </tlp:PriceGroup> <tlp:PriceGroup ID="3" GUID="F77576E9-C5DD-48C6-A909-A99700DCAAE0"> <tlp:Name>USD</tlp:Name> <tlp:LegalEntityID>2</tlp:LegalEntityID> <tlp:LegalEntityName>Genting (MY)</tlp:LegalEntityName> <tlp:CurrencyISO>USD</tlp:CurrencyISO> <tlp:IsActive>1</tlp:IsActive> </tlp:PriceGroup> <tlp:PriceGroup ID="4" GUID="FEDBFBBC-BE53-4DFF-9953-A99700DD1134"> <tlp:Name>Default</tlp:Name> <tlp:LegalEntityID>2</tlp:LegalEntityID> <tlp:LegalEntityName>Genting (MY)</tlp:LegalEntityName> <tlp:CustomerID>672</tlp:CustomerID> <tlp:CustomerName>Inscale</tlp:CustomerName> <tlp:CurrencyISO>MYR</tlp:CurrencyISO> <tlp:IsActive>1</tlp:IsActive> </tlp:PriceGroup> <tlp:PriceGroup ID="5" GUID="FB24AECF-72E0-4BAD-806E-A99700DD1134"> <tlp:Name>usd</tlp:Name> <tlp:LegalEntityID>2</tlp:LegalEntityID> <tlp:LegalEntityName>Genting (MY)</tlp:LegalEntityName> <tlp:CustomerID>672</tlp:CustomerID> <tlp:CustomerName>Inscale</tlp:CustomerName> <tlp:CurrencyISO>USD</tlp:CurrencyISO> <tlp:IsActive>1</tlp:IsActive> </tlp:PriceGroup> <tlp:PriceGroup ID="6" GUID="10D84513-7083-4488-B50A-A99700E7E903"> <tlp:Name>Denmark</tlp:Name> <tlp:LegalEntityID>1</tlp:LegalEntityID> <tlp:LegalEntityName>Your company</tlp:LegalEntityName> <tlp:CustomerID>672</tlp:CustomerID> <tlp:CustomerName>Inscale</tlp:CustomerName> <tlp:CurrencyISO>EUR</tlp:CurrencyISO> <tlp:IsActive>1</tlp:IsActive> </tlp:PriceGroup> </tlp:PriceGroups>
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="PriceGroups"> <xsd:complexType> <xsd:sequence> <xsd:element name="PriceGroup" type="tlp:PriceGroupRaw_Type" minOccurs="0" maxOccurs="unbounded" /> </xsd:sequence> </xsd:complexType> <xsd:key name="PriceGroup_Key"> <xsd:selector xpath=".//tlp:PriceGroup" /> <xsd:field xpath="@ID" /> </xsd:key> </xsd:element> <xsd:complexType name="PriceGroupRaw_Type"> <xsd:sequence> <xsd:element name="Name" type="xsd:string" /> <xsd:element name="LegalEntityID" type="xsd:positiveInteger" /> <xsd:element name="LegalEntityName" type="xsd:string" /> <xsd:element name="CustomerID" type="xsd:positiveInteger" /> <xsd:element name="CustomerName" type="xsd:string" /> <xsd:element name="CurrencyISO" type="xsd:string" /> <xsd:element name="IsActive" type="xsd:positiveInteger" /> </xsd:sequence> <xsd:attribute name="ID" type="xsd:positiveInteger" use="optional" /> <xsd:attribute name="GUID" type="xsd:string" use="optional" /> </xsd:complexType> </xsd:schema>