POST api/TrackTimeRecords/GetRecords

Gets the list of Time entries based on advanced filtering.

Request Information

URI Parameters

None.

Body Parameters

Filter parameters

TrackTimeRecordsFilterPost
NameDescriptionTypeAdditional information
PageIndex

The requested page index

integer

None.

PageSize

The requested page size

integer

None.

LastUpdatedDateFromUtc

Filter by the date of the last track time record update - from.

date

None.

LastUpdatedDateUntilUtc

Filter by the date of the last track time record update - until.

date

None.

TicketId

Filter by the ticket id, if is set

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PageIndex": 1,
  "PageSize": 2,
  "LastUpdatedDateFromUtc": "2024-04-28T06:00:01.4320124+02:00",
  "LastUpdatedDateUntilUtc": "2024-04-28T06:00:01.4320124+02:00",
  "TicketId": 1
}

application/xml, text/xml

Sample:
<TrackTimeRecordsFilterPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <LastUpdatedDateFromUtc>2024-04-28T06:00:01.4320124+02:00</LastUpdatedDateFromUtc>
  <LastUpdatedDateUntilUtc>2024-04-28T06:00:01.4320124+02:00</LastUpdatedDateUntilUtc>
  <PageIndex>1</PageIndex>
  <PageSize>2</PageSize>
  <TicketId>1</TicketId>
</TrackTimeRecordsFilterPost>

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-04-18T02:03:39.5592655Z",
        "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-04-28T02:03:39.5592655Z",
        "DateOfImplementationUtc": "2024-04-20T02:03:39.5592655Z",
        "GeneralUnitLabel": "Km",
        "TimeUnit": null,
        "TotalPrice": 400.0,
        "Approved": true,
        "ApprovedChangedByUserProviderKey": null,
        "ApprovedChangedUtc": "2024-04-28T02:03:39.5592655Z",
        "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-04-18T02:03:39.5592655Z",
        "Currency": 1,
        "Price": 0.0,
        "CustomerId": null,
        "CustomerName": null,
        "DurationInSeconds": 18000,
        "FromUtc": "2024-04-27T21:03:39.5592655Z",
        "UntilUtc": "2024-04-28T02:03:39.5592655Z",
        "InvoiceState": 1,
        "TicketId": 1,
        "TicketREF": null,
        "TrackTimeProjectId": null,
        "TrackTimeProjectName": null,
        "Activity": {
          "Id": 1,
          "Name": "Default activity",
          "Type": 1
        },
        "LastUpdatedByUserProviderKey": null,
        "LastUpdatedUtc": "2024-04-28T02:03:39.5592655Z",
        "DateOfImplementationUtc": null,
        "GeneralUnitLabel": "Km",
        "TimeUnit": 3,
        "TotalPrice": 0.0,
        "Approved": true,
        "ApprovedChangedByUserProviderKey": null,
        "ApprovedChangedUtc": "2024-04-28T02:03:39.5592655Z",
        "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-04-28T02:03:39.5592655Z</ApprovedChangedUtc>
        <AssignedToUserFullName>John Doe</AssignedToUserFullName>
        <AssignedToUserProviderKey i:nil="true" />
        <Count>10</Count>
        <CreatedByUserFullName>John Doe</CreatedByUserFullName>
        <CreatedByUserProviderKey i:nil="true" />
        <CreatedUTC>2024-04-18T02:03:39.5592655Z</CreatedUTC>
        <Currency>CZK</Currency>
        <CustomerId i:nil="true" />
        <CustomerName i:nil="true" />
        <DateOfImplementationUtc>2024-04-20T02:03:39.5592655Z</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-04-28T02:03:39.5592655Z</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-04-28T02:03:39.5592655Z</ApprovedChangedUtc>
        <AssignedToUserFullName>John Doe</AssignedToUserFullName>
        <AssignedToUserProviderKey i:nil="true" />
        <Count i:nil="true" />
        <CreatedByUserFullName>John Doe</CreatedByUserFullName>
        <CreatedByUserProviderKey i:nil="true" />
        <CreatedUTC>2024-04-18T02:03:39.5592655Z</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-04-27T21:03:39.5592655Z</FromUtc>
        <GeneralUnitLabel>Km</GeneralUnitLabel>
        <Id>1</Id>
        <InvoiceDate i:nil="true" />
        <InvoiceNumber i:nil="true" />
        <InvoiceState>DoNotInvoice</InvoiceState>
        <LastUpdatedByUserProviderKey i:nil="true" />
        <LastUpdatedUtc>2024-04-28T02:03:39.5592655Z</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-04-28T02:03:39.5592655Z</UntilUtc>
      </GetTrackTimeRecordResult>
    </Items>
    <PageIndex>0</PageIndex>
    <PageSize>10</PageSize>
    <TotalItems>2</TotalItems>
    <TotalPages>1</TotalPages>
  </PagedTrackTimeRecords>
</GetTrackTimeRecordsResult>