Entur Developer
Partner
REST
Seating manager

travel-intention-controller


Update TravelIntention and its reservations

PATCH
https://api.entur.io/seating-manager
/v1-beta/travel-intentions/{travelIntentionReference}

Updates state of a TravelIntention and its associated reservations in a single call. See field descriptions for supported fields and validation rules.

Update TravelIntention and its reservations › path Parameters

travelIntentionReference
​string · uuid · required · style: simple

Update TravelIntention and its reservations › Headers

ET-Client-Name
​string · style: simple

Entur Client Header. It is required that all consumers identify themselves by using this header. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: <company>-<application>.

X-Correlation-Id
​string · style: simple

Correlation id

Update TravelIntention and its reservations › Request Body

sendNotification
​boolean · required

Set to false to skip the notifications: RebookedTravelIntention and the legacy RebookedReservation and ReplacedReservation on confirm, and RejectedReservation on reject. Reservation events are always sent. Only together with reservationStatus=CONFIRMED or reject=true. Defaults to true.

Example: true
reservationStatus
​string | null · enum

CONFIRMED (requires rebookingStatus=ACCEPTED)

  • Every DRAFT becomes CONFIRMED (ACCEPTED). A CONFIRMED version it replaces becomes DEPRECATED.
  • A DRAFT whose order is not confirmed gets rebookingStatus REBOOKED_DRAFT instead and is confirmed when the order is. Legs the new journey no longer has are then not changed.
  • CONFIRMED reservations, such as legs the rebooking did not change, are not changed.
  • Legs the new journey no longer has (DRAFT or CONFIRMED on the previous version) become DEPRECATED, and their seats are released.
  • Sends RebookedTravelIntention with all CONFIRMED reservations, unless sendNotification=false.
  • Already confirmed: nothing changes, but RebookedTravelIntention is sent again.
  • 409 if a DRAFT is not SUGGESTED or ACCEPTED, or has failed lines, or if there is neither a DRAFT nor an accepted reservation.

CANCELLED (cannot be combined with other fields)

  • Cancels all reservations, including legs the new journey no longer has.
  • A CONFIRMED reservation becomes DEPRECATED and gets a new CANCELLED version. A DRAFT becomes CANCELLED, and a CONFIRMED version it replaces becomes DEPRECATED. All seats are released.
  • The TravelIntention is not changed, and no notification is sent. Also allowed when the TravelIntention is REJECTED.
  • 409 if a DRAFT replaces a version that is neither CONFIRMED nor DEPRECATED.
Enum values:
CONFIRMED
CANCELLED
Example: CONFIRMED
rebookingStatus
​string | null · enum

Sets rebookingStatus on the DRAFT reservations.

  • MANUAL: from SUGGESTED.
  • SUGGESTED: from MANUAL without failed lines, or from ACCEPTED.
  • ACCEPTED: only together with reservationStatus=CONFIRMED.

CONFIRMED reservations, and DRAFTs that already have the status, are not changed. 409 if there is no DRAFT, or a DRAFT cannot change to the status. Not allowed on a NO_JOURNEY TravelIntention or together with reject=true.

Enum values:
ACCEPTED
MANUAL
SUGGESTED
Example: ACCEPTED
reject
​boolean | null

Rejects the rebooking.

  • The TravelIntention becomes REJECTED. Every DRAFT gets rebookingStatus REJECTED, its lines become failed, and its seats are released.
  • CONFIRMED reservations, such as legs the rebooking did not change, are not changed.
  • Sends RejectedReservation for each rejected DRAFT, unless sendNotification=false.
  • NO_JOURNEY: only the TravelIntention is rejected, and RejectedReservation is sent for each reservation on the previous version.
  • Already REJECTED: nothing changes, but RejectedReservation is sent again.
  • 409 if there is no DRAFT. Cannot be combined with rebookingStatus or reservationStatus.
Example: true
info
​string | null

Reason for the rejection, stored on the TravelIntention and the rejected reservations. Only together with reject=true.

Example: No more seats available
snoozed
​boolean | null

Sets or clears snoozed on the current TravelIntention version. Reservations are not changed. Cannot be combined with reject=true.

Example: true
notificationScheduledAt
​string | null · date-time

When RebookedTravelIntention asks for the customer notification to be sent, as ISO 8601 with offset. Omit to send it immediately. Only together with reservationStatus=CONFIRMED and sendNotification=true.

Example: 2026-01-10T08:00:00+01:00

Update TravelIntention and its reservations › Responses

No Content

No data returned

Did you find what you were looking for?