Entur Developer
Partner
REST
Products

user-profiles

Server

Retrieves all user profile

GET
https://api.entur.io/products
/user-profiles

Retrieves all user profile › 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 dataset to an organization

languageCode
​string · style: form · explode: true

The language code from ISO-639-3

validOnDate
​string · style: form · explode: true

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

Retrieves all user profile › 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 user profile › Responses

Returns the info

A UserProfile
changed
​string · date-time · required

Changed datetime.

created
​string · date-time · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

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

Id.

Example: NSB:UserProfile:Child
modification
​string · enum · required

Modification status.

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

Name of class.

Example: UserProfile
status
​string · enum · required

Status

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

UserProfile version.

Example: NSB:Version:V1
baseUserProfileRef
​string

The id of the base user profile which this profile is a specialization of.

​CompanionProfile[]

Companion Profiles in Group Ticket

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 that provide prices or discounts for the user profile.

​VersionOfObjectRef

Fare frame ref.

maxAge
​string

Maximum age.

Example: 16
minAge
​string

Minimum age.

Example: 4
​TextInLanguage[]

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

organisationId
​string · readOnly

Organisation related to the userProfile

​FarePrice[]

Fare prices for the user profile.

proofOfIdentity
​string · enum

proofOfIdentity.

Enum values:
NONE_REQUIRED
PASSPORT
DRIVERS_LICENCE
IDENTITY_DOCUMENT
CREDIT_CARD
MEMBERSHIP_CARD
STUDENT_CARD
LETTER_WITH_ADDRESS
typeOfConcessionRef
​string

typeOfConcessionRef.

typeOfUsageParameter
​string

typeOfUsageParameter.

userType
​string · enum

UserType.

Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUTH
Example: CHILD
​ValidityCondition[]

Validity conditions for the user profile.


Create a userprofile

POST
https://api.entur.io/products
/user-profiles

Create a userprofile › 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 userprofile › Request Body

A UserProfile create request
​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.

proofOfIdentity
​string · enum · required

proofOfIdentity.

Enum values:
NONE_REQUIRED
PASSPORT
DRIVERS_LICENCE
IDENTITY_DOCUMENT
CREDIT_CARD
MEMBERSHIP_CARD
STUDENT_CARD
LETTER_WITH_ADDRESS
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

UserProfile version.

Example: NSB:Version:V1
baseUserProfileRef
​string

The id of the base user profile which this profile is a specialization of.

​CompanionProfileInject[]

Companion profiles describing users who may travel with user.

compatibleWithVersionRef
​string

Compatible with version.

Example: NSB:Version:V1
derivedFromVersionRef
​string

Derived from version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​VersionOfObjectRef[]

References to fare tables that provide prices or discounts for the user profile.

​VersionOfObjectRef

Fare frame ref.

maxAge
​integer · int32

Maximum age.

Example: 16
minAge
​integer · int32

Minimum age.

Example: 4
​FarePrice[]

Fare prices for the user profile.

typeOfConcessionRef
​string

typeOfConcessionRef.

typeOfUsageParameter
​string

typeOfUsageParameter.

userType
​string · enum

UserType.

Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUTH
Example: CHILD
​ValidityCondition[]

Validity conditions for the user profile.

Create a userprofile › Responses

Entity created successfully

No data returned

Retrieves a userprofile by id

GET
https://api.entur.io/products
/user-profiles/{id}

Retrieves a userprofile by id › path Parameters

id
​string · required · style: simple

The unique id to identify a userprofile

Retrieves a userprofile by id › query Parameters

version
​string · style: form · explode: true

The id for the version of the userprofile

languageCode
​string · style: form · explode: true

The language code from ISO-639-3

validOnDate
​string · style: form · explode: true

Return the UserProfiles valid on this date, example: 2024-06-01T00:00:00Z. Note that if this parameter is given, the version parameter is ignored.Also note that, if called in the production environment, only VERSIONED UserProfiles are returned. And in the staging environment, PROPOSED UserProfiles are preferred to VERSIONED ones

Retrieves a userprofile 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 userprofile by id › Responses

Returns the info

A UserProfile
changed
​string · date-time · required

Changed datetime.

created
​string · date-time · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

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

Id.

Example: NSB:UserProfile:Child
modification
​string · enum · required

Modification status.

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

Name of class.

Example: UserProfile
status
​string · enum · required

Status

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

UserProfile version.

Example: NSB:Version:V1
baseUserProfileRef
​string

The id of the base user profile which this profile is a specialization of.

​CompanionProfile[]

Companion Profiles in Group Ticket

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 that provide prices or discounts for the user profile.

​VersionOfObjectRef

Fare frame ref.

maxAge
​string

Maximum age.

Example: 16
minAge
​string

Minimum age.

Example: 4
​TextInLanguage[]

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

organisationId
​string · readOnly

Organisation related to the userProfile

​FarePrice[]

Fare prices for the user profile.

proofOfIdentity
​string · enum

proofOfIdentity.

Enum values:
NONE_REQUIRED
PASSPORT
DRIVERS_LICENCE
IDENTITY_DOCUMENT
CREDIT_CARD
MEMBERSHIP_CARD
STUDENT_CARD
LETTER_WITH_ADDRESS
typeOfConcessionRef
​string

typeOfConcessionRef.

typeOfUsageParameter
​string

typeOfUsageParameter.

userType
​string · enum

UserType.

Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUTH
Example: CHILD
​ValidityCondition[]

Validity conditions for the user profile.


Retrives a userprofile by id and version

GET
https://api.entur.io/products
/user-profiles/{id}/{version}

Retrives a userprofile by id and version › path Parameters

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

The unique id to identify a userprofile

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

The id for the version of the userprofile

Retrives a userprofile by id and version › query Parameters

