GET api/Timesheets/{id}/expenses

Gets the timesheet Expenses for a single timesheet

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

timesheet Id

integer

Required

Body Parameters

None.

Response Information

Resource Description

COMPLETEThe Expenses array returns the Expenses for the particular timesheet.

Collection of TimesheetExpense
NameDescriptionTypeAdditional information
ProductSummaryId

integer

None.

TimesheetId

integer

None.

ProductCode

string

None.

Pay

decimal number

None.

GST

decimal number

None.

WorkDate

date

None.

TimesheetIntervalId

integer

None.

Comment

string

None.

CostCentre

string

None.

CostCode

string

None.

ProjectCode

string

None.

PurchaseOrder

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductSummaryId": 1,
    "TimesheetId": 2,
    "ProductCode": "sample string 3",
    "Pay": 1.0,
    "GST": 1.0,
    "WorkDate": "2024-06-29T07:23:16.9693932+10:00",
    "TimesheetIntervalId": 1,
    "Comment": "sample string 4",
    "CostCentre": "sample string 5",
    "CostCode": "sample string 6",
    "ProjectCode": "sample string 7",
    "PurchaseOrder": "sample string 8"
  },
  {
    "ProductSummaryId": 1,
    "TimesheetId": 2,
    "ProductCode": "sample string 3",
    "Pay": 1.0,
    "GST": 1.0,
    "WorkDate": "2024-06-29T07:23:16.9693932+10:00",
    "TimesheetIntervalId": 1,
    "Comment": "sample string 4",
    "CostCentre": "sample string 5",
    "CostCode": "sample string 6",
    "ProjectCode": "sample string 7",
    "PurchaseOrder": "sample string 8"
  }
]

text/xml

Sample:
<ArrayOfTimesheetExpense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <TimesheetExpense>
    <Comment>sample string 4</Comment>
    <CostCentre>sample string 5</CostCentre>
    <CostCode>sample string 6</CostCode>
    <GST>1</GST>
    <Pay>1</Pay>
    <ProductCode>sample string 3</ProductCode>
    <ProductSummaryId>1</ProductSummaryId>
    <ProjectCode>sample string 7</ProjectCode>
    <PurchaseOrder>sample string 8</PurchaseOrder>
    <TimesheetId>2</TimesheetId>
    <TimesheetIntervalId>1</TimesheetIntervalId>
    <WorkDate>2024-06-29T07:23:16.9693932+10:00</WorkDate>
  </TimesheetExpense>
  <TimesheetExpense>
    <Comment>sample string 4</Comment>
    <CostCentre>sample string 5</CostCentre>
    <CostCode>sample string 6</CostCode>
    <GST>1</GST>
    <Pay>1</Pay>
    <ProductCode>sample string 3</ProductCode>
    <ProductSummaryId>1</ProductSummaryId>
    <ProjectCode>sample string 7</ProjectCode>
    <PurchaseOrder>sample string 8</PurchaseOrder>
    <TimesheetId>2</TimesheetId>
    <TimesheetIntervalId>1</TimesheetIntervalId>
    <WorkDate>2024-06-29T07:23:16.9693932+10:00</WorkDate>
  </TimesheetExpense>
</ArrayOfTimesheetExpense>

multipart/form-data

Sample:
<ArrayOfTimesheetExpense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><TimesheetExpense><Comment>sample string 4</Comment><CostCentre>sample string 5</CostCentre><CostCode>sample string 6</CostCode><GST>1</GST><Pay>1</Pay><ProductCode>sample string 3</ProductCode><ProductSummaryId>1</ProductSummaryId><ProjectCode>sample string 7</ProjectCode><PurchaseOrder>sample string 8</PurchaseOrder><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><WorkDate>2024-06-29T07:23:16.9693932+10:00</WorkDate></TimesheetExpense><TimesheetExpense><Comment>sample string 4</Comment><CostCentre>sample string 5</CostCentre><CostCode>sample string 6</CostCode><GST>1</GST><Pay>1</Pay><ProductCode>sample string 3</ProductCode><ProductSummaryId>1</ProductSummaryId><ProjectCode>sample string 7</ProjectCode><PurchaseOrder>sample string 8</PurchaseOrder><TimesheetId>2</TimesheetId><TimesheetIntervalId>1</TimesheetIntervalId><WorkDate>2024-06-29T07:23:16.9693932+10:00</WorkDate></TimesheetExpense></ArrayOfTimesheetExpense>