Entur Developer
Offers V3 beta

UserTypeEnum

string · enum
Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUNG_PERSON

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.

BaggageTypeEnum

string · enum
Enum values:
HANDBAG
HAND_LUGGAGE
SMALL_SUITCASE
SUITCASE
TRUNK
OVERSIZE_ITEM
BICYCLE
SPORTING_EQUIPMENT

Type of baggage. Subset of BaggageTypeEnumeration from NeTEx usage parameter luggage support.

CustomerIdentity

One or more references identifying the customer.
customerRef
​string · required

A reference to a customer.

source
​string · enum · required

Which system the customer information can be found in.

Enum values:
CUSTOMERS
ABT
Default: CUSTOMERS

CappingSpecification

Configuration on how to configure the discount right. Requires a CustomerIdentity with source ABT.
cappedDiscountRightId
​string · pattern: ^[A-Z]{3}:CappedDisc… · required

Reference to a CappedDiscountRight.

minimumDurationBetweenAlternatives
​string · duration

To avoid too many similar alternatives you can specify a minimum period between the start date of each alternative.

minimumAlternativeDuration
​string · duration

Specify a minimum alternative duration to avoid alternatives that doesn't last long enough in the future to be useful.

OwnedRight

A specification of preowned products or other entitlements that the customer already owns. They are taken into account when considering which products the user may need.
id
​string · pattern: ^[A-Z]{3}:.+:.+$ · required

The netex-id of the entity.

zones
​string[] · minItems: 1 · pattern: ^[A-Z]{3}:FareZone:.…

The zones the existing ticket is valid for.

​CappingSpecification

Configuration on how to configure the discount right. Requires a CustomerIdentity with source ABT.

TravellerContext

Customer-specific context used to personalise and determine entitlements for a traveller.
​CustomerIdentity[] · minItems: 1 · required

One or more references to customer identities in different systems.

​OwnedRight[] · minItems: 1

Traveller

A specification of a traveller. Either age or userType must be set.
id
​string

Identifier 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.

userType
​UserTypeEnum · enum

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.

Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUNG_PERSON
age
​integer · min: 0

Specify the travellers age, to let the system calculate the corresponding userType.

baggageTypes
​BaggageTypeEnum[] · minItems: 1

A 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.

Enum values:
HANDBAG
HAND_LUGGAGE
SMALL_SUITCASE
SUITCASE
TRUNK
OVERSIZE_ITEM
BICYCLE
SPORTING_EQUIPMENT
campaignCodes
​string[] · minItems: 1

Campaign codes that may grant entitlements or discounts. Usually not connected to the identity of the Traveller.

​TravellerContext

Customer-specific context used to personalise and determine entitlements for a traveller.

TypeOfRecommendationEnum

string · enum
Enum values:
FLEXIBLE
SEMI_FLEXIBLE
NON_FLEXIBLE
CHEAPEST

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.

Default: CHEAPEST

DurationEnum

string · enum
Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
WEEKEND_PASS
MONTHLY_PASS
SEASON_TICKET

Validity duration. Subset of UsageValidityTypeEnumeration from NeTEx usage parameter travel support.

Default: ANY

FareClassEnum

string · enum
Enum values:
FIRST_CLASS
SECOND_CLASS
THIRD_CLASS
ECONOMY_CLASS
BUSINESS_CLASS
TURISTA
PREFERENTE
PREMIUM_CLASS

A type of FareClass. Subset of FareClassEnumeration from NeTEx service restrictions support.

Default: ANY

AccommodationFacilityEnum

string · enum
Enum values:
ANY
SLEEPER
SEATING
COUCHETTE
RECLINING_SEATS
STANDING

Subset of AccommodationFacilityEnumeration from NeTEx facility support.

Default: ANY

CategorySpec

How to categorise and group recommendations based on different categories. Recommendations will attempt to calculate categories from the combination of input parameters.
typesOfRecommendation
​TypeOfRecommendationEnum[] · minItems: 1 · required

Which categories to use for flexibility grouping.

Enum values:
FLEXIBLE
SEMI_FLEXIBLE
NON_FLEXIBLE
CHEAPEST
Default: ["CHEAPEST"]
durationTypes
​DurationEnum[] · minItems: 1

If not specified, all durationTypes will be considered.

Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
WEEKEND_PASS
MONTHLY_PASS
SEASON_TICKET
Default: ["ANY"]
fareClasses
​FareClassEnum[] · minItems: 1

