Entur Developer
Partner
REST
Product Parameters

Frequency of use

Server

Manage NeTEx FrequencyOfUse usage parameters: minimum and maximum numbers of uses, and the frequency of use type.


List frequencies of use with their current versions

GET
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use

Returns a paginated list of frequencies of use, ordered by id. Each entry is a light summary (VersionedElementSummary, shared with other element types) with the frequency of use id and the versions that are relevant today:

  • VERSIONED versions valid today or in the future (no toDate, or a toDate of today or later)
  • DRAFT and PROPOSED versions, regardless of date
  • with includeDeprecated=true, also the most recent DEPRECATED version (latest start date)

Versions are ordered by status (DRAFT, PROPOSED, VERSIONED, DEPRECATED) and then by start date, newest first. Frequencies of use without any such version are left out. Paging is per frequency of use, so its versions are never split across pages.

All versions of a single frequency of use are available through GET /v3/parameters/frequencies-of-use/{id}/versions, and the full content of a version through GET /v3/parameters/frequencies-of-use/{id}/{version}.

List frequencies of use with their current versions › query Parameters

page
​integer · min: 0 · style: form · explode: true

Zero-based page number. Defaults to 0.

Default: 0
size
​integer · min: 1 · max: 1000 · style: form · explode: true

Number of instances per page. Defaults to 100.

Default: 100
includeDeprecated
​boolean · style: form · explode: true

Also include the most recent DEPRECATED version of each frequency of use.

Default: false
ownerOrganisationId
​integer · int64 · style: form · explode: true

Only return frequencies of use owned by this internal organisation id.

List frequencies of use with their current versions › 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 frequencies of use with their current versions › Responses

Paginated list of frequency of use summaries

A page of frequencies of use, each with the versions relevant today.
totalCount
​integer · required

Total number of elements matching the query.

Example: 5
page
​integer · required

Current zero-based page number.

Example: 0
size
​integer · required

Requested page size.

Example: 100
​VersionedElementSummary[] · required

The frequencies of use on this page, ordered by id.


Create a new frequency of use

POST
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use

Create a new frequency of use. A new version is created together with it, with status DRAFT and today as start date. The status and validity period are set through the propose and publish operations (see Versions and lifecycle).

Create a new frequency of use › 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 new frequency of use › Request Body

A frequency of use (NeTEx FrequencyOfUse, a UsageParameter) limits how often a product can be used. The fields match the existing frequency_of_use table and products-spring. All three frequency fields are optional; omitting a field leaves it unset. The NeTEx GenericParameterAssignment linking it to a product is not edited here. Only content is set here. A new version starts as DRAFT with today as its start date. Status and version validity dates are set through the `propose` and `publish` operations (see [Versions and lifecycle](/docs/partner-services/fare-data/versions-and-lifecycle)).
​object[] · required
ownerOrganisationId
​integer · int64 · min: 1

Internal id of the owning organisation. Omit to use the organisation in the access token. Acting for another organisation requires permission.

Example: 1
​object[]
minimalFrequency
​integer · int32 · min: 0

Minimum number of uses (NeTEx MinimalFrequency). Zero is allowed.

Example: 0
maximalFrequency
​integer · int32 · min: 0

Maximum number of uses (NeTEx MaximalFrequency). Must not be less than minimalFrequency when both are supplied.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Create a new frequency of use › Responses

Frequency of use created successfully

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Get the active version of a frequency of use

GET
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}

Retrieve the version of the frequency of use that is active on the given date. Defaults to the version active today when no date is given.

Get the active version of a frequency of use › path Parameters

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

The netex ID of the element to retrieve

Get the active version of a frequency of use › query Parameters

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

The date that the element should be valid for, e.g. the travel date. Defaults to the current date.

Get the active version of a frequency of use › 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 the active version of a frequency of use › Responses

The frequency of use version active on the given date.

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Create a new version of an existing frequency of use

POST
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}

Create a new version of an existing frequency of use. Products referencing the frequency of use are not modified: they point at its id, and the effective version is resolved by validity period.

The new version gets status DRAFT and today as start date. The status and validity period are set through the propose and publish operations (see Versions and lifecycle).

