Schemas
Fee
idID used to uniquely identify Fee if deletion is necessary
typeType of Fee. Valid types: MANUAL, REFUNDING, ONBOARD, CHANGE, INVOICE, CHANGE_NON_REFUNDABLE, PENALTY, BOOKING, REDUCTION
Price with included tax amounts and an optional rate.
reasonExplanatory text describing the reason for the Fee, if applicable
orderLineIdsReferences to the OrderLines this Fee refers to, if applicable. If empty, the fee refers to all order lines
Order
idID of Order.
Fees contained in the Order.
failedIndicates that the order version has failed and needs to be credited.
statusStatus of this Order or OrderLine. Every Order starts out with the status DRAFT, and can only be changed to CONFIRMED when it is balanced - when balance is '0.00'. All OrderLines that are have the status DRAFT at that point in time can also be changed to CONFIRMED.
balanceThe balance amount for this Order.
versionThe system increments an Order’s version number whenever some change occurs that causes the Order’s status to go from CONFIRMED to DRAFT. The user has to perform an action that causes the status to go from DRAFT to CONFIRMED (such as paying for the Order) before the time given in expireAt. If the Order is not confirmed within this time, the system will scrap all changes (including the incremented version) and return the Order to its last confirmed version.
currencyThe currency for this Order.
createdAtTimestamp for when Order was created.
OrderLines in the given Order.
Unique Travellers in this Order.
Payment references used on this Order.
totalAmountThe total amount due for this Order.
Seating Reservations connected to this Order.
organisationIdID of the organisation which created/sold this Order.
totalTaxAmountThe total tax amount for this Order.
posPoint-of-sale reference of request used when Order was created
lastConfirmedAtTimestamp for when Order was last confirmed.
distributionChannelIdDistribution channel ID of request used when Order was created
expireAtAny changes not confirmed before this point in time will be discarded. Default is 20 minutes from the last operation. Cannot be in the past, or further into the future than six months.
Contact information related to different aspects in the lifecycle of an Order.
externalReferenceExternal reference for Orders
Holder for fields used to explain why an Order has been issued. Used for zero tickets.
AddedBy
posPoint-of-sale reference of request used when OrderLine was added.
distributionChannelIdDistribution channel ID of request used when OrderLine was added.
RefType
idID of the resources
versionA specific version of the resource if applicable
SubMode
The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride
ApiError
patherrortitleShort, human-readable summary of the problem
statusmessageexceptiontimestampDistance
unitUnit of distance measurement.
valueThe distance value.
UsageEnd
OrderLine
idID of OrderLine
statusStatus of this Order or OrderLine. Every Order starts out with the status DRAFT, and can only be changed to CONFIRMED when it is balanced - when balance is '0.00'. All OrderLines that are have the status DRAFT at that point in time can also be changed to CONFIRMED.
versionVersion of this OrderLine. This is iterated when the OrderLine is updated, but not when it is replaced.
createdAtTimestamp for when the OrderLine was created.
Price with included tax amounts and an optional rate.
The Travellers that are to travel on this OrderLine.
Description.
The underlying FareProducts which make up this SalesPackage.
Price with included tax amounts and an optional rate.
Metadata about who or what added the OrderLine.
refundedIf true = refunded, false = cancelled, null = active
cancellationCancellation reason for an OrderLine. OrderLines with REPLACED have been replaced with a newer version.
lastConfirmedAtTimestamp for when the OrderLine was last confirmed.
Possible additional parameters for the configurations
privateCodePrivate code.
Reference to a resource available in a different APIs
externalReferenceExternal reference to another system supplied by the client.
A map of client provided data. No validation is performed, and no guarantee can be made about its contents.
Wrapper for references connected to distribution of travel rights and/or tickets
Classification of the products chosen.
externalConfirmationExternal confirmation status for this OrderLine. Allowed values: PENDING, SUCCESS, FAILED.
effectiveCancellationDateIf set, the effective date for cancellation. Overrides timestamp.
Traveller
idCustomer reference.
FeeRequest
typeType of Fee. Valid types: MANUAL, REFUNDING, ONBOARD, CHANGE, INVOICE, CHANGE_NON_REFUNDABLE, PENALTY, BOOKING, REDUCTION
Price with included tax amounts and an optional rate.
reasonExplanatory text describing the reason for the Fee, if applicable
orderLineIdsReferences to the OrderLines this Fee refers to, if applicable. If empty, the fee refers to all order lines
Limitation
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
A dynamic UsageValidtyPeriod that is generated on the fly. Thus lacking id and version as it can not be referenced
PaymentRef
amountThe Payment amount. Maximum (totalDigits: 18, fractionDigits: 5) according to ISO 20022.
currencycompletedAtTimestamp for when Payment was completed
orderVersionOrder version number this Payment confirmed.
creditIdReference to the Credit.
paymentIdReference to the Payment.
settlementIdSupplied to the client by an external system for handling settlements. For Internal Entur Clients this is Entur’s Electronic Journal.
ContactInfo
Customer reference.
Customer reference.
GroupTicket
derivedFromObjectRefIdentity of object from which this object of ENTITY was derived. Normally the same.
derivedFromVersionRefVersion of this object from which this version of ENTITY was derived.
PageOfOrder
Items on a specific page
totalItemsTotal number of items
totalPagesTotal number of pages available to browse
OrderRequest
expireAtAny changes not confirmed before this point in time will be discarded. Default is 20 minutes from the last operation. Cannot be in the past, or further into the future than six months.
Contact information related to different aspects in the lifecycle of an Order.
externalReferenceExternal reference for Orders
Holder for fields used to explain why an Order has been issued. Used for zero tickets.
PriceWithTax
amountAmount including tax amount.
currencyCurrency
taxAmountTax amount
taxCodeTax code for this tax rate
taxRateTax rate. Must be in valid BigDecimal format
PurchasedLeg
idmodeTravel mode for Leg.
endTimeThe date and time this Leg ends.
subModeThe transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride
startTimeThe date and time this Leg begins.
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
lineIdLine ID
Connected ServiceJourneys without changing material
organisationIdThe organisation that owns the service journey on this leg, Alternative identifier to authorityRef or operatorRef.
Present only when this leg is a rail replacement bus service. Contains the original train station stop place references that were used for pricing.
Reference to a resource available in a different APIs
serviceJourneyPrivateCodePrivate code of the ServiceJourney
Reference to a resource available in a different APIs
SetSelection
Set selection type for a group containing multiple elements
UsageTrigger
ZonalValidity
fareZonesValid in fare zones
groupOfTariffZonesReference to a group of tariff zones. All zones in the group are valid.
zonesValid in zones. Deprecated. This list will be empty when tariff zones are fully replaced by fare zones.
PurchasedGroup
Price with included tax amounts and an optional rate.
A collection of all the different user profiles with price and tax in the group.
Reference to a resource available in a different APIs
The UserProfile IDs that are given rights to travel with this GroupTicket.
Price with included tax amounts and an optional rate.
TextInLanguage
langLanguage code according to ISO 639-3
valueA text to describe the contents of this OrderLine
WorkflowStatus
Status of this Order or OrderLine. Every Order starts out with the status DRAFT, and can only be changed to CONFIRMED when it is balanced - when balance is '0.00'. All OrderLines that are have the status DRAFT at that point in time can also be changed to CONFIRMED.
ActivationMeans
OrganisationRef
idID for an Organisation
privateCodePrivate code used to reference an Organisation
CompanionProfile
maximumNumberOfPersonsminimumNumberOfPersonsReference to a resource available in a different APIs
FailOrderRequest
orderLineIdsIDs of order lines that failed external confirmation. Must be order lines with externalConfirmation=PENDING.
OrderLineRequest
Price with included tax amounts and an optional rate.
The Travellers that are to travel on this OrderLine.
Description.
The underlying FareProducts which make up this SalesPackage.
Price with included tax amounts and an optional rate.
idId for an OrderLine, required when updating orderLines
Possible additional parameters for the configurations
privateCodePrivate code.
Reference to a resource available in a different APIs
externalReferenceExternal reference to another system supplied by the client.
A map of client provided data. No validation is performed, and no guarantee can be made about its contents.
Wrapper for references connected to distribution of travel rights and/or tickets
Classification of the products chosen.
externalConfirmationExternal confirmation status for this OrderLine. Allowed values: PENDING, SUCCESS, FAILED.
effectiveCancellationDateIf set, the effective date for cancellation. Overrides timestamp.
SpecialOrderCause
causeCodeThe cause code for issuing the Order.
organisationIdThe organisation responsible for the cause. Eg. the Operator responsible for the delay causing a zero ticket to be issued. Should not be confused with the organisationId of the Order, as this has no correlation.
ValidityParameter
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
CancellationReason
Cancellation reason for an OrderLine. OrderLines with REPLACED have been replaced with a newer version.
OrderCreateRequest
currencyThe currency for this Order.
expireAtAny changes not confirmed before this point in time will be discarded. Default is 20 minutes from the last operation. Cannot be in the past, or further into the future than six months.
Contact information related to different aspects in the lifecycle of an Order.
externalReferenceExternal reference for Orders
organisationOverrideIf present, the Order will be created on behalf of the given organisation ID, rather than the organisation associated with the token. Requires special agreements before use is allowed.
PurchasedFareClass
Type of FareClass chosen by customer
PurchasedTraveller
travellerIdID for Traveller
Entitlement information for the customer and the OrderLine
givenConsentIdDistributionDetails
Reference to a resource available in a different APIs
Reference to a resource available in a different APIs
distributionHolderCustomerIdReference to a customer who will use the travel right
Reference to a resource available in a different APIs
PurchasedParameters
Reference to replacing parameters with price information.
Reference to reserving parameters with price information.
Reference to round trip parameters with price information.
Reference to exchanging parameters with price information.
Reference to entitlement products used when calculating price
Reference to luggage allowance parameters with price information.
A representation of group product
A representation of a user profile
A simple representation of a UsageParameter
PurchasedProperties
purchasedFareClassesType of FareClass chosen by customer
purchasedAccommodationsType of accommodation chosen by customer
RailReplacementInfo
originalToStopPlaceRefThe stop place ref of the original train station where the passenger would have alighted.
originalFromStopPlaceRefThe stop place ref of the original train station where the passenger would have boarded.
TravelSpecification
The FareProductValidities for a product.
The Legs of a planned travel route. Only Legs which are rides are expected to be added.
aimedEndTimeTimestamp used when determining the end of the ticket's validity. Taken from the offer used by the end user when ordering the ticket. No fallback, null if not available on offer.
aimedStartTimeTimestamp used when determining the beginning of the ticket's validity. Taken from the offer used by the end user when ordering the ticket. Note that the fallback timestamp is the timestamp at which the orderLine was added to the Order.
A distance value with a unit.
The StopPlaces the product is valid between. The first element in this array will be the StopPlace the Traveller is travelling from, and the second element will be the StopPlace the Traveller is travelling to. There will never be more than two elements in this array.
PointToPointValidity
toPlaceValid to StopPlace
fromPlaceValid from StopPlace
PurchasedFareProduct
Price with included tax amounts and an optional rate.
legIdsThe IDs of the Legs that are connected to this FareProduct.
Reference to a resource available in a different APIs
Price with included tax amounts and an optional rate.
The ValidableElement configurations which makes up this FareProduct.
amountAmount of priced unit
elementIdUnique ID for this specific PurchasedFareProduct. Note that this ID is only for distinguishing parts of an orderLine. It has no use outside of the orderLine, and can't be found in any other service.
Possible additional parameters for the configurations
validityIdUnique identifier for a purchased FareProduct with validity
Configuration for a purchased Fare Product
The Organisation that owns the FareProduct
Configuration for a Discount Right
fareAgreementNumberFare agreement identifier
Classification of the products chosen.
purchasedProductTypeType of priced unit
originatingFromProductIdThe ID of the entitlement product that allowed the sale discount right to be used
PurchasedProductType
Type of priced unit
PurchasedReservation
reservationIdID and version of the Reservation.
Reference to a resource available in a different APIs
PurchasedUserProfile
Price with included tax amounts and an optional rate.
Reference to a resource available in a different APIs
Price with included tax amounts and an optional rate.
typeOfConcessionThe type of concession for this UserProfile
TravelDocumentDetails
Reference to a resource available in a different APIs
distributionActionPurchasedAccommodation
Type of accommodation chosen by customer
PurchasedUsageParameter
Price with included tax amounts and an optional rate.
Price with included tax amounts and an optional rate.
Reference to a resource available in a different APIs
ConfirmOrderLinesRequest
orderLineIdsIDs of order lines to confirm. Must be order lines with externalConfirmation=PENDING.
PurchasedValidableElement
Price with included tax amounts and an optional rate.
legIdsThe Leg IDs that are connected to this ValidableElement.
Price with included tax amounts and an optional rate.
Reference to a resource available in a different APIs
The underlying FareStructureElement configurations which makes up this ValidableElement
occursThe number of instances of this particular type of ValidableElement that is collected in this FareProduct
elementIdUnique ID for this specific PurchasedValidableElement. Note that this ID is only for distinguishing parts of an orderLine. It has no use outside of the orderLine, and can't be found in any other service.
Possible additional parameters for the configurations
Classification of the products chosen.
DynamicUsageValidityPeriod
usageEndendDateTimeEndDate
usageTriggerstartDateTimeStartDateTime
activationMeansActivation Means. Describes how a product can be activated.
standardDurationStandard duration. Represented as a string formatted according to ISO-8601
PurchasedSaleDiscountRight
Price with included tax amounts and an optional rate.
Reference to a resource available in a different APIs
Price with included tax amounts and an optional rate.
Possible additional parameters for the configurations
originatingFromProductIdThe ID of the EntitlementProduct that allowed the SaleDiscountRight to be used.
PurchasedUserProfileSummary
countThe number of travellers with given user profile.
Price with included tax amounts and an optional rate.
Reference to a resource available in a different APIs
Price with included tax amounts and an optional rate.
SpecificParameterAssignment
Included SpecificParameterAssignments
Limitations
Validity parameters
includesGroupingTypeLogical operator
limitationGroupingTypeLogical operator
Reference to a resource available in a different APIs
validityParameterGroupingTypeLogical operator
Reference to a resource available in a different APIs
validityParameterSetSelectionTypeSet selection type for a group containing multiple elements
PurchasedFareProductValidity
validityIdUnique identifier for a purchased FareProduct with validity
Zones where the product is valid
Start and StopPlaces where the entity is valid
PurchasedFareStructureElement
Price with included tax amounts and an optional rate.
legIdsThe Leg IDs that are connected to this FareStructureElement
Price with included tax amounts and an optional rate.
Reference to a resource available in a different APIs
The Geographical Interval with distance and zone data.
elementIdUnique ID for this specific PurchasedFareStructureElement. Note that this ID is only for distinguishing parts of an orderLine. It has no use outside of the orderLine, and can't be found in any other service.
Possible additional parameters for the configurations
Classification of the products chosen.
Reference to a resource available in a different APIs
PurchasedGeographicalInterval
fareZonesA list of fare zones that exist in this interval. Empty if not relevant.
Reference to a resource available in a different APIs
distanceThe distance in the geographical interval.
zoneCountNumber of zones counted for the journey.
zonesThe Zones for which the journey passes through. Deprecated. This list will be empty when tariff zones are fully replaced by fare zones.
PurchasedDiscountUsageParameters
Reference to reserving parameters with price information.
Reference to entitlement products used when calculating price