GetTrip API using TripID
Clients call this API to get trip details for a trip by providing the trip_id in the URL. All dates are given in UTC
API Endpoint:
https://integration.freighttiger.com/saas/trip/id/{trip_id} - Integration/Sandbox Environment
https://www.freighttiger.com/saas/trip/id/{trip_id} - Production Environment
Headers Parameters:
Field key | Data Type | Description | Example |
---|---|---|---|
Authorization | string | JWT token required to authenticate API call. | Authorization: Bearer eyJhbGciOiJIUzI1Ni |
Responses:
Status code 200 Created share trip link successfully
{
"success": true,
"data": {
"trip_id": 9424158,
"feed_unique_id": null,
"created_at": "2022-02-06 17:08:27",
"lr_number": "",
"parties": [
{
"name": "Phoenix Pvt. Ltd.",
"type": "consignor"
}
],
"vehicle": {
"license_plate": "AP26XY1234"
},
"last_known_location": {
"point": {
"latitude": 14.462778,
"longitude": 79.994167
},
"address": "FX6W+X8J, Lakshmipuram, Nellore, Andhra Pradesh 524002, India",
"recorded_at": "2022-02-07 09:52:48",
"device": {
"type": "SIM",
"external_id": null
}
},
"origins": [
{
"point": {
"latitude": 14.432187,
"longitude": 79.966687
},
"address": "MGB mall,Nellore, AP",
"etd": null,
"atd": null
}
],
"destinations": [
{
"point": {
"latitude": 17.686815,
"longitude": 83.218483
},
"address": "Visakhapatnam, Andhra Pradesh, India",
"distance_from_last_location": 616.737,
"ata": null,
"eta": "2022-02-08 22:36:47",
"eta_updated_at": "2022-02-07 09:37:58"
}
],
"drivers": [
{
"name": "Jack ryan",
"contact": "8897814085"
}
],
"total_distance": 625.26,
"start_time": null,
"end_time": null,
"close_time": null,
"status": "Open",
"status_code": 1,
"location_source": "sim",
"custom_params": {},
"primary_attributes": {
"route_code": "Nellore-Vizag"
},
"invoices": null,
"is_consent_done": false,
"share_url": "https://www.freighttiger.com/v5/shareTrip?shareKey=TRP-9cdad3f2-b5e9-4a9f-bcb9-e290de78df44"
}
}
Status code 422 Resource not found
{
"success": false,
"message": [
"Trip Details for ID: 9424152434 does not exist"
]
}
"UnAuthorized"
Success Response Schema:
Post your questions in the comment box to get answers from the experts who watch this page.
For engineering support: visit FT Support