id
string
required
Example:

"trp_01D9ZQFGHVJ858NBF2Q7DV9MNH"

sourceId
string
required

The ID used to represent the entity in the source system.

Example:

"123456789"

vehicle
required

The ID of the vehicle that was involved in the trip.

Example:

"vcl_01D8ZQFGHVJ858NBF2Q7DV9MNC"

provider
string
required

Every provider has a unique code to identify it across Terminal's system. You can find each provider's code under provider details.

Example:

"geotab"

startedAt
string
required

The time the trip started

Example:

"2021-01-06T03:24:53.000Z"

endedAt
string
required

The time the trip ended

Example:

"2021-01-06T03:24:53.000Z"

duration
integer
required

Duration in MS

Required range: x >= 0
Example:

0

metadata
object
required

Internal metadata about the record.

driver

The ID of the driver that was driving during the trip.

Example:

"drv_01D8ZQFGHVJ858NBF2Q7DV9MNC"

startLocation
object
endLocation
object
distance
number

Distance in kilometers

Example:

100

raw
object[]

Raw data fetched from the source provider. Most of our endpoints support a raw query parameter that will append a list of the raw requests used to form our common model. This can be helpful for leveraging unique fields that are not part of our unified model.

Example:
[]