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> for companies, and <personal name>-<application> for individuals.
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.
statusStatus of this sales package version.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID.
validToEnd of the validity period. No specified date means that the validity period has no end-date.
validFromStart of the validity period (travel dates, not version date).
List of fare product references included in this sales package.
publishedDateSystem-assigned timestamp of when the version was published. Only present for VERSIONED status.
versionNumberThe version number. Only present for published versions.
ownerOrganisationIdThe ID of the organization that owns the sales package.
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> for companies, and <personal name>-<application> for individuals.
X-Correlation-IdCorrelation id
Update a sales package › Request Body
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).
List of fare product references to include in this sales package.
Update a sales package › Responses
Sales package updated
id^([A-Z]{3}):SalesOff… · requiredNeTEx ID of the sales package.
statusStatus of this sales package version.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID.
validToEnd of the validity period. No specified date means that the validity period has no end-date.
validFromStart of the validity period (travel dates, not version date).
List of fare product references included in this sales package.
publishedDateSystem-assigned timestamp of when the version was published. Only present for VERSIONED status.
versionNumberThe version number. Only present for published versions.
ownerOrganisationIdThe ID of the organization that owns the sales package.
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> for companies, and <personal name>-<application> for individuals.
X-Correlation-IdCorrelation id
Publish or promote a sales package version › Request Body
statusTarget status. Valid transitions: DRAFT → PROPOSED → VERSIONED, PROPOSED → DRAFT.
validFromStart of the validity period (travel dates).
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID of the sales package version to publish.
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
statusThe resulting version status.
validFromStart of the validity period.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID.
salesOfferPackageId^([A-Z]{3}):SalesOff… · requiredNeTEx ID of the sales package.
validToEnd of the validity period. No specified date means that the validity period has no end-date.
publishedDateSystem-assigned publication timestamp. Only present for VERSIONED status.
versionNumberVersion number assigned at publication. Only present for VERSIONED status.
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> for companies, and <personal name>-<application> for individuals.
X-Correlation-IdCorrelation id
List fare products on a sales package › Responses
List of fare products
idNeTEx ID of the fare product.
versionId^([A-Z]{3}):Version:… · requiredNeTEx version ID of the fare product.
productTypeType of the fare product.