rebooking-v-1-controller
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.
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 rebooking statistics grouped by original dated service journey
Fetch statistics for original departures from today onward in Norwegian local time. Supply exactly one of organisationId or lineId; supplying both or neither returns 400. The caller must have reservation read access to the organisations owning the selected original and replacement departures. Statistics count travel intentions, not individual reservation legs, under the original departure. Departures whose five rebooking counters are all zero are omitted. The reservation status defaults to DRAFT; rebooking statuses are MANUAL, SUGGESTED and ACCEPTED, in that priority order. Snoozed travel intentions are counted separately and excluded from active counts. No-journey travel intentions are counted separately for DRAFT only.
query Parameters
organisationIdOwner organisation of the original departures. Required when lineId is omitted; cannot be combined with lineId.
lineIdLine of the original departures. Required when organisationId is omitted; cannot be combined with organisationId.
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
Fetch rebooking statistics grouped by original dated service journey › Responses
Rebooking statistics for the original departures.
originalDatedServiceJourneyIdId of the original dated service journey
replacementsAll replacement dated service journeys
amountOfSuggestedRebookingsNumber of rebookings suggested
amountOfManualRebookingsNumber of rebookings ready for manual handling
amountOfAcceptedRebookingsNumber of rebookings accepted
amountOfNoJourneyRebookingsNumber of no-journey rebookings
amountOfSnoozedRebookingsNumber of rebookings snoozed