Entur Developer
Personnel tickets

ContractConsumerResponse

A description of the customer that's allowed to use the contract
createdAt
​string · date-time · required

When the contract consumer was created

Example: 2007-12-03T10:15:30+01:00
createdBy
​string · required

Which client created the contract consumer

Example: 123e4567-e89b-12d3-a456-426655440000
customerNumber
​integer · int64 · required

The customer entitled to use the contract. Unique Entur specific number

Example: 122334
customerOrganisationId
​integer · int64 · required

The organisation ID the customer belongs to

Example: 42
isBlocked
​boolean · required

Marks that this specific user has been disallowed from using this contract by the contract owner

Example: true
isContractHolder
​boolean · required

Marks that this specific user's organisation is the owner of the contract

lastChangedAt
​string · date-time · required

When the contract consumer was last changed

Example: 2007-12-03T10:15:30+01:00
lastChangedBy
​string · required

Which client changed the contract consumer last

Example: 123e4567-e89b-12d3-a456-426655440000
customerRef
​string

The customer entitled to use the contract. External reference unique to organisation

Example: 073R41D4R

ContractConsumption

Contract consumption details
contractUuid
​string · uuid · required

The id of the contract consumed

Example: cae8853a-583e-49af-be61-cf10875a541d
customerNumber
​integer · int64 · required

The customer attempting to consume the contract

Example: 123415
entitlementProductId
​string · minLength: 1 · required

The id of the product consumed. This is on NetEX format and must match the product in use by the supplied contract.

Example: ENT:TravelRebate:A2
firstTravelDate
​string · date-time · required

The start date and time of travel.

Example: 2007-12-03T10:15:30+01:00
coupons
​integer · int64

The number of coupons consumed. Has no effect if the contract does not specify a number of available coupons. Defaults to 1.

Example: 1
entitlementProductVersion
​string

The version of the product consumed. This is on NetEX format and if supplied must match the product version in use by the supplied contract.

Example: ENT:Version:V1
lastTravelDate
​string · date-time

The end date and time of travel. Defaults to firstTravelDate if not provided.

Example: 2007-12-03T10:15:30+01:00
​OrderLineReference

The order line reference. This is used to check if consumption has already been validated.

ContractResponse

A contract between a customer and an organisation
consumableFrom
​string · date-time · required

From when the contract can be consumed

Example: 2007-12-03T10:15:30+01:00
createdAt
​string · date-time · required

When the contract was created

Example: 2007-12-03T10:15:30+01:00
createdBy
​string · required

Which client created the contract

Example: 123e4567-e89b-12d3-a456-426655440000
lastChangedAt
​string · date-time · required

When the contract was last changed

Example: 2007-12-03T10:15:30+01:00
lastChangedBy
​string · required

Which client changed the contract last

Example: 123e4567-e89b-12d3-a456-426655440000
​LoyaltyProgramFlatResponse · required

The current values for a loyalty program

organisationId
​integer · int64 · required

Which organisation the contract concerns

Example: 1
status
​string · required

The contract status. A normal contract has status valid. It can be expired, refunded, cancelled, misused and valid

Example: Refunded
uuid
​string · required

Unique contract identifier

Example: 123e4567-e89b-12d3-a456-426655440000
acceptanceDate
​string · date-time

When the contract was accepted by the customer

Example: 2007-12-03T10:15:30+01:00
​ContractConsumerResponse[]

The list of customers allowed to use the contract

couponsLimit
​integer · int64

How many coupons the contract has. Default is cascaded from Loyalty Program Version. If set, the contract will be blocked for usage when all coupons are used. Coupons are registered via an OrderLineEvent.

Example: 10
​TotalAmount

The current total for this contract (earn/burn or giftcard)

expirationDate
​string · date-time

When the contract expires

Example: 2007-12-03T10:15:30+01:00
externalRef
​string

Optional external reference. Examples are membership number and employee number

Example: 123415A
​OrderLineEventResponse[]

A list of order line events related to this contract

parent
​string

If present, contract UUID of the parent contract. This field is usually set if the contract is created by a coupon usage, whereas this contract has a time constraint and the parent has a coupon constraint.

Example: fd29908d-a2ae-4fe0-8e10-7f0db437c554
​PolicyResponse[]

The list of keys validated against the customer claiming the contract

