For the complete documentation index, see llms.txt. This page is also available as Markdown.

Report Tracker

User reports enable comprehensive statistics and analytics, presenting summary data in various perspectives through tables and graphs.

This section details API calls to interact with tracker reports.

For information on how to obtain data from reports, refer to the guide.

API actions

API path: /report/tracker.

delete

Deletes a report from the database.

required sub-user rights: reports.

Parameters

name
description
type

report_id

ID of a report that should be deleted.

int

Examples

curl -X POST 'https://api.eu.navixy.com/v2/report/tracker/delete' \
    -H 'Content-Type: application/json' \
    -d '{"hash": "a6aa75587e5c59c32d347da438505fc3", "report_id": 1234567}'
https://api.eu.navixy.com/v2/report/tracker/delete?hash=a6aa75587e5c59c32d347da438505fc3&report_id=1234567

Response

{
  "success": true
}

Errors

  • 101 – In demo mode this function disabled.

download

Retrieve generated report as a file.

required sub-user rights: reports

Parameters

name
description
type

report_id

ID of a report that should be deleted.

int

format

A format of report that should be downloaded. Can be "xls", xlsx" or "pdf".

headless

Optional parameter. Default=false. If need report without title page and TOC, set it to true.

boolean

Examples

Response

A report rendered to file (standard file download).

Errors

  • 204 - Entity not found - if report with the specified ID not found.

  • 229 - Requested data is not ready yet - if report exists, but its generation is still in progress.

generate

Requests a report generation with the specified parameters.

required sub-user rights: reports.

Parameters

name
description
type

from

A string containing date/time.

string

to

A string containing date/time. Specified date must be after "from" date.

string

title

Report title. Default title will be used if null.

string

geocoder

Which geocoder to use. See geocoder/.

string

trackers

List of trackers' IDs to be included in report (if report is by trackers).

int array

employees

List of employees' IDs to be included in report (if report is by employees. For example, plugin ID 82).

int array

time_filter

An object which contains everyday time and weekday limits for processed data, e.g. {"to":"18:00", "from":"12:00", "weekdays":[1,2,3,4,5]}.

JSON object

plugin

A plugin object (see below).

JSON object

include_places_in_address

Optional. Default true. When true, the name of the place (POI) a point falls into is prepended to the address in report columns. Set to false to show the geocoded address only.

boolean

include_zones_in_address

Optional. Default true. When true, the name of the geofence (zone) a point falls into is prepended to the address in report columns. Set to false to show the geocoded address only.

boolean

include_places_in_address and include_zones_in_address both default to true, preserving the historical behavior of prefixing an address with the name of the place or geofence that contains the point. They apply to report plugins that render an address column (for example, trips or stops). The values are echoed back in list under parameters and are stored with scheduled reports.

Parameter object fields:

Part of parameters are plugin-specific. See "Tracker report plugins" section. Common parameters are:

name
description
type

plugin_id

An ID of a tracker report plugin which will be used to generate report.

int

show_seconds

Flag to define whether time values in report should have format with seconds. true - show seconds, false - don't show seconds.

boolean

Plugin example:

Example

cURL

Response

  • id - int. An ID of the report queued for generation. Can be used to request report generation status and to retrieve generated report.

Errors

  • 15 - Too many requests / rate limit exceeded - the number of reports created by one user in parallel limited.

  • 211 - Requested time span is too big - interval from from to to is bigger then max allowed time span (see response).

  • max_time_span - string. ISO 8601 duration.

  • 217 - List contains nonexistent entities - when one or more of tracker IDs belong to nonexistent tracker (or to a tracker belonging to different user).

  • 222 - Plugin not found - when specified report plugin not found.

  • 236 - Feature unavailable due to tariff restrictions - when one of the trackers has tariff with disabled reports ("has_reports" is false).

list

Returns info about all available generated or in-progress reports.

required sub-user rights: reports.

Examples

Response

  • created - string. Date when report created.

  • time_filter - object.

    • from - string. Control time "from" of day.

    • to - string. Control time "to" of day.

    • weekdays - int array. Control "weekdays" of the report. Can be 1 - 7.

  • title - string. Report title.

  • id - int. Report ID which can be used to retrieve or download report.

  • parameters - object with report parameters.

    • trackers - int array. List of tracker IDs used for report.

    • plugins - array of objects. List of parameters for all plugins which were used to generate report.

    • include_places_in_address - boolean. Whether place (POI) names are prepended to addresses in this report.

    • include_zones_in_address - boolean. Whether geofence (zone) names are prepended to addresses in this report.

    • locale_info - object with information about the locale, timezone, and measurement system used for the report.

  • percent - int. Report readiness in percent.

  • type - enum. Type of created report.

  • from - string. "from" parameter from generate.

  • to - string. "to" parameter from generate.

Errors

retrieve

Retrieves a generated report as JSON.

required sub-user rights: reports.

Parameters

name
description
type

report_id

ID of a report that should be deleted.

int

Examples

Response

Example response
  • report - object. Body of the generated report. Its contents are plugin-dependent.

Errors

  • 204 - Entity not found - if report with the specified ID not found.

  • 229 - Requested data is not ready yet - if report exists, but its generation is still in progress.

status

Returns a report generation status for the specified report id.

required sub-user rights: reports.

Parameters

name
description
type

report_id

ID of a report that should be deleted.

int

Examples

Response

  • percent_ready - int. Report readiness in percent.

Errors

  • 204 - Entity not found - if report with the specified ID not found.

Last updated

Was this helpful?