curl --request GET \
--url https://api.terminal49.com/v2/containers/{id}/route \
--header 'Authorization: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "route",
"attributes": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"cargo": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "container"
}
},
"shipment": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "shipment"
}
},
"route_locations": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "route_location"
}
]
}
}
},
"included": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"name": "<string>",
"code": "<string>",
"state_abbr": "<string>",
"city": "<string>",
"country_code": "<string>",
"time_zone": "<string>",
"latitude": 123,
"longitude": 123
},
"type": "port"
}
]
}Retrieves the route details from the port of lading to the port of discharge, including transshipments.
curl --request GET \
--url https://api.terminal49.com/v2/containers/{id}/route \
--header 'Authorization: <api-key>'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "route",
"attributes": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"cargo": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "container"
}
},
"shipment": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "shipment"
}
},
"route_locations": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "route_location"
}
]
}
}
},
"included": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attributes": {
"name": "<string>",
"code": "<string>",
"state_abbr": "<string>",
"city": "<string>",
"country_code": "<string>",
"time_zone": "<string>",
"latitude": 123,
"longitude": 123
},
"type": "port"
}
]
}Was this page helpful?