Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

EXPORT - Get a user's employments

Resource URL

URL: user/export/employments


Parameters

string username
required

Username

string password
required

Password

int pageNumber
optional

Page number to retrieve

int pageSize
optional

Maximum number of elements on each page


Return value

employmentsInformationA list containing emplyments data for the users
employmentsInformation[].idID of the user
employmentsInformation[].externalIdExternal ID of the user
employmentsInformation[].employmentsA list containing employments of the user
employmentsInformation[].employments[].nameName of the company
employmentsInformation[].employments[].status

One of the values: ACTIVE, INACTIVE or NEEDS_CONFIRMATION.

May be empty if the integration user does not have rights to see this status

employmentsInformation[].employments[].employeeNumberEmployee number. May be empty
pageNumberNumber of the current page
pageSizeSize of the current page


Example request

URL

https://www.trainingportal.no/mintra/rest/user/export/employments

POST DATA

username=username&password=secret&pageNumber=10&pageSize=20

{
"employmentInformations": [
{
"id": 123,
"externalId": "abc",
"employments": [
{
"name": "Oil and Gas AS",
"employeeNumber": "001",
"status": "ACTIVE"
},
{
"name": "Rent a worker AS",
"employeeNumber": "",
"status": ""
}
]
}
],
"pageNumber": 10,
"pageSize": 20
}