languageCode
​string · style: form · explode: true

The language code from ISO-639-3

Retrives a userprofile 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

Accept-Language
​string · style: simple
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 a userprofile by id and version › Responses

Returns the info

A UserProfile
changed
​string · date-time · required

Changed datetime.

created
​string · date-time · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

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

Id.

Example: NSB:UserProfile:Child
modification
​string · enum · required

Modification status.

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

Name of class.

Example: UserProfile
status
​string · enum · required

Status

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

UserProfile version.

Example: NSB:Version:V1
baseUserProfileRef
​string

The id of the base user profile which this profile is a specialization of.

​CompanionProfile[]

Companion Profiles in Group Ticket

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 that provide prices or discounts for the user profile.

​VersionOfObjectRef

Fare frame ref.

maxAge
​string

Maximum age.

Example: 16
minAge
​string

Minimum age.

Example: 4
​TextInLanguage[]

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

organisationId
​string · readOnly

Organisation related to the userProfile

​FarePrice[]

Fare prices for the user profile.

proofOfIdentity
​string · enum

proofOfIdentity.

Enum values:
NONE_REQUIRED
PASSPORT
DRIVERS_LICENCE
IDENTITY_DOCUMENT
CREDIT_CARD
MEMBERSHIP_CARD
STUDENT_CARD
LETTER_WITH_ADDRESS
typeOfConcessionRef
​string

typeOfConcessionRef.

typeOfUsageParameter
​string

typeOfUsageParameter.

userType
​string · enum

UserType.

Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUTH
Example: CHILD
​ValidityCondition[]

Validity conditions for the user profile.


Update a user profile

PUT
https://api.entur.io/products
/user-profiles/{id}/{version}

Update a user profile › path Parameters

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

The unique id to identify a userprofile

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

The id for the version of the userprofile

Update a user profile › 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 user profile › Request Body

A UserProfile create request
​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.

proofOfIdentity
​string · enum · required

proofOfIdentity.

Enum values:
NONE_REQUIRED
PASSPORT
DRIVERS_LICENCE
IDENTITY_DOCUMENT
CREDIT_CARD
MEMBERSHIP_CARD
STUDENT_CARD
LETTER_WITH_ADDRESS
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

UserProfile version.

Example: NSB:Version:V1
baseUserProfileRef
​string

The id of the base user profile which this profile is a specialization of.

​CompanionProfileInject[]

Companion profiles describing users who may travel with user.

compatibleWithVersionRef
​string

Compatible with version.

Example: NSB:Version:V1
derivedFromVersionRef
​string

Derived from version.

Example: NSB:Version:V1
​TextInLanguage[]

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

​VersionOfObjectRef[]

References to fare tables that provide prices or discounts for the user profile.

​VersionOfObjectRef

Fare frame ref.

maxAge
​integer · int32

Maximum age.

Example: 16
minAge
​integer · int32

Minimum age.

Example: 4
​FarePrice[]

Fare prices for the user profile.

typeOfConcessionRef
​string

typeOfConcessionRef.

typeOfUsageParameter
​string

typeOfUsageParameter.

userType
​string · enum

UserType.

Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUTH
Example: CHILD
​ValidityCondition[]

Validity conditions for the user profile.

Update a user profile › Responses

Entity updated successfully

No data returned

Retrieves a user profile by id

GET
https://api.entur.io/products
/v1/user-profiles/{id}

Retrieves a user profile by id › path Parameters

id
​string · required · style: simple

The unique id to identify a user profile

Retrieves a user profile by id › query Parameters

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

The version status of the user profile

validOnDate
​string · style: form · explode: true

Return the UserProfiles valid on this date, example: 2024-06-01T00:00:00Z. Note that if this parameter is given, the other parameters startDate, endDate and status are ignored. Only one UserProfile will be returned.Also note that, if called in the production environment, only VERSIONED UserProfiles are returned. And in the staging environment, PROPOSED UserProfiles are preferred to VERSIONED ones

fromDate
​string · style: form · explode: true

The from date of the user profiles version

toDate
​string · style: form · explode: true

The to date of the user profiles version

Retrieves a user profile 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 user profile by id › Responses

Returns the info

A UserProfile
changed
​string · date-time · required

Changed datetime.

created
​string · date-time · required

Created datetime.

​VersionOfObjectRef · required

Fare frame ref.

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

Id.

Example: NSB:UserProfile:Child
modification
​string · enum · required

Modification status.

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

Name of class.

Example: UserProfile
status
​string · enum · required

Status

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

UserProfile version.

Example: NSB:Version:V1
baseUserProfileRef
​string

The id of the base user profile which this profile is a specialization of.

​CompanionProfile[]

Companion Profiles in Group Ticket

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 that provide prices or discounts for the user profile.

​VersionOfObjectRef

Fare frame ref.

maxAge
​string

Maximum age.

Example: 16
minAge
​string

Minimum age.

Example: 4
​TextInLanguage[]

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

organisationId
​string · readOnly

Organisation related to the userProfile

​FarePrice[]

Fare prices for the user profile.

proofOfIdentity
​string · enum

proofOfIdentity.

Enum values:
NONE_REQUIRED
PASSPORT
DRIVERS_LICENCE
IDENTITY_DOCUMENT
CREDIT_CARD
MEMBERSHIP_CARD
STUDENT_CARD
LETTER_WITH_ADDRESS
typeOfConcessionRef
​string

typeOfConcessionRef.

typeOfUsageParameter
​string

typeOfUsageParameter.

userType
​string · enum

UserType.

Enum values:
ANYONE
ADULT
CHILD
INFANT
ANIMAL
SENIOR
GUIDE_DOG
YOUTH
Example: CHILD
​ValidityCondition[]

Validity conditions for the user profile.


Did you find what you were looking for?