Web API – Trips
Updated over a week ago

List Trips

Request URL

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 the UTC time zone as in the JSON standard.

Example

Update Trip

Request URL

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 …

}

Did this answer your question?