Entur Developer
Partner
REST
Products

valid-betweens

Server

deprecated

Retrives valid betweens by id for a given date. This api is deprecated, use .../v2/valid-betweens

GET
https://api.entur.io/products
/v1/valid-betweens/{id}

Retrives valid betweens by id for a given date. This api is deprecated, use .../v2/valid-betweens › path Parameters

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

The unique id to identify a validBetween

Retrives valid betweens by id for a given date. This api is deprecated, use .../v2/valid-betweens › 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 validBetween

fromDate
​string · style: form · explode: true

The from date of the validBetween version

toDate
​string · style: form · explode: true

The to date of the validBetween version

Retrives valid betweens by id for a given date. This api is deprecated, use .../v2/valid-betweens › 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

Languagecode
​string · style: simple
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.

Retrives valid betweens by id for a given date. This api is deprecated, use .../v2/valid-betweens › Responses

Returns the valid between

A ValidBetween
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

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

Id.

Example: NSB:ValidBetween:2018
nameOfClass
​string · required

Name of class.

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

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​TextInLanguage[]

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

organisationId
​string

Organisation related to the userProfile

toDate
​string

To Date.

​ValidityCondition[]

List of validityConditions.


Retrieves all valid betweens

GET
https://api.entur.io/products
/v2/valid-betweens

Retrieves all valid betweens › 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

Retrieves all valid betweens › 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 valid betweens › Responses

Returns the info

A ValidBetween
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

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

Id.

Example: NSB:ValidBetween:2018
nameOfClass
​string · required

Name of class.

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

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​TextInLanguage[]

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

organisationId
​string

Organisation related to the userProfile

toDate
​string

To Date.

​ValidityCondition[]

List of validityConditions.


Create a validBetween

POST
https://api.entur.io/products
/v2/valid-betweens

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

X-Correlated-Id
​string · style: simple

Create a validBetween › Request Body

A ValidBetween
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

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

Id.

Example: NSB:ValidBetween:2018
nameOfClass
​string · required

Name of class.

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

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​TextInLanguage[]

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

organisationId
​string

Organisation related to the userProfile

toDate
​string

To Date.

​ValidityCondition[]

List of validityConditions.

Create a validBetween › Responses

Entity created successfully

No data returned

Retrieves active valid between for id

GET
https://api.entur.io/products
/v2/valid-betweens/{id}

Retrieves active valid between for id › path Parameters

id
​string · required · style: simple

The id to identify a ValidBetween

Retrieves active valid between for 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 active valid between for id › Responses

Returns the info

A ValidBetween
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

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

Id.

Example: NSB:ValidBetween:2018
nameOfClass
​string · required

Name of class.

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

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​TextInLanguage[]

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

organisationId
​string

Organisation related to the userProfile

toDate
​string

To Date.

​ValidityCondition[]

List of validityConditions.


Retrieves valid between for id and version

GET
https://api.entur.io/products
/v2/valid-betweens/{id}/{version}

Retrieves valid between for id and version › path Parameters

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

The id to identify a ValidBetween

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

The id for the version of the ValidBetween

Retrieves valid between for 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 valid between for id and version › Responses

Returns the info

A ValidBetween
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

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

Id.

Example: NSB:ValidBetween:2018
nameOfClass
​string · required

Name of class.

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

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​TextInLanguage[]

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

organisationId
​string

Organisation related to the userProfile

toDate
​string

To Date.

​ValidityCondition[]

List of validityConditions.


Updates an existing ValidBetween

PUT
https://api.entur.io/products
/v2/valid-betweens/{id}/{version}

Updates an existing ValidBetween › path Parameters

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

The id to identify a ValidBetween

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

The id for the version of the ValidBetween

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

X-Correlated-Id
​string · style: simple

Updates an existing ValidBetween › Request Body

A ValidBetween
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

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

Id.

Example: NSB:ValidBetween:2018
nameOfClass
​string · required

Name of class.

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

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​TextInLanguage[]

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

organisationId
​string

Organisation related to the userProfile

toDate
​string

To Date.

​ValidityCondition[]

List of validityConditions.

Updates an existing ValidBetween › Responses

Entity updated successfully

No data returned

Deletes a valid between by id and version

DELETE
https://api.entur.io/products
/v2/valid-betweens/{id}/{version}

