Skip to content

Get Trip Documents

Request

Fetch trip documents. This includes order and consignment documents

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

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

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

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

data = response.json()
print(data)

Responses

Successful Response

Bodyapplication/json
Array [
idstring, (uuid)(Id)required

Unique identifier of the document

namestring(Name)required

Name of the document

typestring(Type)required

Type of the document

download_urlstring(Download Url)

Relative URL from the base URL to download the document

Default:""
subject_typestring(Subject Type)required

Linked subject of the document

content_typestring or null(Content Type)
Any of:

Content type of the document

string
]
Response
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "type": "string", "download_url": "", "subject_type": "string", "content_type": "string" } ]