Assumptions of the functions of Transports in realization
On the platform trans.eu module “Transports in realization” is a place where you will find all information about transport tasks that have been created, carried out, completed and archived. The function via API works similarly. Transport tasks are part of an accepted transport order. One transport order can contain one or more transports carried out.
URL parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/transports-api/v1/transports
- Method: GET
Headers:
- Content type: app/json
- Accept: application/json
- Authorization: bearer {access_token}
- API Key: {unique_app_api_key}
Authorization
The authorization process is described here. Each API request must also consist of a unique Api-key obtained during application registration together with client_id and client_secret.
Endpoint operation description
Endpoint is used to get a list of transports being in realization.
Getting list of transport tasks
After querying the endpoint below, we will receive a list of transports in response
/ext/transports-api/v1/transportsThe transport list contains all the details also available when querying using the ID
Sample query using filter
GET
https://api.platform.trans.eu/ext/transports-api/v1/transports?filter={"states":["new","active","completed","archived"]}Filters available when getting list of transport tasks
filtering by transport order identifier
?filter={"order_id":"f68db929-4667-44c6-9496-6bb654cfa500"}A transport order is related to transport tasks, the Universally Unique Identifier (UUID) of the transport order helps to find transports for a given order. A transport order can contain one or more transports.
Filtering by role in transport
?filter={"role":"shipper"}The available values for role selection are:
- shipper,
- carrier,
- spectator
Filtering by transport status
?filter={"statuses":["1_awaiting_operation_dates","2_awaiting_required_information_for_transport_execution"]}Available values when selecting status are:
- 1_awaiting_operation_dates,
- 2_awaiting_required_information_for_transport_execution,
- 3_ready,
- 4_awaiting_confirmation_of_arrival_for_loading,
- 5_awaiting_confirmation_of_loading,
- 6_en_route, 7_awaiting_confirmation_of_arrival_for_unloading,
- 8_awaiting_confirmation_of_unloading,
- 9_finished,
- 10_task_cancelled”
Filtering by vehicle monitoring status on the route
?filter={"states":["new","active"]} Available values when selecting status are:
- new,
- active,
- completed,
- archived