Entur Developer
Personnel tickets

Import employees in CSV format

Overview

This guide explains how to import employees from an external system into the personnel ticket system using a specific CSV format.

The CSV file may also include pensioners who are eligible for personnel ticket rights.


Before you start

To use this guide, you need to:

  • Have your employee list available as a CSV file

The CSV format

Field NameNotesDefault Value
employeeNoYour internal employee number for this employee.
companyIdInternal company ID in the personnel ticket system. This is different from your organisations ID in Enturs organisation registry.
employmentTypeIdThe type of employment. See Employment Types below.
dateOfBirthIn format "yyyy-MM-dd": "1974-11-23"
ssn5-digit ssn
firstNameFirst name of employee
surnameSurname of employee
addressLineStreet address of employee
postalCodePostal code of employee
abstainFromTicketWhether this employee has opted out. Valid values are true and falsefalse
hireStartDateDate of hire. Format "yyyy-MM-dd", "1974-11-23"
payTypeThe pay category. See Pay types below.
hireEndDateThe day the employee no longer works for the company. Format "yyyy-MM-dd", "1974-11-23"""
hireEndCauseThe reason for end of hire. See End Causes below.""
disabilityGradeThe percent disability. Sensitive personal data. Number from 0 to 100.0
disabilityFromDateThe day the disability is valid. Required if disabilityGrade > 0""
employmentPercentageDegree of employment. Number from 0 to 100.
employmentPercentageDateDate the employment percentage is valid. Format "yyyy-MM-dd", "1974-11-23".""
paidPercentagePercentage of pay.
leaveFromDateIf employee is on leave. Format "yyyy-MM-dd", "1974-11-23".""
isDeletedWhether employee is deleted in the pesonnel ticket system.false

Fields without a default value are required.

A header row is not required, but the fields must be in the order specified in the table.

Employment types

IdNorwegian Notes
FFast ansatt i stilling
MMidlertidig tilsatt i stilling
TTilkallingsvikar/sesong
UUkjent tjenesteforhold

Categories

CodeValue
1bronze ticket
2silver ticket

Pay types

IdNorwegian Notes
1Ukjent
AAktiv stilling
DDelvis omsorgspermisjon
ERed. arbeidstid etter AML 46A
FFødselspermisjon
LLånt ut til annen enhet
MPermisjon for militær/siviltj
NPermisjon for annen stilling i NSB
OOmsorgspermisjon uten lønn
PMilitær/siviltjeneste uten lønn
RStudiepermisjon uten lønn
SStudiepermisjon m/lønn
TTjenestegjøring i høyere stilling
UPermisjon m/uførepensjon
VDelvis uførepermisjon
WDelvis overgang til AFP
XPermisjon, annet u/lønn

End causes

CodeNorwegian Notes
AOvergang alderspensjon (kode 341)
BSlutt v/overg til AS (kode 350)
DDødsfall (aksjonskode 320)
EEgen oppsigelse (kode 310+330)
FOvergang AFP/FTP (kode 349)
IOppsagt v/innskr. (kode 352)
MMangler årsaksangivelse
OSlutt l/opplæring (kode 353)
SSæraldersgrense (kode 345)
TDødsfall, tjenesteulykke (kode 321)
UUførepensjon/Oppsigelse ved sykdom (kode 361)
VSlutt 6 mnd lønn (kode 354)
XSlutt annen årsak (kode 350)
YVentelønn 30 års tjeneste
ZAvskjed (kode 351)

Importing employees

For importing employees, use

Request body

JSONCode
{ "importFile": "importFileName" }

Response and behavior

A list of actually changed employees is returned. The list may be empty if all uploaded employees already exist with the identical values

The personnel ticket system calculates whether an employee is entitled to a personnel ticket and create the necessary ticket rights in the internal Entur systems for the users.

Validation

  • If any birth date or SSN is invalid:

    • ❌ Nothing will be imported

    • ❌ An error message will be returned

    • The error will include:

      • Invalid birth dates
      • Invalid SSNs

Next steps

Guide: How to connect profiles with personnel ticket rights

Last modified on
Did you find what you were looking for?