latestSwagger 2.02026-08-08454367651.1 KB

bd42075f6b02

ResourceOwnerTripV2

Get all trips that the user has access to

Only returns trips that the user have access to. If more then 60 days are requested it defaults to 30 days.

get/v1/resourceowner/trips

Query parameters

lastNumberOfDaysinteger

Optional enter last number of days to get trips for. Only supports up to 60 days back. If not speficied or more then 60 days are entered it searches 30 days back.

vehicleIdinteger

Optional vehicle id to get trips for

synchronizedboolean

Optional include synchronized trips (defaults to true)

fromUtcstring date-time

Retrieve trips from this date. (Can't be used if lastNumberOfDays is specified)

toUtcstring date-time

Retrieve trips to this date. (Can't be used if lastNumberOfDays is specified)

Response

Success

TripIdinteger
TripStartDateTimestring date-time
TripEndDateTimestring date-time
DistanceKilometersnumber double
FuelConsumptionInLitersnumber double
TripStartFormattedAddressstring
TripEndFormattedAddressstring
TripStartCustomAddressstring
TripEndCustomAddressstring
VehicleIdinteger
TripType0 | 1 | 2 | 3
DriverContactIdinteger
HasSpeedingViolationboolean
HasIdlingEventboolean
HasAccelerationEventboolean
HasAccidentboolean
HasTurningEventboolean
HasBrakingEventboolean
ParkedForMinutesUntilNextTripinteger
HasDrivingEventsboolean
CustomCategorystring
TripTagsstring
HideStartRouteboolean
HideEndRouteboolean
VehicleType0 | 1 | 2 | 3 | 4 | 5 | 6 | 255
TripApprovalStatus0 | 1 | 2 | 3
IsMergedboolean
HasGermanTaxRulesboolean
IsLockedboolean
LockReason0 | 1 | 2 | 4
TripStartCountrystring
TripStartPostalCodestring
TripEndCountrystring
TripEndPostalCodestring