If 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.

Enum values:
FIRST_CLASS
SECOND_CLASS
THIRD_CLASS
ECONOMY_CLASS
BUSINESS_CLASS
TURISTA
PREFERENTE
PREMIUM_CLASS
Default: ["ANY"]
facilitySet
​AccommodationFacilityEnum[] · minItems: 1

If 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.

Enum values:
ANY
SLEEPER
SEATING
COUCHETTE
RECLINING_SEATS
STANDING
Default: ["ANY"]

JourneyOrganizeAlgorithmEnum

string · enum
Enum values:
SUBSEQUENT_COMBINATIONS
COMBINATIONS_FROM_OFFERS

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.

Default: SUBSEQUENT_COMBINATIONS

PriceComparisonAlgorithmEnum

string · enum
Enum values:
TOTAL_PRICE
BEFORE_SDR

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.

Default: TOTAL_PRICE

RuleSpec

Determines what rules to apply when categorising and recommending offers for travellers.
journeyOrganizeAlgorithm
​JourneyOrganizeAlgorithmEnum · enum

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.

Enum values:
SUBSEQUENT_COMBINATIONS
COMBINATIONS_FROM_OFFERS
Default: SUBSEQUENT_COMBINATIONS
priceComparisonAlgorithm
​PriceComparisonAlgorithmEnum · enum

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.

Enum values:
TOTAL_PRICE
BEFORE_SDR
Default: TOTAL_PRICE
onlyIncludeRecommendedOffers
​boolean

Only keep Offers referenced by one or more Recommendations.

Default: true
onlyIncludeRecommendationsWithOffersToBuy
​boolean

Only include Recommendations with OffersToBuy.

Default: true
mixInOffersWithHigherFlexibility
​boolean

Only 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.

Default: true
mixInOffersWithOtherFacilitySets
​boolean

Only 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.

Default: true
onlyKeepUpgradeProductSalesPackages
​boolean

When enabled, only offers containing exclusively upgrade products (e.g. seat reservations) are considered for recommendations. Offers containing base fare products are excluded.

Default: false
onlyIncludeMostCompleteInCategorySpec
​boolean

BETA: This field is in beta and may change or be removed in future versions.

Default: false

RecommendationConfig

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].
​CategorySpec

How to categorise and group recommendations based on different categories. Recommendations will attempt to calculate categories from the combination of input parameters.

Example: {"example":{"typesOfRecommendation":["FLEXIBLE","CHEAPEST"],"durationTypes":["DAY_PASS","SINGLE_TRIP"],"fareClasses":["FIRST_CLASS"],"facilitySet":["SLEEPER","SEATING"]}}
​RuleSpec

Determines what rules to apply when categorising and recommending offers for travellers.

LegRequest

Leg request describing a part of a journey.
travelDate
​string · date · required

The 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.

fromStopPlaceId
​string · pattern: NSR:StopPlace:.+$ · required

Stop place id for the origin of the leg.

toStopPlaceId
​string · pattern: NSR:StopPlace:.+$ · required

Stop place id for the destination of the leg.

serviceJourneyId
​string · pattern: ^[A-Z]{3}:ServiceJou… · required

Service journey id for the leg.

travelDateTime
​string · date-time

The specific time for the chosen journey at fromStopPlaceId as specified in JourneyPlanner.

TripPatternRequest

List of legs constituting a suggested sequence of rides and links for a specific trip.
​LegRequest[] · minItems: 1 · required

Legs constituting a suggested sequence of rides and links for this trip.

GroupConfig

A configuration of how to group travellers in offers.
numberOfCompartments
​integer · required

Number 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.

SearchTripPatternRequest

A request used to search for fare products for a specified trip.
​Traveller[] · minItems: 1 · required

The travellers.

​TripPatternRequest · required

List of legs constituting a suggested sequence of rides and links for a specific trip.

​RecommendationConfig

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].

​GroupConfig

A configuration of how to group travellers in offers.

includeMultiTripOffers
​boolean

Indicates whether multi-trip offers should be included in the response, such as monthly passes, day passes, and similar options.

Default: false

ApiError

timestamp
​string · date-time · required

Timestamp from the server.

status
​integer · required

Http error status.

title
​string · required

Error title, typically Http reason phrase.

detail
​string · required

Error details.

path
​string

Api uri.

​object[]

Validation errors.

Price

Price with currency and optional VAT information for this element.
amount
​string · required

