Back to Service

Method Details for GetContractPaymentsRaw.

Gets a list of contract payments

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • projectID Integer ID of a Project. Set to 0 to get all projects
  • customerID Integer ID of specific customer. Set to 0 to get all customers
  • projectSubContractID Integer ID of a Project sub contract. Set to 0 to get all project sub contracts
  • startDate DateTime (yyyy-MM-dd) Start date of the period
  • endDate DateTime (yyyy-MM-dd) End date of the period

Returns

A list of contract customer objects in XML

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:ContractPayments 
  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/ContractPaymentsRaw.xsd">
  <tlp:ContractPayment ID="23165" GUID="44ACE21C-5809-4D23-8A0F-7041D2DF8E1E">
    <tlp:InvoiceDate>2011-06-04T00:00:00</tlp:InvoiceDate>
    <tlp:Rate>0.0000</tlp:Rate>
    <tlp:RateCurrency>0.0000</tlp:RateCurrency>
    <tlp:Discount>0.000000000000000e+000</tlp:Discount>
    <tlp:Quantity>1.000000000000000e+000</tlp:Quantity>
    <tlp:Name>10. Forberedelse / Efterbehandling</tlp:Name>
    <tlp:UnitType>0</tlp:UnitType>
    <tlp:Amount>0.0000</tlp:Amount>
    <tlp:AmountCurrency>0.0000</tlp:AmountCurrency>
    <tlp:IsReadyForInvoicing>1</tlp:IsReadyForInvoicing>
    <tlp:CustomerID>7968</tlp:CustomerID>
    <tlp:CustomerName>Your Company</tlp:CustomerName>
    <tlp:ProjectID>2001</tlp:ProjectID>
    <tlp:ProjectName>Your Sample Project</tlp:ProjectName>
    <tlp:ProjectSubContractCustomerID>1968</tlp:ProjectSubContractCustomerID>
    <tlp:CreatedAt>2011-05-25T12:28:55.590</tlp:CreatedAt>
    <tlp:CreatedByEmployeeId>3</tlp:CreatedByEmployeeId>
    <tlp:CreatedBy>SLU</tlp:CreatedBy>
    <tlp:LastModifiedAt>2011-05-25T12:28:55.590</tlp:LastModifiedAt>
    <tlp:LastModifiedByEmployeeId>3</tlp:LastModifiedByEmployeeId>
    <tlp:LastModifiedBy>SLU</tlp:LastModifiedBy>
  </tlp:ContractPayment>
  <tlp:ContractPayment ID="23166" GUID="3FE97EC2-FB84-48FA-A02F-0D4EE1D7B0AA">
    <tlp:InvoiceDate>2011-06-04T00:00:00</tlp:InvoiceDate>
    <tlp:Rate>0.0000</tlp:Rate>
    <tlp:RateCurrency>0.0000</tlp:RateCurrency>
    <tlp:Discount>0.000000000000000e+000</tlp:Discount>
    <tlp:Quantity>1.000000000000000e+000</tlp:Quantity>
    <tlp:Name>15. Rejsetid</tlp:Name>
    <tlp:UnitType>0</tlp:UnitType>
    <tlp:Amount>0.0000</tlp:Amount>
    <tlp:AmountCurrency>0.0000</tlp:AmountCurrency>
    <tlp:IsReadyForInvoicing>1</tlp:IsReadyForInvoicing>
    <tlp:CustomerID>7968</tlp:CustomerID>
    <tlp:CustomerName>Your Company</tlp:CustomerName>
    <tlp:ProjectID>2001</tlp:ProjectID>
    <tlp:ProjectName>Your Sample Project</tlp:ProjectName>
    <tlp:ProjectSubContractCustomerID>1968</tlp:ProjectSubContractCustomerID>
    <tlp:CreatedAt>2011-05-25T12:28:55.623</tlp:CreatedAt>
    <tlp:CreatedByEmployeeId>3</tlp:CreatedByEmployeeId>
    <tlp:CreatedBy>SLU</tlp:CreatedBy>
    <tlp:LastModifiedAt>2011-05-25T12:28:55.623</tlp:LastModifiedAt>
    <tlp:LastModifiedByEmployeeId>3</tlp:LastModifiedByEmployeeId>
    <tlp:LastModifiedBy>SLU</tlp:LastModifiedBy>
  </tlp:ContractPayment>
  <tlp:ContractPayment ID="23169" GUID="39DB8C32-0132-4F53-BB69-FB1262F534BD">
    <tlp:InvoiceDate>2011-06-05T00:00:00</tlp:InvoiceDate>
    <tlp:Rate>20000.0000</tlp:Rate>
    <tlp:RateCurrency>20000.0000</tlp:RateCurrency>
    <tlp:Discount>0.000000000000000e+000</tlp:Discount>
    <tlp:Quantity>1.000000000000000e+000</tlp:Quantity>
    <tlp:Name>20. Workshop 22-23. Juni</tlp:Name>
    <tlp:UnitType>0</tlp:UnitType>
    <tlp:Amount>20000.0000</tlp:Amount>
    <tlp:AmountCurrency>20000.0000</tlp:AmountCurrency>
    <tlp:IsReadyForInvoicing>1</tlp:IsReadyForInvoicing>
    <tlp:CustomerID>7968</tlp:CustomerID>
    <tlp:CustomerName>Your Company</tlp:CustomerName>
    <tlp:ProjectID>2001</tlp:ProjectID>
    <tlp:ProjectName>Your Sample Project</tlp:ProjectName>
    <tlp:ProjectSubContractCustomerID>1968</tlp:ProjectSubContractCustomerID>
    <tlp:CreatedAt>2011-05-25T12:30:08.467</tlp:CreatedAt>
    <tlp:CreatedByEmployeeId>3</tlp:CreatedByEmployeeId>
    <tlp:CreatedBy>SLU</tlp:CreatedBy>
    <tlp:LastModifiedAt>2011-05-25T12:30:08.513</tlp:LastModifiedAt>
    <tlp:LastModifiedByEmployeeId>3</tlp:LastModifiedByEmployeeId>
    <tlp:LastModifiedBy>SLU</tlp:LastModifiedBy>
  </tlp:ContractPayment>
  <tlp:ContractPayment ID="23170" GUID="4EB5A35C-645E-4328-B04E-328F85E699AB">
    <tlp:InvoiceDate>2011-06-09T00:00:00</tlp:InvoiceDate>
    <tlp:Rate>5000.0000</tlp:Rate>
    <tlp:RateCurrency>5000.0000</tlp:RateCurrency>
    <tlp:Discount>0.000000000000000e+000</tlp:Discount>
    <tlp:Quantity>1.000000000000000e+000</tlp:Quantity>
    <tlp:Name>25. Teknisk workshop</tlp:Name>
    <tlp:UnitType>0</tlp:UnitType>
    <tlp:Amount>5000.0000</tlp:Amount>
    <tlp:AmountCurrency>5000.0000</tlp:AmountCurrency>
    <tlp:IsReadyForInvoicing>1</tlp:IsReadyForInvoicing>
    <tlp:CustomerID>7968</tlp:CustomerID>
    <tlp:CustomerName>Your Company</tlp:CustomerName>
    <tlp:ProjectID>2001</tlp:ProjectID>
    <tlp:ProjectName>Your Sample Project</tlp:ProjectName>
    <tlp:ProjectSubContractCustomerID>1968</tlp:ProjectSubContractCustomerID>
    <tlp:CreatedAt>2011-05-25T12:30:08.513</tlp:CreatedAt>
    <tlp:CreatedByEmployeeId>3</tlp:CreatedByEmployeeId>
    <tlp:CreatedBy>SLU</tlp:CreatedBy>
    <tlp:LastModifiedAt>2011-05-25T12:30:08.530</tlp:LastModifiedAt>
    <tlp:LastModifiedByEmployeeId>3</tlp:LastModifiedByEmployeeId>
    <tlp:LastModifiedBy>SLU</tlp:LastModifiedBy>
  </tlp:ContractPayment>
