Schemas
Price
amountThe amount.
currencyThe currency of the amount.
vatGroupThe VAT group.
Carnet
amountNumber of times the ticket can be used.
durationValidity duration of each use, formatted according to ISO-8601.
ApiError
titleError title, typically Http reason phrase.
detailError details.
statusHttp error status.
timestampTimestamp from the server.
pathApi uri.
Validation errors.
RuleSpec
journeyOrganizeAlgorithmThere are two supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the two algorithms will generate these combinations: SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers.
priceComparisonAlgorithmThere are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen.
onlyIncludeRecommendedOffersOnly keep Offers referenced by one or more Recommendations.
mixInOffersWithHigherFlexibilityOnly applicable to multi leg journeys. If part of the journey has no Offer for the required flexibility, Recommendations will mix in a higher flexibility if it matches other parameters.
mixInOffersWithOtherFacilitySetsOnly applicable to multi leg journeys. If part of the journey has no Offer for the required facility set, Recommendations will mix in the cheapest facility set that matches other parameters.
onlyKeepUpgradeProductSalesPackagesWhen enabled, only offers containing exclusively upgrade products (e.g. seat reservations) are considered for recommendations. Offers containing base fare products are excluded.
onlyIncludeMostCompleteInCategorySpecBETA: This field is in beta and may change or be removed in future versions.
onlyIncludeRecommendationsWithOffersToBuyOnly include Recommendations with OffersToBuy.
Traveller
idIdentifier for the traveller. The travellers id will be referenced in the response where natural. Specifying an id for each traveller can make it easier to determine the seating and for whom each product is intended. If no ID is specified, the traveller will be assigned a random ID, only valid for the particular offer.
ageSpecify the travellers age, to let the system calculate the corresponding userType.
userTypeA type of traveller. An offer for userType=CHILD, will naturally be different than an offer for userType=ADULT. Subset of UserTypeEnumeration from NeTEx usage parameter eligibility support.
baggageTypesA filter for what kind of luggage the traveller wants offers for. If, for example, a user wants to bring a bicycle along for the trip. "BICYCLE" can be specified in that array. Offers that can't fulfil the wish for a "BICYCLE" accommodation are still returned from our services.
campaignCodesCampaign codes that may grant entitlements or discounts. Usually not connected to the identity of the Traveller.
Customer-specific context used to personalise and determine entitlements for a traveller.
LegRequest
travelDateThe date of departure from the source origin. In most cases, this is the same date as departure from fromStopPlace. However, in the case of a ServiceJourney spanning midnight and departure from fromStopPlace is after midnight, these two dates are not equal. The correct date to use is for the ServiceJourney.
toStopPlaceIdNSR:StopPlace:.+$ · requiredStop place id for the destination of the leg.
fromStopPlaceIdNSR:StopPlace:.+$ · requiredStop place id for the origin of the leg.
serviceJourneyId^[A-Z]{3}:ServiceJou… · requiredService journey id for the leg.
travelDateTimeThe specific time for the chosen journey at fromStopPlaceId as specified in JourneyPlanner.
OfferToBuy
idId of the offer to buy.
numberToBuyNumber of this offer to buy.
possibleTravellerIdsOne possible grouping of travellers for the number of offers to buy.
selectableProductIdsList of selectableIds of supplement products which upgrades a product.
OwnedRight
id^[A-Z]{3}:.+:.+$ · requiredThe netex-id of the entity.
zones^[A-Z]{3}:FareZone:.…The zones the existing ticket is valid for.
Configuration on how to configure the discount right. Requires a CustomerIdentity with source ABT.
GroupConfig
numberOfCompartmentsNumber of compartments to group travellers in. If we are unable to fit the given travellers in the specified amount of compartments, no offer will be returned.
CategorySpec
typesOfRecommendationWhich categories to use for flexibility grouping.
facilitySetIf not specified, all accommodations will be considered. Be aware that if not specified, the facilitySet attribute in the recommendation object will read "facilitySet":"ANY". To get the actual facilitySet you would have to look up the corresponding offer.
fareClassesIf not specified, all fareClasses will be considered. Be aware that if not specified, the fareClass attribute in the recommendation object will read "fareClass":"ANY". To get the actual fareClass you would have to look up the corresponding offer.
durationTypesIf not specified, all durationTypes will be considered.
DurationEnum
Validity duration. Subset of UsageValidityTypeEnumeration from NeTEx usage parameter travel support.
GroupSummary
idversiondescriptionUser profiles and their required number of travellers in the group.
nameOfferSummary
idThe id of an offer. This id will be referenced in recommendations where there are "offersToBuy". Also, the offerId can be used to obtain the original offer-structure from v1.
nameThe name of the SalesPackage that this OfferSummary represents.
Price with currency and optional VAT information for this element.
descriptionThe description of the offer.
salesPackageIdId of the SalesPackage.
All mandatory products that give the buyer a right to travel is found here.
salesPackageVersionVersion of the SalesPackage.
Describes the geographical validity of a product. Includes information on ServiceJourneys, PointToPointValidity and ZonalValidity. In cases of replacement transport, these fields describe the replacement journey.
availableNumber of this offer available to buy at this point in time.
Mapping of which travellers this offer applies to.
The customer may join the following programs to get points from buying this offer. It is expected that the caller does work to add the customer to the program.
A discount might be given based on previous transactions if CappedDiscountRequest was specified. A cappingSpecification must be specified in the traveller attribute in the request to the search/ endpoints in order to receive a discount. Capping must also be enabled by the operator of the service journey.
Buying this offer may give points in these personalisation programs.
optionalProductsSelectableIdsThis field contains an array of selectableId's to optional products associated with an offer. The optional products are found in the field "optionalProducts" in the search response.
UserTypeEnum
A type of traveller. An offer for userType=CHILD, will naturally be different than an offer for userType=ADULT. Subset of UserTypeEnumeration from NeTEx usage parameter eligibility support.
FareClassEnum
A type of FareClass. Subset of FareClassEnumeration from NeTEx service restrictions support.
ZonalValidity
Zone at the end of the journey.
Zone at the start of the journey.
Unordered list of valid fare zones through which the trip traverses.
Reference to a group of fare zones. The offer is valid through all of the zones in this group.
ProgramSummary
idnameinfoLinkURL to information about the loyalty program.
referenceIdentifier for the loyalty program.
Recommendation
idUnique identifier of a recommendation within this response.
Describes which offer to buy and how many of this offer to buy to satisfy a recommendation.
typeOfRecommendationDescribes the degree of flexibility in a recommendation (refundable vs non-refundable, exchangeable vs non-exchangeable). Whether the recommendation is the CHEAPEST - regardless of flexibility, or whether the recommendation is for a specified product.
Describes the geographical validity covered by the recommendation.
fareClassA type of FareClass. Subset of FareClassEnumeration from NeTEx service restrictions support.
facilitySetSubset of AccommodationFacilityEnumeration from NeTEx facility support.
durationTypeValidity duration. Subset of UsageValidityTypeEnumeration from NeTEx usage parameter travel support.
List of RecommendationCombination covering remaining parts of the journey. The current recommendation can be combined with one of these to cover the entire journey.
SearchResponse
A set of recommendations matching the provided recommendation configuration.
noticesAdditional information about potentially missing information or functionality due to transient errors.
tripPatternIdBaggageTypeEnum
Type of baggage. Subset of BaggageTypeEnumeration from NeTEx usage parameter luggage support.
OptionalProduct
idId of the optional product.
nameName of the optional product.
Price with currency and optional VAT information for this element.
versionVersion of the optional product.
Summary of properties for a product. The properties field contains all necessary information about a product. Here you will find accommodations, baggageTypes, fareClass, userProfiles and more.
descriptionDescription of the optional product.
selectableIdThis is the id that is referred to from the OfferSummary's optionalProductsSelectableId's. It is also the id used when reserving the offer in later steps.
Describes the geographical validity of a product. Includes information on ServiceJourneys, PointToPointValidity and ZonalValidity. In cases of replacement transport, these fields describe the replacement journey.
availableHow many of this optional product is available to buy at this point in time.
Optional discounts applied to this product.
supplementProductTypeDescribes what type of supplement product this is. Compatible with the current NeTEx implementation of SupplementProductTypeEnumeration at Entur.
CustomerIdentity
sourceWhich system the customer information can be found in.
customerRefA reference to a customer.
TravellerContext
One or more references to customer identities in different systems.
PropertiesSummary
id and and name of an organisation.
Representation of a repeatable ticket, with an optional duration for each instance and an amount of times the ticket can be used.
durationValidity duration of the product, formatted according to ISO-8601.
fareClassesbaggageTypesdurationTypeValidity duration. Compatible with the current NeTEx implementation of UsageValidityTypeEnumeration at Entur. Related to but may include more than 'DurationTypeEnum'.
isRefundableWhether the ticket can be refunded.
Accommodation facilities available per service journey.
isExchangeableWhether the ticket can be exchanged for a different departure.
nuisanceFacilitiesid, version, name and user type of a user.
Reservation requirements per service journey.
CappingAlternative
Price with currency and optional VAT information for this element.
endDateTimeThe end date of this alternative.
selectableIdA pseudo random string that is used to select what alternative to use when purchasing an offer.
startDateTimeThe start date of this alternative.
PreassignedProduct
idThe id if the preassigned product.
nameThe name of the preassigned product.
versionThe version of the preassigned product.
Summary of properties for a product. The properties field contains all necessary information about a product. Here you will find accommodations, baggageTypes, fareClass, userProfiles and more.
descriptionThe description of the preassigned product.
Describes the geographical validity of a product. Includes information on ServiceJourneys, PointToPointValidity and ZonalValidity. In cases of replacement transport, these fields describe the replacement journey.
Optional discounts applied to this product.
TripPatternRequest
Legs constituting a suggested sequence of rides and links for this trip.
UnavailableProduct
idNeTEx ID of the unavailable product.
unavailableStatusStatus of why a product is unavailable. NOT_IN_PURCHASE_WINDOW - Product is outside of window where it can be purchased. NOT_YET_AVAILABLE - The product is not available yet, no further information is specified NO_QUOTAS_DEFINED - The product requires quotas to be purchased, but no quotas are defined yet. NO_LONGER_AVAILABLE - The product is no longer available for purchase, no further information is specified. SOLD_OUT - The product has no more seats or quotas available for sale. CLOSED - The product is closed for sale.
nameHuman readable name for the product.
Properties of an unavailable product.
UserProfileSummary
idnameversionuserTypeA type of person. An offer for userType=CHILD, will naturally be different than an offer for userType=ADULT. Compatible with the current NeTEx implementation of UserTypeEnumeration at Entur. Related to but may include more than 'UserTypeEnum'.
OrganisationSummary
idthe netex-id of organisation.
namethe name of the organisation.
CappedDiscountOption
CappingSpecification
cappedDiscountRightId^[A-Z]{3}:CappedDisc… · requiredReference to a CappedDiscountRight.
minimumAlternativeDurationSpecify a minimum alternative duration to avoid alternatives that doesn't last long enough in the future to be useful.
minimumDurationBetweenAlternativesTo avoid too many similar alternatives you can specify a minimum period between the start date of each alternative.
DiscountRightSummary
idnamePrice with currency and optional VAT information for this element.
versiondescriptionoriginatingFromProductIdGeographicalValidity
Describes zones where a product is valid. Either a specific list of from, to and viaZones, or a reference to a GroupOfTariffZones.
Service journeys where this product is valid.
Start and stop places where the product is valid.
PointToPointValidity
Valid to place.
Valid from place.
RecommendationConfig
Determines what rules to apply when categorising and recommending offers for travellers.
How to categorise and group recommendations based on different categories. Recommendations will attempt to calculate categories from the combination of input parameters.
RecommendationResult
Recommendations that cover the entire journey.
Recommendations that cover part of the journey. Use combineWithToCoverEntireJourney when available to build recommendations to achieve full journey coverage.
ProgramAccrualSummary
idnamepausedWhether accrual for this program is currently paused.
infoLinkURL to information about the loyalty program.
referenceIdentifier for the loyalty program.
SearchAuthorityRequest
travelDateThe specific time for when the ticket should be activated. For most purposes it is recommended to use the current time as travel date. That is because most period tickets are activated immediately on purchase. If you want to get a period ticket that should be activated some time in the future, specify the future date.
The travellers the offer should be valid for.
authorityId^[A-Z]{3}:Authority:… · requiredNeTEx-id of Authority. Only offers valid for this Authority will be considered.
TravellerMappingSummary
userTypeA type of person. An offer for userType=CHILD, will naturally be different than an offer for userType=ADULT. Compatible with the current NeTEx implementation of UserTypeEnumeration at Entur. Related to but may include more than 'UserTypeEnum'.
travellerIdsThe ids of the travellers.
maxNumberOfTravellersThe maximum number of travellers that can be selected from the group.
minNumberOfTravellersThe minimum number of travellers that can be selected from the group.
SearchGeoLocationRequest
to^[A-Z]{3}:FareZone:.… · requiredThe id of the destination stop place or zone.
from^[A-Z]{3}:FareZone:.… · requiredThe id of the origin stop place or zone.
travelDateThe specific time for when the ticket should be activated. For most purposes it is recommended to use the current time as travel date. That is because most period tickets are activated immediately on purchase. If you want to get a period ticket that should be activated some time in the future, specify the future date.
The travellers the offer should be valid for.
via^[A-Z]{3}:FareZone:.…Optional sequence of via locations. Mostly useful for zone based searches.
authority^[A-Z]{3}:Authority:…Optional authority ID, to further refine search. The returned Offers will only contain products allowing or requiring the provided Authority. In the case of two rail stopPlaces, Authority is set from pre-defined rules and this parameter will be ignored.
transportModeOptional transport mode, to further refine search. Most useful when there is a specific use case where there may be overlapping Offers, for instance high speed ferry or rail.
Specify what types of recommendations are returned in the response. For a more in depth explanation of recommendations, see the guide for recommendations at TODO [INSERT NEW LINK].
offersForWholeTripOnlySet this flag to true if you only want tickets that are valid all the way between the stop-places specified in the "from" and "to" field. When set to false, you will receive additional offers that are valid for parts of the trip with one of the stop places covered.
SearchTripPatternRequest
The travellers.
List of legs constituting a suggested sequence of rides and links for a specific trip.
A configuration of how to group travellers in offers.
Specify what types of recommendations are returned in the response. For a more in depth explanation of recommendations, see the guide for recommendations at TODO [INSERT NEW LINK].
includeMultiTripOffersIndicates whether multi-trip offers should be included in the response, such as monthly passes, day passes, and similar options.
TypeOfRecommendationEnum
Describes the degree of flexibility in a recommendation (refundable vs non-refundable, exchangeable vs non-exchangeable). Whether the recommendation is the CHEAPEST - regardless of flexibility, or whether the recommendation is for a specified product.
AccommodationFacilityEnum
Subset of AccommodationFacilityEnumeration from NeTEx facility support.
AvailableFulfilmentMethod
idNeTEx standard.
versionNeTEx standard.
distributionRightsSays what the distribution channel is allowed to do with this offer. Compatible with the current NeTEx implementation of DistributionRightsEnumeration at Entur.
RecommendationCombination
Describes the geographical validity covered by the recommendation.
recommendationsToCoverEntireJourneyYou must select all recommendations in the list to cover the geographical validity.
UserProfileInGroupSummary
idnumberOfPeopleNumber of travellers required for this user profile in the group.
versionGeographicalValidityCovered
coversEntireJourneyIndicates whether the geographical validity covers the entire journey or not.
Describes zones where a product is valid. Either a specific list of from, to and viaZones, or a reference to a GroupOfTariffZones.
serviceJourneysThe service journeys this geographical validity applies to.
Start and stop places where the product is valid.
JourneyOrganizeAlgorithmEnum
There are two supported algorithms for organizing how we present each combination of journeys. Given three journeys in the trip pattern; SJ-1, SJ-2, SJ-3 the two algorithms will generate these combinations: SUBSEQUENT_COMBINATIONS: (SJ-1), (SJ-2), (SJ-3), (SJ-1, SJ-2), (SJ-2, SJ-3), (SJ-1, SJ-2, SJ-3) COMBINATIONS_FROM_OFFERS: Will only organize by unique journey combinations covered by offers.
PriceComparisonAlgorithmEnum
There are two supported algorithms for comparing offers; TOTAL_PRICE and BEFORE_SDR. TOTAL_PRICE: This is the default algorithm used if not specified, this only looks at the total price of the offers and finds the cheapest, if two offers have the same price, the one with the least amount of offers in the combination is chosen. BEFORE_SDR: This algorithm unapplies all sales discount rights in the offers before comparing prices, when the price of two combinations is the same, the combination containing the most amount of SDRs is chosen, thereafter if the amount is the same the combination with the least amount of offers in the combination is chosen.
UnavailableProductProperties
fareClassesisRefundableWhether the product would have been refundable.
id and and name of an organisation.
accommodationsisExchangeableWhether the product would have been exchangeable.
AccommodationForServiceJourney
accommodationReservingRequirementForServiceJourney
seatMapIsAvailableWhether a seat map is available for seat selection on this service journey.
reservingRequirementIndicates requirements for reservation. Compatible with the current NeTEx implementation of ReservationEnumeration at Entur.