The amount.

currency
​string · required

The currency of the amount.

vatGroup
​string

The VAT group.

AvailableFulfilmentMethod

Describes which fulfilmentMethods are available for an Offer,.
id
​string · required

NeTEx standard.

version
​string · required

NeTEx standard.

distributionRights
​string[] · minItems: 1

Says what the distribution channel is allowed to do with this offer. Compatible with the current NeTEx implementation of DistributionRightsEnumeration at Entur.

ServiceJourneySummary

datedServiceJourneyId
​string · required
serviceJourneyId
​string · required

NamedReference

A simple reference with id and name.
id
​string · required
name
​string · required

PointToPointValidity

Start and stop places where the product is valid.
​NamedReference · required

Valid from place.

​NamedReference · required

Valid to place.

ZonalValidity

Describes zones where a product is valid. Either a specific list of from, to and viaZones, or a reference to a GroupOfTariffZones.
​NamedReference

Zone at the start of the journey.

Zone at the end of the journey.

​NamedReference[] · minItems: 1 · unique

Unordered list of valid fare zones through which the trip traverses.

​NamedReference[]

Reference to a group of fare zones. The offer is valid through all of the zones in this group.

GeographicalValidity

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.
​ServiceJourneySummary[]

Service journeys where this product is valid.

​PointToPointValidity

Start and stop places where the product is valid.

​ZonalValidity

Describes zones where a product is valid. Either a specific list of from, to and viaZones, or a reference to a GroupOfTariffZones.

AccommodationForServiceJourney

Accommodation for service journey.
​ServiceJourneySummary · required
accommodation
​string[] · required

ReservingRequirementForServiceJourney

​ServiceJourneySummary · required
seatMapIsAvailable
​boolean · required

Whether a seat map is available for seat selection on this service journey.

reservingRequirement
​string

Indicates requirements for reservation. Compatible with the current NeTEx implementation of ReservationEnumeration at Entur.

Example: RESERVATIONS_COMPULSORY

UserProfileSummary

id, version, name and user type of a user.
id
​string · required
version
​string · required
name
​string · required
userType
​string

A 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'.

Example: ANYONE

OrganisationSummary

id and and name of an organisation.
id
​string · required

the netex-id of organisation.

name
​string · required

the name of the organisation.

UserProfileInGroupSummary

Reference to a group.
id
​string · required
numberOfPeople
​integer · required

Number of travellers required for this user profile in the group.

version
​string

GroupSummary

id
​string · required
version
​string · required
description
​string · required
​UserProfileInGroupSummary[] · required

User profiles and their required number of travellers in the group.

name
​string

Carnet

Representation of a repeatable ticket, with an optional duration for each instance and an amount of times the ticket can be used.
amount
​integer · required

Number of times the ticket can be used.

duration
​string · duration

Validity duration of each use, formatted according to ISO-8601.

PropertiesSummary

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.
​OrganisationSummary · required

id and and name of an organisation.

isExchangeable
​boolean

Whether the ticket can be exchanged for a different departure.

isRefundable
​boolean

Whether the ticket can be refunded.

Accommodation facilities available per service journey.

baggageTypes
​string[]

Reservation requirements per service journey.

​UserProfileSummary

id, version, name and user type of a user.

Example: {"example":{"id":"ENT:UserProfile:Adult","version":"ENT:Version:V1","name":"Ola Nordmann","userType":"ADULT"}}
duration
​string

Validity duration of the product, formatted according to ISO-8601.

​GroupSummary
fareClasses
​string[]
​Carnet

Representation of a repeatable ticket, with an optional duration for each instance and an amount of times the ticket can be used.

durationType
​string

Validity duration. Compatible with the current NeTEx implementation of UsageValidityTypeEnumeration at Entur. Related to but may include more than 'DurationTypeEnum'.

Example: SINGLE_TRIP
nuisanceFacilities
​string[]

DiscountRightSummary

Summary of a sale discount right that has been applied to the fare product.
id
​string · required
version
​string · required
​Price · required

Price with currency and optional VAT information for this element.

name
​string · required
description
​string · required
originatingFromProductId
​string

PreassignedProduct

Representation of a mandatory product that is included in an offer.
id
​string · required

The id if the preassigned product.

version
​string · required

The version of the preassigned product.

name
​string · required

The name of the preassigned product.

description
​string · required

The description of the preassigned product.

