1. Streamlining and Visualizing the Flow of Inter-Method Dependencies
To maximize integration with the Trans.eu API and streamline the process of building your solutions, we present detailed descriptions and visualizations of key data flows and dependencies between individual API methods. Understanding how object identifiers (IDs) and statuses flow through the system is essential for effective freight and transport order management.
The purpose of this section:
•Visualize the full lifecycle of key objects (e.g., freight, transport orders).
•Explain which identifiers (IDs) are generated by each method and which are required as input for subsequent operations.
•Present the logical connections between various API modules (e.g., Freight, Transport Orders, Dock Scheduler, Monitoring).
1.1. Process Flow Diagrams
We recommend using the following diagrams, which illustrate the flow of data in key business scenarios. Each diagram focuses on a specific process, showing the sequence of API calls and the relationships between objects.
•Freight Lifecycle Diagram: Shows the path from freight posting to its fulfillment or archiving.
•Transportation Order Lifecycle Diagram: Illustrates the process of creating and managing a transport order, including connections to freight and monitoring tasks.
•Notification Lifecycle Diagram (Dock Scheduler): Shows the process of creating and managing notifications at the docks.

1.2. ID Dependencies Matrix
The table below shows key API methods, the identifiers they return, and the methods that require these identifiers to function correctly. This allows you to quickly understand the data flow.
| API module | Method/Endpoint | Returned ID (Example) | Methods requiring this ID | Comments |
| Freights | POST /ext/freights-api/v1/freight-exchange | freight-id: 8906773 | - GET /ext/freights-api/v1/freights/{freight-id} - GET /ext/freights-api/v1/freights/{freightId}/offers - POST /ext/freights-api/v1/freights/{freight-id}/archive - POST /ext/freights-api/v1/cancelPublication/{freight-id} — PUT /ext/freights-api/v1/freights/:freightId/refresh_publication - POST /ext/freights-api/v1/freights/{FeightID}/internal-note | freight-id is generated after successful freight posting, regardless of the posting method (e.g. freight-employees, freight-companies, freight-auto, private-exchange, freight-corporate). |
| Freights | GET /ext/freights-api/v1/freights/{freightId}/offers | offer-id: 4a2dbtsd-bd6b-4c24-6t2c-256af10055911617 | - POST /ext/freights-api/v1/freights/offers/{offer-id}/accept - GET /ext/freights-api/v1/freights/offers/{offers-id} - PATCH /ext/freights-api/v1/freights/offers/{offer-id}/negotiate - POST /ext/freights-api/v1/freights/offers/{offer-id}/reject | offer-id is a unique offer identifier returned by the API after receiving offers from carriers. |
| Transport orders | POST /ext/orders-api/v1/orders-created POST /ext/orders-api/v1/orders/awaiting-entry-execution-data | order-id: da012de9-faca-4b14-b380-9b94aadff6fa24… | - GET /ext/orders-api/v1/orders-created/{order-id} — POST /ext/orders-api/v1/orders-created/{order-Id}/arrived - POST /ext/orders-api/v1/orders-created/{orderId}/unloaded - PATCH /ext/orders-api/v1/orders-created/{order-Id}/confirm - POST /ext/orders-api/v1/orders/{OrderID}/required-execution-data/provide - POST /ext/orders-api/v1/orders-created/{order-id}/archive - PATCH /ext/orders-api/v1/orders/{orderId} - POST /orders-api/v1/orders/{orderId}/attachments | order-id is generated after creating a new transport order or after accepting freight (e.g. with the send_order_proposal_automatically option). It is in UUID format. |
| Transports in realization | GET /ext/transports-api/v1/transports | transport_task_id: e6b7494b-4922–4fdb-af28-97618b8fb85739 | - GET /ext/transports-api/v1/transports/{transport_task_id}- GET /ext/transports-api/v1/transports/{transport_task_id}/monitoring | Transports in progress are part of an accepted transport order. |
| Dock Scheduler | POST /ext/dock-scheduler-api/v1/announcement | announcement-id: 3860244 | - PUT /ext/dock-scheduler-api/v1/announcement/{{announcementID}}/stage - PATCH /ext/dock-scheduler-api/v1/announcement/{annoucementID}/slot - DELETE /ext/dock-scheduler-api/v1/announcement/{announcementID} - GET /ext/dock-scheduler-api/v1/announcement/{announcementID} - GET /ext/dock-scheduler-api/v1/announcement/{announcement-id}/history - PUT /ext/dock-scheduler-api/v1/announcement/{annoucementID} | announcement-id is the announcement identifier in the Dock Scheduler. |
| Vehicle Exchange | POST /ext/vehicles-api/v1/vehicles | offerId: 01E4WTST4JK6HT6SZD8PDY7BDS | - DELETE /ext/vehicles-api/v1/vehicles/:offerId - GET /ext/vehicles-api/v1/vehicles/{id} — PUT /ext/vehicles-api/v1/vehicles/:offerId | The offerId for a vehicle offer is generated after it is created. |
1.3. How to use ID dependencies:
1. Creating an object: After successfully calling a method that creates a new object (e.g. freight, transport order, notification), the system will return the unique identifier (ID) of this object in the JSON response
2.Fetching and updating: This returned ID is then used in the URLs (endpoints) of subsequent methods (e.g. GET, PUT, PATCH, DELETE) to reference the specific object, retrieve its details, update its status, or modify its properties
3.Status Monitoring: Many methods support callback_url, which allows you to asynchronously receive notifications of object status changes, eliminating the need for constant API polling.To use this feature, you must provide the callback_url field in the object creation request.