GetTrip API using FeeduniqueId

Clients call this API to get trip details for a trip by providing the feed_unique_id in the URL. All dates are given in UTC

API Endpoint:

Headers Parameters:

Field key

Data Type

Description

Example

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": F1212121, "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": {}, "is_consent_done": false, "primary_attributes": { "route_code": "Nellore-Vizag" }, "invoices": null, "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