Back to Service

Method Details for GetCustomersShortList.

Gets a list of customers with key information only

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • customerStatusID Integer ID of specific Customer Status. Set to -1 to get all customers
  • accountManagerID Integer ID of an Employee. Set to 0 to get all customers

Returns

A list of customer objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:Customers 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/CustomersShortList.xsd">
  <tlp:Customer ID="3308">
    <tlp:Name>Microsoft</tlp:Name>
    <tlp:No>07.2626</tlp:No>
  </tlp:Customer>
  <tlp:Customer ID="3309">
    <tlp:Name>Oracle</tlp:Name>
    <tlp:No>07.2626</tlp:No>
  </tlp:Customer>
  <tlp:Customer ID="3310">
    <tlp:Name>Sun Microsystems</tlp:Name>
    <tlp:No>07.2626</tlp:No>
  </tlp:Customer>
</tlp:Customers>

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="Customers">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Customer" type="tlp:CustomerShort_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="Customer_Key">
      <xsd:selector xpath=".//tlp:Customer" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>
  
  <xsd:complexType name="CustomerShort_Type">
    <xsd:sequence>
      <xsd:element name="Name" type="xsd:string" />
      <xsd:element name="No" type="xsd:string" minOccurs="0" maxOccurs="1" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
  </xsd:complexType>

</xsd:schema>

Download the XSD