remainingCoupons
​integer · int64

The remaining coupons for coupon based contracts. Derived from couponsLimit and orderLineEvents. The amount of remaining coupons are counted yearly and based of the earliest travel date.

​object[]

If present, contains timed contracts that are dependent on this contract. See Contract response

​TransactionResponse[]

The list of transactions for this contract (earn/burn or giftcard)

CouponConfigResponse

Configuration for coupons. This is only set for loyalty program type COUPONS
defaultQuantity
​integer · int64 · required

Default number of how many coupons can be used. May be overridden by contract coupon limit

loyaltyProgramId
​integer · int64 · required

The loyalty program the contract created by the coupon is connected to

defaultStartTime
​string · time

The default start time of the contract created by a coupon usage. If set, the contract created by a coupon usage will start on the specified time of the travel date or when created

usageValidityPeriod
​string · duration

The duration of the of the contract created by a coupon usage. If set, the contract created by a coupon usage will set expiration date to the end of the duration. It will override loyalty program usageValidityPeriod

Example: P3DT12H30M5S

ErrorResponse

Response object for errors occurring in the customers API
timestamp
​string · date-time · required

When the error occurred.

Example: 2007-12-03T10:15:30+01:00
status
​integer · int32 · required

The http status code.

Example: 400
error
​string · required

The http status reason.

Example: Bad request
path
​string · required

The request URI.

Example: /loyaltyPrograms
message
​string · required

The main error message.

Example: Validation failed for ...
correlationId
​string · required

The unique correlation id for the request.

Example: b5d4960d-7ab2-43d6-a8f3-113da042a288
errorCode
​string

Application specific error code

Example: 1033

Optional list of error specifications.

ErrorSpecification

Optional list of error specifications.
field
​string · required

The field of the associated object in the request related to the error.

defaultMessage
​string · required

The message explaining why the error occurred.

rejectedValues
​object

A list of rejected values.

LoyaltyProgramDescriptionResponse

Description of a loyalty program version
createdAt
​string · date-time · required

When the loyalty program was created

Example: 2007-12-03T10:15:30+01:00
createdBy
​string · required

Which client created the loyalty program

Example: 123e4567-e89b-12d3-a456-426655440000
description
​string · required

Loyalty program description. Supports any kind of text

Example: Reis Kundekort gir deg 20% rabatt på alle kjøp
languageCode
​string · required

What language the description is written in, ISO639-3

Example: NOB
lastChangedAt
​string · date-time · required

When the loyalty program was last changed

Example: 2007-12-03T10:15:30+01:00
lastChangedBy
​string · required

Which client changed the loyalty program last

Example: 123e4567-e89b-12d3-a456-426655440000
displayName
​string

Display name for loyalty program

Example: Reis Kundekort

LoyaltyProgramFlatResponse

The current values for a loyalty program
​LoyaltyProgramDescriptionResponse[] · required

A list of human readable descriptions in different languages. Only one language per description is allowed.

endDate
​string · date-time · required

The end date of the loyaltyprogram. All contracts will expire when the loyaltyprogram expires. Supports ISO 8601 date format.

id
​integer · int64 · required

The id of the loyalty program

internalDescription
​string · required

A human readable internal description of the loyalty program.

Example: Customer card with 15 % discount
loyaltyProgramType
​string · enum · required

The type of loyalty program. Types include COUPONS, TIMED and POINTS. A time-based loyalty program specifies a duration a connected contract is valid. A point-based loyalty program has contracts keeping track of earning and burning of points. This also includes gift cards. A coupon-based loyalty programs specifies how many times a contract can be consumed. For compatibility reasons, UNMAPPED is also available for loyalty programs that has not yet been classified.

Enum values:
TIMED
POINTS
COUPONS
UNMAPPED
Example: TIMED
organisationId
​integer · int64 · required

The organisation that owns this loyalty program.

Example: 20
productId
​string · required

The id of the product associated with this loyalty program.

productVersion
​string · required

The version of the product associated with this loyalty program.

startDate
​string · date-time · required

The start date of the loyaltyprogram. If specified ahead in time, the loyaltyprogram will get status = draft. Supports ISO 8601 date format.

status
​string · enum · required

The current status of this loyalty program. Can be DRAFT, CURRENT, DEPRECATED

Enum values:
DRAFT
CURRENT
DEPRECATED
versionNumber
​integer · int64 · required

