Skip to content

Get Trip Costs

Request

Get the cost charges associated with this trip

Security
oAuth2ClientCredentials
Path
trip_idstring, (uuid)(Trip Id)required
GET
/v1/trips/trip/{trip_id}/costs
import requests

trip_id = "YOUR_trip_id_PARAMETER"
url = "https://api.qargo.com/v1/trips/trip/" + trip_id + "/costs"

headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}

response = requests.get(url, headers=headers)

data = response.json()
print(data)

Responses

Successful Response

Bodyapplication/json
chargesArray of objects(Charges)required
Response
{ "charges": [ {} ] }