travel-intention-controller
Update TravelIntention and its reservations
Updates state of a TravelIntention and its associated reservations in a single call. See field descriptions for supported fields and validation rules.
path Parameters
travelIntentionReferenceHeaders
ET-Client-NameEntur 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-IdCorrelation id
Update TravelIntention and its reservations › Request Body
sendNotificationSet 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.
reservationStatusCONFIRMED (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.
rebookingStatusSets 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.
rejectRejects 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
rebookingStatusorreservationStatus.
infoReason for the rejection, stored on the TravelIntention and the rejected reservations. Only together with reject=true.
snoozedSets or clears snoozed on the current TravelIntention version. Reservations are not changed. Cannot be combined with reject=true.
notificationScheduledAtWhen 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.
Update TravelIntention and its reservations › Responses
No Content