ResourceOwnerReports

Get trip approval and mileage statistics for a vehicle in a date period.

Changed on

Statistics include all trips in the period. Approval is evaluated using the customer's trip approval configuration, but does not honor the integration-specific setting which allows unapproved trips to be exported.

get/v1/resourceowner/reports/approved-trips-summary

Request

  • Base URL
    https://api.automile.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.automile.com/v1/resourceowner/reports/approved-trips-summary
  • Auth
    OAuth 2
    Implicit: https://api.automile.com/login/

Query parameters

fromDatestring date-time

First local date to include.

toDatestring date-time

Last local date to include.

vehicleIdinteger

Vehicle to report.

Response

The trip approval and mileage summary is returned.

approvedboolean

Whether all trip types configured for approval are approved for the period.

businessDistancenumber double

Business distance in kilometers.

privateDistancenumber double

Private distance in kilometers.

periodStartOdometernumber double

Calculated odometer at the beginning of the period, in kilometers.

periodEndOdometernumber double

Calculated odometer at the end of the period, in kilometers.

businessTollPassagesinteger

Number of business toll passages.

businessTollCostnumber double

Total cost of business toll passages.

privateTollPassagesinteger

Number of private toll passages.

privateTollCostnumber double

Total cost of private toll passages.

Changes