Entur Developer
Partner
REST
Products V3

Sales package assignment

Server

Assign the supplement products to sales packages without knowledge of the full sales package structure.


List sales package assignments for a supplement product

GET
https://api.entur.io/products/partner
/v3/supplement-products/{id}/sales-offer-package-assignments

List all sales packages that a supplement product is currently assigned to, including the version reference for each assignment.

List sales package assignments for a supplement product › path Parameters

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

The netex ID of the element to retrieve

List sales package assignments for a supplement product › 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

List sales package assignments for a supplement product › Responses

List of sales package assignments

salesOfferPackageId
​string · pattern: ^([A-Z]{3}):SalesOff… · required

NeTEx ID of the sales package.

Example: VYG:SalesOfferPackage:07c4332c
fareProductId
​string · required

NeTEx ID of the fare product.

Example: EXA:SupplementProduct:e006fb5c
fareProductVersionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx version ID of the assigned fare product version.

Example: EXA:Version:FP-4725c71a-abcd-1234-efgh-567890abcdef
​object[]

Assign supplement product to sales packages

POST
https://api.entur.io/products/partner
/v3/supplement-products/{id}/sales-offer-package-assignments

Assign a supplement product to one or more sales packages. Each assignment creates a new version of the target sales package containing the supplement product reference.

This is a best-effort batch operation — failure on one sales package does not prevent processing of the others. The response body conveys per-item results; callers must inspect each item's status rather than relying solely on the HTTP status code.

If the supplement product is already assigned to a sales package but with a different version, the version reference is updated (upsert semantics).

The caller must have an agreement with the sales package owner (verified against the agreement register). The caller must also own the supplement product.

Assign supplement product to sales packages › path Parameters

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

The netex ID of the element to retrieve

Assign supplement product to 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

Assign supplement product to sales packages › Request Body

fareProductVersionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx version ID of the fare product version to assign.

Example: EXA:Version:FP-4725c71a-abcd-1234-efgh-567890abcdef
salesOfferPackageIds
​string[] · minItems: 1 · required

List of sales package NeTEx IDs to assign the fare product to.

status
​string · enum

Status of the created sales package version. Defaults to VERSIONED (auto-publish).

  • DRAFT - Creates a draft version that must be sent to test and published via POST /v3/sales-offer-packages/{id}/{version}/propose and POST /v3/sales-offer-packages/{id}/{version}/publish.
  • PROPOSED - Creates a proposed version pending review.
  • VERSIONED - Auto-publishes the new version immediately (default).
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT

Assign supplement product to sales packages › Responses

Per-sales-offer-package results. Each item indicates SUCCESS or FAILED with details; inspect individual results rather than relying solely on the HTTP status.

Per-sales-offer-package result. Best-effort — failure on one sales package does not stop others.


Remove supplement product from a sales package

DELETE
https://api.entur.io/products/partner
/v3/supplement-products/{id}/sales-offer-package-assignments/{salesOfferPackageId}

Remove the assignment of a supplement product from a sales package. This creates a new version of the sales package without the supplement product reference.

Only the supplement product owner or the sales package owner can remove the assignment.

Remove supplement product from a sales package › path Parameters

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

The netex ID of the element to retrieve

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

NeTEx ID of the sales package to remove the assignment from.

Remove supplement product from 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

Remove supplement product from a sales package › Responses

Assignment removed successfully

No data returned

Did you find what you were looking for?