Entur Developer
Partner
REST
Products

sales-packages

Server

Retrieves sales packages by organisation id

GET
https://api.entur.io/products
/sales-packages

Retrieves sales packages by organisation id › query Parameters

orgId
​string · style: form · explode: true

The unique id to identify a organisation

fareFrameId
​string · style: form · explode: true

The unique id to identify a fare frame

languageCode
​string · style: form · explode: true

The language code from ISO-639-3

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

Retrieves sales packages by organisation id › 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

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves sales packages by organisation id › Responses

Returns the info

A SalesPackage response
​GenericParameterAssignment[] · required

Access Right Parameter assignments.

changed
​string · required

SalesPackage changed datetime.

created
​string · required

SalesPackage create datetime.

​DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

​VersionOfObjectRef[] · required

References to fare tables.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · required

Name of class.

Example: SalesPackage
status
​string · enum · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
compatibleWithVersionRef
​string

CompatibleWithVersionRef

derivedFromVersionRef
​string

Derived from version.

​TextInLanguage[]

Description.

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

SalesPackage Name.

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version

Example: NSB:Version:V1

Create a salespackage

POST
https://api.entur.io/products
/sales-packages

Create a salespackage › 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

Create a salespackage › Request Body

​VersionOfObjectRef[] · required

AccessRightParameterAssignments.

