T
T
Teliver
Search…
Trips

Trip List

This api allows you to list the trips that has been created overall.
1
GET https://api.teliver.xyz/v1/trips
Copied!

Paramters

Parameters
Required
Values
Description
apikey
Yes
The api key is the unique identfier for your respective application. (You can get it from your Dashboard). Always pass this as query parameter.
page
No
default: 1
Page that has to be fetched.
limit
No
default: 20
Sets the number of results limiting.
status
No
default: 0 (All) , 1 - Active Trip, 2 - Stopped Trip, 3 - Discarded
Returns the trips with given status.
operator_id
No
Returns the list of trips associate with given Operator id.
tracking_id
No
Returns the list of trips associate with given tracking id.

Response

1
{
2
"message":"Trips",
3
"success":true,
4
"data":{
5
"trips":[
6
{
7
"_id":"trip_id_here",
8
"created_at":"2017-08-29T15:08:54.639Z",
9
"ttl":"2017-08-29T17:08:54.628Z",
10
"tracking_id":"test",
11
"status":"2",
12
"ends_at":"13.0039875,80.2628844",
13
"end_location":"4th St, Venkateswara Nagar, Adyar, Chennai, Tamil Nadu 600020, India",
14
"starts_at":"13.0039875,80.2628844",
15
"start_location":"4th St, Venkateswara Nagar, Adyar, Chennai, Tamil Nadu 600020, India",
16
"agent_id":"test_driver"
17
},
18
{
19
"_id":"trip_id_here",
20
"created_at":"2017-08-18T14:41:18.281Z",
21
"ttl":"2017-08-18T16:41:18.270Z",
22
"tracking_id":"test",
23
"status":"3",
24
"ends_at":"",
25
"end_location":"",
26
"starts_at":"13.0712874,80.2827595",
27
"start_location":"Chennai Port – Maduravoyal Expy, Port Trust Officers Quarters, The Island, Chintadripet, Chennai, Tamil Nadu 600002, India",
28
"agent_id":"test_driver"
29
}
30
]
31
}
32
}
Copied!

Retrieve a Trip

This api allows you to get a particular trip with trip id.
1
GET https://api.teliver.xyz/v1/trips/trip_id_here
Copied!

Paramters

Parameters
Required
Values
Description
apikey
Yes
The api key is the unique identfier for your respective application. (You can get it from your Dashboard)
Last modified 1yr ago