GET api/ExpenseModelApi/GetExpenseByDriverID?driverId={driverId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
driverId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ExpenseModelApi
NameDescriptionTypeAdditional information
ID

integer

None.

Date

date

None.

ExpenseDepartmentName

string

None.

ExpenseDepartmentType

string

None.

DriverID

integer

None.

DriverName

string

None.

OwnerID

integer

None.

OwnerName

string

None.

TruckID

integer

None.

TruckName

string

None.

Amount

decimal number

None.

Note

string

None.

CreatedDateTime

date

None.

ModifiedDateTime

date

None.

Closed

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Date": "2024-10-04T18:37:36.5950117+00:00",
    "ExpenseDepartmentName": "sample string 3",
    "ExpenseDepartmentType": "sample string 4",
    "DriverID": 5,
    "DriverName": "sample string 6",
    "OwnerID": 7,
    "OwnerName": "sample string 8",
    "TruckID": 9,
    "TruckName": "sample string 10",
    "Amount": 11.1,
    "Note": "sample string 12",
    "CreatedDateTime": "2024-10-04T18:37:36.5950117+00:00",
    "ModifiedDateTime": "2024-10-04T18:37:36.5950117+00:00",
    "Closed": true
  },
  {
    "ID": 1,
    "Date": "2024-10-04T18:37:36.5950117+00:00",
    "ExpenseDepartmentName": "sample string 3",
    "ExpenseDepartmentType": "sample string 4",
    "DriverID": 5,
    "DriverName": "sample string 6",
    "OwnerID": 7,
    "OwnerName": "sample string 8",
    "TruckID": 9,
    "TruckName": "sample string 10",
    "Amount": 11.1,
    "Note": "sample string 12",
    "CreatedDateTime": "2024-10-04T18:37:36.5950117+00:00",
    "ModifiedDateTime": "2024-10-04T18:37:36.5950117+00:00",
    "Closed": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfExpenseModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ExpenseModelApi>
    <ID>1</ID>
    <Date>2024-10-04T18:37:36.5950117+00:00</Date>
    <ExpenseDepartmentName>sample string 3</ExpenseDepartmentName>
    <ExpenseDepartmentType>sample string 4</ExpenseDepartmentType>
    <DriverID>5</DriverID>
    <DriverName>sample string 6</DriverName>
    <OwnerID>7</OwnerID>
    <OwnerName>sample string 8</OwnerName>
    <TruckID>9</TruckID>
    <TruckName>sample string 10</TruckName>
    <Amount>11.1</Amount>
    <Note>sample string 12</Note>
    <CreatedDateTime>2024-10-04T18:37:36.5950117+00:00</CreatedDateTime>
    <ModifiedDateTime>2024-10-04T18:37:36.5950117+00:00</ModifiedDateTime>
    <Closed>true</Closed>
  </ExpenseModelApi>
  <ExpenseModelApi>
    <ID>1</ID>
    <Date>2024-10-04T18:37:36.5950117+00:00</Date>
    <ExpenseDepartmentName>sample string 3</ExpenseDepartmentName>
    <ExpenseDepartmentType>sample string 4</ExpenseDepartmentType>
    <DriverID>5</DriverID>
    <DriverName>sample string 6</DriverName>
    <OwnerID>7</OwnerID>
    <OwnerName>sample string 8</OwnerName>
    <TruckID>9</TruckID>
    <TruckName>sample string 10</TruckName>
    <Amount>11.1</Amount>
    <Note>sample string 12</Note>
    <CreatedDateTime>2024-10-04T18:37:36.5950117+00:00</CreatedDateTime>
    <ModifiedDateTime>2024-10-04T18:37:36.5950117+00:00</ModifiedDateTime>
    <Closed>true</Closed>
  </ExpenseModelApi>
</ArrayOfExpenseModelApi>