</tlp:ContractPayments>

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="ContractPayments" >
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="ContractPayment" type="tlp:ContractPaymentRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="ContractPayment_Key">
      <xsd:selector xpath=".//tlp:ContractPayment" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="ContractPaymentRaw_Type">
    <xsd:sequence>
		<xsd:element name="InvoiceDate" type="xsd:dateTime" />
		<xsd:element name="Rate" type="xsd:decimal" />
		<xsd:element name="RateCurrency" type="xsd:decimal" />
		<xsd:element name="Discount" type="xsd:decimal" />
		<xsd:element name="Quantity" type="xsd:decimal" />
		<xsd:element name="Name" type="xsd:string" />
		<xsd:element name="UnitType" type="xsd:integer" />
		<xsd:element name="Amount" type="xsd:decimal" />
		<xsd:element name="AmountCurrency" type="xsd:decimal" />
		<xsd:element name="IsReadyForInvoicing" type="xsd:boolean" />
		<xsd:element name="CustomerID" type="xsd:integer" />
		<xsd:element name="CustomerName" type="xsd:string" />
		<xsd:element name="ProjectID" type="xsd:integer" />
		<xsd:element name="ProjectName" type="xsd:string" />
		<xsd:element name="ProjectSubContractCustomerID" type="xsd:integer" />
		<xsd:element name="CreatedAt" type="xsd:dateTime" />
		<xsd:element name="CreatedByEmployeeId" type="xsd:integer" />
		<xsd:element name="CreatedBy" type="xsd:string" />
		<xsd:element name="LastModifiedAt" type="xsd:dateTime" />
		<xsd:element name="LastModifiedByEmployeeId" type="xsd:integer" />
		<xsd:element name="LastModifiedBy" type="xsd:string" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
    <xsd:attribute name="GUID" type="xsd:string" use="required" />
  </xsd:complexType>

</xsd:schema>

Download the XSD