The version of this loyalty program.

​CouponConfigResponse

Configuration for coupons. This is only set for loyalty program type COUPONS

defaultCouponsLimit
​integer · int64

Deprecated. See couponConfig instead. How many coupons (eg. the maximum amount of usages) the underlying contracts of the loyalty program has.

Example: 10
loyaltyProgramCode
​string

A word or code the customer can use to activate a loyalty program for themselves, set by the creator of the loyalty program

usageValidityPeriod
​string

The duration of a contract associated with this loyaltyprogram. This is set for loyalty program types TIMED and POINTS. The default value is null, which means the contract has an unlimited duration. This field uses the ISO 8601 duration format and accept the units: Days and Time. For example; 'P3DT12H30M5S' represents a duration of three days, twelve hours, thirty minutes, and five seconds.

Example: P3DT12H30M5S

OrderLineEventResponse

An order line event on a contract
eventType
​string · required

The order line event type. Can be one of 'PURCHASE' or 'CANCELLATION'. PURCHASE is used when the order line event describe purchase of a travel using a contract (not the same as isPurchased). CANCELLATION is when the order line event is a cancellation (can be the same as isCancelled)

isCancelled
​boolean · required

Whether the order line event is a cancellation

isPurchased
​boolean · required

Whether the order line event describes the purchase of a contract, or contract consumer

orderId
​string · required

The order ID

Example: ABC
orderLineId
​string · required

The order line ID

Example: KFN
orderLineVersion
​string · required

The order line version

Example: 132
organisationId
​integer · int64 · required

The organisation through which the order was placed

Example: 1
price
​string · required

The actual paid price for this item, i.e. what did the user actually pay after rebate. Negative if this was a cancellation

Example: 3.77
timestamp
​string · date-time · required

When the order line event was saved

Example: 2007-12-03T10:15:30+01:00
codespace
​string

Codespace

Example: ABC
couponsUsed
​integer · int64

How many coupons (usages) this event is using. This defaults to 1, but will be ignored if the contract in question does not use coupons.

Example: 1
effectiveCancellationDate
​string · date-time

If set, the effective date for cancellation.

Example: 2007-12-03T10:15:30+01:00
lastTravelDate
​string · date-time

The last date of travel, related to entitlement usage. Defaults to equal travelDate. Relevant for period tickets only.

Example: 2007-12-03T10:15:30+01:00
manualTransactionComment
​string

If the order line is added manually, this field will have an explanation

Example: Refund because the order was cancelled too late
orderLineText
​string

The name of the product that this usage refers to. This should be supplied by the caller to indicate which item has been bought. This is displayed to the user in reports.

Example: 1 x Voksen, Oslo S - OSL
originalPrice
​string

The original price for this item, i.e. i.e the original price without the travellers discount.

Example: 3.77
​TaxDistributionResponse[]

Tax savings for this order line

travelDate
​string · date-time

The first date of travel on this ticket. Will be used to decide when to report this usage to the Norwegian tax administration, if applicable. Defaults to the current date and time.

Example: 2007-12-03T10:15:30+01:00

OrderLineReference

The order line reference. This is used to check if consumption has already been validated.
orderId
​string · minLength: 0 · maxLength: 90 · required

The Order id, used for lookup when trying to find the order in Enturs systems.

Example: ABCD
orderLineId
​string · minLength: 0 · maxLength: 100 · required

The order line Id for Entur orders.

Example: ABCD

PageOfContractResponse

Paged content
​ContractResponse[] · required

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PolicyResponse

Policy, returns keys that have to match
id
​integer · int64 · required

Id of the policy

Example: 1
key
​string · required

Key for which field that should be matching

Example: surname

TaxDistributionResponse

Tax distribution for an order line
isUnknown
​boolean · required

If set, the tax distribution saving for that month is unknown. This is the case for all period tickets before may 2021. They need to be calculated manually

taxMonth
​integer · int32 · required

The month of the tax saving

taxSaving
​string · required

The value of tax saved

taxYear
​integer · int32 · required

The year of the tax saving

TotalAmount

The current total for this contract (earn/burn or giftcard)
amount
​string · min: 0.01 · pattern: -?\d*\.\d\d · required

Amount amount. Format: -?\d*.\d\d Examples: 123.34 1.00 34000.00