Deletes a valid between by id and version › path Parameters

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

The id to identify a ValidBetween

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

The id for the version of the ValidBetween

Deletes a valid between by 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

X-Correlated-Id
​string · style: simple

Deletes a valid between by id and version › Responses

The resource was deleted


deprecated

Retrieves all valid betweens for a given fare frame. This api is deprecated, use .../v2/valid-betweens

GET
https://api.entur.io/products
/valid-betweens

Retrieves all valid betweens for a given fare frame. This api is deprecated, use .../v2/valid-betweens › query Parameters

orgId
​string · style: form · explode: true
fareFrameId
​string · style: form · explode: true

The unique id to identify a dataset for an organization

languageCode
​string · style: form · explode: true

Retrieves all valid betweens for a given fare frame. This api is deprecated, use .../v2/valid-betweens › 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 valid betweens for a given fare frame. This api is deprecated, use .../v2/valid-betweens › Responses

Returns the info

Penalty policy alternatives for an element.
​PenaltyPolicy[] · required

Penalty policy alternatives for this element.

​IdAndVersion · required

Describes the ID and version of an element.


deprecated

Create a validBetween. This api is deprecated, use .../v2/valid-betweens

POST
https://api.entur.io/products
/valid-betweens

Create a validBetween. This api is deprecated, use .../v2/valid-betweens › 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 validBetween. This api is deprecated, use .../v2/valid-betweens › Request Body

A ValidBetween create request
​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

Example: 2017-07-21T17:32:28Z
id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:ValidBetween:2018
toDate
​string

To Date.

Example: 2017-07-21T17:32:28Z
​ValidityCondition[]

List of validityConditions.

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

Version.

Example: NSB:Version:V1

Create a validBetween. This api is deprecated, use .../v2/valid-betweens › Responses

Entity created successfully

No data returned

deprecated

Retrieves validable between by id and version. This api is deprecated, use .../v2/valid-betweens

GET
https://api.entur.io/products
/valid-betweens/{id}/{version}

Retrieves validable between by id and version. This api is deprecated, use .../v2/valid-betweens › path Parameters

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

The unique id to identify a validable element

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

The id of the version of the given validable element

Retrieves validable between by id and version. This api is deprecated, use .../v2/valid-betweens › 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 validable between by id and version. This api is deprecated, use .../v2/valid-betweens › Responses

Returns the resource

A ValidBetween
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

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

Id.

Example: NSB:ValidBetween:2018
nameOfClass
​string · required

Name of class.

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

Status

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​TextInLanguage[]

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

organisationId
​string

Organisation related to the userProfile

toDate
​string

To Date.

​ValidityCondition[]

List of validityConditions.


deprecated

Update a valid between. . This api is deprecated, use .../v2/valid-betweens

PUT
https://api.entur.io/products
/valid-betweens/{id}/{version}

Update a valid between. . This api is deprecated, use .../v2/valid-betweens › path Parameters

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

The unique id to identify the valid between

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

The id of the version of the valid between

Update a valid between. . This api is deprecated, use .../v2/valid-betweens › 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 valid between. . This api is deprecated, use .../v2/valid-betweens › Request Body

A ValidBetween create request
​VersionOfObjectRef · required

Fare frame ref.

fromDate
​string · required

From Date.

Example: 2017-07-21T17:32:28Z
id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:ValidBetween:2018
toDate
​string

To Date.

Example: 2017-07-21T17:32:28Z
​ValidityCondition[]

List of validityConditions.

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

Version.

Example: NSB:Version:V1

Update a valid between. . This api is deprecated, use .../v2/valid-betweens › Responses

Entity updated successfully

No data returned

deprecated

Deletes a ValidBetween by id and version. This api is deprecated, use .../v2/valid-betweens

DELETE
https://api.entur.io/products
/valid-betweens/{id}/{version}

Deletes a ValidBetween by id and version. This api is deprecated, use .../v2/valid-betweens › path Parameters

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

The id to identify a ValidBetween

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

The id for the version of the ValidBetween

Deletes a ValidBetween by id and version. This api is deprecated, use .../v2/valid-betweens › 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

Deletes a ValidBetween by id and version. This api is deprecated, use .../v2/valid-betweens › Responses

The resource was deleted

No data returned

Did you find what you were looking for?