Entur Developer
Partner
REST
Personnel tickets

Api for getting tax and FIP reports


Get a tax savings report for a given month and year for requested company.

GET
https://api.entur.io
/personnelticket/v2/reports/tax-savings

Get a tax savings report for a given month and year for requested company.Parameters fromDate and toDate are deprecated, use month and year

Get a tax savings report for a given month and year for requested company. › query Parameters

companyId
​integer · int64 · required · style: form · explode: true
fromDate
​string · date · style: form · explode: true

Deprecated. Use year and month

toDate
​string · date · style: form · explode: true

Deprecated. Use year and month

year
​integer · int32 · min: 2021 · max: 2099 · style: form · explode: true

Year from 2021. Default current year

month
​string · min: 1 · max: 12 · style: form · explode: true

Month, from 1 to 12. Default current month

Get a tax savings report for a given month and year for requested company. › 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

Get a tax savings report for a given month and year for requested company. › Responses

OK

string

POST
https://api.entur.io
/personnelticket/v2/reports/tax-savings

Start the progress or get status for generating a tax savings report for a given month and year for requested company.

query Parameters

companyId
​integer · int64 · required · style: form · explode: true
year
​integer · int32 · min: 2021 · max: 2099 · style: form · explode: true

Year from 2021. Default current year

month
​string · min: 1 · max: 12 · style: form · explode: true

Month, from 1 to 12. Default current month

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

Responses

Accepted

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 | null · date-time · readOnly

When the report generation finished

error
​string | null · readOnly

Error if the report generation fails


Get total saving value for tax savings report for specified month

GET
https://api.entur.io
/personnelticket/v2/reports/tax-savings-reconciliation

Get total saving value for tax savings report for specified month › query Parameters

companyId
​integer · int64 · required · style: form · explode: true
year
​integer · int32 · min: 2021 · max: 2099 · required · style: form · explode: true

Year from 2021

month
​string · min: 1 · max: 12 · required · style: form · explode: true

Month, from 1 to 12

Get total saving value for tax savings report for specified month › 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

Get total saving value for tax savings report for specified month › Responses

OK

string

Get a CSV report of stop place ticket rights for a year

GET
https://api.entur.io
/personnelticket/v2/reports/stop-place-ticket-rights

Get a CSV report of stop place ticket rights for a year › query Parameters

year
​integer · int32 · min: 2021 · max: 2099 · required · style: form · explode: true

Year from 2021.

Get a CSV report of stop place ticket rights for a year › 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

Get a CSV report of stop place ticket rights for a year › Responses

OK

string

Get a CSV report containing all FIP coupons and travel discount certificates created in specified year.

GET
https://api.entur.io
/personnelticket/v2/reports/fip/coupons

Get a CSV report containing all FIP coupons and travel discount certificates created in specified year. › query Parameters

companyId
​integer · int64 · required · style: form · explode: true
year
​integer · int32 · min: 2021 · max: 2099 · required · style: form · explode: true

Year from 2021.

Get a CSV report containing all FIP coupons and travel discount certificates created in specified year. › 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

Get a CSV report containing all FIP coupons and travel discount certificates created in specified year. › Responses

OK

string

Get a report from FIP as a CSV-file, between fromDate and toDate by setting ?format=csv

GET
https://api.entur.io
/personnelticket/v2/reports/fip-monthly

Get a report from FIP as a CSV-file, between fromDate and toDate by setting ?format=csv › query Parameters

fromDate
​string · date · required · style: form · explode: true
toDate
​string · date · required · style: form · explode: true
useCreatedAt
​boolean · style: form · explode: true
companyId
​integer · int64 · style: form · explode: true

Filter report by company. If null all companies are reported

Get a report from FIP as a CSV-file, between fromDate and toDate by setting ?format=csv › 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

Get a report from FIP as a CSV-file, between fromDate and toDate by setting ?format=csv › Responses

OK

employeeNo
​string · required

Employee number

​FipTicketTypeSimple | null

FIP ticket type

issueDate
​string | null · date

Issued date

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

Ticket number

validFrom
​string | null · date

The date the ticket is valid from

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

The date the ticket is valid to

Example: 2023-01-01
​TravelType | null

Travel type

company
​integer | null · int64

Company id


Get a CSV report of apprentice ticket rights for a year

GET
https://api.entur.io
/personnelticket/v2/reports/apprentice-ticket-rights

Get a CSV report of apprentice ticket rights for a year › query Parameters

year
​integer · int32 · min: 2021 · max: 2099 · required · style: form · explode: true

Year from 2021.

Get a CSV report of apprentice ticket rights for a year › 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

Get a CSV report of apprentice ticket rights for a year › Responses

OK

string

Get list of active ticket right holders for a company as a CSV

GET
https://api.entur.io
/personnelticket/v2/reports/active-ticket-rights-holders

Get list of active ticket right holders for a company as a CSV › query Parameters

companyId
​integer · int64 · required · style: form · explode: true
page
​integer · int32 · style: form · explode: true
perPage
​integer · int32 · style: form · explode: true
ticketRightType
​string · enum · style: form · explode: true
Enum values:
SILVER
BRONZE
ticketRightHolderType
​string · enum · style: form · explode: true
Enum values:
EMPLOYEE
PENSIONER
includeFamily
​boolean · style: form · explode: true

Get list of active ticket right holders for a company as a CSV › 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

Get list of active ticket right holders for a company as a CSV › Responses

OK

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

Did you find what you were looking for?