List Trips
Request URL
GET https://triplogmileage.com/web/api/trips
Query parameters
- startDate – Format ‘yyyy-mm-dd’, e.g. ‘2015-01-31’ means midnight Jan 31, 2015 at your local timezone. Inclusive.
- endDate – Format ‘yyyy-mm-dd’, e.g. ‘2015-12-31’. Inclusive.
- userEmail – Email address of a particular user to search for.
- activity – Trip activity, e.g. ‘Business’.
- minLastUpdated – The date when the record was modified or created. Format ‘yyyy-mm-dd’. Inclusive.
- maxLastUpdated – The date when the record was modified or created. Format ‘yyyy-mm-dd’. Inclusive.
- status – Approval status. Valid options are: ‘U’ – not submitted, ‘S’ – submitted, ‘A’ – approved, ‘R’ – rejected, ‘P’ – pay scheduled.
Note
You need to provide at least one of the query parameters in the request.
The returned datetime in the response is in UTC time zone as in the JSON standard.
Example
GET https://triplogmileage.com/web/api/trips?startDate=2015-01-31&activity=Business
Update Trip
Request URL
PUT https://triplogmileage.com/web/api/trips/[trip_id]
Query parameters
None
JSON request data
Specify the fields you want to change. Leaving it out or setting to ‘null’ means no change to that field.
{
“tags” : String (optional),
“notes” : String (optional),
“toll” : float (optional),
“parking”: float (optional),
“scale”: float (optional),
“lumpers”: float (optional),
“activity” : String (optional) Business Personal …
}