x-api-key: ********************
true
if you want to include Driver Details for the Trip in the response. This field is optional with default as false.true
if you want to include the Safety Score for the Trip in the response. This field is optional with default as false.{
"acctId": "string",
"devId": "string",
"startDate": "stringst",
"endDate": "stringst",
"isDriverDetailsRequired": false,
"isTripScoreRequired": false
}
curl --location --request POST '/trips/history' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"acctId": "string",
"devId": "string",
"startDate": "stringst",
"endDate": "stringst",
"isDriverDetailsRequired": false,
"isTripScoreRequired": false
}'
{
"trips": [
{
"fuelWear": "string",
"devId": "string",
"startTime": "string",
"endTime": "string",
"tripMileage": "string",
"startLocation": "string",
"endLocation": "string",
"startAddress": "string",
"endAddress": "string",
"vehicle": "string",
"drivers": [
"string"
],
"tripScore": "string"
}
]
}