πTrips
This page allows you to fetch an manage all trips created by drivers
Get intracity trips for various passengers
GET https://api.data.tapngogh.com/trips/intracity/date
Query Parameters
Name
Type
Description
startDate*
String
Start date for transaction
endDate*
String
End Date for transaction
Headers
Name
Type
Description
Authorization*
String
c7ab8c89d275a5831e0935dd911270e6474d9462
String
[
{
"_id": "6336bf018f527169f66a82c7",
"service": {
"_id": "6336be228f527169f66a8297",
"serviceID": "532002491",
"type": "on-demand",
"driver": {
"_id": "632ae6d9deeb82b5eb2f5b3c",
"name": "Mushud",
"phone": "0548215801",
"email": "[email protected]",
"hyperAccount": "0548215801",
"rating": 5
},
"vehicle": {
"_id": "632af503d788233a09a97c51",
"registrationNumber": "GR-342-342",
"make": "Toyota",
"model": "Corolla",
"capacity": 4,
"type": "taxi"
},
"pricing": {
"_id": "6336bd998f527169f66a8278",
"type": "on-demand",
"pricePerKm": 0.5,
"pricePerMinute": 1
},
"passengers": 0,
"amount": 0,
"ended": true
},
"ticketNumber": "mushud1664532225053",
"estimatedPrice": 5,
"estimatedDistance": 9.297,
"finalPrice": 5,
"cashPrice": 0,
"charges": 0,
"settledAmount": 0,
"discount": 0,
"settled": false,
"finalDistance": 9.297,
"refundAmount": 0,
"refunded": false,
"paymentMethod": "card",
"user": "mushud",
"pickupLocation": {
"type": "Point",
"coordinates": [
-0.19612518463290618,
5.693705451685098
]
},
"serviceDestination": {
"type": "Point",
"coordinates": [
-0.1848835,
5.637331700000002
]
},
"droppedOffLocation": {
"type": "Point",
"coordinates": [
-0.1848835,
5.637331700000002
]
},
"checkedOut": true,
"createdAt": "2022-09-30T10:03:45.056Z",
"updatedAt": "2022-09-30T10:16:24.214Z",
"__v": 0,
"checkOutTime": "2022-09-30T10:16:24.214Z"
}
]
Last updated
Was this helpful?