GET api/TrackTimeRecords/GetRecords?pageIndex={pageIndex}&pageSize={pageSize}

Gets a list of all track time records. Pagination is supported.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pageIndex

Optional page index (default is 0).

integer

None.

pageSize

Optional page size (default is 200).

integer

None.

Body Parameters

None.

Response Information

Resource Description

GetTrackTimeRecordsResult
NameDescriptionTypeAdditional information
PagedTrackTimeRecords

A page with Track time record rows.

GetTrackTimeRecordResult

None.

Response Formats

application/json, text/json

Sample:
{
  "PagedTrackTimeRecords": {
    "PageIndex": 0,
    "PageSize": 10,
    "TotalItems": 2,
    "TotalPages": 1,
    "Items": [
      {
        "Id": 1,
        "Description": "Visiting potencial new client",
        "AssignedToUserFullName": "John Doe",
        "AssignedToUserProviderKey": null,
        "Count": 10.0,
        "CreatedByUserFullName": "John Doe",
        "CreatedByUserProviderKey": null,
        "CreatedUTC": "2024-12-12T02:00:08.4487571Z",
        "Currency": 1,
        "Price": 40.0,
        "CustomerId": null,
        "CustomerName": null,
        "DurationInSeconds": null,
        "FromUtc": null,
        "UntilUtc": null,
        "InvoiceState": 1,
        "TicketId": null,
        "TicketREF": null,
        "TrackTimeProjectId": null,
        "TrackTimeProjectName": null,
        "Activity": {
          "Id": 2,
          "Name": "Travelling",
          "Type": 2
        },
        "LastUpdatedByUserProviderKey": null,
        "LastUpdatedUtc": "2024-12-22T02:00:08.4487571Z",
        "DateOfImplementationUtc": "2024-12-14T02:00:08.4487571Z",
        "GeneralUnitLabel": "Km",
        "TimeUnit": null,
        "TotalPrice": 400.0,
        "Approved": true,
        "ApprovedChangedByUserProviderKey": null,
        "ApprovedChangedUtc": "2024-12-22T02:00:08.4487571Z",
        "InvoiceDate": null,
        "InvoiceNumber": null,
        "SelectedCategories": null
      },
      {
        "Id": 1,
        "Description": "Report after meeting with client",
        "AssignedToUserFullName": "John Doe",
        "AssignedToUserProviderKey": null,
        "Count": null,
        "CreatedByUserFullName": "John Doe",
        "CreatedByUserProviderKey": null,
        "CreatedUTC": "2024-12-12T02:00:08.4487571Z",
        "Currency": 1,
        "Price": 0.0,
        "CustomerId": null,
        "CustomerName": null,
        "DurationInSeconds": 18000,
        "FromUtc": "2024-12-21T21:00:08.4487571Z",
        "UntilUtc": "2024-12-22T02:00:08.4487571Z",
        "InvoiceState": 1,
        "TicketId": 1,
        "TicketREF": null,
        "TrackTimeProjectId": null,
        "TrackTimeProjectName": null,
        "Activity": {
          "Id": 1,
          "Name": "Default activity",
          "Type": 1
        },
        "LastUpdatedByUserProviderKey": null,
        "LastUpdatedUtc": "2024-12-22T02:00:08.4487571Z",
        "DateOfImplementationUtc": null,
        "GeneralUnitLabel": "Km",
        "TimeUnit": 3,
        "TotalPrice": 0.0,
        "Approved": true,
        "ApprovedChangedByUserProviderKey": null,
        "ApprovedChangedUtc": "2024-12-22T02:00:08.4487571Z",
        "InvoiceDate": null,
        "InvoiceNumber": null,
        "SelectedCategories": null
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetTrackTimeRecordsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <PagedTrackTimeRecords>
    <Items>
      <GetTrackTimeRecordResult>
        <Activity xmlns:d5p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">
          <d5p1:Id>2</d5p1:Id>
          <d5p1:Name>Travelling</d5p1:Name>
          <d5p1:Type>General</d5p1:Type>
        </Activity>
        <Approved>true</Approved>
        <ApprovedChangedByUserProviderKey i:nil="true" />
        <ApprovedChangedUtc>2024-12-22T02:00:08.4487571Z</ApprovedChangedUtc>
        <AssignedToUserFullName>John Doe</AssignedToUserFullName>
        <AssignedToUserProviderKey i:nil="true" />
        <Count>10</Count>
        <CreatedByUserFullName>John Doe</CreatedByUserFullName>
        <CreatedByUserProviderKey i:nil="true" />
        <CreatedUTC>2024-12-12T02:00:08.4487571Z</CreatedUTC>
        <Currency>CZK</Currency>
        <CustomerId i:nil="true" />
        <CustomerName i:nil="true" />
        <DateOfImplementationUtc>2024-12-14T02:00:08.4487571Z</DateOfImplementationUtc>
        <Description>Visiting potencial new client</Description>
        <DurationInSeconds i:nil="true" />
        <FromUtc i:nil="true" />
        <GeneralUnitLabel>Km</GeneralUnitLabel>
        <Id>1</Id>
        <InvoiceDate i:nil="true" />
        <InvoiceNumber i:nil="true" />
        <InvoiceState>DoNotInvoice</InvoiceState>
        <LastUpdatedByUserProviderKey i:nil="true" />
        <LastUpdatedUtc>2024-12-22T02:00:08.4487571Z</LastUpdatedUtc>
        <Price>40</Price>
        <SelectedCategories xmlns:d5p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures" i:nil="true" />
        <TicketId i:nil="true" />
        <TicketREF i:nil="true" />
        <TimeUnit i:nil="true" />
        <TotalPrice>400</TotalPrice>
        <TrackTimeProjectId i:nil="true" />
        <TrackTimeProjectName i:nil="true" />
        <UntilUtc i:nil="true" />
      </GetTrackTimeRecordResult>
      <GetTrackTimeRecordResult>
        <Activity xmlns:d5p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">
          <d5p1:Id>1</d5p1:Id>
          <d5p1:Name>Default activity</d5p1:Name>
          <d5p1:Type>Time</d5p1:Type>
        </Activity>
        <Approved>true</Approved>
        <ApprovedChangedByUserProviderKey i:nil="true" />
        <ApprovedChangedUtc>2024-12-22T02:00:08.4487571Z</ApprovedChangedUtc>
        <AssignedToUserFullName>John Doe</AssignedToUserFullName>
        <AssignedToUserProviderKey i:nil="true" />
        <Count i:nil="true" />
        <CreatedByUserFullName>John Doe</CreatedByUserFullName>
        <CreatedByUserProviderKey i:nil="true" />
        <CreatedUTC>2024-12-12T02:00:08.4487571Z</CreatedUTC>
        <Currency>CZK</Currency>
        <CustomerId i:nil="true" />
        <CustomerName i:nil="true" />
        <DateOfImplementationUtc i:nil="true" />
        <Description>Report after meeting with client</Description>
        <DurationInSeconds>18000</DurationInSeconds>
        <FromUtc>2024-12-21T21:00:08.4487571Z</FromUtc>
        <GeneralUnitLabel>Km</GeneralUnitLabel>
        <Id>1</Id>
        <InvoiceDate i:nil="true" />
        <InvoiceNumber i:nil="true" />
        <InvoiceState>DoNotInvoice</InvoiceState>
        <LastUpdatedByUserProviderKey i:nil="true" />
        <LastUpdatedUtc>2024-12-22T02:00:08.4487571Z</LastUpdatedUtc>
        <Price>0</Price>
        <SelectedCategories xmlns:d5p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures" i:nil="true" />
        <TicketId>1</TicketId>
        <TicketREF i:nil="true" />
        <TimeUnit>Hour</TimeUnit>
        <TotalPrice>0</TotalPrice>
        <TrackTimeProjectId i:nil="true" />
        <TrackTimeProjectName i:nil="true" />
        <UntilUtc>2024-12-22T02:00:08.4487571Z</UntilUtc>
      </GetTrackTimeRecordResult>
    </Items>
    <PageIndex>0</PageIndex>
    <PageSize>10</PageSize>
    <TotalItems>2</TotalItems>
    <TotalPages>1</TotalPages>
  </PagedTrackTimeRecords>
</GetTrackTimeRecordsResult>