Get all existing odometer data that have been performed by users of the Customer Portal.
Description
GET /vehicle_settings/get_odometer_history.php?company=RTI_COMPANYKEY&vehicle=VEHICLE_RTIKEY
Parameter
Parameter | Description | Type | Note | Mandatory |
---|---|---|---|---|
company | RTI company key | string | yes | |
vehicle | RTI vehicle key | string | yes | |
format | Output format | string | csv or json, default: csv | no |
Return
A string will be returned (json or csv). If the request was successful "OK". If the request failed "ERROR:Description".
Possible error values
error | description |
---|---|
MISSING_COMPANY | company key is missing |
INVALID_COMPANY | Company not found. Company key or import key might be faulty. |
ERROR_MAINTENANCE | Your company is under maintenance, no RTI request are possible at the moment. |
MISSING_VEHICLE | vehicle key is missing |
ERROR_INVALID_FORMAT | invalid output format |
CSV
Meta informations
Separator | Semicolon ( ; ) |
---|---|
Delimiter | Double quote ( " ) |
Line break | 0x0D 0x0A (CarriageReturn LineFeed) |
Header | Line 1 |
Columns
Column | Description |
---|---|
Datum | date of change |
Neuer KM | Odometer reading after correction |
Alter KM | Odometer reading before correction |
Faktor | Corrected value |
gesetzt durch | Users of the portal |
Example
Return in CSV |
---|
"Datum";"Neuer KM";"Alter KM";"Faktor";"gesetzt durch" "26.05.2021 16:14:54";"257319";"0";"0";"Mitarbeiter 1" "23.11.2021 21:08:13";"262655";"259434";"1";"Mitarbeiter 1" "19.08.2021 13:19:08";"259434";"257319";"1";"Mitarbeiter 1" "15.06.2016 10:35:50";"1";"0";"1";"Portal" "14.10.2016 10:50:58";"195037";"193018";"1";"" "12.01.2018 17:00:29";"213597";"198227";"1.08232";"Mitarbeiter 2" "11.08.2016 18:12:12";"190600";"1";"1.00021";"Mitarbeiter 1" "07.09.2016 08:30:51";"193018";"190600";"1";"Mitarbeiter 1" "06.08.2019 14:18:47";"241000";"213597";"1.05259";"Mitarbeiter 2" "03.02.2017 15:34:37";"198227";"195037";"1.10995";"Mitarbeiter 1" |
Return in JSON |
---|
[
|