Back to Service

Method Details for GetInvoiceLinesRawWithHeader.

Gets a list of invoice lines and optionally includes headers depending on the parameters provided

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • invoiceLineID Integer ID of specific invoiceline. Set to 0 to get all invoices
  • customerID Integer ID of specific customer. Set to 0 to get all customers
  • projectID Integer ID of specific project. Set to 0 to get all projects
  • invoiceID Integer ID of specific invoice. Set to 0 to get all invoices
  • startDate String Limits result to invoices with invoice date on or later than this date
  • endDate String Limits result to invoices with invoice date on or prior to this date
  • includeHeaders Boolean Indicates whether to include headers in the result

Returns

A list of invoice line objects in XML format

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="InvoiceLines" >
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="InvoiceLine" type="tlp:InvoiceLineRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="InvoiceLine_Key">
      <xsd:selector xpath=".//tlp:InvoiceLine" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="InvoiceLineRaw_Type">
    <xsd:sequence>
      <xsd:element name="InvoiceID" type="xsd:positiveInteger" />
      <xsd:element name="InvoiceNo" type="xsd:string" minOccurs="0" maxOccurs="1" />
      <xsd:element name="Date" type="xsd:dateTime" />
      <xsd:element name="Text" type="xsd:string" minOccurs="0" maxOccurs="1" />
      <xsd:element name="Quantity" type="xsd:decimal" />
      <xsd:element name="Rate" type="xsd:decimal" />
      <xsd:element name="RateSystemCurrency" type="xsd:decimal" />
      <xsd:element name="Amount" type="xsd:decimal" />
      <xsd:element name="AmountSystemCurrency" type="xsd:decimal" />
      <xsd:element name="ProjectID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
      <xsd:element name="ProjectName" type="xsd:string" minOccurs="0" maxOccurs="1" />
      <xsd:element name="ProjectNo" type="xsd:string" minOccurs="0" maxOccurs="1" />
      <xsd:element name="VAT" type="xsd:decimal" minOccurs="0" maxOccurs="1" />
      <xsd:element name="Discount" type="xsd:decimal" minOccurs="0" maxOccurs="1" />
      <xsd:element name="UnitType" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
      <xsd:element name="ProductNo" type="xsd:string" minOccurs="0" maxOccurs="1" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required"></xsd:attribute>
  </xsd:complexType>
  
</xsd:schema>

Download the XSD