Create a new version of an existing frequency of use › path Parameters

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

The netex ID of the element to retrieve

Create a new version of an existing frequency of use › 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 new version of an existing frequency of use › Request Body

A frequency of use (NeTEx FrequencyOfUse, a UsageParameter) limits how often a product can be used. The fields match the existing frequency_of_use table and products-spring. All three frequency fields are optional; omitting a field leaves it unset. The NeTEx GenericParameterAssignment linking it to a product is not edited here. Only content is set here. A new version starts as DRAFT with today as its start date. Status and version validity dates are set through the `propose` and `publish` operations (see [Versions and lifecycle](/docs/partner-services/fare-data/versions-and-lifecycle)).
​object[] · required
ownerOrganisationId
​integer · int64 · min: 1

Internal id of the owning organisation. Omit to use the organisation in the access token. Acting for another organisation requires permission.

Example: 1
​object[]
minimalFrequency
​integer · int32 · min: 0

Minimum number of uses (NeTEx MinimalFrequency). Zero is allowed.

Example: 0
maximalFrequency
​integer · int32 · min: 0

Maximum number of uses (NeTEx MaximalFrequency). Must not be less than minimalFrequency when both are supplied.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Create a new version of an existing frequency of use › Responses

Frequency of use version created successfully

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

List versions of a frequency of use

GET
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/versions

Retrieve all versions of a frequency of use by its NeTEx ID, including drafts and proposals.

List versions of a frequency of use › path Parameters

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

The netex ID of the element to retrieve

List versions of a frequency of use › 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 versions of a frequency of use › Responses

List of frequency of use versions

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

The netex id reference to the object.

Example: EXA:Version:001
status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

created
​string · date-time · required

Created datetime

Example: 2026-07-01T10:00:00Z
changed
​string · date-time · required

Changed datetime

Example: 2026-07-15T10:00:00Z
number
​integer · int64

Version number of the version. Only present when versionStatus is VERSIONED. Starts at 1 for a new product and is incremented by 1 for each new version.

Example: 1
published
​string · date-time

Timestamp for when the version was published (set to status VERSIONED).

Example: 2026-08-01T12:00:00Z

Get a specific frequency of use version

GET
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/{version}

Retrieve a specific version of a frequency of use, identified by NeTEx version id or version number.

Get a specific frequency of use version › path Parameters

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

The netex ID of the element to retrieve

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

The netex ID or sequence number of the version to retrieve

Get a specific frequency of use 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

Get a specific frequency of use version › Responses

The frequency of use version

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Update an existing frequency of use version

PUT
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/{version}

Update the content of a frequency of use version in place. Only DRAFT versions can be updated. The status and validity period of the version are not changed here; use the propose and publish operations (see Versions and lifecycle).

Update an existing frequency of use version › path Parameters

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

The netex ID of the element to retrieve

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

The NeTEx ID of the version (version.id in the response). A version number is not accepted on endpoints that change or delete a version.

Update an existing frequency of use 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

Update an existing frequency of use version › Request Body

A frequency of use (NeTEx FrequencyOfUse, a UsageParameter) limits how often a product can be used. The fields match the existing frequency_of_use table and products-spring. All three frequency fields are optional; omitting a field leaves it unset. The NeTEx GenericParameterAssignment linking it to a product is not edited here. Only content is set here. A new version starts as DRAFT with today as its start date. Status and version validity dates are set through the `propose` and `publish` operations (see [Versions and lifecycle](/docs/partner-services/fare-data/versions-and-lifecycle)).
​object[] · required
ownerOrganisationId
​integer · int64 · min: 1

Internal id of the owning organisation. Omit to use the organisation in the access token. Acting for another organisation requires permission.

Example: 1
​object[]
minimalFrequency
​integer · int32 · min: 0

Minimum number of uses (NeTEx MinimalFrequency). Zero is allowed.

Example: 0
maximalFrequency
​integer · int32 · min: 0

Maximum number of uses (NeTEx MaximalFrequency). Must not be less than minimalFrequency when both are supplied.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Update an existing frequency of use version › Responses

Frequency of use version updated successfully

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Delete a frequency of use version

DELETE
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/{version}

Delete a frequency of use version. Only DRAFT versions can be deleted.

