Entur Developer
Partner
REST
Personnel tickets

API for fetching employees in the personnel ticket system. An employee is the main entity of the pbsys system. They are hired by a Company and work at a WorkPlace. Employees are created from ImportedEmployee


Find employees

GET
https://api.entur.io
/personnelticket/v2/employees

Find employees › query Parameters

employeeNo
​string · style: form · explode: true
companyId
​integer · int64 · style: form · explode: true
dateOfBirth
​string · date · style: form · explode: true
ssn
​string · style: form · explode: true
includeFamilyMembers
​boolean · style: form · explode: true
includeTicketRights
​boolean · style: form · explode: true
page
​integer · int32 · style: form · explode: true
perPage
​integer · int32 · style: form · explode: true

Find employees › Headers

ET-Client-Name
​string · style: simple

Entur Client Header. It is required that all consumers identify themselves by using this header. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: <company>-<application>.

X-Correlation-Id
​string · style: simple

Correlation id

Find employees › Responses

OK

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

Attempts to look up a single given employee

GET
https://api.entur.io
/personnelticket/v2/employees/{id}

Attempts to look up a single given employee › path Parameters

id
​integer · int64 · required · style: simple

Attempts to look up a single given employee › query Parameters

includeFamilyMembers
​boolean · style: form · explode: true
includeTicketRights
​boolean · style: form · explode: true

Attempts to look up a single given employee › Headers

ET-Client-Name
​string · style: simple

Entur Client Header. It is required that all consumers identify themselves by using this header. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: <company>-<application>.

X-Correlation-Id
​string · style: simple

Correlation id

Attempts to look up a single given employee › Responses

OK

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 | null

Companies are where employees are hired

​EmploymentType | null

Employment type. Examples include Employee, Part time, Temp

dateOfBirth
​string | null · date

When the employee was born

Example: 2023-01-01
ssn
​string | null

The employee's social security number

addressLine
​string | null

The employee's postal address

abstainFromTicket
​boolean | null

Whether a ticket should be created

hireStartDate
​string | null · date

When the employee was hired

Example: 2019-04-12
payType
​string | null

Pay type - see the codes in the API documentation

Example: A
hireEndDate
​string | null · date

When the employee left the company

Example: 2019-04-17
hireEndCause
​string | null

Why the employee left the company

disabilityGrade
​integer | null · int32

The employee's degree of disability. Default 0.

Example: 20
employmentPercentage
​integer | null · int32

Employment percentage

Example: 80
employmentPercentageDate
​string | null · date

Date for registered employment percentage

Example: 2019-07-13
paidPercentage
​integer | null · 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 | null · date

When the employee starts a leave

Example: 2019-05-12
note
​string | null

Any additional information

lastUpdate
​string | null · date-time

When the imported employee was last updated

sourceLastUpdate
​string | null

The source for the last update

​array | null

The employee's family members

​array | null

The employee's ticket rights

createdAt
​string | null · date-time

The date of creation.

createdBy
​string | null

The source for the first creation

​array | null

The registered categories on this employee

​array | null

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

​array | null

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

customerNumber
​integer | null · 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

Did you find what you were looking for?