Schemas
PayType
codePay type code
descriptionDescription of the pay type
Product
idThe product id
nameHuman readable product name
validFromWhen the product is valid from
validUntilWhen the product is valid to
SimpleRule
idRule id
nameRule name
SyncStatus
errorMessageIf the system has failed in sending the ticket right to the ticketing system, this will hold the error message. Default is null
isReadyToSyncWhether the ticket right is ready to be sent to the ticketing system
syncTimestampWhen the ticket right was sync'ed
TravelType
idThe travel type id
codeThe travel type code
descriptionThe travel type description
TotalAmount
amount-?\d*\.\d\d · requiredAmount amount. Format: -?\d*.\d\d Examples: 123.34 1.00 34000.00
currencyCurrency of the amount
calculatedAtWhen the amount was calculated
ErrorResponse
pathThe request URI.
errorThe http status reason.
statusThe http status code.
messageThe main error message.
timestampWhen the error occurred.
correlationIdThe unique correlation id for the request.
Optional list of error specifications.
errorCodeApplication specific error code
LocalizedText
textText localized to the language given in languageCode
descriptionLoyalty program description. Supports any kind of text
languageCodeLanguage code according to ISO 639-3
EmploymentType
codedescriptionFamilyRelation
codedescriptionPolicyResponse
idId of the policy
keyKey for which field that should be matching
CompanyResponse
nameThe company name
companyIdThe company ID
isDeletedWhether the company is deleted
postalCodeThe company postal code
addressLineThe company postal address
allowETicketsWhether the company allows the usage of e-tickets for its personnel tickets
reportSeparatorWhich character to separate elements within tax report: ','(default) or ';'
employeeNoPrefixA prefix to be prepended to all employee numbers connected to this company
allowLocalEmployeesWhether local employees are allowed
deletedStationResponse
idStation in NetEX format.
nameStation name
ContractResponse
uuidUnique contract identifier
statusThe contract status. A normal contract has status valid. It can be expired, refunded, cancelled, misused and valid
createdAtWhen the contract was created
createdByWhich client created the contract
lastChangedAtWhen the contract was last changed
lastChangedByWhich client changed the contract last
consumableFromFrom when the contract can be consumed
The current values for a loyalty program
organisationIdWhich organisation the contract concerns
parentIf 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.
The list of keys validated against the customer claiming the contract
externalRefOptional external reference. Examples are membership number and employee number
couponsLimitHow 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.
The current total for this contract (earn/burn or giftcard)
If present, contains timed contracts that are dependent on this contract. See Contract response
The list of transactions for this contract (earn/burn or giftcard)
acceptanceDateWhen the contract was accepted by the customer
expirationDateWhen the contract expires
A list of order line events related to this contract
remainingCouponsThe 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.
The list of customers allowed to use the contract
EmployeeResponse
idThe id of the employee
surnameThe employee's surname
firstNameThe employee's first name
isDeletedWhether the employee has been marked for deletion
employeeNoEmployee number
postalCodeThe employee's postal code
ticketHolderCodeThe employee's ticket holder code
ssnThe employee's social security number
noteAny additional information
Companies are where employees are hired
payTypePay type - see the codes in the API documentation
createdAtThe date of creation.
createdByThe source for the first creation
The registered categories on this employee
lastUpdateWhen the imported employee was last updated
The status of yearly fees for the current and the next year
addressLineThe employee's postal address
dateOfBirthWhen the employee was born
hireEndDateWhen the employee left the company
hireEndCauseWhy the employee left the company
The employee's ticket rights
The employee's family members
hireStartDateWhen the employee was hired
leaveFromDateWhen the employee starts a leave
customerNumberThe 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.
Employment type. Examples include Employee, Part time, Temp
paidPercentageThe 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
disabilityGradeThe employee's degree of disability. Default 0.
The status of disability proofs for the current and the next year
A personnel ticket product
sourceLastUpdateThe source for the last update
abstainFromTicketWhether a ticket should be created
employmentPercentageEmployment percentage
employmentPercentageDateDate for registered employment percentage
isFeePaidDeprecated. Use yearlyFees
isOnWaitPayUnused
waitPayDateUnused
jobDescriptionUnused
disabilityFromDateUnused
paidPercentageDateDate for last change to paidPercentage
disabilityProofRegisteredDeprecated. Use disability proofs.
sendTicketToPrivateAddressUnused
disabilityProofRegisteredDateUnused
LocalDateResponse
dayyearmonthEmploymentEndCause
codedescriptionErrorSpecification
fieldThe field of the associated object in the request related to the error.
defaultMessageThe message explaining why the error occurred.
rejectedValuesA list of rejected values.
OrderLineReference
orderIdThe Order id, used for lookup when trying to find the order in Enturs systems.
orderLineIdThe order line Id for Entur orders.
TicketTypeResponse
idTicket type id
codeTicket type
isDeletedWhether the ticket type is deleted.
countryCodeCountry code
descriptionTicket type description
canHaveStationPairsWhether or not this ticket type is compatible with station pairs when placing a manual order. The default = false.
generatesTicketRightsWhether 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.
ContractConsumption
contractUuidThe id of the contract consumed
customerNumberThe customer attempting to consume the contract
firstTravelDateThe start date and time of travel.
entitlementProductIdThe id of the product consumed. This is on NetEX format and must match the product in use by the supplied contract.
couponsThe number of coupons consumed. Has no effect if the contract does not specify a number of available coupons. Defaults to 1.
lastTravelDateThe end date and time of travel. Defaults to firstTravelDate if not provided.
The order line reference. This is used to check if consumption has already been validated.
entitlementProductVersionThe version of the product consumed. This is on NetEX format and if supplied must match the product version in use by the supplied contract.
EntitlementResponse
productIdId of the product connected to the contracts loyalty program
contractUUIDContract UUID, used to identify a contract
productVersionVersion of the product connected to the contracts loyalty program
contractValidFromContract consumable from date
passengerCategoryPassenger category.
contractOwnerDisplayNameContract owners first and last name
contractOwnerCustomerNumberContract owner customer number
Display name for loyalty program
couponsLimitHow 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.
ticketOrderIdIf present, a ticket is included in this right. It may be distributed or redistributed to this device.
contractParentIf 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.
contractValidToContract expiration date
remainingCouponsRemaining coupons connected to the contract
contractExternalRefExternal contract reference if set.
Contract owners birth day
isSeniorCitizenWhether the contract owner is considered a senior citizen
FipTicketTypeSimple
idThe FIP ticket type id
codeThe FIP ticket type code
descriptionDescription of the ticket type
ManualOrderResponse
idId of this manual order.
toDateLast date the ticket right should be available.
fromDateFirst date the ticket right should be available.
isDeletedWhether this manual order is deleted or not.
issueDateWhen this manual order was first issued.
The Ticket type informs of which country it is valid in and what train class it covers.
Any station pairs for this manual order.
PageCompanyResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages
PostalPlaceResponse
codePostal code
placePostal place
countryCountry, format ISO 3166-1 alpha-3
isDeletedIf the postal place has been deleted
StationPairResponse
idId of this station pair
Station with NetEX and name
Station with NetEX and name
TicketRightResponse
validFromThe date from when the ticket right is valid
employeeIdThe id of the employee who is responsible
The Ticket type informs of which country it is valid in and what train class it covers.
validUntilThe date from when the ticket right stops being valid
ticketrightIdThe ticket right id
ticketHolderIdThe id of the ticket holder, either an employee or a family member
calculationTimestampWhen the ticketright was calculated
noteAny additional information
A manual order. This may contain a list of station pairs.
Rule describing who are eligible for what ticket right
Status fields related to synchronization with other services
Status fields related to synchronization with other services
All items for this page
errorMessageThis field will be discontinued in the next vesion of the API.
canSendTicketThis field will be discontinued in the next vesion of the API.
ticketCreatedThis field will be discontinued in the next vesion of the API.
TransactionResponse
amount-?\d*\.\d\d · requiredHow much was the amount changed by this transaction? Positive value means deposit onto the card, negative withdrawal. Example: -130.00
currencyCurrency used in this transaction. Only one currency is allowed for all transactions on a single contract.
timestampTimestamp for this transaction.
rrnExternal RRN for the payment.
emailIdentifying sellers email for this transaction.
posIdIdentifying point of sale for this transaction.
externalTransactionIdExternal transaction id for the ongoing transaction.
internalTransactionIdInternal unique identifier for this transaction.
CouponConfigResponse
defaultQuantityDefault number of how many coupons can be used. May be overridden by contract coupon limit
loyaltyProgramIdThe loyalty program the contract created by the coupon is connected to
defaultStartTimeThe 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
usageValidityPeriodThe 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
FamilyMemberResponse
idThe ID of the family member
surnameThe family member's surname
The relation a family member has to an employee
firstNameThe family member's first name
isDeletedWhether the family member has been marked for deletion
employeeIdThe ID of the employee
ssnThe family members social security number
noteAny additional information
createdAtThe date of creation.
createdByThe source for the first creation
updatedAtThe date the last time the family member was updated
updatedByThe source for the last update
The low income registrations for the current and the next year
dateOfBirthWhen the family member was born
A list of the family member's ticket rights
customerNumberThe 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.
ticketHolderCodeThe family members ticket holder code
abstainFromTicketWhether a ticket should be created
PageEmployeeResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages
ClaimContractResponse
successWhether the claim was successful
customerNumberThe customerNumber for the customer now claiming the personnel ticket
FipMonthlyTicketReport
employeeNoEmployee number
companyCompany id
ticketNoTicket number
issueDateIssued date
validFromThe date the ticket is valid from
Travel type
validUntilThe date the ticket is valid to
FIP ticket type
OrderLineEventResponse
priceThe actual paid price for this item, i.e. what did the user actually pay after rebate. Negative if this was a cancellation
orderIdThe order ID
eventTypeThe 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)
timestampWhen the order line event was saved
isCancelledWhether the order line event is a cancellation
isPurchasedWhether the order line event describes the purchase of a contract, or contract consumer
orderLineIdThe order line ID
organisationIdThe organisation through which the order was placed
orderLineVersionThe order line version
codespaceCodespace
travelDateThe 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.
couponsUsedHow many coupons (usages) this event is using. This defaults to 1, but will be ignored if the contract in question does not use coupons.
orderLineTextThe 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.
originalPriceThe original price for this item, i.e. i.e the original price without the travellers discount.
lastTravelDateThe last date of travel, related to entitlement usage. Defaults to equal travelDate. Relevant for period tickets only.
Tax savings for this order line
manualTransactionCommentIf the order line is added manually, this field will have an explanation
effectiveCancellationDateIf set, the effective date for cancellation.
PageOfContractResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages
PageTicketTypeResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages
ImportedEmployeeRequest
ssnThe employee's social security number. 5 digits.
surnameThe employee's surname
companyIdThe company the employee is employed by
firstNameThe employee's first name
isDeletedWhether the employee has been marked for deletion. Default false
employeeNoEmployee number
postalCodeThe postal code for the employee's address
addressLineThe employee's postal address
dateOfBirthWhen the employee was born
hireStartDateWhen the employee was hired
employmentTypeIdThe type of employment
employmentPercentageEmployment percentage
idIf present, this will perform an update of the employee
payTypePay type - see the codes in the API documentation
hireEndDateWhen the employee left the company
hireEndCauseWhy the employee left the company
leaveFromDateWhen the employee starts a leave
paidPercentageThe 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
disabilityGradeThe employee's degree of disability. Default 0.
abstainFromTicketWhether a ticket should be created. Default false
disabilityFromDateWhen the employee's disability was granted
employmentPercentageDateDate for registered employment percentage
noteDeprecated. Not used.
isFeePaidDeprecated. Use separate endpoint for yearlyFees.
isOnWaitPayNot used. Won't be saved.
waitPayDateNot used. Won't be saved.
workPlaceIdWorkplace id
jobDescriptionNot used. Won't be saved.
paidPercentageDateNot used. Won't be saved.
preferredProductIdDeprecated. Use separate endpoint categories.
disabilityProofRegisteredDeprecated. Use separate endpoint for disability proofs.
sendTicketToPrivateAddressNot used. Won't be saved.
disabilityProofRegisteredDateUse separate endpoint for disability proofs
PageTicketRightResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages
TaxDistributionResponse
taxYearThe year of the tax saving
taxMonthThe month of the tax saving
isUnknownIf 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
taxSavingThe value of tax saved
ContractConsumerResponse
createdAtWhen the contract consumer was created
createdByWhich client created the contract consumer
isBlockedMarks that this specific user has been disallowed from using this contract by the contract owner
lastChangedAtWhen the contract consumer was last changed
lastChangedByWhich client changed the contract consumer last
customerNumberThe customer entitled to use the contract. Unique Entur specific number
isContractHolderMarks that this specific user's organisation is the owner of the contract
customerOrganisationIdThe organisation ID the customer belongs to
customerRefThe customer entitled to use the contract. External reference unique to organisation
EmployeeCategoryResponse
yearThe year this category is valid
A personnel ticket product
EmployeeYearlyFeeRequest
isPaidWhether this yearly fee has been paid
ImportedEmployeeResponse
idThe id of the imported employee
surnameThe employee's surname
companyIdThe company the employee is employed by
firstNameThe employee's first name
employeeNoEmployee number
ssnThe employee's social security number
noteAny additional information
payTypePay type - see the codes in the API documentation
createdAtThe date of creation.
createdByThe source for the first creation
isDeletedWhether the employee has been marked for deletion
lastUpdateWhen the imported employee was last updated
The postal data for the employee's address
addressLineThe employee's postal address
dateOfBirthWhen the employee was born
hireEndDateWhen the employee left the company
hireEndCauseWhy the employee left the company
hireStartDateWhen the employee was hired
leaveFromDateWhen the employee starts a leave
paidPercentageThe 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
disabilityGradeThe employee's degree of disability. Default 0.
employmentTypeIdThe type of employment
sourceLastUpdateThe source for the last update
abstainFromTicketWhether a ticket should be created
disabilityFromDateWhen the employee's disability was granted
employmentPercentageEmployment percentage
employmentPercentageDateDate for registered employment percentage
isFeePaidDeprecated. Use separate endpoint for yearlyFees. Whether the ticket fee has been paid, if applicable
isOnWaitPayUnused
waitPayDateUnused
workPlaceIdUnused
jobDescriptionUnused
paidPercentageDateUnused
preferredProductIdDeprecated. Use separate endpoint categories.
disabilityProofRegisteredDeprecated. Use separate endpoint for disability proofs.
sendTicketToPrivateAddressUnused
disabilityProofRegisteredDateUnused
PageFamilyMemberResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages
EmployeeYearlyFeeResponse
yearThe year this fee is valid
isPaidWhether this yearly fee has been paid
LoyaltyProgramFlatResponse
idThe id of the loyalty program
statusThe current status of this loyalty program. Can be DRAFT, CURRENT, DEPRECATED
endDateThe end date of the loyaltyprogram. All contracts will expire when the loyaltyprogram expires. Supports ISO 8601 date format.
productIdThe id of the product associated with this loyalty program.
startDateThe start date of the loyaltyprogram. If specified ahead in time, the loyaltyprogram will get status = draft. Supports ISO 8601 date format.
A list of human readable descriptions in different languages. Only one language per description is allowed.
versionNumberThe version of this loyalty program.
organisationIdThe organisation that owns this loyalty program.
productVersionThe version of the product associated with this loyalty program.
loyaltyProgramTypeThe 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.
internalDescriptionA human readable internal description of the loyalty program.
Configuration for coupons. This is only set for loyalty program type COUPONS
loyaltyProgramCodeA word or code the customer can use to activate a loyalty program for themselves, set by the creator of the loyalty program
defaultCouponsLimitDeprecated. See couponConfig instead. How many coupons (eg. the maximum amount of usages) the underlying contracts of the loyalty program has.
usageValidityPeriodThe 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.
TicketRightsHolderResponse
idThe ticket right holder id
ticketHolderCodeThe personnel ticket code for the ticket rights holder
A ticket right granted to an employee or a family member
surnameUnused. This field is populated by employee / family member data and will be removed in future versions.
firstNameUnused. This field is populated by employee / family member data and will be removed in future versions.
postalCodeUnused. This field is populated by employee / family member data and will be removed in future versions.
addressLineUnused. This field is populated by employee / family member data and will be removed in future versions.
countryCodeUnused. This field is populated by employee / family member data and will be removed in future versions.
dateOfBirthUnused. This field is populated by employee / family member data and will be removed in future versions.
postalPlaceUnused. This field is populated by employee / family member data and will be removed in future versions.
ClaimPersonnelTicketRequest
customerNumberThe customerNumber referring to the customer who claims the personnel ticket
externalReference\w+-(\w+)+-\w+ · requiredThe code of the personnel ticket to claim
FamilyMemberLowIncomeResponse
yearYear of registered low income
isRegisteredWhether low income is registered
EmployeeDisabilityProofRequest
isRegisteredWhether proof of disability has been registered
PageTicketRightsHolderResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages
EmployeeDisabilityProofResponse
yearThe year this information is valid for
isRegisteredWhether a disability proof has been registered this year
ActiveTicketRightsHolderResponse
typeType of the ticket holder, possible values are 'Ansatt', 'Pensjonist' and 'Familie'
surnameThe surname of the ticket holder
companyIdThe id of the company
firstNameThe first name of the ticket holder
grantedAtWhen the ticket right was granted
employeeIdThe employee number
isEmployeeIf the ticket holder is an employee or a family member
ticketRightTypeType of the ticket right, possible values are 'bronse' and 'sølv'
cityCity in postal address
postalCodePostal code
addressLinePostal address line
hireEndDateThe hire end date for pensioners
ImportedEmployeeMergePatchRequest
companyIdCompany Id
isDeletedWhether the employee has been marked for deletion. Default false
employeeNoEmployee number
employmentTypeIdType of employment
employmentPercentageEmployment percentage
ssnBirthdate-number og D-number, 5 digits
payTypePay type - see the codes in the API documentation
surnameThe employee's surname
firstNameThe employee's first name
postalCodeThe postal code for the employee's address
addressLineThe employee's address line
dateOfBirthWhen the employee was born
hireEndDateWhen the employee left the company
hireEndCauseWhy the employee left the company
hireStartDateWhen the employee was hired
leaveFromDateWhen the employee starts a leave
paidPercentageThe 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
disabilityGradeThe employee's degree of disability. Default 0.
abstainFromTicketWhether a ticket should be created
disabilityFromDateWhen the employee's disability was granted
preferredProductIdThe employee's product
employmentPercentageDateDate for registered employment percentage
LoyaltyProgramDescriptionResponse
createdAtWhen the loyalty program was created
createdByWhich client created the loyalty program
descriptionLoyalty program description. Supports any kind of text
languageCodeWhat language the description is written in, ISO639-3
lastChangedAtWhen the loyalty program was last changed
lastChangedByWhich client changed the loyalty program last
displayNameDisplay name for loyalty program
TaxSavingReportGenerationResponse
startedWhen the report generation started
progressHow far the generation has progressed in percent from 0 to 100
errorError if the report generation fails
finishedWhen the report generation finished
ValidateContractConsumptionRequest
A list of consumptions to verify
ValidateContractConsumptionResponse
codeA code pertaining to the reason for rejection, if any. Code 3101 = OK.
reasonA short message detailing the reasoning behind the status.
isValidTrue if all consumptions were valid, otherwise false
PageActiveTicketRightsHolderResponse
All items for this page
totalItemsTotal items which could be returned
totalPagesTotal number of pages