The JumpDrive API function “getInventoryData” in V2 allows customers and partners to access current vehicle and location data about vehicles using the 2nd generation JD vehicle device.
Our Partner API requires the following to retrieve vehicle fuel and mileage information:
- API URL, Username and Password (please email firstname.lastname@example.org for API URL and your credentials)
- Vehicle Identification Number (VIN) to get it’s return details.
- Familiarity with a programming language supporting REST calls (PHP, Ruby, .NET, Python, etc.)
For best results, we recommend querying the API during the check out process on demand.
Steps For Using the API
- Create a script to call our API URL (will be provided via email upon request) and pass your username, password, VIN and response format. All results are in XML, for example – getInventoryData(username, password, VIN, ‘xml’) will provide XML formatted results.
- If you receive the message “Invalid Username and/or Password”, please contact email@example.com and we will confirm your credentials.
Sample XML results
Sample XML Response
<?xml version="1.0" encoding="UTF-8"?> <root> <VIN>5GAKRBED0BJ315904</VIN> <JumpDriveID>009081</JumpDriveID> <LotID>8112</LotID> <LotName>Pine Ridge</LotName> <LastTimeIn>2017-10-08 18:47:37</LastTimeIn> <StartMileage>28036.00</StartMileage> <LastMileage>30027.00</LastMileage> <FuelPercent>51.00</FuelPercent> <FuelVolume>41.75</FuelVolume> <Battery>13960</Battery> <LocationType>Outdoor</LocationType> <LocationName>Driveway and Yard</LocationName> <Longitude>-74.34335327148438</Longitude> <Latitude>40.578529357910156</Latitude> <Damage1Count>6</Damage1Count> <Damage2Count>4</Damage2Count> <Speeding1Count>8</Speeding1Count> <Speeding2Count>0</Speeding2Count> </root>
Description Of Each Field Showing In XML Responses Above
- VIN = Vehicle Identification Number
- JumpDriveID = JumpDrive device ID assigned to each customer
- LotID = ID of the current location of the vehicle
- LotName = Name of the current location of the vehicle
- LastTimeIn = Most recent time when vehicle checked in (in local time zone)
- StartMileage = Starting mileage (in km) of vehicle when it was registered with a JumpDrive Vehicle Device. If this value is 0, the vehicle mileage was not user verified.
- LastMileage = Latest vehicle mileage (in km)
- FuelPercent = Current percentage of fuel tank full (100% is full, 0% is empty)
- FuelVolume = Current fuel volume in fuel tank, in liters
- Battery = Current battery level reported by vehicle, in mV
- LocationType = “Indoor” or “Outdoor”
- LocationName = Name of the current location / zone, based on customer defined geofences
- Longitude = Current longitude value reported by vehicle
- Latitude = Current latitude value reported by vehicle
- Damage1Count = Total number of possible damage impact events on this vehicle
- Damage2Count = Total number of likely damage impact events on this vehicle
- Speeding1Count = Total number of seconds of speeding between 85mph and 99mph
- Speeding2Count = Total number of seconds of speeding 100mph and above
- If JumpDrive does not read mileage on a specific vehicle, the customer can specify if they want JumpDrive to provide “0” for StartMileage and LastMileage or provide our estimate of the vehicle’s mileage.
- FuelPercent and FuelVolume are both provided by JumpDrive, using our data source for the fuel tank size. Since some vehicles provide raw fuel data in Liters and others provide it in Percentage, JumpDrive calculates both values for all vehicles and provides it to customers and partners.
Please email firstname.lastname@example.org if you have any questions or require additional support.