calculatedAt
​string · date-time · readOnly · required

When the amount was calculated

currency
​string · required

Currency of the amount

Example: NOK

TransactionResponse

The list of transactions for this contract (earn/burn or giftcard)
amount
​string · pattern: -?\d*\.\d\d · required

How much was the amount changed by this transaction? Positive value means deposit onto the card, negative withdrawal. Example: -130.00

currency
​string · required

Currency used in this transaction. Only one currency is allowed for all transactions on a single contract.

Example: NOK
timestamp
​string · date-time · required

Timestamp for this transaction.

Example: 2007-12-03T10:15:30+01:00
email
​string

Identifying sellers email for this transaction.

Example: test@test.no
externalTransactionId
​string

External transaction id for the ongoing transaction.

Example: 9087a885782a819f95816d88da8d78
internalTransactionId
​string

Internal unique identifier for this transaction.

Example: 1927bd54-4cc4-4ea1-8431-599231f39797
posId
​integer · int64

Identifying point of sale for this transaction.

Example: 317001944
rrn
​string

External RRN for the payment.

Example: 22ceb5c3acaf78a54f3af5de2050f0

ValidateContractConsumptionRequest

A request to validate the consumption of one or more product entitlements in an order
​ContractConsumption[] · minItems: 1 · required

A list of consumptions to verify

ValidateContractConsumptionResponse

The result of a contract consumption validations
code
​string · required

A code pertaining to the reason for rejection, if any. Code 3101 = OK.

Example: 3101
isValid
​boolean · required

True if all consumptions were valid, otherwise false

reason
​string · required

A short message detailing the reasoning behind the status.

Example: ok

ClaimContractResponse

The response after claiming a contract
customerNumber
​integer · int64 · required

The customerNumber for the customer now claiming the personnel ticket

Example: 1234567
success
​boolean · required

Whether the claim was successful

ClaimPersonnelTicketRequest

A request for claiming a personnel ticket
externalReference
​string · pattern: \w+-(\w+)+-\w+ · required

The code of the personnel ticket to claim

Example: ABCD-EF12-3456-GH45
customerNumber
​integer · int64 · required

The customerNumber referring to the customer who claims the personnel ticket

Example: 1234567

EntitlementResponse

Entitlement containing information about contract, product, contract holder and ticker order
productId
​string · required

Id of the product connected to the contracts loyalty program

productVersion
​string · required

Version of the product connected to the contracts loyalty program

contractUUID
​string · required

Contract UUID, used to identify a contract

contractOwnerCustomerNumber
​integer · int64 · required

Contract owner customer number

contractOwnerDisplayName
​string · required

Contract owners first and last name

contractValidFrom
​string · required

Contract consumable from date

passengerCategory
​string · enum · required

Passenger category.

Enum values:
STUDENT
SENIOR_CITIZEN
ADULT
​LocalizedText[]

Display name for loyalty program

contractExternalRef
​string

External contract reference if set.

​LocalDateResponse

Contract owners birth day

contractValidTo
​string

Contract expiration date

contractParent
​string

If present, contract UUID of the parent contract. This field is usually set if the contract is created by a coupon usage, whereas this contract has a time constraint and the parent has a coupon constraint.

Example: fd29908d-a2ae-4fe0-8e10-7f0db437c554
remainingCoupons
​integer · int64

Remaining coupons connected to the contract

couponsLimit
​integer · int64

How many coupons the contract has. Default is cascaded from Loyalty Program Version. If set, the contract will be blocked for usage when all coupons are used. Coupons are registered via an OrderLineEvent.

Example: 10
ticketOrderId
​string

If present, a ticket is included in this right. It may be distributed or redistributed to this device.

LocalDateResponse

Contract owners birth day
day
​integer · int32 · required
month
​integer · int32 · required
year
​integer · int32 · required

LocalizedText

Localized text with language code
languageCode
​string · required

Language code according to ISO 639-3

Example: NOB
text
​string · required

Text localized to the language given in languageCode

description
​string · required

Loyalty program description. Supports any kind of text

ActiveTicketRightsHolderResponse

All items for this page
firstName
​string · required

The first name of the ticket holder

Example: Ola
surname
​string · required

The surname of the ticket holder

Example: Hansen
employeeId
​string · required

The employee number

Example: 123456
companyId
​integer · int64 · required