​PropertiesSummary · required

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.

​GeographicalValidity · required

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.

​DiscountRightSummary[] · minItems: 1

Optional discounts applied to this product.

TravellerMappingSummary

A specification of which travellers can use an offer, along with limitations on the number of travellers that must be selected from the group for the OFFER to be valid.
travellerIds
​string[] · required

The ids of the travellers.

maxNumberOfTravellers
​integer · int32 · required

The maximum number of travellers that can be selected from the group.

minNumberOfTravellers
​integer · int32 · required

The minimum number of travellers that can be selected from the group.

userType
​string · required

A 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'.

Example: ANYONE

ObjectRef

Object ref.
ref
​string · required

object ref ref.

version
​string

object ref version.

CappingAlternative

An alternative is based on previous transactions might have a discount at the expense of setting the start date in the past.
selectableId
​string · required

A pseudo random string that is used to select what alternative to use when purchasing an offer.

​Price · required

Price with currency and optional VAT information for this element.

startDateTime
​string · date-time · required

The start date of this alternative.

endDateTime
​string · date-time · required

The end date of this alternative.

CappedDiscountOption

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.
​ObjectRef · required

Object ref.

​ObjectRef · required

Object ref.

​CappingAlternative[]

ProgramAccrualSummary

id
​string · required
reference
​string

Identifier for the loyalty program.

name
​string
infoLink
​string

URL to information about the loyalty program.

paused
​boolean

Whether accrual for this program is currently paused.

ProgramSummary

id
​string · required
reference
​string

Identifier for the loyalty program.

name
​string
infoLink
​string

URL to information about the loyalty program.

OfferSummary

id
​string · required

The 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.

name
​string · required

The name of the SalesPackage that this OfferSummary represents.

salesPackageId
​string · required

Id of the SalesPackage.

salesPackageVersion
​string · required

Version of the SalesPackage.

description
​string · required

The description of the offer.

​Price · required

Price with currency and optional VAT information for this element.

​AvailableFulfilmentMethod[] · required
​GeographicalValidity · required

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.

​PreassignedProduct[] · required

All mandatory products that give the buyer a right to travel is found here.

optionalProductsSelectableIds
​string[] · minItems: 1

This 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.

​TravellerMappingSummary[] · unique

Mapping of which travellers this offer applies to.

available
​integer

Number of this offer available to buy at this point in time.

​CappedDiscountOption

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.

​ProgramAccrualSummary[]

Buying this offer may give points in these personalisation programs.

​ProgramSummary[]

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.

GeographicalValidityCovered

Describes the geographical validity covered by the recommendation.
coversEntireJourney
​boolean · required

Indicates whether the geographical validity covers the entire journey or not.

serviceJourneys
​string[] · minItems: 1

The service journeys this geographical validity applies to.

​PointToPointValidity

Start and stop places where the product is valid.

​ZonalValidity

Describes zones where a product is valid. Either a specific list of from, to and viaZones, or a reference to a GroupOfTariffZones.

OfferToBuy

Describes which offer to buy and how many of this offer to buy to satisfy a recommendation.
id
​string · required

Id of the offer to buy.

numberToBuy
​integer · required

Number of this offer to buy.

selectableProductIds
​string[] · required

List of selectableIds of supplement products which upgrades a product.

possibleTravellerIds
​array[] · required

One possible grouping of travellers for the number of offers to buy.

RecommendationCombination

A combination of recommendations that together cover the entire journey.
​GeographicalValidityCovered · required

Describes the geographical validity covered by the recommendation.

recommendationsToCoverEntireJourney
​string[] · minItems: 1 · required

You must select all recommendations in the list to cover the geographical validity.

Recommendation

id
​string · required

Unique identifier of a recommendation within this response.

​GeographicalValidityCovered · required

Describes the geographical validity covered by the recommendation.

typeOfRecommendation
​TypeOfRecommendationEnum · enum · required

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.

Enum values:
FLEXIBLE
SEMI_FLEXIBLE
NON_FLEXIBLE
CHEAPEST
Default: CHEAPEST
​OfferToBuy[] · required

Describes which offer to buy and how many of this offer to buy to satisfy a recommendation.

durationType
​DurationEnum · enum

Validity duration. Subset of UsageValidityTypeEnumeration from NeTEx usage parameter travel support.

Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
WEEKEND_PASS
MONTHLY_PASS
SEASON_TICKET
Default: ANY
fareClass
​FareClassEnum · enum