​DistributionAssignmentInsert[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id

Example: NSB:UserProfile:Child
​TextInLanguage[] · required

UserProfile Name represented in different languages. Language codes are ISO-639.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

UserProfile version.

Example: NSB:Version:V1
activeComparisonOperatorVariant
​string

Deprecated: this parameter is ignored.

Example: E
compatibleWithVersionRef
​string

Compatible with version.

derivedFromVersionRef
​string

Derived from version.

​TextInLanguage[]

Description represented in different languages. Language codes are ISO-639.

​VersionOfObjectRef[]

References to fare tables.

​FarePriceInsert[]

Fare prices.

​SalesPackageElementInsert[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT

Create a salespackage › Responses

Entity created successfully

No data returned

Retrieves a sales package by id

GET
https://api.entur.io/products
/sales-packages/{id}

Retrieves a sales package by id › path Parameters

id
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The unique id to identify a sales package

Retrieves a sales package by id › query Parameters

version
​string · style: form · explode: true

version

languageCode
​string · style: form · explode: true

The language code from ISO-639-3

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

Retrieves a sales package by id › 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

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves a sales package by id › Responses

Returns the info

A SalesPackage response
​GenericParameterAssignment[] · required

Access Right Parameter assignments.

changed
​string · required

SalesPackage changed datetime.

created
​string · required

SalesPackage create datetime.

​DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

​VersionOfObjectRef[] · required

References to fare tables.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · required

Name of class.

Example: SalesPackage
status
​string · enum · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
compatibleWithVersionRef
​string

CompatibleWithVersionRef

derivedFromVersionRef
​string

Derived from version.

​TextInLanguage[]

Description.

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

SalesPackage Name.

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version

Example: NSB:Version:V1

Retrieves a sales package by id

GET
https://api.entur.io/products
/sales-packages/{id}/{version}

Retrieves a sales package by id › path Parameters

id
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The unique id to identify a sales package

version
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

version

Retrieves a sales package by id › query Parameters

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

Retrieves a sales package by id › 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

Accept-Language
​string · style: simple

The language code from ISO-639-3

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves a sales package by id › Responses

Returns the info

A SalesPackage response
​GenericParameterAssignment[] · required

Access Right Parameter assignments.

changed
​string · required

SalesPackage changed datetime.

created
​string · required

SalesPackage create datetime.

​DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

​VersionOfObjectRef[] · required

References to fare tables.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · required

Name of class.

Example: SalesPackage
status
​string · enum · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
compatibleWithVersionRef
​string

CompatibleWithVersionRef

derivedFromVersionRef
​string

Derived from version.

​TextInLanguage[]

Description.

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

SalesPackage Name.

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version

Example: NSB:Version:V1

Update a sales-package

PUT
https://api.entur.io/products
/sales-packages/{id}/{version}

Update a sales-package › path Parameters

id
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The unique id to identify a sales package

version
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

version

Update a sales-package › 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

Update a sales-package › Request Body

​VersionOfObjectRef[] · required

AccessRightParameterAssignments.

​DistributionAssignmentInsert[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id

Example: NSB:UserProfile:Child
​TextInLanguage[] · required

UserProfile Name represented in different languages. Language codes are ISO-639.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

UserProfile version.

Example: NSB:Version:V1
activeComparisonOperatorVariant
​string

Deprecated: this parameter is ignored.

Example: E
compatibleWithVersionRef
​string

Compatible with version.

derivedFromVersionRef
​string

Derived from version.

​TextInLanguage[]

Description represented in different languages. Language codes are ISO-639.

​VersionOfObjectRef[]

References to fare tables.

​FarePriceInsert[]

Fare prices.

​SalesPackageElementInsert[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT

Update a sales-package › Responses

Entity updated successfully

No data returned

Retrieves a sales package by id

GET
https://api.entur.io/products
/v1/sales-packages/{id}

Retrieves a sales package by id › path Parameters

id
​string · required · style: simple

The unique id to identify a sales package

Retrieves a sales package by id › query Parameters

startDate
​string · style: form · explode: true
endDate
​string · style: form · explode: true
status
​string · style: form · explode: true

The version status of the sales package

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

fromDate
​string · style: form · explode: true

The from date of the sales packages version

toDate
​string · style: form · explode: true

The to date of the sales packages version

Retrieves a sales package by id › 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

Accept-Language
​string · style: simple

The language code from ISO-639-3

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves a sales package by id › Responses

Returns the info

A SalesPackage response
​GenericParameterAssignment[] · required

Access Right Parameter assignments.

changed
​string · required

SalesPackage changed datetime.

created
​string · required

SalesPackage create datetime.

​DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

​VersionOfObjectRef[] · required

References to fare tables.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · required

Name of class.

Example: SalesPackage
status
​string · enum · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
compatibleWithVersionRef
​string

CompatibleWithVersionRef

derivedFromVersionRef
​string

Derived from version.

​TextInLanguage[]

Description.

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

SalesPackage Name.

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version

Example: NSB:Version:V1

Retrieves all sales packages

GET
https://api.entur.io/products
/v2/sales-packages

Retrieves all sales packages › query Parameters

orgId
​string · style: form · explode: true

The unique id to identify an organisation

fareFrameId
​string · style: form · explode: true

The unique id to identify a dataset to an organisation

minimizeDataLoad
​boolean · style: form · explode: true

Possibility of opting out of including child elements

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

statusFilter
​string[] · style: form · explode: true

Filter by status. Allowed values: DRAFT, PROPOSED, VERSIONED, DEPRECATED, ALL. Defaults to ALL if not specified. Mutually exclusive with validOnDate.

validOnDate
​string · style: form · explode: true

Return the SalesPackages valid on this date, example: 2024-06-01T00:00:00Z. Note that, if called in the production environment, only VERSIONED SalesPackages are returned. And in the staging environment, PROPOSED SalesPackages are preferred to VERSIONED ones. Mutually exclusive with statusFilter.

Retrieves all sales packages › 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

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves all sales packages › Responses

Returns the info

SalesPackage
changed
​string · readOnly · required

Changed datetime

created
​string · readOnly · required

Created datetime

​v2.DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · readOnly · required

Modification status

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · readOnly · required

Name of class

Example: SalesPackage
status
​string · enum · readOnly · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
​GenericParameterAssignment[] · required

Validity Parameter assignments.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version

Example: NSB:Version:V1
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
​TextInLanguage[]

Description

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

Name

organisationId
​string

Organisation related to the userProfile

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT

Create a sales package

POST
https://api.entur.io/products
/v2/sales-packages

Create a sales package › 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

Create a sales package › Request Body

SalesPackage
changed
​string · readOnly · required

Changed datetime

created
​string · readOnly · required

Created datetime

​v2.DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · readOnly · required

Modification status

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · readOnly · required

Name of class

Example: SalesPackage
status
​string · enum · readOnly · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
​GenericParameterAssignment[] · required

Validity Parameter assignments.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version

Example: NSB:Version:V1
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
​TextInLanguage[]

Description

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

Name

organisationId
​string

Organisation related to the userProfile

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT

Create a sales package › Responses

Entity created successfully

No data returned

Retrieves the number of sales packages

GET
https://api.entur.io/products
/v2/sales-packages/count

Retrieves the number of sales packages › query Parameters

orgId
​string · style: form · explode: true

The unique id to identify an organisation

fareFrameId
​string · style: form · explode: true

The unique id to identify a dataset to an organisation

statusFilter
​string[] · style: form · explode: true

Filter by status. Allowed values: DRAFT, PROPOSED, VERSIONED, DEPRECATED, ALL. Defaults to ALL if not specified. Mutually exclusive with validOnDate.

validOnDate
​string · style: form · explode: true

Count SalesPackages valid on this date, example: 2024-06-01T00:00:00Z. Note that, if called in the production environment, only VERSIONED SalesPackages are counted. And in the staging environment, PROPOSED SalesPackages are preferred to VERSIONED ones. Mutually exclusive with statusFilter.

Retrieves the number of sales packages › 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

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves the number of sales packages › Responses

Returns the number of sales packages

integer · int32

Retrieves the number of pages of sales packages

GET
https://api.entur.io/products
/v2/sales-packages/pages

Retrieves the number of pages of sales packages › query Parameters

pageSize
​integer · int32 · required · style: form · explode: true

The number of sales packages per page

pageNumber
​integer · int32 · required · style: form · explode: true

The page number

orgId
​string · style: form · explode: true

The unique id to identify an organisation

fareFrameId
​string · style: form · explode: true

The unique id to identify a dataset to an organisation

minimizeDataLoad
​boolean · style: form · explode: true

Possibility of opting out of including child elements

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

statusFilter
​string[] · style: form · explode: true

Filter by status. Allowed values: DRAFT, PROPOSED, VERSIONED, DEPRECATED, ALL. Defaults to ALL if not specified. Mutually exclusive with validOnDate.

validOnDate
​string · style: form · explode: true

Return the SalesPackages valid on this date, example: 2024-06-01T00:00:00Z. Note that, if called in the production environment, only VERSIONED SalesPackages are returned. And in the staging environment, PROPOSED SalesPackages are preferred to VERSIONED ones. Mutually exclusive with statusFilter.

Retrieves the number of pages of sales packages › 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

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves the number of pages of sales packages › Responses

Returns the number of pages of sales packages

SalesPackagePageWrapper
​v2.SalesPackage[] · readOnly · required

SalesPackages for the given page

requestedPageNumber
​integer · int32 · readOnly · required

Number of the requested page. In case state is lost

Example: 13
totalNumberOfItems
​integer · int32 · readOnly · required

Total number of items.

Example: 369
totalNumberOfPages
​integer · int32 · readOnly · required

Number of pages needed to traverse all items.

Example: 15

Retrieves a sales package by id. When 'validOnDate' is omitted, returns the version valid today.

GET
https://api.entur.io/products
/v2/sales-packages/{id}

Optional validOnDate query parameter (defaults to now). In prod returns the VERSIONED element; in staging/dev PROPOSED is preferred over VERSIONED.

Retrieves a sales package by id. When 'validOnDate' is omitted, returns the version valid today. › path Parameters

id
​string · required · style: simple

The unique id to identify a sales package

Retrieves a sales package by id. When 'validOnDate' is omitted, returns the version valid today. › query Parameters

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

Return the version valid on the given date (ISO-8601). Defaults to now.

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

Retrieves a sales package by id. When 'validOnDate' is omitted, returns the version valid today. › 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

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves a sales package by id. When 'validOnDate' is omitted, returns the version valid today. › Responses

Returns the info

SalesPackage
changed
​string · readOnly · required

Changed datetime

created
​string · readOnly · required

Created datetime

​v2.DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · readOnly · required

Modification status

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · readOnly · required

Name of class

Example: SalesPackage
status
​string · enum · readOnly · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
​GenericParameterAssignment[] · required

Validity Parameter assignments.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version

Example: NSB:Version:V1
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
​TextInLanguage[]

Description

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

Name

organisationId
​string

Organisation related to the userProfile

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT

Retrieves sales package given id and version

GET
https://api.entur.io/products
/v2/sales-packages/{id}/{version}

Retrieves sales package given id and version › path Parameters

id
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The unique id to identify a sales package

version
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The version of the sales package

Retrieves sales package given id and version › query Parameters

gpaDataSet
​string · style: form · explode: true

Deprecated: this parameter is ignored. Only E-variant GPAs are returned.

Retrieves sales package given id and version › 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

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves sales package given id and version › Responses

Returns the info

SalesPackage
changed
​string · readOnly · required

Changed datetime

created
​string · readOnly · required

Created datetime

​v2.DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · readOnly · required

Modification status

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · readOnly · required

Name of class

Example: SalesPackage
status
​string · enum · readOnly · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
​GenericParameterAssignment[] · required

Validity Parameter assignments.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version

Example: NSB:Version:V1
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
​TextInLanguage[]

Description

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

Name

organisationId
​string

Organisation related to the userProfile

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT

Updates an existing sales package

PUT
https://api.entur.io/products
/v2/sales-packages/{id}/{version}

Updates an existing sales package › path Parameters

id
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The unique id to identify a sales package

version
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The version of the sales package

Updates an existing sales package › 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

Updates an existing sales package › Request Body

SalesPackage
changed
​string · readOnly · required

Changed datetime

created
​string · readOnly · required

Created datetime

​v2.DistributionAssignment[] · required

Distribution assignments.

​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id

Example: NSB:SalesPackage:Ordinary
modification
​string · enum · readOnly · required

Modification status

Enum values:
NEW
REVISE
DELETE
Example: NEW
nameOfClass
​string · readOnly · required

Name of class

Example: SalesPackage
status
​string · enum · readOnly · required

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
​GenericParameterAssignment[] · required

Validity Parameter assignments.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version

Example: NSB:Version:V1
activeComparisonOperatorVariant
​string

Deprecated: this parameter will be ignored

Example: E
​TextInLanguage[]

Description

​LimitingRule

A LimitingRule

​VersionOfObjectRef

Fare frame ref.

​TextInLanguage[]

Name

organisationId
​string

Organisation related to the userProfile

​FarePrice[]

Fare prices.

​SalesPackageElement[]

Sales package elements.

vatGroupRegister
​string · enum

VatGroupRegister is optional. No default value

Enum values:
EXCEPTION_FROM_VAT
GENERAL_VAT
FOOD_VAT
TRANSPORT_AND_TICKETS_VAT

Updates an existing sales package › Responses

Entity updated successfully

No data returned

Delete a sales package given id and version

DELETE
https://api.entur.io/products
/v2/sales-packages/{id}/{version}

Delete a sales package given id and version › path Parameters

id
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The unique id to identify a sales package

version
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The version of the sales package

Delete a sales package given id and version › 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

Delete a sales package given id and version › Responses

Entity deleted successfully

No data returned

Did you find what you were looking for?