Entur Developer
Partner
REST
Ticket Distributions

PdfTicket

combinedTicket
​boolean · required
deleteAt
​string · date-time · required
orderId
​string · required
orderLineId
​string · required
orderLineVersion
​integer · int32 · required
orderVersion
​integer · int32 · required
pdf
​string · pattern: ^(?:[A-Za-z0-9+/]{4}… · required
ticketDistributionId
​integer · int64 · required
id
​integer · int64
organisationId
​integer · int64

PageOfPdfTicket

Page displays a subset of a list of entities
​PdfTicket[] · readOnly · required

Items on a specific page

totalItems
​integer · int64 · readOnly · required

Total number of items

Example: 72
totalPages
​integer · int64 · readOnly · required

Total number of pages available to browse

Example: 9

ApiError

timestamp
​string · date-time · required
status
​integer · int32 · required
title
​string · required

Short, human-readable summary of the problem

error
​string · required
exception
​string · required
message
​string · required
path
​string · required

TicketPdfTraveller

Travellers who will be written on the pdf-ticket
ticketDistributionId
​integer · int64 · required

TicketDistributionIds for this traveller

name
​string · required

Full names of the traveller

LanguageCode

string · enum
Enum values:
nob
nno
eng

Desired language. Makes display text appear in defined language - if available. Default: nob

Default: nob

TicketPdfCreateRequest

Request for generating and sending pdf-ticket by email
pdfLanguage
​LanguageCode · enum · required

Desired language. Makes display text appear in defined language - if available. Default: nob

Enum values:
nob
nno
eng
Default: nob
orderVersion
​integer · int32 · required

Desired version of the order that is going to be distributed as a pdf-ticket. Default: 1

Default: 1

Array of names and ticketDistributionIds of travellers. These names will overwrite existing traveller names on the ticket if the order line does not include any entitlements.

Default: []
orderLineIds
​string[]

List of orderLineIds to include in the pdf-ticket. If unspecified, all order lines for the given order version will be included.

TicketPdfSendRequest

Request for generating and sending pdf-ticket by email
pdfLanguage
​LanguageCode · enum · required

Desired language. Makes display text appear in defined language - if available. Default: nob

Enum values:
nob
nno
eng
Default: nob
orderVersion
​integer · int32 · required

Desired version of the order that is going to be distributed as a pdf-ticket. Default: 1

Default: 1
email
​string · required

Email-address for the receiver of pdf-ticket

Array of names and ticketDistributionIds of travellers. These names will overwrite existing traveller names on the ticket if the order line does not include any entitlements.

Default: []
orderLineIds
​string[]

List of orderLineIds to include in the pdf-ticket. If unspecified, all order lines for the given order version will be included.

EmailAttachment

content
​string · required
filename
​string · required
mimeType
​string · required
disposition
​string · enum
Enum values:
ATTACHMENT
INLINE

EmailAddress

email
​string · required
name
​string

Email

body
​string · required
​EmailAddress · required
subject
​string · required
​EmailAddress[] · required

SalesPackage

id
​string · required
name
​string
version
​string

Authority

id
​string · required

Entitlement

entitlementProductId
​string · required
contractId
​string

Customer

customerId
​string · required

The id of the customer in the external system

Example: 12345678901
​Entitlement[] · required
id
​integer · int64 · required

The internal id of the customer

Example: 1

DistributionDetails

clientSecret
​string
orderGroupId
​string
fareContractRef
​string

Reference to an account-based-ticketing farecontract

customerAccountRef
​string

Reference to an account-based-ticketing customer account

distributedAsPdf
​boolean

Is set to true if distributed as a PDF by ticket-distribution

TicketDistributionStatus

string · enum
Enum values:
CREATED
DISTRIBUTED
CANCELLED
PICKED_UP
VALIDATED
EXPIRED
FAILED
ACTIVATED

ValidableElement

elementId
​string · required

The elementId as found on the validableElement. NOTE: This is NOT the same as validableElementRef.id

legIds
​string[] · required

list of legIds that belong to this validableElement

FareProduct

id
​string · required
name
​string
organisation
​integer · int64
version
​string
​ValidableElement[]

UserProfileInGroup

A representation of a user profile to summarize parts of a group product.
userProfileId
​string · required

Reference to the product register.

count
​integer · required

The number of travellers with given user profile.

userProfileVersion
​string
name
​string

Display name of user profile for requested language. Defaults to norwegian name.

Group

id
​string · required
​UserProfileInGroup[] · required

A collection of all the different user profiles in the group.

Default: []
description
​string
name
​string
version
​string

Price

amount
​string · required
taxAmount
​string · required
currency
​string
taxRate
​string

Seat

externalSeatId
​string · required
id
​integer · int64 · required
railcarNumber
​string · required
seatNumber
​string · required
​object

Properties of a seat. They describe both physical and logical properties of a seat.Physical properties are for example position of the seat.Logical properties describe properties that the operator use when selling the seat. For example fare class.

Reservation

externalReservationId
​string · required
id
​integer · int64 · required
​Seat[] · required
datedServiceJourneyId
​string

Vehicle

A vehicle registered for a parking reservation.
licencePlateNumber
​string · required

Parking

Parking data for a PARKING supplement product.
​Vehicle[] · required

SupplementProduct

id
​integer · int64 · required
​Price · required
​FareProduct · required
datedServiceJourneyRefs
​string[]
supplementType
​string · enum

Type to indicate if for instance the product is some kind of passenger or just a seat allocation. Mirrors the supplement types defined in NeTEx and configured on supplement products in Entur Product catalog.

Enum values:
ANIMAL
BICYCLE
DOG
EVENT_ADD_ON
EXTRA_LUGGAGE
JOURNEY_ADD_ON
JOURNEY_EXTENSION
MEAL
​Parking

Parking data for a PARKING supplement product.

GroupOfTariffZone

Reference to a group of tariff zones with display name.
id
​string · required
name
​string · required

TariffZone

id
​string · required
name
​string · required

FareZone

Reference to fare zone with display name. Will eventually replace tariff zones.
id
​string · required
name
​string · required

Topology

datedServiceJourneyRef
​string[]
distance
​integer · int32
fromStopPlace
​string
fromStopPlaceExt
​integer · int64
fromStopPlaceName
​string
​GroupOfTariffZone[]
toStopPlace
​string
toStopPlaceExt
​integer · int64
toStopPlaceName
​string
zoneType
​string · enum
Enum values:
POINT_TO_POINT
RING
​FareZone

Reference to fare zone with display name. Will eventually replace tariff zones.

​FareZone

Reference to fare zone with display name. Will eventually replace tariff zones.

​FareZone[]

UserProfile

id
​string · required
name
​string
version
​string

StopPlace

ref
​string · required
name
​string

Mode

string · enum
Enum values:
AIR
BICYCLE
BUS
CABLEWAY
CAR
WATER
FUNICULAR
LIFT

Travel mode for Leg.

SubMode

string · enum
Enum values:
UNKNOWN
UNDEFINED
INTERNATIONAL_FLIGHT
DOMESTIC_FLIGHT
INTERCONTINENTAL_FLIGHT
DOMESTIC_SCHEDULED_FLIGHT
SHUTTLE_FLIGHT
INTERCONTINENTAL_CHARTER_FLIGHT

The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride

Example: LOCAL
Default: UNDEFINED

Leg

arrivalTime
​string · date-time · required
departureTime
​string · date-time · required
​StopPlace · required
​StopPlace · required
mode
​Mode · enum · required

Travel mode for Leg.

Enum values:
AIR
BICYCLE
BUS
CABLEWAY
CAR
WATER
FUNICULAR
LIFT
subMode
​SubMode · enum · required

The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride

Enum values:
UNKNOWN
UNDEFINED
INTERNATIONAL_FLIGHT
DOMESTIC_FLIGHT
INTERCONTINENTAL_FLIGHT
DOMESTIC_SCHEDULED_FLIGHT
SHUTTLE_FLIGHT
INTERCONTINENTAL_CHARTER_FLIGHT
Example: LOCAL
Default: UNDEFINED
serviceJourneyRef
​string · required
datedServiceJourneyRef
​string
legId
​string

Carnet

Carnet (klippekort) details, only present on the main ticket of an id-based carnet. Each ticket on the carnet is one trip (TRIP_CARNET) or one pass (PASS_CARNET).
totalCount
​integer · int32 · required

Total number of tickets purchased.

usedCount
​integer · int32 · required

Number of tickets that have been activated.

remainingCount
​integer · int32 · required

Number of tickets left, totalCount minus usedCount.

TicketDistribution

​Authority · required
combinedTicket
​boolean · required
​Customer[] · required
distributionStatus
​TicketDistributionStatus · enum · required
Enum values:
CREATED
DISTRIBUTED
CANCELLED
PICKED_UP
VALIDATED
EXPIRED
FAILED
ACTIVATED
endOfValidity
​string · date-time · required
id
​integer · int64 · required
loyaltyProgram
​boolean · required
networkId
​integer · int32 · required
orderLineVersion
​integer · int32 · required
​Price · required
productTemplate
​integer · int32 · required
provider
​integer · int32 · required
purchaseDate
​string · date-time · required
​Reservation[] · required
startOfValidity
​string · date-time · required
​SupplementProduct[] · required
tariffCode
​integer · int32 · required
ticketWithZones
​boolean · required
​Topology · required
type
​string · required

SINGLE for tickets valid less than 24 hours, PERIODIC for tickets valid 24 hours or more, CARNET for the main ticket of an id-based carnet (klippekort), which has carnet with the number of tickets. New values may be added, so consumers should handle unknown values.

Example: PERIODIC
arrivalTime
​string · date-time
createdAt
​string · date-time
deliverAfter
​string · date-time
departureTime
​string · date-time
​DistributionDetails
duration
​string
fareContractId
​string
​FareProduct
fullAreaValidity
​boolean
​Group
maxTravellers
​integer · int32
mediaSerialNumberId
​integer · int64
travelDocumentId
​string
updatedAt
​string · date-time
usageTrigger
​string · enum
Enum values:
START_OF_PERIOD
START_OUT_BOUND_RIDE
END_OUT_BOUND_RIDE
START_RETURN_RIDE
PURCHASE
SPECIFIED_START_DATE
FULFILMENT
DAY_OFFSET_BEFORE_CALENDAR_PERIOD
​UserProfile
​Leg[]
cancellationReason
​string

reason for cancellation of the ticket distribution, Possible values: TRANSFERRED, DEVIATION, SEAT_CHANGED, VALIDITY_UPDATED, PARKING_UPDATED, REDISTRIBUTED

​Carnet

Carnet (klippekort) details, only present on the main ticket of an id-based carnet. Each ticket on the carnet is one trip (TRIP_CARNET) or one pass (PASS_CARNET).

TicketDistributionGroup

id
​integer · int64 · required
orderId
​string · required
orderLineId
​string · required
orderVersion
​integer · int32 · required
​TicketDistribution[] · required
updatedForOrderLineVersion
​integer · int32 · required
createdByDCI
​string
distributedByDCI
​string
distributedByOrgId
​integer · int64
organisationId
​integer · int64
​SalesPackage
fulfillmentMethod
​string

The fulfillment method given by the order line. Useful for determining which external ticketing system to retrieve validation data from. Possible values: NOD, ACCOUNT_BASED_TICKETING, INTERNATIONAL, BIFROST

orderOwnerCustomerId
​string

The customerId of the customer that owns the order

distributionHolderCustomerId
​string

The customerId of the customer that will receive the ticket

PageOfTicketDistributionGroup

Page displays a subset of a list of entities
​TicketDistributionGroup[] · readOnly · required

Items on a specific page

totalItems
​integer · int64 · readOnly · required

Total number of items

Example: 72
totalPages
​integer · int64 · readOnly · required

Total number of pages available to browse

Example: 9

OrderLineDistributionRequest

Distribute a set of ticket distribution groups to NOD
orderLineId
​string · required

ID of the order line

startOfValidity
​string · date-time

The time when the ticket for this order line should become active. Will be specified by order data if not overridden here.

deliverAfter
​string · date-time

The earliest time it should be possible to pick up the ticket. If specified then it will override the value from the parent

TicketDistributionGroupDistributeRequest

Distribute a set of ticket distribution groups to NOD
orderId
​string · required

ID of the order

orderVersion
​integer · int32 · required

Version of the order

Default: 1
deliverAfter
​string · date-time

The earliest time it should be possible to pick up the ticket(s)

​OrderLineDistributionRequest[]

List of specific orderlineIds to distribute tickets for. If not specified, all tickets for the order will be distributed.

qrChecksumType
​integer · int32

The 'toughness' of the QR-code. If not specified the service will determine it automatically based on deliverAfter and startOfValidity

languageCode
​LanguageCode · enum

Desired language. Makes display text appear in defined language - if available. Default: nob

Enum values:
nob
nno
eng
Default: nob

Distribution

customerAccountRef
​string

Reference to an account-based-ticketing customer account

fareContractRef
​string

Reference to an account-based-ticketing farecontract

TicketDistributionSummary

orderId
​string · required

The orderId of the ticket distribution summary

​Distribution[] · required

List of distinct summaries of all ticket distributions of the ticket distribution groups for a given orderId. At least one of the fields in a distribution is non-null.

TicketDistributionGroupTransfer

ticketDistributionGroupId
​integer · int64 · required

The id of the ticket distribution group to transfer to another customer

toCustomerId
​string · required

The customerId of the customer that will receive the ticket

Example: 123456789
toCustomerAccountRef
​string

Reference to an account-based-ticketing customer account

TransferDistributionHolderRequest

​TicketDistributionGroupTransfer[] · required

SuccessfulTicketDistributionGroupTransfer

ticketDistributionGroupId
​integer · int64 · required

The ticketDistributionGroupId of the ticket distribution group that was successfully transferred to another customer

FailedTicketDistributionGroupTransfer

ticketDistributionGroupId
​integer · int64 · required

The ticketDistributionGroupId of the ticket distribution group that failed to be transferred to another customer

errorMessage
​string · required

The error message that explains why the transfer failed

TransferDistributionHolderResponse

​SuccessfulTicketDistributionGroupTransfer[] · required
​FailedTicketDistributionGroupTransfer[] · required

RedistributeRequest

orderId
​string · required

Id of the order whose NOD tickets should be redistributed

ticketDistributionIds
​integer[]

Limits redistribution to these ticket distributions. All redistributable NOD ticket distributions on the latest order version are redistributed if omitted

UpdateValidityRequest

ticketDistributionGroupId
​integer · int64 · required
ticketDistributionId
​integer · int64 · required
startOfValidity
​string · required

Format is DateTime. It is also possible to send in the keyword NOW to set the startOfValidity to the current time calculated by ticket-distribution

Example: NOW, 2020-01-01T00:00:00Z
elementId
​string

If set, startOfValidity will only be updated for this elementId. If not, startOfValidity will be updated for entire TicketDistribution

UpdateValiditiesRequest

​UpdateValidityRequest[] · required

SuccessfulValidityUpdates

ticketDistributionGroupId
​integer · int64 · required

FailedValidityUpdates

ticketDistributionGroupId
​integer · int64 · required
errorMessage
​string · required

UpdateValiditiesResponse

​SuccessfulValidityUpdates[] · required
​FailedValidityUpdates[] · required

ActivateCarnetRequest

elementId
​string

elementId of the validable element (klippekort) to activate. Required if the ticket distribution has more than one validable element

ActivateCarnetResponse

ticketDistributionGroupId
​integer · int64 · required
carnetTicketDistributionId
​integer · int64 · required
activatedTicketDistributionIds
​integer[] · required

Ids of the new ticket distributions, one per activated ticket. Currently always one

remainingCount
​integer · int32 · required

Number of tickets left on the carnet after this activation

PaymentMeansType

string · enum
Enum values:
NULL
FREE
TPURSE

The payment means type used to purchase the ticket

TicketTravelCardRequest

Request for generating ticket for travel card
activate
​boolean · required

Activate the product

mediaSerialNumberId
​integer · int64 · min: 0 · max: 4294967295 · required

The media serial number (MSN) ID of the travel card

paymentMeansType
​PaymentMeansType · enum · required

The payment means type used to purchase the ticket

Enum values:
NULL
FREE
TPURSE
Did you find what you were looking for?