The id of the company

Example: 1
isEmployee
​boolean · required

If the ticket holder is an employee or a family member

Example: true
ticketRightType
​string · required

Type of the ticket right, possible values are 'bronse' and 'sølv'

Example: sølv
grantedAt
​string · date-time · required

When the ticket right was granted

type
​string · required

Type of the ticket holder, possible values are 'Ansatt', 'Pensjonist' and 'Familie'

Example: Ansatt
hireEndDate
​string · date

The hire end date for pensioners

Example: 2022-12-31
addressLine
​string

Postal address line

Example: Karl Johans gate 1
postalCode
​string

Postal code

Example: 1234
city
​string

City in postal address

Example: Oslo

CompanyResponse

Companies are where employees are hired
companyId
​integer · int64 · required

The company ID

name
​string · required

The company name

addressLine
​string · required

The company postal address

postalCode
​string · required

The company postal code

employeeNoPrefix
​string · required

A prefix to be prepended to all employee numbers connected to this company

allowLocalEmployees
​boolean · required

Whether local employees are allowed

allowETickets
​boolean · required

Whether the company allows the usage of e-tickets for its personnel tickets

isDeleted
​boolean · required

Whether the company is deleted

reportSeparator
​string · required

Which character to separate elements within tax report: ','(default) or ';'

deleted
​boolean · writeOnly

EmployeeCategoryResponse

Category information
year
​integer · int32 · required

The year this category is valid

Example: 2
​Product

A personnel ticket product

EmployeeDisabilityProofRequest

Yearly disability proof information
isRegistered
​boolean · required

Whether proof of disability has been registered

Example: true

EmployeeDisabilityProofResponse

Yearly disability proof information
year
​integer · int32 · required

The year this information is valid for

Example: 2020
isRegistered
​boolean · required

Whether a disability proof has been registered this year

Example: true

EmployeeResponse

All items for this page
id
​integer · int64 · required

The id of the employee

employeeNo
​string · required

Employee number

firstName
​string · required

The employee's first name

surname
​string · required

The employee's surname

postalCode
​string · required

The employee's postal code

isDeleted
​boolean · required

Whether the employee has been marked for deletion

ticketHolderCode
​string · required

The employee's ticket holder code

​CompanyResponse

Companies are where employees are hired

​EmploymentType

Employment type. Examples include Employee, Part time, Temp

dateOfBirth
​string · date

When the employee was born

Example: 2023-01-01
ssn
​string

The employee's social security number

addressLine
​string

The employee's postal address

​Product

A personnel ticket product

abstainFromTicket
​boolean

Whether a ticket should be created

hireStartDate
​string · date

When the employee was hired

Example: 2019-04-12
payType
​string

Pay type - see the codes in the API documentation

Example: A
hireEndDate
​string · date

When the employee left the company

Example: 2019-04-17
hireEndCause
​string

Why the employee left the company

disabilityGrade
​integer · int32

The employee's degree of disability. Default 0.

Example: 20
employmentPercentage
​integer · int32

Employment percentage

Example: 80
employmentPercentageDate
​string · date

Date for registered employment percentage

Example: 2019-07-13
paidPercentage
​integer · int32

The pay level. This is calculated based on the employment percentage and the type of employment. Typically holds the same value as employment percentage, unless special circumstances apply

leaveFromDate
​string · date

When the employee starts a leave

Example: 2019-05-12
note
​string

Any additional information

lastUpdate
​string · date-time

When the imported employee was last updated

sourceLastUpdate
​string

The source for the last update

​FamilyMemberResponse[]

The employee's family members

​TicketRightResponse[]

The employee's ticket rights

createdAt
​string · date-time

The date of creation.

createdBy
​string

The source for the first creation

The registered categories on this employee

The status of yearly fees for the current and the next year

The status of disability proofs for the current and the next year

customerNumber
​integer · int64

The employees customer number in ESS. Note this profile is owned by JBD and is the profile connected to the ticket right. A 'null'-value here may indicate that the ticket right is not yet synced to ESS.

Example: 1337370

EmployeeYearlyFeeRequest

Yearly fee information
isPaid
​boolean · required

Whether this yearly fee has been paid

Example: true

EmployeeYearlyFeeResponse

Yearly fee information
year
​integer · int32 · required

The year this fee is valid

