Skip to main content
GET
/
customer
/
{customerId}
/
journey
/
detail
/
driver
/
latest
Driver Journeys Latest
curl --request GET \
  --url https://api.masternautconnect.com/connect-webservices/services/public/v1/customer/{customerId}/journey/detail/driver/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,
      "driverId": "driver123",
      "driverGroupName": "Central Region Drivers",
      "vehicleId": "vehicle456"
    }
  ]
}

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

driverId
string

Identifier (alphanumeric) of a driver.
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 driverId has not been specified.

excludeChildGroups
boolean
default:false

Specifies if journeys for drivers 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 drivers

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