FleetUp API Docs
  1. Account & User & Device
FleetUp API Docs
  • Quick Start
    • Your First API Call
    • Token Expiration
    • Rate Limit
    • Error Codes
  • API Reference
    • Introduction
    • Authentication
      • /token
      • Obtain JWT Token
    • Account & User & Device
      • /account-info
        POST
      • /users
        GET
      • /drivers/list
        GET
      • /devices
        POST
      • /devices/status
        POST
      • /devices/unlock
        POST
      • /devices/driver-overview
        POST
      • /devices/engine-hours
        POST
      • /devices/fuel-level
        POST
      • /devices/odometer
        POST
      • /devices/latest-ecu-data
        POST
      • /devices/{device-id}
        PUT
      • /devices/{device-type}
        GET
      • /devices/{device-type}/details
        POST
      • /devices/{device-type}/history
        POST
    • Trips
      • /trips/history
      • /trips/ongoing-trips
    • Trip Share
      • /tripshare/live-eta
      • /tripshare/partners
      • /tripshare/share
    • Alerts
      • /alerts/summary
      • /alerts/history
      • /alerts/bulk-history
      • /fencealerts/fence-names
      • /fencealerts/geo-fencealerts
    • Location
      • Retrieve GPS data within a 24-hour time range
      • /gpsdata/device-last-location
      • /gpsdata/latest
      • /gpsdata/latest/4cj
      • /gpsdata/latest/5ta
      • /bulk-gpsdata
    • Maintenance
      • /maintenance/history
      • /maintenance/indicators
      • /maintenance/settings/indicators
      • /maintenance/settings/measurements
    • Reports
      • /reports/temperature-sensors
      • /reports/{report-key}
    • Geofence
      • Get all fences
      • Get fence detail
      • Retrieve geofence alerts
    • Others
      • /jobs
  • API Guides
    • Retrieve All Devices from an Enterprise
  1. Account & User & Device

/devices/engine-hours

POST
/devices/engine-hours
This API will give engine hours of given devices.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Header Params
token
string 
required
Access token which was generated earlier
Body Params application/json
acctId
string 
required
Account ID
devIds
string 
required
Device id list, Comma separated String
Example
{
    "acctId": "string",
    "devIds": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/devices/engine-hours' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "acctId": "string",
    "devIds": "string"
}'

Responses

🟢200成功
application/json
200 response
Body
engineHourData
array [object {4}] 
optional
devId
string 
optional
Device ID
systemEngineHour
number 
optional
Engine hours calculated through trip data in seconds
ecuengineHour
number 
optional
Engine hours obtained from ECU data rounded off in hours
preference
number 
optional
Engine Hour Preference: 0:ECU, 1:System, 2:User, etc; For ELD(TYPE:1), 0=diable, 1=enable.
Example
{
    "engineHourData": [
        {
            "devId": "string",
            "systemEngineHour": 0,
            "ecuengineHour": 0,
            "preference": 0
        }
    ]
}
Modified at 2025-02-28 08:12:14
Previous
/devices/driver-overview
Next
/devices/fuel-level
Built with