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