Get freights list

Down­load­ing a list of not accept­ed and not archived freights cre­at­ed in the same cus­tomer (com­pa­ny) account both via API and on the Trans.eu Plat­form.
The returned results are pag­i­nat­ed with max­i­mum of 30 per page.

End­point returns freights in sta­tus: new, in_progress, unsuccesful_publication, waiting_for_publication.

For down­load accept­ed freights vis­it Get accept­ed freights list, for down­load archived freights vis­it Get archived freights list.

GET
/ext/freights-api/v1/freights

This method sup­ports query mod­i­fiers that allow you to cus­tomize the list of returned results to your own needs. The list of all para­me­ters is spec­i­fied below in Query Para­me­ters.

  • Fil­ter­ing — allows you to down­load a list accord­ing to spec­i­fied cri­te­ria
  • Sort­ing — allows you to arrange the results in the spec­i­fied order
  • Pag­i­na­tion — allows you to down­load results from a spe­cif­ic list page
  • Field selec­tion — allows you to down­load a list with a lim­it­ed num­ber of fields for each result
Request Authorization

Every request MUST include a valid access token obtained dur­ing the user autho­riza­tion process, pro­vid­ed using the Bear­er token scheme in the Autho­riza­tion head­er.

Successful Response
Request Header
GET /ext/freights-api/v1/freights HTTP/1.1 
Host: api.platform.trans.eu 
Content-Type: application/json
Accept: application/json
Authorization: Bearer {access_token) 
Api-key: {unique_app_api-key}
Request Parameters (Query)
Filters

The results will be lim­it­ed accord­ing to the spec­i­fied con­di­tions.

Fil­tered freight fieldFil­ter exam­ple
freight sta­tus/ext/freights-api/v1/freights?filter={"status":"in_progress"}
pub­li­ca­tion types/ext/freights-api/v1/freights?filter={"publication_type":["exchange"]}
truck body/ext/freights-api/v1/freights?filter={"truck_body_type":"cooler"}
truck bod­ies/ext/freights-api/v1/freights?filter={"truck_body_types":["box","curtainsider"]}
load­ing place/ext/freights-api/v1/freights?filter={"loading_place":{"country":"it","postal_code":"88100"}}
unload­ing place/ext/freights-api/v1/freights?filter={"unloading_place":{"country":"pl","postal_code":"53-146"}}
load­ing date/ext/freights-api/v1/freights?filter={"loading_date":{"start_date":"2025-01-29","end_date":"2025-02-12"}}
unload­ing date/ext/freights-api/v1/freights?filter={"unloading_date":{"start_date":"2025-01-31","end_date":"2026-02-18"}}
Sorting

The results will be arranged in the spec­i­fied order.

Sort­ed freight fieldFil­ter exam­ple
freight sta­tus/ext/freights-api/v1/freights?sortBy=status
load­ing date/ext/freights-api/v1/freights?sortBy=loading_date
unload­ing date/ext/freights-api/v1/freights?sortBy=unloading_date
cre­ation date/ext/freights-api/v1/freights?sortBy=created_at

You can sort­ing in ascend­ing or descend­ing mode by adding order para­me­ter with val­ue asc or desc. Exam­ple:

/ext/freights-api/v1/freights?sortBy=created_at&order=desc
Pagination

The results will be down­loaded from a spe­cif­ic list page. Each page con­tains max­i­mum of 30 results.

/ext/freights-api/v1/freights?page=2
Fields selection
Example Request 1

The id, shipment_external_id and load­ing place fields are returned.

/ext/freights-api/v1/freights?fields={"id":true,"shipment_external_id":true,"loading":true}
Example Request 2

All fields are returned except the pub­li­ca­tion sec­tion.