Delete a frequency of use version › path Parameters

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

The netex ID of the element to retrieve

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

The NeTEx ID of the version (version.id in the response). A version number is not accepted on endpoints that change or delete a version.

Delete a frequency of use 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 frequency of use version › Responses

Frequency of use version deleted

No data returned

Send a frequency of use version to test

POST
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/{version}/propose

Sends the version to test with the validity period in validBetween. The version becomes PROPOSED. Can be called on a DRAFT or a PROPOSED version; call it again to test with other dates.

The content of the frequency of use is not changed; it is edited with PUT /v3/parameters/frequencies-of-use/{id}/{version} while the version is a DRAFT.

The optional note and external reference are stored as an audit log entry for the version, in the same transaction. The person responsible is resolved from the authenticated caller.

Send a frequency of use version to test › path Parameters

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

The netex ID of the element to retrieve

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

The NeTEx ID of the version (version.id in the response). A version number is not accepted on endpoints that change or delete a version.

Send a frequency of use version to test › 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

Send a frequency of use version to test › Request Body

Sends the version to test with the validity period in `validBetween`. Both dates are inclusive.
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

note
​AuditNote · maxLength: 400

Free-text note explaining the change. Stored in the audit log of the version.

Example: Klar for test
externalReferenceName
​AuditExternalReferenceName · maxLength: 300

External reference name (e.g. a Jira issue key). Stored in the audit log of the version.

Example: Entur JIRA-sak ETU-75340
externalReferenceUrl
​AuditExternalReferenceUrl · maxLength: 300

External reference URL (e.g. a Jira issue URL). Stored in the audit log of the version.

Example: https://enturas.atlassian.net/browse/ETU-75340

Send a frequency of use version to test › Responses

The frequency of use version after the operation

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Send a frequency of use version back to DRAFT

POST
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/{version}/withdraw

Sends a PROPOSED version back to DRAFT, so its content can be changed with PUT /v3/parameters/frequencies-of-use/{id}/{version}. The validity period is kept. The request body is optional.

The optional note and external reference are stored as an audit log entry for the version, in the same transaction. The person responsible is resolved from the authenticated caller.

Send a frequency of use version back to DRAFT › path Parameters

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

The netex ID of the element to retrieve

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

The NeTEx ID of the version (version.id in the response). A version number is not accepted on endpoints that change or delete a version.

Send a frequency of use version back to DRAFT › 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

Send a frequency of use version back to DRAFT › Request Body optional

An optional note and external reference explaining why the version is withdrawn.
note
​AuditNote · maxLength: 400

Free-text note explaining the change. Stored in the audit log of the version.

Example: Klar for test
externalReferenceName
​AuditExternalReferenceName · maxLength: 300

External reference name (e.g. a Jira issue key). Stored in the audit log of the version.

Example: Entur JIRA-sak ETU-75340
externalReferenceUrl
​AuditExternalReferenceUrl · maxLength: 300

External reference URL (e.g. a Jira issue URL). Stored in the audit log of the version.

Example: https://enturas.atlassian.net/browse/ETU-75340

Send a frequency of use version back to DRAFT › Responses

The frequency of use version after the operation

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Publish a frequency of use version

POST
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/{version}/publish

Publishes a PROPOSED version with the validity period in validBetween. The version becomes VERSIONED and is given the next version number. The dates used while the version was tested are not carried over, so they must be given again.

Rules when publishing:

  • validBetween.fromDate cannot be in the past.
  • The version cannot overlap, or leave a gap to, another published version of the frequency of use.
  • An open-ended previous version is ended automatically: its toDate becomes the day before fromDate of this version. A version with exactly the same validity period is set to DEPRECATED. Other overlaps are rejected.

The optional note and external reference are stored as an audit log entry for the version, in the same transaction. The person responsible is resolved from the authenticated caller.

Publish a frequency of use version › path Parameters

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

The netex ID of the element to retrieve

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

The NeTEx ID of the version (version.id in the response). A version number is not accepted on endpoints that change or delete a version.

Publish a frequency of use 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

Publish a frequency of use version › Request Body

