GET api/customer/tripreport?month={month}&year={year}&vehicleid={vehicleid}&driverid={driverid}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| month | integer |
Required |
|
| year | integer |
Required |
|
| vehicleid | integer |
None. |
|
| driverid | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
DriverReport| Name | Description | Type | Additional information |
|---|---|---|---|
| Header | ReportHeader |
None. |
|
| Summary | ReportSummary |
None. |
|
| Entries | Collection of ReportEntry |
None. |
Response Formats
application/json, text/json
Sample:
{
"Header": {
"Driver": "sample string 1",
"Year": 2,
"Month": 3,
"Company": "sample string 4"
},
"Summary": {
"CompanyKm": 1.1,
"PrivateKm": 2.1,
"TotalKm": 3.1,
"Expenses": 4.1,
"Trips": 5,
"TripsApproved": 6,
"TripsPrivate": 7,
"TripsUnApproved": 8
},
"Entries": [
{
"Date": "2026-03-31T11:10:52.458867+00:00",
"Plate": "sample string 2",
"FromAddress": "sample string 3",
"ToAddress": "sample string 4",
"Comment": "sample string 5",
"Km": 6.1,
"PrivateTrip": true,
"ApprovedTrip": true,
"Purpose": "sample string 9"
},
{
"Date": "2026-03-31T11:10:52.458867+00:00",
"Plate": "sample string 2",
"FromAddress": "sample string 3",
"ToAddress": "sample string 4",
"Comment": "sample string 5",
"Km": 6.1,
"PrivateTrip": true,
"ApprovedTrip": true,
"Purpose": "sample string 9"
}
]
}
application/xml, text/xml
Sample:
<DriverReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Backend.Services">
<Entries>
<DriverReport.ReportEntry>
<ApprovedTrip>true</ApprovedTrip>
<Comment>sample string 5</Comment>
<Date>2026-03-31T11:10:52.458867+00:00</Date>
<FromAddress>sample string 3</FromAddress>
<Km>6.1</Km>
<Plate>sample string 2</Plate>
<PrivateTrip>true</PrivateTrip>
<Purpose>sample string 9</Purpose>
<ToAddress>sample string 4</ToAddress>
</DriverReport.ReportEntry>
<DriverReport.ReportEntry>
<ApprovedTrip>true</ApprovedTrip>
<Comment>sample string 5</Comment>
<Date>2026-03-31T11:10:52.458867+00:00</Date>
<FromAddress>sample string 3</FromAddress>
<Km>6.1</Km>
<Plate>sample string 2</Plate>
<PrivateTrip>true</PrivateTrip>
<Purpose>sample string 9</Purpose>
<ToAddress>sample string 4</ToAddress>
</DriverReport.ReportEntry>
</Entries>
<Header>
<Company>sample string 4</Company>
<Driver>sample string 1</Driver>
<Month>3</Month>
<Year>2</Year>
</Header>
<Summary>
<CompanyKm>1.1</CompanyKm>
<Expenses>4.1</Expenses>
<PrivateKm>2.1</PrivateKm>
<TotalKm>3.1</TotalKm>
<Trips>5</Trips>
<TripsApproved>6</TripsApproved>
<TripsPrivate>7</TripsPrivate>
<TripsUnApproved>8</TripsUnApproved>
</Summary>
</DriverReport>