rebooking-controller
Trigger rebooking of multiple reservation to a new seat type
Attempt to find new seats with a new seat type.
Headers
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
Trigger rebooking of multiple reservation to a new seat type › Request Body
datedServiceJourneyIdThe datedServiceJourney whose reservations should be rebooked
reservationReferencesReferences of reservations that should be moved
Properties of a seat. They describe both physical and logical properties of a seat.Physical properties are for example position of the seat.Logical properties describe properties that the operator use when selling the seat. For example fare class.
mustReserveWholeCompartmentIf accommodation is COUCHETTE or SLEEPER, should the whole compartment be reserved (true) or can strangers be seated together (false)?
Trigger rebooking of multiple reservation to a new seat type › Responses
OK
versionThe version of the reservation. Starts with 1.
Destination StopPlace of the reservation
Destination StopPlace of the reservation
datedServiceJourneyIdId of the dated service journey
statusDescribes the reservation status.
referenceThe reference for this reservation
organisationIdThe organisation id of the order which the reservation belongs to.
createdAtWhen this reservation was initially created
versionedAtWhen this version of this reservation was created
updatedAtWhen this was previously updated. This includes status changes, reservation line changes and so on.
createdByThe organisation id this version of the reservation was created by.This id is determined by the authentication used by the client.
rebookingStatusDescribes the rebooking status of the reservation.
orderIdThe 'id' of the order the reservation belongs to
updatedByThe organisation id of the organisation that last updated this reservation.This id is determined by the authentication used by the client.
infoAdditional free text information about the reservation.
Trigger rebooking of reservation
Attempt to find new seats for a reservation on it's current departure. If no new seats found, keep existing reservation lines.
path Parameters
referenceThe reference of the reservation.
Headers
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
Trigger rebooking of reservation › Responses
OK
referenceThe reference for this reservation, this is a randomly generated UUID
versionThe highest/newest version of this reservation. The initial version number is 1.
Destination StopPlace of the reservation
Destination StopPlace of the reservation
datedServiceJourneyIdId of the dated service journey
organisationIdThe organisation id of the order which the reservation belongs to.This id is determined by the authentication used by the client.
createdAtWhen this reservation was initially created
versionedAtWhen this version of this reservation was created
updatedAtWhen this was previously updated. This includes status changes, reservation line changes and so on.
reservationStatusDescribes the reservation status.
rebookingStatusDescribes the rebooking status of the reservation.
Reservation lines that are rebooked for this reservation, including previous reservation line.
orderIdThe orderId of the connected order where the creating client provided it. There are reservations without a connected order.
previousDatedServiceJourneyIdId of the previous dated service journey if the dated service journey has been changed
infoAdditional free text information about the reservation.
Fetch unhandled rebooked reservations for a dated service journey
Fetch all unhandled rebooked reservations for a dated service journey. A unhandled rebooked reservation is a reservations that has status=DRAFT and rebooking status SUGGESTED, MANUAL or ACCEPTED.
query Parameters
datedServiceJourneyIdDated service journey id to fetch rebooked reservations for.
reservationStatusThe status of the reservations considered, defaults to DRAFT
rebookingStatusesThe rebooking statuses of the reservation that will be fetched. Defaults to SUGGESTED, MANUAL or ACCEPTED.
Headers
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
Fetch unhandled rebooked reservations for a dated service journey › Responses
OK
referenceThe reference for this reservation, this is a randomly generated UUID
versionThe highest/newest version of this reservation. The initial version number is 1.
Destination StopPlace of the reservation
Destination StopPlace of the reservation
datedServiceJourneyIdId of the dated service journey
organisationIdThe organisation id of the order which the reservation belongs to.This id is determined by the authentication used by the client.
createdAtWhen this reservation was initially created
versionedAtWhen this version of this reservation was created
updatedAtWhen this was previously updated. This includes status changes, reservation line changes and so on.
reservationStatusDescribes the reservation status.
rebookingStatusDescribes the rebooking status of the reservation.
Reservation lines that are rebooked for this reservation, including previous reservation line.
orderIdThe orderId of the connected order where the creating client provided it. There are reservations without a connected order.
previousDatedServiceJourneyIdId of the previous dated service journey if the dated service journey has been changed
infoAdditional free text information about the reservation.
query Parameters
lineIdThe line ID for which service journeys with rebooking stats should be fetched
serviceJourneyIdThe serviceJourney for which an overview of the rebookings of the connected dated service journeys that will be fetched
reservationStatusThe status of the reservations considered, defaults to DRAFT
Headers
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
Responses
OK
datedServiceJourneyIdId of the dated service journey
amountOfSuggestedRebookingsNumber of rebookings suggested
amountOfManualRebookingsNumber of rebookings ready for manual handling
amountOfAcceptedRebookingsNumber of rebookings accepted
query Parameters
serviceJourneyIdThe serviceJourney for which an overview of the rebooking history of the connected dated service journeys that will be fetched
Headers
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
Responses
OK
datedServiceJourneyIdId of the dated service journey
amountOfRejectedNumber of rejected rebooked reservations
amountOfConfirmedNumber of confirmed rebooked reservations