Entur Developer
Ticket Distributions

Ticket Distributions

Server

Services regarding ticket distribution level.


Get summary of distribution data for an order

GET
https://api.staging.entur.io/sales
/v1/ticket-distributions/{orderId}/summary

Returns a list of the distinct summary data for the orderId. This service/endpoint is useful to just retrieve external distribution data for an order when you may not have access to all order data.

Get summary of distribution data for an order › path Parameters

orderId
​string · required · style: simple

orderId

Example: NTA2JGR7

Get summary of distribution data for an order › Headers

ET-Client-Name
​string · style: simple

Entur 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-Id
​string · style: simple

Correlation id

Get summary of distribution data for an order › Responses

OK

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.


deprecated

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute

POST
https://api.staging.entur.io/sales
/v1/ticket-distributions/{orderId}/distribute

Distribute a set of ticket distribution groups to NOD for pick up as QR-code and animation.

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › path Parameters

orderId
​string · required · style: simple

orderId

Example: NTA2JGR7

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › query Parameters

deliverAfter
​string · date-time · style: form · explode: true

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

qrChecksumType
​integer · int32 · style: form · explode: true

The QR Code checksum type

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › Headers

Entur-Pos
​string · required · style: simple

A header containing a point-of-sale reference

Example: MyApplication
ET-Client-Name
​string · style: simple

Entur 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-Id
​string · style: simple

Correlation id

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › Responses

OK

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


deprecated

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute

POST
https://api.staging.entur.io/sales
/v1/ticket-distributions/{orderId}/distribute-travel-card

Distribute a set of ticket distribution groups to NOD for pick up on travel card.

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › path Parameters

orderId
​string · required · style: simple

orderId

Example: NTA2JGR7

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › Headers

Entur-Pos
​string · required · style: simple

A header containing a point-of-sale reference

Example: MyApplication
ET-Client-Name
​string · style: simple

Entur 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-Id
​string · style: simple

Correlation id

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › Request Body

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

Deprecated. Does not handle higher order version than 1, and does not support defining distribution language. Please use /v1/ticket-distribution-groups/{orderId}/distribute › Responses

OK

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


Generate ticket distributions

POST
https://api.staging.entur.io/sales
/v1/ticket-distributions/{orderId}/generate

Generate a set of ticket distribution groups which later will be distributed to a ticket system.

Generate ticket distributions › path Parameters

orderId
​string · required · style: simple

orderId

Example: NTA2JGR7

Generate ticket distributions › Headers

Entur-Pos
​string · required · style: simple

A header containing a point-of-sale reference

Example: MyApplication
ET-Client-Name
​string · style: simple

Entur 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-Id
​string · style: simple

Correlation id

Accepts-Language
​string · style: simple

A header used to select language

Current supported languages are 'nob', 'nno' and 'eng'

Entur-Distribution-Channel
​string · style: simple

A header containing a distribution channel reference

Example: ENT:DistributionChannel:App

Generate ticket distributions › Responses

OK

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


Did you find what you were looking for?