POST api/customer/trips/filter?limit={limit}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
limit

integer

Default value is 10

Body Parameters

TripSearchModel
NameDescriptionTypeAdditional information
OldestDateTime

date

None.

NewestDateTime

date

None.

VehiclePlate

string

None.

VehicleId

integer

None.

DriverId

string

None.

DriverDivisionId

integer

None.

CarDivisionId

integer

None.

Approved

boolean

None.

Private

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "OldestDateTime": "2026-03-31T11:07:42.0875669+00:00",
  "NewestDateTime": "2026-03-31T11:07:42.0875669+00:00",
  "VehiclePlate": "sample string 1",
  "VehicleId": 1,
  "DriverId": "sample string 2",
  "DriverDivisionId": 1,
  "CarDivisionId": 1,
  "Approved": true,
  "Private": true
}

application/xml, text/xml

Sample:
<TripSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Rest.Models">
  <Approved>true</Approved>
  <CarDivisionId>1</CarDivisionId>
  <DriverDivisionId>1</DriverDivisionId>
  <DriverId>sample string 2</DriverId>
  <NewestDateTime>2026-03-31T11:07:42.0875669+00:00</NewestDateTime>
  <OldestDateTime>2026-03-31T11:07:42.0875669+00:00</OldestDateTime>
  <Private>true</Private>
  <VehicleId>1</VehicleId>
  <VehiclePlate>sample string 1</VehiclePlate>
</TripSearchModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of TripSummaryModel
NameDescriptionTypeAdditional information
ID

integer

None.

VehiclePlate

string

None.

DriverID

integer

None.

StartTimeUtc

date

None.

StartTime

date

None.

EndTimeUtc

date

None.

EndTime

date

None.

FromAddressGps

string

None.

ToAddressGps

string

None.

FromAddress

string

None.

ToAddress

string

None.

Purpose

string

None.

Km

decimal number

None.

DriveTime

string

None.

DriveTimeInt

integer

None.

ManuallyAddedTrip

boolean

None.

Private

boolean

None.

Approved

boolean

None.

Name

string

None.

DriverName

string

None.

Score

integer

None.

StartPlaceId

integer

None.

EndPlaceId

integer

None.

Flags

Collection of string

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<ArrayOfTripSummaryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Backend.Models">
  <TripSummaryModel>
    <Approved>true</Approved>
    <DriveTime>00:00:11</DriveTime>
    <DriveTimeInt>11</DriveTimeInt>
    <DriverID>3</DriverID>
    <DriverName>sample string 16</DriverName>
    <EndPlaceId>1</EndPlaceId>
    <EndTimeUtc>2026-03-31T11:07:42.0875669+00:00</EndTimeUtc>
    <Flags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Flags>
    <FromAddressGps>sample string 6</FromAddressGps>
    <ID>1</ID>
    <Km>9.1</Km>
    <ManuallyAddedTrip>true</ManuallyAddedTrip>
    <Name>sample string 16</Name>
    <Private>true</Private>
    <Purpose>sample string 8</Purpose>
    <Score>1</Score>
    <StartPlaceId>1</StartPlaceId>
    <StartTimeUtc>2026-03-31T11:07:42.0875669+00:00</StartTimeUtc>
    <ToAddressGps>sample string 7</ToAddressGps>
    <VehiclePlate>sample string 2</VehiclePlate>
  </TripSummaryModel>
  <TripSummaryModel>
    <Approved>true</Approved>
    <DriveTime>00:00:11</DriveTime>
    <DriveTimeInt>11</DriveTimeInt>
    <DriverID>3</DriverID>
    <DriverName>sample string 16</DriverName>
    <EndPlaceId>1</EndPlaceId>
    <EndTimeUtc>2026-03-31T11:07:42.0875669+00:00</EndTimeUtc>
    <Flags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Flags>
    <FromAddressGps>sample string 6</FromAddressGps>
    <ID>1</ID>
    <Km>9.1</Km>
    <ManuallyAddedTrip>true</ManuallyAddedTrip>
    <Name>sample string 16</Name>
    <Private>true</Private>
    <Purpose>sample string 8</Purpose>
    <Score>1</Score>
    <StartPlaceId>1</StartPlaceId>
    <StartTimeUtc>2026-03-31T11:07:42.0875669+00:00</StartTimeUtc>
    <ToAddressGps>sample string 7</ToAddressGps>
    <VehiclePlate>sample string 2</VehiclePlate>
  </TripSummaryModel>
</ArrayOfTripSummaryModel>