Departures
Scheduled trips on lanes with cutoff and package capacity (aggregate Departure).
List departures by origin, destination and time window (ListDepartures)
Open Host Service read for any context. Filters are ANDed; from and to bound cutoffAt (from inclusive, to exclusive). Ordered by cutoffAt then departureId, keyset-paged: limit (1-500, default 100) and the opaque cursor from nextCursor; filters are repeated on every page request. Any other query parameter is 400 unknown-query-parameter.
Get one departure
Returns the departure with its capacity, booked and remaining packages and its state.
Cancel a scheduled departure (CancelDeparture)
Moves a SCHEDULED departure to CANCELLED and publishes DepartureCancelled, which delivery-promise and order-sourcing use to re-promise. Every assignment booked on the departure is rebooked onto the next departure from the same origin (BookingMoved) or reported as BookingFailed when none fits. Cancel before cutoffAt wherever possible. Cancelling a CANCELLED departure returns it unchanged.
Change the package capacity of a scheduled departure (ChangeDepartureCapacity)
Planner command added by gap G28. Allowed on a SCHEDULED departure; the new capacity may not be below the packages already booked (departure-full). Publishes DepartureCapacityChanged. A capacity equal to the current one changes nothing and publishes nothing. A load that is already open keeps the capacity snapshot it took at OpenLoad.