Example: 2020
isPaid
​boolean · required

Whether this yearly fee has been paid

Example: true

EmploymentEndCause

The reason for an employment to end
code
​string · readOnly · required

The code used for input

description
​string · readOnly · required

A description of the particular code's meaning

EmploymentType

Employment type. Examples include Employee, Part time, Temp
code
​string · readOnly · required

The code used for input

description
​string · readOnly · required

A description of the particular code's meaning

FamilyMemberLowIncomeResponse

Low income information
year
​integer · int32 · required

Year of registered low income

Example: 2015
isRegistered
​boolean · required

Whether low income is registered

Example: true

FamilyMemberResponse

A family member must be connected to an employee
id
​integer · int64 · required

The ID of the family member

employeeId
​integer · int64 · required

The ID of the employee

​FamilyRelation · required

The relation a family member has to an employee

firstName
​string · required

The family member's first name

surname
​string · required

The family member's surname

isDeleted
​boolean · required

Whether the family member has been marked for deletion

dateOfBirth
​string · date

When the family member was born

Example: 2023-01-01
ssn
​string

The family members social security number

Example: 12345
abstainFromTicket
​boolean

Whether a ticket should be created

note
​string

Any additional information

​TicketRightResponse[]

A list of the family member's ticket rights

ticketHolderCode
​string

The family members ticket holder code

Example: JDSF-DGJE-SHU4
createdAt
​string · date-time

The date of creation.

createdBy
​string

The source for the first creation

updatedAt
​string · date-time

The date the last time the family member was updated

updatedBy
​string

The source for the last update

The low income registrations for the current and the next year

customerNumber
​integer · int64

The employees customer number in ESS. Note this profile is owned by JBD and is the profile connected to the ticket right. A 'null'-value here may indicate that the ticket right is not yet synced to ESS.

Example: 1337370

FamilyRelation

The relation a family member has to an employee
code
​string · readOnly · required

The code used for input

description
​string · readOnly · required

A description of the particular code's meaning

FipMonthlyTicketReport

employeeNo
​string · required

Employee number

​FipTicketTypeSimple

FIP ticket type

issueDate
​string · date

Issued date

Example: 2023-01-01
ticketNo
​integer · int64

Ticket number

validFrom
​string · date

The date the ticket is valid from

Example: 2023-01-01
validUntil
​string · date

The date the ticket is valid to

Example: 2023-01-01
​TravelType

Travel type

company
​integer · int64

Company id

FipTicketTypeSimple

FIP ticket type
id
​integer · int64 · required

The FIP ticket type id

code
​string · required

The FIP ticket type code

description
​string · required

Description of the ticket type

ImportedEmployeeMergePatchRequest

Merge patch request for an Employee
employeeNo
​string · required

Employee number

companyId
​string · required

Company Id

employmentTypeId
​string · required

Type of employment

Example: full-time (F), part-time (M), extra (T), unknown (U)
employmentPercentage
​integer · int32 · required

Employment percentage

Example: 80
isDeleted
​boolean · required

Whether the employee has been marked for deletion. Default false

dateOfBirth
​string · date

When the employee was born

Example: 2023-01-01
ssn
​string

Birthdate-number og D-number, 5 digits

firstName
​string

The employee's first name

surname
​string

The employee's surname

addressLine
​string

The employee's address line

postalCode
​string

The postal code for the employee's address

preferredProductId
​integer · int64

The employee's product

abstainFromTicket
​boolean

Whether a ticket should be created

hireStartDate
​string · date

When the employee was hired

Example: 2019-04-12
payType
​string

Pay type - see the codes in the API documentation

Example: A
hireEndDate
​string · date

When the employee left the company

Example: 2019-04-17
hireEndCause
​string

Why the employee left the company

Example: pensioner (A), quitting (E), ...
disabilityGrade
​integer · int32

The employee's degree of disability. Default 0.

Example: 20
disabilityFromDate
​string · date

When the employee's disability was granted

Example: 2017-12-31
employmentPercentageDate
​string · date

Date for registered employment percentage

Example: 2019-07-13
paidPercentage
​integer · int32

The pay level. This is calculated based on the employment percentage and the type of employment. Typically holds the same value as employment percentage, unless special circumstances apply

leaveFromDate
​string · date

When the employee starts a leave

Example: 2019-05-12

