POST api/Subcontracts/{subcontractId}/Timesheets/Query

Get time sheets

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subcontractId

integer

Required

Body Parameters

TimesheetsPagedFilter
NameDescriptionTypeAdditional information
DateFrom

Collection of date

None.

DateTo

Collection of date

None.

TmsrNumber

string

None.

ProposedTrade

string

None.

ApprovedTrade

string

None.

TimesheetCode

string

None.

TimesheetStatusId

TimesheetStatusId

None.

TimesheetDescription

string

None.

TimesheetId

integer

None.

TimesheetVersionId

integer

None.

IsInactivePending

boolean

None.

RevisionPending

boolean

None.

Page

Page

None.

Orders

Collection of Order

None.

Request Formats

application/json, text/json

Sample:
{
  "dateFrom": [
    "2026-05-08T17:16:46.9363652+02:00",
    "2026-05-08T17:16:46.9363652+02:00"
  ],
  "dateTo": [
    "2026-05-08T17:16:46.9363652+02:00",
    "2026-05-08T17:16:46.9363652+02:00"
  ],
  "tmsrNumber": "sample string 2",
  "proposedTrade": "sample string 3",
  "approvedTrade": "sample string 4",
  "timesheetCode": "sample string 5",
  "timesheetStatusId": 1,
  "timesheetDescription": "sample string 6",
  "timesheetId": 1,
  "timesheetVersionId": 1,
  "isInactivePending": true,
  "revisionPending": true,
  "page": {
    "number": 1,
    "size": 2,
    "skip": 0
  },
  "orders": [
    {
      "name": "sample string 1",
      "descending": true
    },
    {
      "name": "sample string 1",
      "descending": true
    }
  ]
}

text/html

Sample:
{"dateFrom":["2026-05-08T17:16:46.9363652+02:00","2026-05-08T17:16:46.9363652+02:00"],"dateTo":["2026-05-08T17:16:46.9363652+02:00","2026-05-08T17:16:46.9363652+02:00"],"tmsrNumber":"sample string 2","proposedTrade":"sample string 3","approvedTrade":"sample string 4","timesheetCode":"sample string 5","timesheetStatusId":1,"timesheetDescription":"sample string 6","timesheetId":1,"timesheetVersionId":1,"isInactivePending":true,"revisionPending":true,"page":{"number":1,"size":2,"skip":0},"orders":[{"name":"sample string 1","descending":true},{"name":"sample string 1","descending":true}]}

application/xml, text/xml

Sample:
<TimesheetsPagedFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.TimesheetsAgg">
  <Orders xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities">
    <Order>
      <Descending>true</Descending>
      <Name>sample string 1</Name>
    </Order>
    <Order>
      <Descending>true</Descending>
      <Name>sample string 1</Name>
    </Order>
  </Orders>
  <Page xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities">
    <Number>1</Number>
    <Size>2</Size>
  </Page>
  <ApprovedTrade>sample string 4</ApprovedTrade>
  <DateFrom xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:dateTime>2026-05-08T17:16:46.9363652+02:00</d2p1:dateTime>
    <d2p1:dateTime>2026-05-08T17:16:46.9363652+02:00</d2p1:dateTime>
  </DateFrom>
  <DateTo xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:dateTime>2026-05-08T17:16:46.9363652+02:00</d2p1:dateTime>
    <d2p1:dateTime>2026-05-08T17:16:46.9363652+02:00</d2p1:dateTime>
  </DateTo>
  <IsInactivePending>true</IsInactivePending>
  <ProposedTrade>sample string 3</ProposedTrade>
  <RevisionPending>true</RevisionPending>
  <TimesheetCode>sample string 5</TimesheetCode>
  <TimesheetDescription>sample string 6</TimesheetDescription>
  <TimesheetId>1</TimesheetId>
  <TimesheetStatusId>Draft</TimesheetStatusId>
  <TimesheetVersionId>1</TimesheetVersionId>
  <TmsrNumber>sample string 2</TmsrNumber>
</TimesheetsPagedFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataResultOfIPagedListOfTimesheetsDto
NameDescriptionTypeAdditional information
Data

IPagedListOfTimesheetsDto

None.

Success

boolean

None.

Message

string

None.

Errors

Collection of CustomError

None.

Warnings

Collection of string

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.