GET api/Timesheets/{id}/allowances

Gets the timesheet allowances for a single timesheet

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

timesheet Id

integer

Required

Body Parameters

None.

Response Information

Resource Description

COMPLETEThe Allowances array returns the Allowances for the particular timesheet.

Collection of TimesheetAllowance
NameDescriptionTypeAdditional information
ProductSummaryId

integer

None.

TimesheetId

integer

None.

ProductCode

string

None.

Quantity

decimal number

None.

WorkDate

date

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",
    "Quantity": 1.0,
    "WorkDate": "2024-06-29T07:41:00.5337359+10:00",
    "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",
    "Quantity": 1.0,
    "WorkDate": "2024-06-29T07:41:00.5337359+10:00",
    "Comment": "sample string 4",
    "CostCentre": "sample string 5",
    "CostCode": "sample string 6",
    "ProjectCode": "sample string 7",
    "PurchaseOrder": "sample string 8"
  }
]

text/xml

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

multipart/form-data

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