/ext/freights-api/v1/freights?fields={"publication":false}
Response Fields
AttributeTypeExam­pleDescrip­tion
contact_employeesArray of ObjectsList of employ­ees assigned to freight nego­ti­a­tion. Default is pub­lish­er.
contact_employees.last_nameStringNowakSur­name of assigned employ­ee
contact_employees.nameStringJanFirst name of assigned employ­ee
contact_employees.trans_idString13443–1Tran­sId of assigned employ­ee
cre­at­edString“2025–02-13T13:06:36+01:00”Freight cre­ation date
ftlBooleanTrueIndi­ca­tion whether the freight is of type FTL (full truck load)
heightFloat3.1Vehi­cle height (range: 0.01–10)
idInt234923Freight iden­ti­fi­ca­tion num­ber, assigned auto­mat­i­cal­ly dur­ing cre­ation of a new freight.
lengthFloat12Vehi­cle length (range: 0.01–100)
load­ing (see details)ObjectPlace and time of load­ing
pub­li­ca­tion (see details)ObjectPub­li­ca­tion details
reference_numberStringFR/2025/12/30/2NNQFreight ref­er­ence num­ber — a unique, auto­mat­i­cal­ly assigned busi­ness iden­ti­fi­er of the freight
require­mentsObjectMain trans­port require­ments
requirements.transportObjectTrans­port details
requirements.transport.countInt3Num­ber of trans­ports — only occurs for multi_ftl trans­port type
requirements.transport.settlementStringrouteType of set­tle­ment. Avail­able val­ues: routeton.
requirements.transport.settlement_basisStringload­ingSet­tle­ment basis.
No val­ues for route. Accept­able val­ues for ton: loadingunloading
shipment_external_idString2023/NWX/1/3Exter­nal iden­ti­fi­ca­tion num­ber
sta­tusStringnewFreight sta­tus. See details in Freight cre­ation.
tem­per­a­tureObjectRequired freight trans­port tem­per­a­ture. It can be set only for the fol­low­ing truck bod­ies: cooler, isotherm, hook-truck.
temperature.maxFloat3Max­i­mum tem­per­a­ture
temperature.minFloat-5.5Min­i­mum tem­per­a­ture
transit_timeInt460Time expressed in min­utes (pos­i­tive inte­ger) for trans­port, if spec­i­fied.
transport_typeStringftlPos­si­ble val­ues for trans­port type: ftl, ltl, multi_ftl.
truck_bodiesArray of String[“box”,“curtainsider”]Vehi­cle body types set in freight (see dic­tio­nary).
unload­ing (see details)ObjectPlace and time of unload­ing
vehicle_sizeString“lorry_solo”Vehi­cle sizes set in freight. Basic or Com­pos­ite vehi­cle size name accord­ing to dic­tio­nary.
vol­umeFloat21Vehi­cle vol­ume (range 0.01–10000).
widthFloat3.1Vehi­cle width (range 0.01–10).
Response Body
[          
//  ------------------  Freight no. 1 ---------------------
    {
        "contact_employees": [
            {
                "last_name": "Nowak",
                "name": "Jan",
                "trans_id": "1007374-1"
            }
        ],
        "created": "2026-02-23T13:08:11+01:00",
        "ftl": true,
        "height": 4.3,
        "id": 3830015,
        "length": 5.8,
        "loading": {
            "coordinates": {
                "latitude": 51.142329074,
                "longitude": 16.937462521
            },
            "place": {
                "country": "pl",
                "locality": "Wroclaw",
                "postal_code": "54-128"
            },
            "timespans": {
                "begin": "2026-02-23T13:30:58+01:00",
                "begin_local": "2026-02-23T13:30:58+01:00",
                "end": "2026-02-23T15:30:58+01:00",
                "end_local": "2026-02-23T15:30:58+01:00",
                "timezone": "Europe/Warsaw"
            }
        },
        "publication": {
            "end_reason": null,
            "id": 3304223,
            "is_quick_pay": false,
            "is_recommended": false,
            "is_shared": false,
            "price": {
                "currency": "eur",
                "period": {
                    "days": 21,
                    "payment": "deferred"
                },
                "value": 450
            },
            "publish_date": "2026-02-23T13:08:11+01:00",
            "publish_type": "exchange",
            "received_offers": null,
            "receivers": {
                "corporate_exchanges": [
                    {
                        "id": "006e95ea-f307-4a67-bc28-336dfc1cd679",
                        "name": "API test"
                    }
                ],
                "private_exchanges": [
                    {
                        "id": "49b9aa2b-1987-48d9-9a77-147f97594233",
                        "name": "Private"
                    }
                ]
            },
            "refresh_from": "2026-02-23T13:23:12+01:00",
            "sent_offers": 5,
            "sent_to": {
                "companies": false,
                "corporate_exchange": true,
                "direct": true,
                "private_exchange": true
            },
            "smart_match_offers": null,
            "status": "active",
            "stock_id": null
        },
        "reference_number": "FR/2026/02/23/2NTS",
        "requirements": {
            "transport": {
                "count": null,
                "remaining": null,
                "settlement": "route",
                "settlement_basis": null
            }
        },
        "shipment_external_id": "1123dfd121",
        "status": "in_progress",
        "temperature": {
            "max": null,
            "min": null
        },
        "transit_time": null,
        "transport_type": "ftl",
        "truck_bodies": [
            "curtainsider"
        ],
        "unloading": {
            "coordinates": {
                "latitude": 52.519971677,
                "longitude": 13.404467562
            },
            "place": {
                "country": "de",
                "locality": "Berlin",
                "postal_code": "10178"
            },
            "timespans": {
                "begin": "2026-02-26T15:30:58+01:00",
                "begin_local": "2026-02-26T15:30:58+01:00",
                "end": "2026-02-26T17:30:58+01:00",
                "end_local": "2026-02-26T17:30:58+01:00",
                "timezone": "Europe/Berlin"
            }
        },
        "vehicle_size": "solo",
        "volume": 12.6,
        "width": 3.1
    },
//  ------------------  Freight no. 2 ---------------------
{
        "contact_employees": [
            {
                "last_name": "Brewston",
                "name": "Albert",
                "trans_id": "1007374-2"
            },
            {
                "last_name": "Smith",
                "name": "John",
                "trans_id": "1007374-5"
            }
        ],
        "created": "2026-02-23T12:20:37+01:00",
        "ftl": true,
        "height": null,
        "id": 3829709,
        "length": null,
        "loading": {
            "coordinates": {
                "latitude": 51.142329074,
                "longitude": 16.937462521
            },
            "place": {
                "country": "pl",
                "locality": "Wroclaw",
                "postal_code": "54-128"
            },
            "timespans": {
                "begin": "2026-02-23T13:30:58+01:00",
                "begin_local": "2026-02-23T13:30:58+01:00",
                "end": "2026-02-23T15:30:58+01:00",
                "end_local": "2026-02-23T15:30:58+01:00",
                "timezone": "Europe/Warsaw"
            }
        },
        "publication": {
            "end_reason": "timeout",
            "id": 3303951,
            "is_quick_pay": false,
            "is_recommended": false,
            "is_shared": false,
            "price": {
                "currency": "eur",
                "period": {
                    "days": 14,
                    "payment": "deferred"
                },
                "value": 400
            },
            "publish_date": "2026-02-23T12:20:37+01:00",
            "publish_type": "exchange",
            "received_offers": null,
            "receivers": {
                "corporate_exchanges": [
                    {
                        "id": "006e95ea-f307-4a67-bc28-336dfc1cd679",
                        "name": "API test"
                    }
                ]
            },
            "refresh_from": null,
            "sent_offers": 2,
            "sent_to": {
                "companies": false,
                "corporate_exchange": true,
                "direct": false,
                "private_exchange": false
            },
            "smart_match_offers": null,
            "status": "finished",
            "stock_id": null
        },
        "reference_number": "FR/2026/02/23/2N0X",
        "requirements": {
            "transport": {
                "count": null,
                "remaining": null,
                "settlement": "route",
                "settlement_basis": null
            }
        },
        "shipment_external_id": "1123dfd121",
        "status": "unsuccessful_publication",
        "temperature": {
            "max": null,
            "min": null
        },
        "transit_time": null,
        "transport_type": "ftl",
        "truck_bodies": [
            "platform-trailer"
        ],
        "unloading": {
            "coordinates": {
                "latitude": 45.397205283,
                "longitude": 9.21659417
            },
            "place": {
                "country": "it",
                "locality": "Milan",
                "postal_code": "20097"
            },
            "timespans": {
                "begin": "2026-02-26T13:30:58+01:00",
                "begin_local": "2026-02-26T13:30:58+01:00",
                "end": "2026-02-26T15:30:58+01:00",
                "end_local": "2026-02-26T15:30:58+01:00",
                "timezone": "Europe/San_Marino"
            }
        },
        "vehicle_size": "double_trailer",
        "volume": null,
        "width": null
    },
//  ------------------  Freight no. 3 ---------------------
 {
        "contact_employees": [
            {
                "last_name": "Nowak",
                "name": "Jan",
                "trans_id": "1007374-1"
            }
        ],
        "created": "2026-02-20T10:28:59+01:00",
        "ftl": true,
        "height": 9.1,
        "id": 3828341,
        "length": 6.1,
        "loading": {
            "coordinates": {
                "latitude": 51.142329074,
                "longitude": 16.937462521
            },
            "place": {
                "country": "pl",
                "locality": "Wroclaw",
                "postal_code": "54-128"
            },
            "timespans": {
                "begin": "2026-02-23T10:28:57+01:00",
                "begin_local": "2026-02-23T10:28:57+01:00",
                "end": "2026-02-23T12:28:57+01:00",
                "end_local": "2026-02-23T12:28:57+01:00",
                "timezone": "Europe/Warsaw"
            }
        },
        "publication": null,
        "reference_number": "FR/2026/02/20/2NNQ",
        "requirements": {
            "transport": {
                "count": null,
                "settlement": "route",
                "settlement_basis": null
            }
        },
        "shipment_external_id": "1111",
        "status": "new",
        "temperature": {
            "max": null,
            "min": null
        },
        "transit_time": 4300,
        "transport_type": "ftl",
        "truck_bodies": [
            "dump-truck"
        ],
        "unloading": {
            "coordinates": {
                "latitude": 47.61,
                "longitude": 13.7824
            },
            "place": {
                "country": "pl",
                "locality": "Wroclaw",
                "postal_code": "54-128"
            },
            "timespans": {
                "begin": "2026-02-26T10:28:57+01:00",
                "begin_local": "2026-02-26T10:28:57+01:00",
                "end": "2026-02-26T12:28:57+01:00",
                "end_local": "2026-02-26T12:28:57+01:00",
                "timezone": "Europe/Warsaw"
            }
        },
        "vehicle_size": "lorry",
        "volume": 12.1,
        "width": 6.6
  }
]

Client errors (code 400)

HTTP 4xx sta­tus codes indi­cate client errors, mean­ing that the request could not be processed due to an issue on the client side. Below is a list of request-spe­cif­ic errors.

Example error 1

Incor­rect field in query

{
    "detail": "Failed Validation",
    "status": 422,
    "title": "Unprocessable Entity",
    "validation_messages": {
        "sortBy": {
            "notInArray": "Allowed values: status, created_at, loading_date, unloading_date, archived_at"
        }
    }
}