This API will give mileage and fuel wear for all on going trips.
Request
Add parameter in header x-api-key
Example:x-api-key: ********************
Body Params application/json
{
"acctId": "string",
"isDriverDetailsRequired": true
}
Request Code Samples
curl --location --request POST '/trips/ongoing-trips' \
--header 'token;' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"acctId": "string",
"isDriverDetailsRequired": true
}'
Responses
{
"status": 0,
"data": [
{
"fuelWear": "string",
"devId": "string",
"startTime": "string",
"endTime": "string",
"tripMileage": "string",
"startLocation": "string",
"endLocation": "string",
"startAddress": "string",
"endAddress": "string",
"vehicle": "string",
"drivers": [
"string"
]
}
]
}
Modified at 2025-02-28 08:12:14