Skip to main content
Omnitracs Knowledge Base

Get Mileage Counter

getMileageCounter

Gets the trailer mileage counter value and timestamp given a SCAC and trailer identifier.

MileageCounter getMileageCounter(AssetIdentifier trailer) throws WSException

  • trailer: An AssetIdentifier that uniquely identifies the trailer to which the mileage counter information will be retrieved.

A successful call returns a MileageCounter object.

Authorization Requirements

The credentials supplied with this method call (as specified in the accompanying WS-Security header) must be authorized to the following application(s) and their associated role-based permissions.

Required Application Licenses
- Remote Integration

Required User Permissions
- Can use Trailer Tracks

Customer integrators are authorized to their own company's data only. 

Exceptions

002 Required field not specified.
003 Company not authorized for integration.
004 User not authorized.
005 Trailer mileage reporting not enabled
006 Trailer mileage reporting not supported.
007 Trailer SCAC and Trailer ID not specified.
008 Trailer SCAC/Trailer ID invalid.

Sample getMileageCounter Request

Only the SOAP body is shown. To see a sample SOAP Envelope and Header, click here.

<soapenv:Body>

  <getMileageCounter>

    <trailer>

      <id>ALIVE595</id>

      <scac>LABU</scac>

    </trailer>

  </getMileageCounter>

</soapenv:Body>

 

Sample getMileageCounter Response

<soapenv:Body>

  <getMileageCounterResponse>

    <mileageCounter>

      <value>865214</value>

      <time>2015-12-08T20:47:36Z</time>

    </mileageCounter>

  <getMileageCounterResponse/>

</soapenv:Body>

 

  • Was this article helpful?