Method Details for GetSalesSplitsRaw.
Get a list of sales splits
Parameters
- siteCode String Unique identification for your TimeLog account
- apiID String The API ID
- apiPassword String The API password
- projectID Integer ID of specific project. Set to 0 to get all projects
- status Integer 0 for inactive projects; 1 for active projects; -2 for all projects
- customerID Integer ID of specific customer. Set to 0 to get all projects
- projectManagerID Integer ID of specific employee. Set to 0 to get all projects
Returns
A list of sales splits in standard XML document
Result Example
<?xml version="1.0" encoding="utf-8"?>
<tlp:SalesSplits
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/SalesSplitsRaw.xsd" >
<tlp:SalesSplit ID="1">
<tlp:ProjectID>28246</tlp:ProjectID>
<tlp:EmployeeID>156</tlp:EmployeeID>
<tlp:SplitType>Dynamic</tlp:SplitType>
<tlp:SplitPercentage>100.00000000</tlp:SplitPercentage>
<tlp:SplitAmount>0.0000</tlp:SplitAmount>
<tlp:EmployeeLegalEntityID>1</tlp:EmployeeLegalEntityID>
<tlp:SystemCurrencySplitAmount>0.0000</tlp:SystemCurrencySplitAmount>
</tlp:SalesSplit>
</tlp:SalesSplits>
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="SalesSplits">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="SalesSplit" type="tlp:SalesSplitRaw_Type" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:key name="SalesSplit_Key">
<xsd:selector xpath=".//tlp:SalesSplit" />
<xsd:field xpath="@ID" />
</xsd:key>
</xsd:element>
<xsd:complexType name="SalesSplitRaw_Type">
<xsd:sequence>
<xsd:element name="ProjectID" type="xsd:positiveInteger" />
<xsd:element name="EmployeeID" type="xsd:positiveInteger" />
<xsd:element name="SplitType" type="xsd:string" />
<xsd:element name="SplitPercentage" type="xsd:decimal" />
<xsd:element name="SplitAmount" type="xsd:decimal" />
<xsd:element name="EmployeeLegalEntityID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
<xsd:element name="SystemCurrencySplitAmount" type="xsd:decimal" />
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
</xsd:complexType>
</xsd:schema>