POST api/TrackTimeRecords/Summation
Request Information
URI Parameters
None.
Body Parameters
TrackTimeRecordSummationPostName | Description | Type | Additional information |
---|---|---|---|
TrackTimeRecordIds |
Filter by tra |
Collection of integer |
None. |
InvoiceDateFromUtc |
Filter by invoiced date |
date |
None. |
InvoiceDateToUtc |
Filter by invoiced date |
date |
None. |
DateOfImplementationFromUtc |
Filter by DateOfImplementation |
date |
None. |
DateOfImplementationToUtc |
Filter by DateOfImplementation |
date |
None. |
TicketId |
Filter by ticket id |
integer |
None. |
TicketsSubject |
Filter by ticket's subject |
string |
None. |
GroupId |
Filter by track time group |
integer |
None. |
AssignedUserProviderKeys |
Filter by assigned user |
Collection of string |
None. |
CreatorUserProviderKeys |
Filter by creator |
Collection of string |
None. |
ActivityId |
Filter by activity id |
integer |
None. |
CustomerId |
Filter by customer id |
integer |
None. |
InvoiceStates |
Filter by invoice state |
Collection of InvoiceStateEnum |
None. |
Approved |
Filter by approved |
boolean |
None. |
CategoryItemIds |
Filter by category item ids |
Collection of integer |
None. |
Request Formats
application/json, text/json
{ "TrackTimeRecordIds": [ 1, 2 ], "InvoiceDateFromUtc": "2024-12-22T23:21:36.6394067+01:00", "InvoiceDateToUtc": "2024-12-22T23:21:36.6394067+01:00", "DateOfImplementationFromUtc": "2024-12-22T23:21:36.6394067+01:00", "DateOfImplementationToUtc": "2024-12-22T23:21:36.6394067+01:00", "TicketId": 1, "TicketsSubject": "sample string 1", "GroupId": 1, "AssignedUserProviderKeys": [ "sample string 1", "sample string 2" ], "CreatorUserProviderKeys": [ "sample string 1", "sample string 2" ], "ActivityId": 1, "CustomerId": 1, "InvoiceStates": [ 1, 1 ], "Approved": true, "CategoryItemIds": [ 1, 2 ] }
application/xml, text/xml
<TrackTimeRecordSummationPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <ActivityId>1</ActivityId> <Approved>true</Approved> <AssignedUserProviderKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </AssignedUserProviderKeys> <CategoryItemIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </CategoryItemIds> <CreatorUserProviderKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </CreatorUserProviderKeys> <CustomerId>1</CustomerId> <DateOfImplementationFromUtc>2024-12-22T23:21:36.6394067+01:00</DateOfImplementationFromUtc> <DateOfImplementationToUtc>2024-12-22T23:21:36.6394067+01:00</DateOfImplementationToUtc> <GroupId>1</GroupId> <InvoiceDateFromUtc>2024-12-22T23:21:36.6394067+01:00</InvoiceDateFromUtc> <InvoiceDateToUtc>2024-12-22T23:21:36.6394067+01:00</InvoiceDateToUtc> <InvoiceStates xmlns:d2p1="http://schemas.datacontract.org/2004/07/Requestor.Domain.Model.Enumerations"> <d2p1:InvoiceStateEnum>DoNotInvoice</d2p1:InvoiceStateEnum> <d2p1:InvoiceStateEnum>DoNotInvoice</d2p1:InvoiceStateEnum> </InvoiceStates> <TicketId>1</TicketId> <TicketsSubject>sample string 1</TicketsSubject> <TrackTimeRecordIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </TrackTimeRecordIds> </TrackTimeRecordSummationPost>
Response Information
Resource Description
Collection of TrackTimeRecordSummationResultName | Description | Type | Additional information |
---|---|---|---|
Currency |
Currency |
CurrencyEnum |
None. |
ActivityName |
Activity name |
string |
None. |
UnitLabel |
Unit label is used when Type is set to General |
string |
None. |
DurationInSeconds |
Total duration in second is used when Type is set to Time |
integer |
None. |
Time |
Total time in timespan is used when Type is set to Time |
time interval |
None. |
Count |
Count is used when Type is set to General |
decimal number |
None. |
ActivityType |
Activity type |
ActivityTypeEnum |
None. |
TotalPrice |
Total price |
decimal number |
None. |
Response Formats
application/json, text/json
[ { "Currency": 1, "ActivityName": "sample string 1", "UnitLabel": "sample string 2", "DurationInSeconds": 1, "Time": "00:00:00.1234567", "Count": 1.1, "ActivityType": 1, "TotalPrice": 3.1 }, { "Currency": 1, "ActivityName": "sample string 1", "UnitLabel": "sample string 2", "DurationInSeconds": 1, "Time": "00:00:00.1234567", "Count": 1.1, "ActivityType": 1, "TotalPrice": 3.1 } ]
application/xml, text/xml
<ArrayOfTrackTimeRecordSummationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results"> <TrackTimeRecordSummationResult> <ActivityName>sample string 1</ActivityName> <ActivityType>Time</ActivityType> <Count>1.1</Count> <Currency>CZK</Currency> <DurationInSeconds>1</DurationInSeconds> <Time>PT0.1234567S</Time> <TotalPrice>3.1</TotalPrice> <UnitLabel>sample string 2</UnitLabel> </TrackTimeRecordSummationResult> <TrackTimeRecordSummationResult> <ActivityName>sample string 1</ActivityName> <ActivityType>Time</ActivityType> <Count>1.1</Count> <Currency>CZK</Currency> <DurationInSeconds>1</DurationInSeconds> <Time>PT0.1234567S</Time> <TotalPrice>3.1</TotalPrice> <UnitLabel>sample string 2</UnitLabel> </TrackTimeRecordSummationResult> </ArrayOfTrackTimeRecordSummationResult>