Fine-grained modification of sales packages. The client sends a full request body and has full control over the sales package content.
Get a sales package by ID
Retrieve a sales package by its NeTEx ID.
path Parameters
id^([A-Z]{3}):([A-Za-z… · required · style: simpleThe netex ID of the element to retrieve
Headers
ET-Client-NameEntur 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-IdCorrelation id
Get a sales package by ID › Responses
Sales package found
id^([A-Z]{3}):SalesOff… · requiredNeTEx ID of the sales package.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID.
statusStatus of this sales package version.
versionNumberThe version number. Only present for published versions.
ownerOrganisationIdThe ID of the organization that owns the sales package.
List of fare product references included in this sales package.
validFromStart of the validity period (travel dates, not version date).
validToEnd of the validity period. No specified date means that the validity period has no end-date.
publishedDateSystem-assigned timestamp of when the version was published. Only present for VERSIONED status.
Update a sales package
Update a sales package with a full replacement of its content. The client should first retrieve the current sales package, modify the desired fields, and send the complete object back.
This creates a new version of the sales package. The status field controls whether the version is auto-published (VERSIONED) or created as a draft.
path Parameters
id^([A-Z]{3}):([A-Za-z… · required · style: simpleThe netex ID of the element to retrieve
Headers
ET-Client-NameEntur 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-IdCorrelation id
Update a sales package › Request Body
List of fare product references to include in this sales package.
statusStatus of the created sales package version. Defaults to VERSIONED.
- DRAFT - Creates a draft version.
- PROPOSED - Creates a proposed version pending review.
- VERSIONED - Publishes the version immediately (default).
Update a sales package › Responses
Sales package updated
id^([A-Z]{3}):SalesOff… · requiredNeTEx ID of the sales package.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID.
statusStatus of this sales package version.
versionNumberThe version number. Only present for published versions.
ownerOrganisationIdThe ID of the organization that owns the sales package.
List of fare product references included in this sales package.
validFromStart of the validity period (travel dates, not version date).
validToEnd of the validity period. No specified date means that the validity period has no end-date.
publishedDateSystem-assigned timestamp of when the version was published. Only present for VERSIONED status.
Publish or promote a sales package version
Change the status of a sales package version. Used to promote versions through the publication workflow: DRAFT -> (PROPOSED ->) VERSIONED (-> DEPRECATED) or send back: PROPOSED -> DRAFT.
path Parameters
id^([A-Z]{3}):([A-Za-z… · required · style: simpleThe netex ID of the element to retrieve
Headers
ET-Client-NameEntur 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-IdCorrelation id
Publish or promote a sales package version › Request Body
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID of the sales package version to publish.
statusTarget status. Valid transitions: DRAFT → PROPOSED → VERSIONED, PROPOSED → DRAFT.
validFromStart of the validity period (travel dates).
validToEnd of the validity period. No specified date means that the validity period has no end-date.
Publish or promote a sales package version › Responses
Version status updated successfully
salesOfferPackageId^([A-Z]{3}):SalesOff… · requiredNeTEx ID of the sales package.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID.
statusThe resulting version status.
validFromStart of the validity period.
versionNumberVersion number assigned at publication. Only present for VERSIONED status.
publishedDateSystem-assigned publication timestamp. Only present for VERSIONED status.
validToEnd of the validity period. No specified date means that the validity period has no end-date.
List fare products on a sales package
List all fare products currently assigned to a sales package.
path Parameters
id^([A-Z]{3}):([A-Za-z… · required · style: simpleThe netex ID of the element to retrieve
Headers
ET-Client-NameEntur 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-IdCorrelation id
List fare products on a sales package › Responses
List of fare products
idNeTEx ID of the fare product.
productTypeType of the fare product.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID of the fare product.