Back to Service

Method Details for GetCustomerStatusShortList.

Gets a list of customer statuses

Parameters

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

Returns

A list of customer status objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:CustomerStatuses 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/CustomerStatusesShortList.xsd">
  <tlp:CustomerStatus ID="13">
    <tlp:Name>10. Suspect</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="29">
    <tlp:Name>15. Prospect</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="7">
    <tlp:Name>20. Lead</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="30">
    <tlp:Name>25. Qualified Lead</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="31">
    <tlp:Name>30. Hot Lead</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="1">
    <tlp:Name>50. Customer</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="28">
    <tlp:Name>70. Compeditor</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="5">
    <tlp:Name>80.  Vendor</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="10">
    <tlp:Name>85. Partner</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="2">
    <tlp:Name>95. Supplier</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
  <tlp:CustomerStatus ID="12">
    <tlp:Name>98. Previous customer</tlp:Name>
    <tlp:CustomerStatusType>1</tlp:CustomerStatusType>
    <tlp:IsDefault>1</tlp:IsDefault>
    <tlp:IsActive>1</tlp:IsActive>
  </tlp:CustomerStatus>
</tlp:CustomerStatuses>

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="CustomerStatuses">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="CustomerStatus" type="tlp:CustomerStatusShort_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="CustomerStatus_Key">
      <xsd:selector xpath=".//tlp:CustomerStatus" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="CustomerStatusShort_Type">
    <xsd:sequence>
      <xsd:element name="Name" type="xsd:string" minOccurs="1" maxOccurs="1" />
      <xsd:element name="CustomerStatusType" type="xsd:integer" minOccurs="1" maxOccurs="1" />
      <xsd:element name="IsDefault" type="xsd:boolean" minOccurs="1" maxOccurs="1" />
      <xsd:element name="IsActive" type="xsd:boolean" minOccurs="1" maxOccurs="1" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required"></xsd:attribute>
  </xsd:complexType>

</xsd:schema>

Download the XSD