Skip to main content
GET
/
customer
/
{customerId}
/
journey
/
detail
/
vehicle
/
latest
Vehicle Journeys Latest
curl --request GET \
  --url https://api.masternautconnect.com/connect-webservices/services/public/v1/customer/{customerId}/journey/detail/vehicle/latest \
  --header 'Authorization: Bearer <token>'
{
  "totalCount": 123,
  "processedDateTime": "2023-11-07T05:31:56Z",
  "items": [
    {
      "vehicleRegistration": "AB12 CDE",
      "vehicleName": "Fleet Vehicle 1",
      "startDateTime": "2023-11-07T05:31:56Z",
      "endDateTime": "2023-11-07T05:31:56Z",
      "journeyDurationSeconds": 123,
      "startCoordinate": {
        "latitude": 123,
        "longitude": 123
      },
      "endCoordinate": {
        "latitude": 123,
        "longitude": 123
      },
      "startAddress": "<string>",
      "endAddress": "<string>",
      "distanceKilometres": 123,
      "averageSpeedKph": 123,
      "maxSpeedKph": 123,
      "fuelUsedLitres": 123,
      "co2EmissionGrams": 123,
      "vehicleId": "vehicle123",
      "driverId": "driver456"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerId
string
required

The customer identifier

Query Parameters

fromDateTime
string<date-time>

Include journeys that have completed since this date, in UTC, in the format of YYYY-MM-DDThh:mm:ss.ms

vehicleId
string

Identifier (alphanumeric) of a vehicle.
Must be specified if a value for groupId has not been specified.

groupId
string

Identifier (alphanumeric) of a group.
Must be specified if a value for vehicleId has not been specified.

excludeChildGroups
boolean
default:false

Specifies if journeys for vehicles in child groups should be excluded and not included in the response.
If not specified, then will default to a false, so journeys for vehicles in child groups are included.

Response

Journey details successfully returned

Response containing latest journey details for vehicles

totalCount
integer

Total number of journeys that matched the search parameters

processedDateTime
string<date-time>

Date and time when the request was completed, in UTC, in format of YYYY-MM-DDThh:mm:ss.ms

items
object[]

Array of journey details