User Manual
Version 7.6
×

API for getting report data

Example:
 
https://<address>/api/api.php?cmd=get_report
 
Required parameters table
 
Parameter
Type
Example
Description
cmd
string
get_report
Command to get report data
report_type
int
1
Report type
start
int
1724623200
Sample start time (unixtimestamp)
stop
int
1724709600
Sample stop time (unixtimestamp)
veh_id
string
1234,5678
List of vehicles (agent IDs) separated by comma
explode
int
1
Separate report data by (1 - days, 2 - weeks, 3 - do not separate)
group
int
1
Grouping report data by (1 - days, 2 - objects, 3 - zones, 4 - drivers, 5 - clients, 6 - groups, 7 - tags)
format
string
json
Data report response (json, pdf, xls)
tz
string
Africa/Johannesburg
Time zone report (see API https://<address>/api/api.php?cmd=get_time_zones)
 
 
 
Additional parameters table
 
Parameter
Type
Example
Description
drivers_id
string
1234,5678
Comma separated list of driver IDs
zones_id
string
1234,5678
List of zone IDs separated by commas
fillings
int
1
Enable fills
stales
int
1
Enable drains
speed
int
1
Turn on speed
rashod
int
1
Include expenses
stops
int
1
Enable stops
run
int
1
Enable launch
contr_time
int
30
Set control time
type
int
1
Set the control time
tags
string
1234,5678
List of tag IDs separated by commas
template
int
1234
Template ID
outside_zones
int
1
Enable External Zones
work_hours
int
1
Enable business hours only
fuel
int
1
Turn on fuel
vehicle_not_moving_time
int
30
Set vehicle idle time
vehicles_has_covered_km
int
30
km traveled.
notifications
string
1234,5678
A comma separated list of notification IDs