Publishes the version with the validity period in `validBetween`. Both dates are inclusive. The dates used while the version was tested are not carried over.
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

note
​AuditNote · maxLength: 400

Free-text note explaining the change. Stored in the audit log of the version.

Example: Klar for test
externalReferenceName
​AuditExternalReferenceName · maxLength: 300

External reference name (e.g. a Jira issue key). Stored in the audit log of the version.

Example: Entur JIRA-sak ETU-75340
externalReferenceUrl
​AuditExternalReferenceUrl · maxLength: 300

External reference URL (e.g. a Jira issue URL). Stored in the audit log of the version.

Example: https://enturas.atlassian.net/browse/ETU-75340

Publish a frequency of use version › Responses

The frequency of use version after the operation

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Set the last valid day of a published frequency of use version

POST
https://api.entur.io/products/partner
/v3/parameters/frequencies-of-use/{id}/{version}/expire

Sets or moves toDate, the last valid day (inclusive), of a VERSIONED version. fromDate cannot be changed. The end date cannot be removed.

Rules when expiring:

  • A version whose toDate has passed cannot be changed.
  • toDate cannot be in the past.
  • The version cannot overlap, or leave a gap to, another published version. A version that has a published successor can therefore not be moved.
  • DRAFT and PROPOSED versions are not considered. They are checked against this version when they are published.

The optional note and external reference are stored as an audit log entry for the version, in the same transaction. The person responsible is resolved from the authenticated caller.

Set the last valid day of a published frequency of use version › path Parameters

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

The netex ID of the element to retrieve

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

The NeTEx ID of the version (version.id in the response). A version number is not accepted on endpoints that change or delete a version.

Set the last valid day of a published frequency of use 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

Set the last valid day of a published frequency of use version › Request Body

The new last valid day of a published version.
toDate
​string · date · required

Last day the version is valid (inclusive). Cannot be in the past.

Example: 2026-12-31
note
​AuditNote · maxLength: 400

Free-text note explaining the change. Stored in the audit log of the version.

Example: Klar for test
externalReferenceName
​AuditExternalReferenceName · maxLength: 300

External reference name (e.g. a Jira issue key). Stored in the audit log of the version.

Example: Entur JIRA-sak ETU-75340
externalReferenceUrl
​AuditExternalReferenceUrl · maxLength: 300

External reference URL (e.g. a Jira issue URL). Stored in the audit log of the version.

Example: https://enturas.atlassian.net/browse/ETU-75340

Set the last valid day of a published frequency of use version › Responses

The frequency of use version after the operation

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

NeTEx id of the frequency of use.

Example: ENT:FrequencyOfUse:TwiceADay
versionId
​string · pattern: ^([A-Z]{3}):Version:… · required

NeTEx id of this version.

Example: ENT:Version:8f1b2c3d
ownerOrganisationId
​integer · int64 · required

Internal organisation id owning the frequency of use.

Example: 1
​object[] · required
​ValidBetween · required

The validity period of a version, modelled on NeTEx ValidBetween. Both dates are inclusive: the version is valid from the start of fromDate up to and including the whole of toDate. This follows NeTEx, where ToDate is documented as inclusive (netex_validityCondition_version.xsd), and the Nordic NeTEx profile examples, which give the last valid day as ToDate (e.g. 2018-12-31T23:59:59, fares-penalty.xml). The dates are calendar dates; NeTEx uses xsd:dateTime, so toDate corresponds to the end of that day in a NeTEx export.

status
​VersionStatus · enum · required
Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
versionNumber
​integer · int64

Sequence number of this version, when assigned.

Example: 1
​object[]
minimalFrequency
​integer · int32

Minimum number of uses, when set.

Example: 0
maximalFrequency
​integer · int32

Maximum number of uses, when set.

Example: 2
frequencyOfUseType
​FrequencyOfUseType · enum

NeTEx FrequencyOfUseType, using the values stored by products-spring. NONE prohibits use, SINGLE permits one use, LIMITED permits a limited number of uses, UNLIMITED permits unlimited use, and TWICE_A_DAY permits two uses per day.

Enum values:
NONE
SINGLE
LIMITED
UNLIMITED
TWICE_A_DAY
Example: SINGLE

Did you find what you were looking for?