seating-offer-controller
Update material for a seating offer
The material compositions for a seating offer will be replaced by new ones. Each new material composition will be specified with carriages and carriage details.
path Parameters
datedServiceJourneyIdThe dated service journey of the seating offer that will be updated.
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
Update material for a seating offer › Request Body
existingMaterialCompositionNetexIdThe netex id of the material composition that will be changed.
List of elements in the changed material composition. Each list element corresponds to a carriage.
newMaterialCompositionNetexIdThe new netex id of the material composition that will be changed. If not supplied, an id will be generated.
Update material for a seating offer › Responses
OK
datedServiceJourneyIdThe netex id of the datedServiceJourney
datedServiceJourneyVersionThe version of the datedServiceJourney
organisationIdThe organisation id this seating offer is operated by.
seatingOfferStatusDescribes the seating offer status
serviceJourneyIdThe netex id of the serviceJourney
operatingDateThe date which the departure belongs to. Might differ from departureDateTime.
departureDateTimeThe time of departure from the first station.
lineIdThe netex id of the line
createdAtWhen this seating offer was initially created
inactiveWhether this seating offer is closed for sale or not
manualMaterialWhether the material for this seating offer was set manually.
transportTypeThe type of transport this seating offer is for.
replacesNetexIdNetex id for the previous material used for this seating offer. If null the material on this dated service journey has never been changed.
updatedAtThe last time this seating offer was updated. If null the seating offer has not been updated
Force refresh active elements after changes in rolling-stock
This endpoint fetches updated elements by series from rolling-stock, and updates the seating-offer
query Parameters
elementSeriesThe element series that has been updated.
fromDateThe earliest departure date of the seatingOffers that will be refreshed.
toDateThe latest departure date of the seatingOffers that will be refreshed.
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
Force refresh active elements after changes in rolling-stock › Responses
OK
Fetch journey metadata about a given dated service journey
The response contains metadata on seating offer and the elements attached based on a given dated service journey id.
path Parameters
datedServiceJourneyIdThe datedServiceJourney info that will be fetched.
query Parameters
datedServiceJourneyVersionHeaders
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 journey metadata about a given dated service journey › Responses
OK
datedServiceJourneyIdThe netex id of the datedServiceJourney
datedServiceJourneyVersionThe version of the datedServiceJourney
organisationIdThe organisation id this seating offer is operated by.
seatingOfferStatusDescribes the seating offer status
serviceJourneyIdThe netex id of the serviceJourney
operatingDateThe date which the departure belongs to. Might differ from departureDateTime.
departureDateTimeThe time of departure from the first station.
lineIdThe netex id of the line
createdAtWhen this seating offer was initially created
inactiveWhether this seating offer is closed for sale or not
manualMaterialWhether the material for this seating offer was set manually.
transportTypeThe type of transport this seating offer is for.
replacesNetexIdNetex id for the previous material used for this seating offer. If null the material on this dated service journey has never been changed.
updatedAtThe last time this seating offer was updated. If null the seating offer has not been updated
Update seating offer for datedServiceJourney.
Update the seating offer for the given datedServiceJourney. Currently it is only possible to set seating-offer as inactive, which will close the departure for sales.
path Parameters
datedServiceJourneyIdThe datedServiceJourney info that will be updated.
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
Update seating offer for datedServiceJourney. › Request Body
inactiveIf true, the departure will not be open for sales
manualMaterialIf true, the material on this SeatingOffer has been set manually
Update seating offer for datedServiceJourney. › Responses
OK
datedServiceJourneyIdThe netex id of the datedServiceJourney
datedServiceJourneyVersionThe version of the datedServiceJourney
organisationIdThe organisation id this seating offer is operated by.
seatingOfferStatusDescribes the seating offer status
serviceJourneyIdThe netex id of the serviceJourney
operatingDateThe date which the departure belongs to. Might differ from departureDateTime.
departureDateTimeThe time of departure from the first station.
lineIdThe netex id of the line
createdAtWhen this seating offer was initially created
inactiveWhether this seating offer is closed for sale or not
manualMaterialWhether the material for this seating offer was set manually.
transportTypeThe type of transport this seating offer is for.
replacesNetexIdNetex id for the previous material used for this seating offer. If null the material on this dated service journey has never been changed.
updatedAtThe last time this seating offer was updated. If null the seating offer has not been updated
Fetch list of seating offers given either serviceJourneyId or lineId
Get a list of all seating offers based on either serviceJourneyId or lineId
query Parameters
serviceJourneyIdThe netex serviceJourneyId for the seating offers
lineIdThe netex lineId for the seating offers
statusesThe statuses of the seatingOffers that will be fetched. Defaults to ACTIVE and TO_BE_REPLACED.
fromDateThe earliest departure date of the seatingOffers that will be fetched.
toDateThe latest departure date of the seatingOffers 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
Fetch list of seating offers given either serviceJourneyId or lineId › Responses
OK
datedServiceJourneyIdThe netex id of the datedServiceJourney
datedServiceJourneyVersionThe version of the datedServiceJourney
organisationIdThe organisation id this seating offer is operated by.
seatingOfferStatusDescribes the seating offer status
serviceJourneyIdThe netex id of the serviceJourney
operatingDateThe date which the departure belongs to. Might differ from departureDateTime.
departureDateTimeThe time of departure from the first station.
lineIdThe netex id of the line
createdAtWhen this seating offer was initially created
inactiveWhether this seating offer is closed for sale or not
manualMaterialWhether the material for this seating offer was set manually.
transportTypeThe type of transport this seating offer is for.
replacesNetexIdNetex id for the previous material used for this seating offer. If null the material on this dated service journey has never been changed.
updatedAtThe last time this seating offer was updated. If null the seating offer has not been updated
Fetch available seats on a seating offer
The response contains seats that are available for reservation, grouped by their element.
path Parameters
datedServiceJourneyIdThe datedServiceJourney the seats will be fetched for.
query Parameters
originThe origin of the capacity query.
destinationThe destination of the capacity query.
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 available seats on a seating offer › Responses
OK
carriageIdentifierCarriage number of the element.
Available seats in element.
Fetch list of serviceJourneyIds with period of first and last departure date
query Parameters
lineIdThe netex lineId for the unique serviceJourneyIds with seating offers
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 list of serviceJourneyIds with period of first and last departure date › Responses
OK
serviceJourneyIdThe netex id of the serviceJourney
firstDepartureDateThe first date and time of departure.
lastDepartureDateThe last date and time of departure.
Fetch list of unique serviceJourneyId per lineId
query Parameters
lineIdThe netex lineId for the unique serviceJourneyIds with seating offers
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 list of unique serviceJourneyId per lineId › Responses
OK
Fetch journey data to debug a dated service journey
The response contains requested data on seating offer for a given dated service journey id.
path Parameters
datedServiceJourneyIdThe datedServiceJourney debug info that will be fetched.
query Parameters
datedServiceJourneyVersionThe version of the seating offer to fetch. Fetches the newest version if not specified
elementCarriageIdentifierThe carriage to fetch seats and seat usages for. Fetches all if not specified
seatNumberThe seat to fetch seat usages for. Fetches all if not specified.
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 journey data to debug a dated service journey › Responses
OK
datedServiceJourneyIdThe netex id of the datedServiceJourney
datedServiceJourneyVersionThe version of the datedServiceJourney
organisationIdThe organisation id this seating offer is operated by.
seatingOfferStatusDescribes the seating offer status
serviceJourneyIdThe netex id of the serviceJourney
departureDateTimeThe time of departure from the first station.
lineIdThe netex id of the line
createdAtWhen this seating offer was initially created
createdByThe organisation id this seating offer was created by.
updatedByThe organisation id that last updated this seating offer.
inactiveWhether this seating offer is closed for sale or not
manualMaterialWhether the material for this seating offer was set manually.
capactiyOnlyWhether the seating offer has real RollingStock material or is meant for capacity only.
transportTypeThe type of transport this seating offer is for.
replacesNetexIdNetex id for the previous material used for this seating offer. If null the material on this dated service journey has never been changed.
updatedAtThe last time this seating offer was updated. If null the seating offer has not been updated
Fetch journey data to debug a dated service journey
The response contains requested data on seating offer for a given dated service journey id.
path Parameters
datedServiceJourneyIdThe datedServiceJourney debug info that will be fetched.
query Parameters
datedServiceJourneyVersionThe version of the seating offer to fetch. Fetches the newest version if not specified
elementCarriageIdentifierThe carriage to fetch seats and seat usages for. Fetches all if not specified
seatNumberThe seat to fetch seat usages for. Fetches all if not specified.
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 journey data to debug a dated service journey › Responses
OK
datedServiceJourneyIdThe netex id of the datedServiceJourney
datedServiceJourneyVersionThe version of the datedServiceJourney
organisationIdThe organisation id this seating offer is operated by.
seatingOfferStatusDescribes the seating offer status
serviceJourneyIdThe netex id of the serviceJourney
departureDateTimeThe time of departure from the first station.
lineIdThe netex id of the line
createdAtWhen this seating offer was initially created
createdByThe organisation id this seating offer was created by.
updatedByThe organisation id that last updated this seating offer.
inactiveWhether this seating offer is closed for sale or not
manualMaterialWhether the material for this seating offer was set manually.
capactiyOnlyWhether the seating offer has real RollingStock material or is meant for capacity only.
transportTypeThe type of transport this seating offer is for.
replacesNetexIdNetex id for the previous material used for this seating offer. If null the material on this dated service journey has never been changed.
updatedAtThe last time this seating offer was updated. If null the seating offer has not been updated