A type of FareClass. Subset of FareClassEnumeration from NeTEx service restrictions support.

Enum values:
FIRST_CLASS
SECOND_CLASS
THIRD_CLASS
ECONOMY_CLASS
BUSINESS_CLASS
TURISTA
PREFERENTE
PREMIUM_CLASS
Default: ANY
facilitySet
​AccommodationFacilityEnum · enum

Subset of AccommodationFacilityEnumeration from NeTEx facility support.

Enum values:
ANY
SLEEPER
SEATING
COUCHETTE
RECLINING_SEATS
STANDING
Default: ANY
​RecommendationCombination[]

List of RecommendationCombination covering remaining parts of the journey. The current recommendation can be combined with one of these to cover the entire journey.

RecommendationResult

A set of recommendations matching the provided recommendation configuration.
​Recommendation[]

Recommendations that cover the entire journey.

​Recommendation[]

Recommendations that cover part of the journey. Use combineWithToCoverEntireJourney when available to build recommendations to achieve full journey coverage.

OptionalProduct

Representation of a optional product that can be selected together with mandatory products in an offer.
id
​string · required

Id of the optional product.

version
​string · required

Version of the optional product.

selectableId
​string · required

This 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.

name
​string · required

Name of the optional product.

description
​string · required

Description of the optional product.

​Price · required

Price with currency and optional VAT information for this element.

​PropertiesSummary · required

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.

​GeographicalValidity · required

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.

​DiscountRightSummary[] · minItems: 1

Optional discounts applied to this product.

available
​integer

How many of this optional product is available to buy at this point in time.

supplementProductType
​string

Describes what type of supplement product this is. Compatible with the current NeTEx implementation of SupplementProductTypeEnumeration at Entur.

UnavailableProductProperties

Properties of an unavailable product.
accommodations
​string[]
fareClasses
​string[]
isExchangeable
​boolean

Whether the product would have been exchangeable.

isRefundable
​boolean

Whether the product would have been refundable.

​OrganisationSummary

id and and name of an organisation.

UnavailableProduct

Representation of a product that is unavailable, but would have been included in an offer if available.
id
​string · required

NeTEx ID of the unavailable product.

unavailableStatus
​string · required

Status 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.

Example: NOT_YET_AVAILABLE
name
​string

Human readable name for the product.

​ServiceJourneySummary

Properties of an unavailable product.

SearchResponse

​OfferSummary[] · required
​RecommendationResult · required

A set of recommendations matching the provided recommendation configuration.

tripPatternId
​string
​OptionalProduct[]
​UnavailableProduct[]
notices
​string[]

Additional information about potentially missing information or functionality due to transient errors.

SearchGeoLocationRequest

A request used to search for fare products between stop places or zones. If two stopPlaces are provided, Offers are calculated for each set of FareZones sharing the same codespace. For any other combination, the common codespace is selected. In either case, transport mode and authority can be used to further refine which Offers are returned. Some combinations of stop places may result in offers that cover parts of the distance. As an example, let's say the "from" stop place is A, and the "to" stop place is C. There may not be a ticket that is valid from A to C, but tickets that are valid from A to B, and B to C. In that case you will receive offers that are valid for A to B and B to C. If you only want offers that cover the whole distance, set "offersForWholeTripOnly" to true.
travelDate
​string · date-time · required

The 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.

from
​string · pattern: ^[A-Z]{3}:FareZone:.… · required

The id of the origin stop place or zone.

to
​string · pattern: ^[A-Z]{3}:FareZone:.… · required

The id of the destination stop place or zone.

​Traveller[] · minItems: 1 · required

The travellers the offer should be valid for.

via
​string[] · minItems: 1 · pattern: ^[A-Z]{3}:FareZone:.…

Optional sequence of via locations. Mostly useful for zone based searches.

​RecommendationConfig

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].

offersForWholeTripOnly
​boolean

Set 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.

Default: false
authority
​string · pattern: ^[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.

transportMode
​string

Optional 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.

SearchAuthorityRequest

A request used to search for fare products without inputting geographic data, but instead use Authority.
travelDate
​string · date-time · required

The 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.

​Traveller[] · minItems: 1 · required

The travellers the offer should be valid for.

authorityId
​string · pattern: ^[A-Z]{3}:Authority:… · required

NeTEx-id of Authority. Only offers valid for this Authority will be considered.

Did you find what you were looking for?