ImportedEmployeeRequest

employeeNo
​string · minLength: 1 · required

Employee number

companyId
​integer · int64 · required

The company the employee is employed by

employmentTypeId
​string · minLength: 1 · required

The type of employment

dateOfBirth
​string · date · required

When the employee was born

Example: 2023-01-01
ssn
​string · minLength: 5 · maxLength: 5 · required

The employee's social security number. 5 digits.

Example: 44554
firstName
​string · minLength: 1 · required

The employee's first name

surname
​string · minLength: 1 · required

The employee's surname

addressLine
​string · minLength: 1 · required

The employee's postal address

postalCode
​string · minLength: 1 · required

The postal code for the employee's address

hireStartDate
​string · date · required

When the employee was hired

Example: 2019-04-12
employmentPercentage
​integer · int32 · required

Employment percentage

Example: 80
isDeleted
​boolean · required

Whether the employee has been marked for deletion. Default false

abstainFromTicket
​boolean

Whether a ticket should be created. Default false

payType
​string

Pay type - see the codes in the API documentation

Example: A
hireEndDate
​string · date

When the employee left the company

Example: 2019-04-17
hireEndCause
​string

Why the employee left the company

disabilityGrade
​integer · int32

The employee's degree of disability. Default 0.

Example: 20
disabilityFromDate
​string · date

When the employee's disability was granted

Example: 2017-12-31
employmentPercentageDate
​string · date

Date for registered employment percentage

Example: 2019-07-13
paidPercentage
​integer · int32

The pay level. This is calculated based on the employment percentage and the type of employment. Typically holds the same value as employment percentage, unless special circumstances apply

leaveFromDate
​string · date

When the employee starts a leave

Example: 2019-05-12
id
​integer · int64

If present, this will perform an update of the employee

ImportedEmployeeResponse

id
​integer · int64 · required

The id of the imported employee

employeeNo
​string · required

Employee number

companyId
​integer · int64 · required

The company the employee is employed by

firstName
​string · required

The employee's first name

surname
​string · required

The employee's surname

employmentTypeId
​string

The type of employment

dateOfBirth
​string · date

When the employee was born

Example: 2023-01-01
ssn
​string

The employee's social security number

addressLine
​string

The employee's postal address

​PostalPlaceResponse

The postal data for the employee's address

abstainFromTicket
​boolean

Whether a ticket should be created

hireStartDate
​string · date

When the employee was hired

Example: 2019-04-12
payType
​string

Pay type - see the codes in the API documentation

Example: A
hireEndDate
​string · date

When the employee left the company

Example: 2019-04-17
hireEndCause
​string

Why the employee left the company

disabilityGrade
​integer · int32

The employee's degree of disability. Default 0.

Example: 20
disabilityFromDate
​string · date

When the employee's disability was granted

Example: 2017-12-31
employmentPercentage
​integer · int32

Employment percentage

Example: 80
employmentPercentageDate
​string · date

Date for registered employment percentage

Example: 2019-07-13
paidPercentage
​integer · int32

The pay level. This is calculated based on the employment percentage and the type of employment. Typically holds the same value as employment percentage, unless special circumstances apply

leaveFromDate
​string · date

When the employee starts a leave

Example: 2019-05-12
note
​string

Any additional information

isDeleted
​boolean

Whether the employee has been marked for deletion

lastUpdate
​string · date-time

When the imported employee was last updated

sourceLastUpdate
​string

The source for the last update

createdAt
​string · date-time

The date of creation.

createdBy
​string

The source for the first creation

ManualOrderResponse

A manual order. This may contain a list of station pairs.
id
​integer · int64 · required

Id of this manual order.

​TicketTypeResponse · required

The Ticket type informs of which country it is valid in and what train class it covers.

issueDate
​string · date-time · required

When this manual order was first issued.

fromDate
​string · date · required

First date the ticket right should be available.

Example: 2023-01-01
toDate
​string · date · required

Last date the ticket right should be available.

Example: 2023-01-01
isDeleted
​boolean · required

Whether this manual order is deleted or not.

​StationPairResponse[] · unique

Any station pairs for this manual order.

PageActiveTicketRightsHolderResponse

Paged content

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PageCompanyResponse

Paged content
​CompanyResponse[] · required

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PageEmployeeResponse

