Skip to main content

Cancel a scheduled departure (CancelDeparture)

POST 

/departures/:departureId/cancellations

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.

Request​

Responses​

Departure cancelled (or already cancelled).

Response Headers
    Idempotency-Replayed

    Present, with the value true, only on a response replayed from a stored first answer (a 2xx or a refusal that is final for the request; a 5xx and a refusal that depends on state another request can change are never stored).