GET
import requests
trip_id = "YOUR_trip_id_PARAMETER"
url = "https://api.qargo.com/v1/trips/trip/" + trip_id
headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Successful Response
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "status": "CREATED", "orders": [ { … } ], "resource_allocations": [ { … } ], "stops": [ { … } ], "metrics": { "co2e_tank_to_wheel_kg": 0, "co2e_well_to_tank_kg": 0, "co2e_well_to_wheel_kg": 0, "distance_total_km": 0 }, "shipment_planning_group": { "name": "string", "code": "string" } }