Paged content
​EmployeeResponse[] · required

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PageFamilyMemberResponse

Paged content
​FamilyMemberResponse[] · required

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PageTicketRightResponse

Paged content
​TicketRightResponse[] · required

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PageTicketRightsHolderResponse

Paged content
​TicketRightsHolderResponse[] · required

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PageTicketTypeResponse

Paged content
​TicketTypeResponse[] · required

All items for this page

totalItems
​integer · int64 · required

Total items which could be returned

Example: 1
totalPages
​integer · int64 · required

Total number of pages

Example: 1

PayType

Pay type - see the codes in the API documentation
code
​string · readOnly · required

The code used for input

description
​string · readOnly · required

A description of the particular code's meaning

PostalPlaceResponse

The postal data for the employee's address
code
​string · required

Postal code

Example: 0238
place
​string · required

Postal place

Example: OSLO
country
​string · required

Country, format ISO 3166-1 alpha-3

Example: NOR
isDeleted
​boolean · required

If the postal place has been deleted

Product

A personnel ticket product
id
​integer · int64 · required

The product id

name
​string · required

Human readable product name

validFrom
​string · date · required

When the product is valid from

Example: 2023-01-01
validUntil
​string · date · required

When the product is valid to

Example: 2023-01-01

SimpleRule

Rule describing who are eligible for what ticket right
id
​integer · int64 · required

Rule id

name
​string · required

Rule name

StationPairResponse

A set of stations on NetEX format.
id
​integer · int64 · required

Id of this station pair

​StationResponse · required

Station with NetEX and name

​StationResponse · required

Station with NetEX and name

StationResponse

Station with NetEX and name
id
​string · required

Station in NetEX format.

name
​string

Station name

SyncStatus

Status fields related to synchronization with other services
isReadyToSync
​boolean

Whether the ticket right is ready to be sent to the ticketing system

syncTimestamp
​string · date-time

When the ticket right was sync'ed

Example: 2019-06-13T12:34:56+01:00
errorMessage
​string

If the system has failed in sending the ticket right to the ticketing system, this will hold the error message. Default is null

TaxSavingReportGenerationResponse

progress
​integer · int32 · readOnly · required

How far the generation has progressed in percent from 0 to 100

started
​string · date-time · readOnly · required

When the report generation started

finished
​string · date-time · readOnly

When the report generation finished

error
​string · readOnly

Error if the report generation fails

TicketRightResponse

A ticket right granted to an employee or a family member
ticketrightId
​integer · int64 · required

The ticket right id

ticketHolderId
​integer · int64 · required

The id of the ticket holder, either an employee or a family member

employeeId
​integer · int64 · required

The id of the employee who is responsible

validFrom
​string · date · required

The date from when the ticket right is valid

Example: 2019-03-13
validUntil
​string · date · required

The date from when the ticket right stops being valid

Example: 2019-06-13
​TicketTypeResponse · required

The Ticket type informs of which country it is valid in and what train class it covers.

calculationTimestamp
​string · date-time · required

When the ticketright was calculated

note
​string

Any additional information

​SimpleRule

Rule describing who are eligible for what ticket right

​TicketRightsHolderResponse

All items for this page

​SyncStatus

Status fields related to synchronization with other services

​SyncStatus

Status fields related to synchronization with other services

​ManualOrderResponse

A manual order. This may contain a list of station pairs.

TicketRightsHolderResponse

All items for this page
id
​integer · int64 · required

The ticket right holder id

ticketHolderCode
​string · required

The personnel ticket code for the ticket rights holder

​TicketRightResponse

A ticket right granted to an employee or a family member

TicketTypeResponse

The Ticket type informs of which country it is valid in and what train class it covers.
id
​integer · int64 · required

Ticket type id

code
​string · required

Ticket type

description
​string · required

Ticket type description

countryCode
​string · required

Country code

generatesTicketRights
​boolean · required

Whether or not this this ticket type is relevant for sending as input to a Manual order. If this = false (the default), it will not generate new tickets rights by manual order.

canHaveStationPairs
​boolean · required

Whether or not this ticket type is compatible with station pairs when placing a manual order. The default = false.

isDeleted
​boolean · required

Whether the ticket type is deleted.

TravelType

Travel type
id
​string · required

The travel type id

code
​string · required

The travel type code

description
​string

The travel type description

Did you find what you were looking for?