Look up transport methods
Each leg requires a transport methodpublicId (trn_ prefix). Fetch the available methods from GET /v1/logistics/methods and save the ones you need.
The available methods are:
| Mode | Methods |
|---|---|
| Road | Lorry >32t (standard), Lorry 28–32t, Lorry 20–26t, Lorry 14–20t, Lorry 12–14t, Lorry 7.5–12t, Lorry <7.5t, Van, Passenger car |
| Sea | Container ship (heavy fuel), Container ship (Eco-fuel), Ferry, Barge |
| Rail | Train – unknown, Train – diesel, Train – electric |
| Air | Cargo plane |
Create a route
Call POST /v1/logistics/routes with two locationpublicIds (trl_ prefix) from the locations step.
Route legs
Each route requires at least one leg intransportRouteLegs. For multi-leg routes, add additional objects with incrementing order values.
type determines which leg fields are relevant:
| Type | Fields |
|---|---|
ContainerFullLoad | method, distance, isCargoLoadedOnPallets, note |
FreightPartialLoad | method, distance, isCargoLoadedOnPallets, note |
DirectTrip | method, distance, emptyReturnFactor, isCargoLoadedOnPallets, note |
emptyReturnFactor only applies to DirectTrip.