Entur Developer
Partner
REST
Product Parameters

Usage Validity Period

Server

Manage UsageValidityPeriod instances. Defines how long a product is valid after purchase or activation (e.g., single trip, 60 minutes, 30 days).


List usage validity period instances

GET
https://api.entur.io/products/partner
/v3/parameters/limitations/usage-validity-period

Returns a paginated list of all UsageValidityPeriod instances.

List usage validity period instances › 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

List usage validity period instances › 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 usage validity period instances › Responses

Paginated list of UsageValidityPeriod instances

​UsageValidityPeriod[] · required
totalCount
​integer · required

Total number of UsageValidityPeriod instances.

Example: 8
page
​integer · required

Current zero-based page number.

Example: 0
size
​integer · required

Number of instances per page.

Example: 100

Create a usage validity period instance

POST
https://api.entur.io/products/partner
/v3/parameters/limitations/usage-validity-period

Create a new UsageValidityPeriod instance.

Create a usage validity period instance › 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 usage validity period instance › Request Body

​object[] · required
usageValidityType
​string · enum · required

The type of usage validity.

Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
MONTHLY_PASS
ANNUAL_PASS
CUSTOM_PERIOD
Example: SINGLE_TRIP
validityPeriod
​string

How long the product is valid after activation. ISO 8601 duration.

Example: PT60M
activationType
​string · enum

What triggers the start of the validity period.

Enum values:
ON_PURCHASE
ON_FIRST_USE
ON_CHECK_IN
Example: ON_PURCHASE

Create a usage validity period instance › Responses

UsageValidityPeriod instance created successfully

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

The NeTEx ID of this UsageValidityPeriod.

Example: ENT:UsageValidityPeriod:DuringTravel
​object[] · required
usageValidityType
​string · enum · required

The type of usage validity.

Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
MONTHLY_PASS
ANNUAL_PASS
CUSTOM_PERIOD
Example: SINGLE_TRIP
validityPeriod
​string

How long the product is valid after activation. ISO 8601 duration.

Example: PT60M
activationType
​string · enum

What triggers the start of the validity period.

Enum values:
ON_PURCHASE
ON_FIRST_USE
ON_CHECK_IN
Example: ON_PURCHASE

Get a usage validity period instance

GET
https://api.entur.io/products/partner
/v3/parameters/limitations/usage-validity-period/{id}

Retrieve the full detail of a single UsageValidityPeriod instance.

Get a usage validity period instance › path Parameters

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

The netex ID of the element to retrieve

Get a usage validity period instance › 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 usage validity period instance › Responses

UsageValidityPeriod instance found

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

The NeTEx ID of this UsageValidityPeriod.

Example: ENT:UsageValidityPeriod:DuringTravel
​object[] · required
usageValidityType
​string · enum · required

The type of usage validity.

Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
MONTHLY_PASS
ANNUAL_PASS
CUSTOM_PERIOD
Example: SINGLE_TRIP
validityPeriod
​string

How long the product is valid after activation. ISO 8601 duration.

Example: PT60M
activationType
​string · enum

What triggers the start of the validity period.

Enum values:
ON_PURCHASE
ON_FIRST_USE
ON_CHECK_IN
Example: ON_PURCHASE

Update a usage validity period instance

PUT
https://api.entur.io/products/partner
/v3/parameters/limitations/usage-validity-period/{id}

Update an existing UsageValidityPeriod instance.

Update a usage validity period instance › path Parameters

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

The netex ID of the element to retrieve

Update a usage validity period instance › 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 usage validity period instance › Request Body

​object[] · required
usageValidityType
​string · enum · required

The type of usage validity.

Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
MONTHLY_PASS
ANNUAL_PASS
CUSTOM_PERIOD
Example: SINGLE_TRIP
validityPeriod
​string

How long the product is valid after activation. ISO 8601 duration.

Example: PT60M
activationType
​string · enum

What triggers the start of the validity period.

Enum values:
ON_PURCHASE
ON_FIRST_USE
ON_CHECK_IN
Example: ON_PURCHASE

Update a usage validity period instance › Responses

UsageValidityPeriod instance updated successfully

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

The NeTEx ID of this UsageValidityPeriod.

Example: ENT:UsageValidityPeriod:DuringTravel
​object[] · required
usageValidityType
​string · enum · required

The type of usage validity.

Enum values:
SINGLE_TRIP
RETURN_TRIP
CARNET
DAY_PASS
WEEKLY_PASS
MONTHLY_PASS
ANNUAL_PASS
CUSTOM_PERIOD
Example: SINGLE_TRIP
validityPeriod
​string

How long the product is valid after activation. ISO 8601 duration.

Example: PT60M
activationType
​string · enum

What triggers the start of the validity period.

Enum values:
ON_PURCHASE
ON_FIRST_USE
ON_CHECK_IN
Example: ON_PURCHASE

Did you find what you were looking for?