MENU navbar-image

Introduction

This info section contains relevant information regarding integration with ProLøn, not only the technical side but also some of the business rules, which integrated systems tends to get wrong.

Handling credentials / login

There are 2 types of logins into the ProLøn salary system

Which login to use depends heavily on the type of system integrating with the API. Of the 2 only the partner login requires the integrating system to store credentials. In the case of a user login there is no need to store user/customer credentials(!).

In the following subsections, the "system" means the system integrating with the API. When referring to a user, that user is an "internal user" to the users own company only, but is an "external user" in regard to all others. An internal user typically handles book keeping or approvals for that users own company only. An external user typically handles book keeping for multiple companies.

A successful login yields a cookie, which must be included in all requests. The cookie expires after 10 hours, and can be stored by the system in order to avoid storing company / user credentials.

User login

The user logs into the system using their ProLøn user credentials. The system forwards the credentials to the API, which verifies them. If successful a cookie is returned, which the system stores and uses in future request by the same user. Access rights are checked and validated against the cookie. Only one company at a time can be accessed with the same cookie. There is no need to store user credentials.

Partner login

With a partner login, Proløn creates a user for the partner. The client of the partner will need to add the partners user as an external user with the appropriate access rights to their company. Proløn can provide a guide for adding a partner user as an external user to the client company. The partner login requires that the partner system stores the partner login credentials as well as the company ids.

Example: The partner user has been added as an external user on company 1 and 2. For getting the company data for company with id 1 the URL "/company/1" is used and for company with id 2 the URL "/company/2". In essence only the company id need to be changed in order to access different companies.

422 error descriptions

Validation errors found in input or business rules are returned as an 422 error. All returned 422 errors contains an error description, that (mostly) make sence to the end user, and should therefore be given to the end user, if no other error message can be provided. All error descriptions are in Danish.

Following this guideline should reduce calls to both ProLøn support and partners.

A few examples of error descriptions:

Reset codes

Each salary type has a reset code (In Danish called "Nulstillingskode" and in database referred to as "loenart_nulstil"). This code is used when either a reset of salary transactions are invoked or when creating salary transactions.

The possible values are

A reset of salary transactions can be invoked by the following actions

When resetting all salary transactions are evaluated by their reset code and reset accordingly. The reset also targets salary transaction for employees not sheduled for payment, so reset with caution.

Another usage (abuse) of reset codes is doing sums when salary transactions are created. When doing sums (Reset code 4 and 5) the numbers for the salary transactions using the same salary type are added together and the rate kept in one final salary transaction. This is normally used for employees paid by the hour with different rates.

For example for an employee with a hourly pay rate at 150,00, this employee will typically have one existing salary transaction with the rate set to 150,00 and the number set to 0 after a processed salary order. When salary transactions with hours are created (either by the ProLøn frontend, CSV or by API), the hours will be added to the number for that existing salary transaction. When all the (new) salary transactions have been processed, the employee will have exactly one salary transaction containing the sum of all the numbers and the rate of 150,00.

Reset codes are initially set up, when the customer / company joins ProLøn. A ProLøn supporter goes through all relevant salary types and makes sure the setup matches the customers/ companys needs. If the need to change the reset codes arises, please consult both the customer and ProLøn support.

Often used functionality

The functionality listed here are the most used by 3rd party systems. The API has a lot of endpoints but most are not used very often. Any 3rd party system would benefit for implementing most of these.

Authenticate

Storing and updating employees

Salary transactions

Prepare salary

Employee in draft

An employee can be fully created once all required data are provided. Until then an employee can be created as a draft. This is useful if all the required data is not present in the integrating system and allows the integrating system to transfer what data is present. Only the employee number (arbejder_nr) is required in order to create an employee as a draft.

Once all required data are provided, the employee can be updated to a full employee by calling the update employee endpoint

A full employee cannot ever go back to being in draft. Also an employee in draft cannot be a part of a salary order and hence cannot receive any payments.

In order to determine whether or not an employee is in draft, retrieve employee data at the following endpoint and check the draft field (arbejder_kladde) - If the field value is 1, then the employee is still in draft.

Do note, that the endpoints for creating and updating employees in draft are different from those where the employee are fully created.

Access to DEMO environment

To be able to access the DEMO environment, a request must be filled out here

No access is granted to the PROD environment without thorough testing in the DEMO environment. The DEMO environment is as stable as can be and very close to identical to the PROD environment.

Once the request has been processed, access will be granted and the following will be returned

All requests to the API must use HTTPS (TLS 1.2 or TLS 1.3) - Any connections using HTTP will be redirected or ignored.

A cookie is returned on successful login. This cookie is to be included in all following requests. The same goes for the API key. The API key is be sent in the header:

api-key: <APIKEY>

The API key is specifically made for the system and only grants access to the DEMO environment, not the PROD environment. The API key is not a part of the security system and only serves to identify requests from that system.

Standard responses:

Access to PROD environment

After thorough testing have been performed in the DEMO environment, access to PROD can be requested by filling out the form here

Once the request has been processed, access will be granted and a PROD environment API key will be returned. Depending on your choice of login, more information are included.

If your choose Partner Login as your choice of login, a guide can be provided instructing users how to add your partner login as external user.

Contact information

Questions regarding this documentation can be send to ProLøn IT at [email protected]

Release notes

Release VNext

Release 24.03.07

Release 24.02.15

Release 24.01.18

Release 23.11.16

Release 23.11.02

Release 23.10.05

Release 23.08.17

Release 23.08.03

Release 23.06.07

Release 23.02.16

Release 23.02.02

Release 22.12.15

Release 22.12.01

Release 22.11.10

Release 22.02.17

Absence statistics (Fraværsstatistik)

Get absence statistics list

The following parameters can be used to narrow the search

if fravaersstatistik_slutdato and fravaersstatistik_startdato is not supplied results is filtered to current year

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "fravaersstatistik_arbejder": 19,
    "fravaersstatistik_startdato": 15,
    "fravaersstatistik_slutdato": 4,
    "fravaersstatistik_fravaerskode": 20
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/absencestatistics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'fravaersstatistik_arbejder' => 19,
            'fravaersstatistik_startdato' => 15,
            'fravaersstatistik_slutdato' => 4,
            'fravaersstatistik_fravaerskode' => 20,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics'
payload = {
    "fravaersstatistik_arbejder": 19,
    "fravaersstatistik_startdato": 15,
    "fravaersstatistik_slutdato": 4,
    "fravaersstatistik_fravaerskode": 20
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "fravaersstatistik_id": 123,
        "fravaersstatistik_firma": 123,
        "fravaersstatistik_arbejder": 1234,
        "fravaersstatistik_startdato": "2016-02-05",
        "fravaersstatistik_slutdato": "2016-02-09",
        "fravaersstatistik_fravaerskode": 1234,
        "fravaersstatistik_timer": 12.3,
        "arbejder_firma": "123",
        "arbejder_nr": "1234",
        "arbejder_arbejdertype": "1",
        "arbejder_profil": "FER18",
        "arbejder_fornavn": "MATILDA",
        "arbejder_efternavn": "OLSEN",
        "arbejder_adresse1": "NAVNEVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": "2500",
        "arbejder_by": "VALBY",
        "arbejder_cprnr": "0101901111",
        "arbejder_ansatdato": "20150803",
        "arbejder_rejstdato": "20161201",
        "arbejder_afdeling": "9",
        "arbejder_skattefrd1dag": "0",
        "arbejder_skattefrdperioden": "0",
        "arbejder_traekprocent": "36",
        "arbejder_restfrikort": "0",
        "arbejder_bankregnr": "1234",
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": "1",
        "arbejder_feriekode": "1",
        "arbejder_shkode": "0",
        "arbejder_ampension": "8913",
        "arbejder_amstartdato": "20161010",
        "arbejder_ansaettelsestype": "1",
        "arbejder_ansaettelsevilkaer": "2",
        "arbejder_jobstatus": "9",
        "arbejder_afloenningsform": "1",
        "arbejder_arbejdsstedda": "9",
        "arbejder_bruttoloen": null,
        "arbejder_sidstopdstamdata": "20161231",
        "arbejder_sidstopdtrans": "20161228",
        "arbejder_slettet": "1",
        "arbejder_loen": "0",
        "arbejder_changed": "0",
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": "0",
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": "0",
        "arbejder_garantiloendeltid": "0",
        "arbejder_frivilligtraekprocent": "0",
        "arbejder_beskaeftigelseskode": "0",
        "arbejder_produktionsenhedsnr": "1234567890",
        "arbejder_groenlandskkommune": "0",
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": "0",
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": "1",
        "arbejder_udlaertdato": "0",
        "arbejder_arbejdsfunktion2": "522300",
        "arbejder_sundhedsordning": "0",
        "arbejder_mokode": "0",
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": "0",
        "arbejder_kompetencefond": "10056",
        "arbejder_samarbuddannelsesfond": "10056",
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "20150803",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": "0",
        "arbejder_skatteregistreringsnr": "123X",
        "fravaerskode_nr": "1100",
        "fravaerskode_tekst": "Egen sygdom"
    }
]
 

GET api/company/{companyId}/absencestatistics

URL Parameters

companyId    

Requirements

Body Parameters

fravaersstatistik_arbejder   optional  

The værdien must be at least 1
The værdien must not be greater than 99999.

fravaersstatistik_startdato   optional  

The værdien must be at least 10000000
The værdien must not be greater than 99999999.

fravaersstatistik_slutdato   optional  

The værdien must be at least 10000000
The værdien must not be greater than 99999999.

fravaersstatistik_fravaerskode   optional  

The værdien must not be greater than 9999.

Get absence code list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics/codelist"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/absencestatistics/codelist',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics/codelist'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "fravaerskode_nr": 1100,
        "fravaerskode_tekst": "Egen sygdom"
    }
]
 

GET api/company/{companyId}/absencestatistics/codelist

URL Parameters

companyId    

Requirements

Get single absence statistics

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/absencestatistics/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "fravaersstatistik_id": 5,
    "fravaersstatistik_firma": 123,
    "fravaersstatistik_arbejder": 1234,
    "fravaersstatistik_startdato": "2015-02-05",
    "fravaersstatistik_slutdato": "2015-02-09",
    "fravaersstatistik_fravaerskode": 1234,
    "fravaersstatistik_timer": 12.3
}
 

GET api/company/{companyId}/absencestatistics/{absenceStatisticsId}

URL Parameters

companyId    
absenceStatisticsId    

Requirements

Create absence statistic

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "fravaersstatistik_arbejder": 2,
    "fravaersstatistik_startdato": 15,
    "fravaersstatistik_slutdato": 4,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/absencestatistics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'fravaersstatistik_arbejder' => 2,
            'fravaersstatistik_startdato' => 15,
            'fravaersstatistik_slutdato' => 4,
            'fravaersstatistik_fravaerskode' => 15,
            'fravaersstatistik_timer' => 124580.7912707,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics'
payload = {
    "fravaersstatistik_arbejder": 2,
    "fravaersstatistik_startdato": 15,
    "fravaersstatistik_slutdato": 4,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "fravaersstatistik_firma": 123,
    "fravaersstatistik_arbejder": 1234,
    "fravaersstatistik_startdato": 12032017,
    "fravaersstatistik_slutdato": 12032017,
    "fravaersstatistik_fravaerskode": 123,
    "fravaersstatistik_timer": 12.3
}
 

POST api/company/{companyId}/absencestatistics

URL Parameters

companyId    

Requirements

Body Parameters

fravaersstatistik_arbejder    

The værdien must be between 1 and 99999.

fravaersstatistik_startdato    

The værdien must be at least 10000000
The værdien must not be greater than 99999999.

fravaersstatistik_slutdato    

The værdien must be at least 10000000
The værdien must not be greater than 99999999.

fravaersstatistik_fravaerskode    
fravaersstatistik_timer    

Create absence statistic, file

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics/bulk/file"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

const body = new FormData();
body.append('fravaersFil', document.querySelector('input[name="fravaersFil"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/absencestatistics/bulk/file',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'multipart' => [
            [
                'name' => 'fravaersFil',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php8CDC.tmp', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics/bulk/file'
files = {
  'fravaersFil': open('C:\Users\Administrator\AppData\Local\Temp\php8CDC.tmp', 'rb')
}
headers = {
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, files=files)
response.json()

POST api/company/{companyId}/absencestatistics/bulk/file

URL Parameters

companyId    

Body Parameters

fravaersFil    

Must be a file.

Create absence statistic, text

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics/bulk/field"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "absencestatistics": "quod"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/absencestatistics/bulk/field',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'absencestatistics' => 'quod',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics/bulk/field'
payload = {
    "absencestatistics": "quod"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/absencestatistics/bulk/field

URL Parameters

companyId    

Body Parameters

absencestatistics    

Update absence statistic

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "fravaersstatistik_arbejder": 2,
    "fravaersstatistik_startdato": 15,
    "fravaersstatistik_slutdato": 4,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/absencestatistics/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'fravaersstatistik_arbejder' => 2,
            'fravaersstatistik_startdato' => 15,
            'fravaersstatistik_slutdato' => 4,
            'fravaersstatistik_fravaerskode' => 15,
            'fravaersstatistik_timer' => 124580.7912707,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics/7'
payload = {
    "fravaersstatistik_arbejder": 2,
    "fravaersstatistik_startdato": 15,
    "fravaersstatistik_slutdato": 4,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/absencestatistics/{absenceStatisticsId}

URL Parameters

companyId    
absenceStatisticsId    

Requirements

Body Parameters

fravaersstatistik_arbejder   optional  

The værdien must be between 1 and 99999.

fravaersstatistik_startdato   optional  

The værdien must be at least 10000000
The værdien must not be greater than 99999999.

fravaersstatistik_slutdato   optional  

The værdien must be at least 10000000
The værdien must not be greater than 99999999.

fravaersstatistik_fravaerskode   optional  
fravaersstatistik_timer   optional  

Delete absence statistic

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/absencestatistics/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/absencestatistics/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/absencestatistics/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/absencestatistics/{absenceStatisticsId}

URL Parameters

companyId    
absenceStatisticsId    

Requirements

Account number voucher

Get account number voucher list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/accountnumbervoucher"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/accountnumbervoucher',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/accountnumbervoucher'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "stdktbilag_kontoplanversion": 2,
        "stdktbilag_linjenr": 2114000,
        "stdktbilag_kontonr": 0,
        "stdktbilag_tekst": "A-INDKOMST: AI",
        "stdktbilag_specafdnr": 0,
        "stdktbilag_specloenart": 0,
        "stdktbilag_bogfoeringskode": 0,
        "firmaktbilag": []
    }
]
 

GET api/company/{companyId}/accountnumbervoucher

URL Parameters

companyId    

Requirements

Get account number voucher list for version number

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/accountnumbervoucher/version/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/accountnumbervoucher/version/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/accountnumbervoucher/version/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "stdktbilag_kontoplanversion": 3,
        "stdktbilag_linjenr": 3116000,
        "stdktbilag_kontonr": 0,
        "stdktbilag_tekst": "FERIEBERETTIGET: FB",
        "stdktbilag_specafdnr": 0,
        "stdktbilag_specloenart": 0,
        "stdktbilag_bogfoeringskode": 0,
        "firmaktbilag": []
    },
    {
        "stdktbilag_kontoplanversion": 3,
        "stdktbilag_linjenr": 3117000,
        "stdktbilag_kontonr": 11500,
        "stdktbilag_tekst": "AI:JA BS:JA FB:JA",
        "stdktbilag_specafdnr": 1,
        "stdktbilag_specloenart": 1,
        "stdktbilag_bogfoeringskode": 1,
        "firmaktbilag": [
            {
                "firmaktbilag_id": 603,
                "firmaktbilag_firma": 737,
                "firmaktbilag_stdkontoplanversion": 3,
                "firmaktbilag_stdlinjenr": 3117000,
                "firmaktbilag_stdkontonr": 11500,
                "firmaktbilag_kontonr": 0,
                "firmaktbilag_afdnr": 1,
                "firmaktbilag_loenart": 0,
                "firmaktbilag_arbejder": 0
            }
        ]
    }
]
 

GET api/company/{companyId}/accountnumbervoucher/version/{versionNumber}

URL Parameters

companyId    
versionNumber    

Requirements

Create account number voucher

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/accountnumbervoucher"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmaktbilag_stdkontoplanversion": 15,
    "firmaktbilag_stdlinjenr": 15,
    "firmaktbilag_kontonr": 1,
    "firmaktbilag_afdnr": 0,
    "firmaktbilag_loenart": 1,
    "firmaktbilag_arbejder": 0
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/accountnumbervoucher',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmaktbilag_stdkontoplanversion' => 15,
            'firmaktbilag_stdlinjenr' => 15,
            'firmaktbilag_kontonr' => 1,
            'firmaktbilag_afdnr' => 0,
            'firmaktbilag_loenart' => 1,
            'firmaktbilag_arbejder' => 0,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/accountnumbervoucher'
payload = {
    "firmaktbilag_stdkontoplanversion": 15,
    "firmaktbilag_stdlinjenr": 15,
    "firmaktbilag_kontonr": 1,
    "firmaktbilag_afdnr": 0,
    "firmaktbilag_loenart": 1,
    "firmaktbilag_arbejder": 0
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "firmaktbilag_firma": 123,
    "firmaktbilag_stdkontoplanversion": 1,
    "firmaktbilag_stdkontonr": 1234,
    "firmaktbilag_stdlinjenr": 1234,
    "firmaktbilag_kontonr": 0,
    "firmaktbilag_afdnr": 1,
    "firmaktbilag_loenart": 0,
    "firmaktbilag_arbejder": 0
}
 

POST api/company/{companyId}/accountnumbervoucher

URL Parameters

companyId    

Requirements

Body Parameters

firmaktbilag_stdkontoplanversion    
firmaktbilag_stdlinjenr    
firmaktbilag_kontonr    

The værdien must be between 0 and 99999999.

firmaktbilag_afdnr   optional  

The værdien must be between 0 and 99999.

firmaktbilag_loenart   optional  

The værdien must be between 0 and 9999.

firmaktbilag_arbejder   optional  

The værdien must be between 0 and 99999.

Update account number voucher

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/accountnumbervoucher/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmaktbilag_kontonr": 1,
    "firmaktbilag_afdnr": 1,
    "firmaktbilag_loenart": 0,
    "firmaktbilag_arbejder": 1
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/accountnumbervoucher/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmaktbilag_kontonr' => 1,
            'firmaktbilag_afdnr' => 1,
            'firmaktbilag_loenart' => 0,
            'firmaktbilag_arbejder' => 1,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/accountnumbervoucher/7'
payload = {
    "firmaktbilag_kontonr": 1,
    "firmaktbilag_afdnr": 1,
    "firmaktbilag_loenart": 0,
    "firmaktbilag_arbejder": 1
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/accountnumbervoucher/{voucherId}

URL Parameters

companyId    
voucherId    

Requirements

Body Parameters

firmaktbilag_kontonr   optional  

The værdien must be between 0 and 99999999.

firmaktbilag_afdnr   optional  

The værdien must be between 0 and 99999.

firmaktbilag_loenart   optional  

The værdien must be between 0 and 9999.

firmaktbilag_arbejder   optional  

The værdien must be between 0 and 99999.

Delete account number voucher

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/accountnumbervoucher/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/accountnumbervoucher/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/accountnumbervoucher/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/accountnumbervoucher/{voucherId}

URL Parameters

companyId    
voucherId    

Requirements

Admin info

get list of info for a specific industry

Remark about {industryId}:

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/admininfo/industry/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/admininfo/industry/',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/admininfo/industry/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "info_id": 1,
        "info_titel": "Afleveringsfrister",
        "info_tekst": "beskrivende tekst",
        "info_tildato": "2018-12-15",
        "info_brance": -2
    }
]
 

GET api/company/{companyId}/admininfo/industry/{industryId}

URL Parameters

companyId    
industryId    

Requirements

Get single info

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/admininfo/quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/admininfo/quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/admininfo/quod'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "info_id": 1,
    "info_titel": "Afleveringsfrister",
    "info_tekst": "beskrivende tekst",
    "info_tildato": "2018-12-15",
    "info_brance": -2
}
 

GET api/company/{companyId}/admininfo/{id}

URL Parameters

companyId    
id    

The ID of the admininfo.

Requirements

Create new info

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/admininfo"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "info_brance": 15,
    "info_tildato": "2024-04-09",
    "info_titel": "=rAGsHEhM.",
    "info_tekst": "=rAGsHEhM."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/admininfo',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'info_brance' => 15,
            'info_tildato' => '2024-04-09',
            'info_titel' => '=rAGsHEhM.',
            'info_tekst' => '=rAGsHEhM.',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/admininfo'
payload = {
    "info_brance": 15,
    "info_tildato": "2024-04-09",
    "info_titel": "=rAGsHEhM.",
    "info_tekst": "=rAGsHEhM."
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "info_id": 1,
    "info_titel": "Afleveringsfrister",
    "info_tekst": "beskrivende tekst",
    "info_tildato": "2018-12-15",
    "info_brance": -2
}
 

POST api/company/{companyId}/admininfo

URL Parameters

companyId    

Requirements

Body Parameters

info_brance    
info_tildato    

Must be a valid date in the format Y-m-d.

info_titel    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space.

info_tekst    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space.

Update info

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/admininfo/quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "info_brance": 15,
    "info_tildato": "2024-04-09",
    "info_titel": "=rAGsHEhM.",
    "info_tekst": "=rAGsHEhM."
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/admininfo/quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'info_brance' => 15,
            'info_tildato' => '2024-04-09',
            'info_titel' => '=rAGsHEhM.',
            'info_tekst' => '=rAGsHEhM.',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/admininfo/quod'
payload = {
    "info_brance": 15,
    "info_tildato": "2024-04-09",
    "info_titel": "=rAGsHEhM.",
    "info_tekst": "=rAGsHEhM."
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/admininfo/{id}

URL Parameters

companyId    
id    

The ID of the admininfo.

Requirements

Body Parameters

info_brance    
info_tildato    

Must be a valid date in the format Y-m-d.

info_titel    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space.

info_tekst    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space.

Destroy info

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/admininfo/quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/admininfo/quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/admininfo/quod'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/admininfo/{id}

URL Parameters

companyId    
id    

The ID of the admininfo.

Requirements

Admin matrix

Get list of selectable Matrix fields

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminmatrix/selection"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminmatrix/selection',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminmatrix/selection'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "matrix_feltnr": 1,
        "matrix_feltbeskrivelse": "MedarbejderNr",
        "firmamatrix_matrix_feltnr": null
    }
]
 

GET api/company/{companyId}/adminmatrix/selection

URL Parameters

companyId    

Requirements

Get list of company selected Matrix fields

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminmatrix/current"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminmatrix/current',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminmatrix/current'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "matrix_feltnr": 1,
        "matrix_feltbeskrivelse": "MedarbejderNr",
        "firmamatrix_matrix_feltnr": null
    }
]
 

GET api/company/{companyId}/adminmatrix/current

URL Parameters

companyId    

Requirements

Check if company has Matrix

this returns 404 if company does not have a matrix else it returns 200

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminmatrix/hasmatrix"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminmatrix/hasmatrix',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminmatrix/hasmatrix'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/adminmatrix/hasmatrix

URL Parameters

companyId    

Requirements

Update company Matrix

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminmatrix"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/adminmatrix',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminmatrix'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers)
response.json()

PATCH api/company/{companyId}/adminmatrix

URL Parameters

companyId    

Requirements

Admin salary

Get list of companies all companies that is not locked

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminsalary',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "bestilt": null,
        "bestilttid": 0,
        "firma_laast": 0,
        "firma_overfoert": 0,
        "firma_logonlocked": 0,
        "firma_spaerret": 0,
        "firma_papir": 0,
        "firma_manspaerdato": null,
        "arbejdertype_testkoersel": 0,
        "arbejdertype_bestiltkl": 0
    }
]
 

GET api/company/{companyId}/adminsalary

URL Parameters

companyId    

Requirements

Returns a list of the companies who have ordered salary

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/ordered"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminsalary/ordered',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/ordered'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "bestilt": null,
        "bestilttid": 0,
        "firma_laast": 1,
        "firma_overfoert": 0,
        "firma_logonlocked": 0,
        "firma_spaerret": 0,
        "firma_papir": 0,
        "firma_manspaerdato": null,
        "arbejdertype_testkoersel": 0,
        "arbejdertype_bestiltkl": 0,
        "arbejdertype1_dispdato": 20180202,
        "arbejdertype2_dispdato": 0,
        "arbejdertype3_dispdato": 0
    }
]
 

GET api/company/{companyId}/adminsalary/ordered

URL Parameters

companyId    

Requirements

Returns a list of all the companies who have locked themselves out of the system This includes the last registered attempt, and the machine ip

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/locked"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminsalary/locked',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/locked'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "bestilt": null,
        "bestilttid": 0,
        "firma_laast": 1,
        "firma_overfoert": 0,
        "firma_logonlocked": 1,
        "firma_spaerret": 0,
        "firma_papir": 0,
        "firma_manspaerdato": null,
        "arbejdertype_testkoersel": 0,
        "arbejdertype_bestiltkl": 0,
        "firma_logontime": "20180130115805",
        "firma_logonip": "127.0.0.1"
    }
]
 

GET api/company/{companyId}/adminsalary/locked

URL Parameters

companyId    

Requirements

This returns a list of the companies that has been blocked Also includes employee type extra data

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/blocked"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminsalary/blocked',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/blocked'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "bestilt": null,
        "bestilttid": 0,
        "firma_laast": 0,
        "firma_overfoert": 0,
        "firma_logonlocked": 0,
        "firma_spaerret": 1,
        "firma_papir": 0,
        "firma_manspaerdato": null,
        "arbejdertype_testkoersel": 0,
        "arbejdertype_bestiltkl": 0,
        "arbejdertype_data": [
            {
                "arbejdertype_nr": 1,
                "arbejdertype_dispdato": 0
            }
        ]
    }
]
 

GET api/company/{companyId}/adminsalary/blocked

URL Parameters

companyId    

Requirements

Returns a list of the companies who have been manually blocked

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/manuallyblocked"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminsalary/manuallyblocked',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/manuallyblocked'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "bestilt": null,
        "bestilttid": 0,
        "firma_laast": 0,
        "firma_overfoert": 0,
        "firma_logonlocked": 0,
        "firma_spaerret": 0,
        "firma_papir": 0,
        "firma_manspaerdato": "20171203111213",
        "arbejdertype_testkoersel": 0,
        "arbejdertype_bestiltkl": 0
    }
]
 

GET api/company/{companyId}/adminsalary/manuallyblocked

URL Parameters

companyId    

Requirements

Returns the salary data for a specific company. Based on that company´s number.

Also includes employee type extra data

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminsalary/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firma_nr": 737,
        "firma_navn": "BODENHOFFS BAGERI APS",
        "bestilt": "20170929",
        "bestilttid": 1917,
        "firma_laast": 0,
        "firma_overfoert": 0,
        "firma_logonlocked": 0,
        "firma_spaerret": 0,
        "firma_papir": 0,
        "firma_manspaerdato": null,
        "arbejdertype_testkoersel": 0,
        "arbejdertype_bestiltkl": 1144,
        "arbejdertype_data": [
            {
                "arbejdertype_nr": 1,
                "arbejdertype_dispdato": 0
            }
        ]
    }
]
 

GET api/company/{companyId}/adminsalary/{otherCompanyId}

URL Parameters

companyId    
otherCompanyId    

Requirements

Removes a manual block from a company, based on that company´s number

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/removeblock/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/adminsalary/removeblock/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/removeblock/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers)
response.json()

PATCH api/company/{companyId}/adminsalary/removeblock/{otherCompanyId}

URL Parameters

companyId    
otherCompanyId    

Requirements

Removes a lock from the designated company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/unlock/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/adminsalary/unlock/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/unlock/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers)
response.json()

PATCH api/company/{companyId}/adminsalary/unlock/{unlockCompanyId}

URL Parameters

companyId    
unlockCompanyId    

Requirements

Puts a block on the designated company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminsalary/manualblock/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "initialer": "t"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/adminsalary/manualblock/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'initialer' => 't',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminsalary/manualblock/7'
payload = {
    "initialer": "t"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/adminsalary/manualblock/{otherCompanyId}

URL Parameters

companyId    
otherCompanyId    

Requirements

Body Parameters

initialer    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 20 characters.

Admin standardprofiles

Get list of companies all companies that is not locked

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminstandardprofile"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminstandardprofile',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminstandardprofile'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/adminstandardprofile

URL Parameters

companyId    

Requirements

Get a single standardProfile

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminstandardprofile//quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/adminstandardprofile//quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminstandardprofile//quod'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/adminstandardprofile/{industryId}/{profileNumber}

URL Parameters

companyId    
industryId    
profileNumber    

Requirements

store a standardProfile

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminstandardprofile"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "stdprofil_brance": 15,
    "stdprofil_nr": "oeuhol",
    "stdprofil_tekst": "yrgmpgiatthcupxqjdg",
    "stdprofil_atpkode": " 0",
    "stdprofil_feriekode": 0,
    "stdprofil_shkode": 0,
    "stdprofil_ampension": 15,
    "stdprofil_ansaettelsetype": 15,
    "stdprofil_ansaettelsevilkaar": 15,
    "stdprofil_arbejderfunktion": 15,
    "stdprofil_jobstatus": 15,
    "stdprofil_afloenningsform": 15,
    "stdprofil_dabarsel": 1,
    "stdprofil_dalouddannelsesbidrag": 15,
    "stdprofil_arbejdsfunktion2": 1,
    "stdprofil_arbejdertype": 0,
    "stdprofil_afdeling": 15,
    "stdprofil_eboks": "o",
    "stdprofil_beskaeftigelseskode": 0,
    "stdprofil_kompetencefond": 15,
    "stdprofil_samarbuddannelsesfond": 15,
    "stdprofil_produktionsenhedsnr": "oeuholyr",
    "stdprofil_loentillaeg": 7,
    "stdprofilloenart": [
        "quod"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/adminstandardprofile',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'stdprofil_brance' => 15,
            'stdprofil_nr' => 'oeuhol',
            'stdprofil_tekst' => 'yrgmpgiatthcupxqjdg',
            'stdprofil_atpkode' => ' 0',
            'stdprofil_feriekode' => 0,
            'stdprofil_shkode' => 0,
            'stdprofil_ampension' => 15,
            'stdprofil_ansaettelsetype' => 15,
            'stdprofil_ansaettelsevilkaar' => 15,
            'stdprofil_arbejderfunktion' => 15,
            'stdprofil_jobstatus' => 15,
            'stdprofil_afloenningsform' => 15,
            'stdprofil_dabarsel' => 1,
            'stdprofil_dalouddannelsesbidrag' => 15,
            'stdprofil_arbejdsfunktion2' => 1,
            'stdprofil_arbejdertype' => 0,
            'stdprofil_afdeling' => 15,
            'stdprofil_eboks' => 'o',
            'stdprofil_beskaeftigelseskode' => 0,
            'stdprofil_kompetencefond' => 15,
            'stdprofil_samarbuddannelsesfond' => 15,
            'stdprofil_produktionsenhedsnr' => 'oeuholyr',
            'stdprofil_loentillaeg' => 7,
            'stdprofilloenart' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminstandardprofile'
payload = {
    "stdprofil_brance": 15,
    "stdprofil_nr": "oeuhol",
    "stdprofil_tekst": "yrgmpgiatthcupxqjdg",
    "stdprofil_atpkode": " 0",
    "stdprofil_feriekode": 0,
    "stdprofil_shkode": 0,
    "stdprofil_ampension": 15,
    "stdprofil_ansaettelsetype": 15,
    "stdprofil_ansaettelsevilkaar": 15,
    "stdprofil_arbejderfunktion": 15,
    "stdprofil_jobstatus": 15,
    "stdprofil_afloenningsform": 15,
    "stdprofil_dabarsel": 1,
    "stdprofil_dalouddannelsesbidrag": 15,
    "stdprofil_arbejdsfunktion2": 1,
    "stdprofil_arbejdertype": 0,
    "stdprofil_afdeling": 15,
    "stdprofil_eboks": "o",
    "stdprofil_beskaeftigelseskode": 0,
    "stdprofil_kompetencefond": 15,
    "stdprofil_samarbuddannelsesfond": 15,
    "stdprofil_produktionsenhedsnr": "oeuholyr",
    "stdprofil_loentillaeg": 7,
    "stdprofilloenart": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/adminstandardprofile

URL Parameters

companyId    

Requirements

Body Parameters

stdprofil_brance    
stdprofil_nr    

The værdien can only contain A-Å 0-9 The værdien must not be greater than 7 characters.

stdprofil_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

stdprofil_atpkode    

Must be one of 0, 1, 2, 4, 5, or 6.

stdprofil_feriekode    

The værdien must be between 0 and 9.

stdprofil_shkode    

The værdien must be between 0 and 9.

stdprofil_ampension    
stdprofil_ansaettelsetype    
stdprofil_ansaettelsevilkaar    
stdprofil_arbejderfunktion    
stdprofil_jobstatus    
stdprofil_afloenningsform    
stdprofil_dabarsel    

The værdien must be between 0 and 3.

stdprofil_dalouddannelsesbidrag    
stdprofil_arbejdsfunktion2    

The værdien must be between 0 and 999999.

stdprofil_arbejdertype    

The værdien must be between 0 and 3.

stdprofil_afdeling    
stdprofil_eboks    

Must be one of J, N, M, P, K, j, n, m, p, or k The værdien must not be greater than 1 character.

stdprofil_beskaeftigelseskode    

The værdien must be between 0 and 99.

stdprofil_kompetencefond    
stdprofil_samarbuddannelsesfond    
stdprofil_produktionsenhedsnr   optional  

The værdien must not be greater than 10 characters.

stdprofil_loentillaeg   optional  

The værdien must be 1 digit.

stdprofilloenart   optional  
stdprofilloenart_loenart    

The værdien must be between 1 and 4 digits.

stdprofilloenart_antal    

The værdien must be between -99999.99 and 99999.99.

stdprofilloenart_brance    
stdprofilloenart_profil    

The værdien must not be greater than 7 characters.

Update a standardProfile

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminstandardprofile//quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "stdprofil_tekst": "toeuholyrgmpgiatthc",
    "stdprofil_atpkode": "1",
    "stdprofil_feriekode": 1,
    "stdprofil_shkode": 1,
    "stdprofil_ampension": 15,
    "stdprofil_ansaettelsetype": 15,
    "stdprofil_ansaettelsevilkaar": 15,
    "stdprofil_arbejderfunktion": 15,
    "stdprofil_jobstatus": 15,
    "stdprofil_afloenningsform": 15,
    "stdprofil_dabarsel": 1,
    "stdprofil_dalouddannelsesbidrag": 15,
    "stdprofil_arbejdsfunktion2": 1,
    "stdprofil_arbejdertype": 0,
    "stdprofil_afdeling": 15,
    "stdprofil_eboks": "o",
    "stdprofil_beskaeftigelseskode": 0,
    "stdprofil_kompetencefond": 15,
    "stdprofil_samarbuddannelsesfond": 15,
    "stdprofil_produktionsenhedsnr": "oeuholyr",
    "stdprofil_loentillaeg": 7,
    "stdprofilloenart": [
        "quod"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/adminstandardprofile//quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'stdprofil_tekst' => 'toeuholyrgmpgiatthc',
            'stdprofil_atpkode' => '1',
            'stdprofil_feriekode' => 1,
            'stdprofil_shkode' => 1,
            'stdprofil_ampension' => 15,
            'stdprofil_ansaettelsetype' => 15,
            'stdprofil_ansaettelsevilkaar' => 15,
            'stdprofil_arbejderfunktion' => 15,
            'stdprofil_jobstatus' => 15,
            'stdprofil_afloenningsform' => 15,
            'stdprofil_dabarsel' => 1,
            'stdprofil_dalouddannelsesbidrag' => 15,
            'stdprofil_arbejdsfunktion2' => 1,
            'stdprofil_arbejdertype' => 0,
            'stdprofil_afdeling' => 15,
            'stdprofil_eboks' => 'o',
            'stdprofil_beskaeftigelseskode' => 0,
            'stdprofil_kompetencefond' => 15,
            'stdprofil_samarbuddannelsesfond' => 15,
            'stdprofil_produktionsenhedsnr' => 'oeuholyr',
            'stdprofil_loentillaeg' => 7,
            'stdprofilloenart' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminstandardprofile//quod'
payload = {
    "stdprofil_tekst": "toeuholyrgmpgiatthc",
    "stdprofil_atpkode": "1",
    "stdprofil_feriekode": 1,
    "stdprofil_shkode": 1,
    "stdprofil_ampension": 15,
    "stdprofil_ansaettelsetype": 15,
    "stdprofil_ansaettelsevilkaar": 15,
    "stdprofil_arbejderfunktion": 15,
    "stdprofil_jobstatus": 15,
    "stdprofil_afloenningsform": 15,
    "stdprofil_dabarsel": 1,
    "stdprofil_dalouddannelsesbidrag": 15,
    "stdprofil_arbejdsfunktion2": 1,
    "stdprofil_arbejdertype": 0,
    "stdprofil_afdeling": 15,
    "stdprofil_eboks": "o",
    "stdprofil_beskaeftigelseskode": 0,
    "stdprofil_kompetencefond": 15,
    "stdprofil_samarbuddannelsesfond": 15,
    "stdprofil_produktionsenhedsnr": "oeuholyr",
    "stdprofil_loentillaeg": 7,
    "stdprofilloenart": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

PUT api/company/{companyId}/adminstandardprofile/{industryId}/{profileNumber}

URL Parameters

companyId    
industryId    
profileNumber    

Requirements

Body Parameters

stdprofil_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

stdprofil_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

stdprofil_feriekode   optional  

The værdien must be between 0 and 9.

stdprofil_shkode   optional  

The værdien must be between 0 and 9.

stdprofil_ampension   optional  
stdprofil_ansaettelsetype   optional  
stdprofil_ansaettelsevilkaar   optional  
stdprofil_arbejderfunktion   optional  
stdprofil_jobstatus   optional  
stdprofil_afloenningsform   optional  
stdprofil_dabarsel   optional  

The værdien must be between 0 and 3.

stdprofil_dalouddannelsesbidrag   optional  
stdprofil_arbejdsfunktion2   optional  

The værdien must be between 0 and 999999.

stdprofil_arbejdertype   optional  

The værdien must be between 0 and 3.

stdprofil_afdeling   optional  
stdprofil_eboks   optional  

Must be one of J, N, M, P, K, j, n, m, p, or k The værdien must not be greater than 1 character.

stdprofil_beskaeftigelseskode   optional  

The værdien must be between 0 and 99.

stdprofil_kompetencefond   optional  
stdprofil_samarbuddannelsesfond   optional  
stdprofil_produktionsenhedsnr   optional  

The værdien must not be greater than 10 characters.

stdprofil_loentillaeg   optional  

The værdien must be 1 digit.

stdprofilloenart   optional  
stdprofilloenart_loenart    

The værdien must be between 1 and 4 digits.

stdprofilloenart_antal    

The værdien must be between -99999.99 and 99999.99.

stdprofilloenart_brance    
stdprofilloenart_profil    

The værdien must not be greater than 7 characters.

Delete a standardProfile

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/adminstandardprofile//quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/adminstandardprofile//quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/adminstandardprofile//quod'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/adminstandardprofile/{industryId}/{profileNumber}

URL Parameters

companyId    
industryId    
profileNumber    

Requirements

Authenticate

Login

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/authenticate/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "login": "quod",
    "password": "U\/j;TL{`7MX9@#ee="
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/authenticate/login',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'login' => 'quod',
            'password' => 'U/j;TL{`7MX9@#ee=',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/authenticate/login'
payload = {
    "login": "quod",
    "password": "U\/j;TL{`7MX9@#ee="
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "access": {
        "superadmin": false,
        "read": true,
        "write": true,
        "archive": true,
        "salary": {
            "read": true,
            "write": true,
            "order": {
                "read": true,
                "write": true
            },
            "approve": {
                "read": true,
                "write": true
            }
        }
    },
    "user": null,
    "company": {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "firma_adresse1": "NAVNVEJ1",
        "firma_adresse2": "",
        "firma_postnr": 2000,
        "firma_by": "FREDERIKSBERG",
        "firma_telefon": "12345678",
        "firma_cvrnr": 21061883,
        "firma_regnr": 1234,
        "firma_kontonr": "12345678  ",
        "firma_statistik": 5,
        "firma_14dagsloen": 1,
        "firma_maanedsloenbagud": 1,
        "firma_maanedsloenforud": 0,
        "firma_brance": 2,
        "firma_automatisksats": 1,
        "firma_laast": 0,
        "firma_bemaerkning1": "0",
        "firma_bemaerkning2": "0",
        "firma_bemaerkning3": "0",
        "firma_overfoert": 0,
        "firma_logonlocked": "0",
        "firma_logoncount": 0,
        "firma_logontime": "20170904095226",
        "firma_logonip": "194.239.23.202",
        "firma_dabarsel": "1",
        "firma_email": "[email protected]",
        "firma_testkoersel": "1",
        "firma_spaerret": "0",
        "firma_accessInternet": "1",
        "firma_accessPAS": "1",
        "firma_fravaersstatistik": "1",
        "firma_papir": "0",
        "firma_visloentransafdnr": "1",
        "firma_manuelskattekort": 0,
        "firma_loentranspaaslettetarbejder": 0,
        "firma_personligesatser": 0,
        "firma_changed": 0,
        "firma_changedoverfoert": 0,
        "firma_dalouddannelsesbidrag": 1,
        "firma_projektnr": "0",
        "firma_projektkartotek": "0",
        "firma_loenartsrelation": "1",
        "firma_sundhedsordning": "0",
        "firma_mokode": 0,
        "firma_skattebetaling": 2,
        "firma_loesarbejder": 0,
        "firma_sidsteloenkoersel": 0,
        "firma_manspaerdato": null,
        "firma_mailkode": "Svend",
        "firma_godkendantal": 0,
        "firma_manglergodkendelse": 0,
        "firma_anvenderkompetencefonde": 1,
        "firma_demofirma": 0,
        "firma_shopgoerelse": "SH OPTRÆDER SOM FERIEFRI OG OVERFØRES TIL FERIEORDNING HVERT KVARTAL",
        "firma_loentranstekst": 0,
        "firma_jatilalleansatte": 0,
        "firma_kontoplanversion": 3,
        "firma_ebokserhverv": 0,
        "firma_alleloensedlerieboks": 0,
        "firma_visloenartkode": 0,
        "firma_sympa": 0,
        "firma_ktbilagarbejder": 0,
        "firma_loensum": 0
    },
    "require_code": false
}
 

Example response (200):


{
    "access": {
        "superadmin": false,
        "read": true,
        "write": true,
        "archive": true,
        "salary": {
            "read": true,
            "write": true,
            "order": {
                "read": true,
                "write": true
            },
            "approve": {
                "read": true,
                "write": true
            }
        }
    },
    "user": {
        "bruger_firma": 123,
        "bruger_brugernavn": "123-user",
        "bruger_navn": "en bruger",
        "bruger_email": "[email protected]",
        "bruger_mobil": "11223344",
        "bruger_emailbekraeftet": true,
        "bruger_supportkode": "supportkode",
        "bruger_oprettet": "2022-01-12T00:00:00+02:00",
        "bruger_opdateret": "2006-01-12T00:00:00+02:00",
        "verification_pending": 0
    },
    "company": {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "firma_adresse1": "NAVNVEJ1",
        "firma_adresse2": "",
        "firma_postnr": 2000,
        "firma_by": "FREDERIKSBERG",
        "firma_telefon": "12345678",
        "firma_cvrnr": 21061883,
        "firma_regnr": 1234,
        "firma_kontonr": "12345678  ",
        "firma_statistik": 5,
        "firma_14dagsloen": 1,
        "firma_maanedsloenbagud": 1,
        "firma_maanedsloenforud": 0,
        "firma_brance": 2,
        "firma_automatisksats": 1,
        "firma_laast": 0,
        "firma_bemaerkning1": "0",
        "firma_bemaerkning2": "0",
        "firma_bemaerkning3": "0",
        "firma_overfoert": 0,
        "firma_logonlocked": "0",
        "firma_logoncount": 0,
        "firma_logontime": "20170904095226",
        "firma_logonip": "194.239.23.202",
        "firma_dabarsel": "1",
        "firma_email": "[email protected]",
        "firma_testkoersel": "1",
        "firma_spaerret": "0",
        "firma_accessInternet": "1",
        "firma_accessPAS": "1",
        "firma_fravaersstatistik": "1",
        "firma_papir": "0",
        "firma_visloentransafdnr": "1",
        "firma_manuelskattekort": 0,
        "firma_loentranspaaslettetarbejder": 0,
        "firma_personligesatser": 0,
        "firma_changed": 0,
        "firma_changedoverfoert": 0,
        "firma_dalouddannelsesbidrag": 1,
        "firma_projektnr": "0",
        "firma_projektkartotek": "0",
        "firma_loenartsrelation": "1",
        "firma_sundhedsordning": "0",
        "firma_mokode": 0,
        "firma_skattebetaling": 2,
        "firma_loesarbejder": 0,
        "firma_sidsteloenkoersel": 0,
        "firma_manspaerdato": null,
        "firma_mailkode": "Svend",
        "firma_godkendantal": 0,
        "firma_manglergodkendelse": 0,
        "firma_anvenderkompetencefonde": 1,
        "firma_demofirma": 0,
        "firma_shopgoerelse": "SH OPTRÆDER SOM FERIEFRI OG OVERFØRES TIL FERIEORDNING HVERT KVARTAL",
        "firma_loentranstekst": 0,
        "firma_jatilalleansatte": 0,
        "firma_kontoplanversion": 3,
        "firma_ebokserhverv": 0,
        "firma_alleloensedlerieboks": 0,
        "firma_visloenartkode": 0,
        "firma_sympa": 0,
        "firma_annulleringtilladt": 0,
        "firma_ktbilagarbejder": 0,
        "force_change_password": false,
        "firma_loensum": 0
    },
    "require_code": false
}
 

POST api/authenticate/login

Body Parameters

login    
password    

Logout

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/authenticate/logout"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/authenticate/logout',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/authenticate/logout'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/authenticate/logout

Reset password

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/authenticate/resetpassword"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "login": "quod"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/authenticate/resetpassword',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'login' => 'quod',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/authenticate/resetpassword'
payload = {
    "login": "quod"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/authenticate/resetpassword

Body Parameters

login    

Change password with token

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/authenticate/token/changepassword"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "login": "quod",
    "token": "oeuholyrgmpgiatthcupxqjdgzelwuuf",
    "password": "BLWDWQ7[[email protected]"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/authenticate/token/changepassword',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'login' => 'quod',
            'token' => 'oeuholyrgmpgiatthcupxqjdgzelwuuf',
            'password' => 'BLWDWQ7[[email protected]',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/authenticate/token/changepassword'
payload = {
    "login": "quod",
    "token": "oeuholyrgmpgiatthcupxqjdgzelwuuf",
    "password": "BLWDWQ7[[email protected]"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/authenticate/token/changepassword

Body Parameters

login    
token    

The værdien must be 32 characters.

password    

The værdien must contain characters from 2 of the groups: Letters, Numbers and Symbols ( ,
+ - ' / % ( ) : @ _ & ? = ) The værdien must be at least 8 characters.

Change password and support code with token

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/authenticate/token/create"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "login": "quod",
    "token": "quod",
    "password": "\/j;TL{`7MX9@#e",
    "supportCode": "thcupxqjdgzelwu"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/authenticate/token/create',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'login' => 'quod',
            'token' => 'quod',
            'password' => '/j;TL{`7MX9@#e',
            'supportCode' => 'thcupxqjdgzelwu',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/authenticate/token/create'
payload = {
    "login": "quod",
    "token": "quod",
    "password": "\/j;TL{`7MX9@#e",
    "supportCode": "thcupxqjdgzelwu"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/authenticate/token/create

Body Parameters

login    
token    
password    

The værdien must contain characters from 2 of the groups: Letters, Numbers and Symbols ( ,
+ - ' / % ( ) : @ _ & ? = ) The værdien must be at least 8 characters.

supportCode    

The værdien must be at least 8 characters
The værdien must not be greater than 20 characters.

Access rights

Get access for the current logged in company or user

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/access"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/access',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/access'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "superadmin": false,
    "read": true,
    "write": true,
    "archive": true,
    "salary": {
        "read": true,
        "write": true,
        "order": {
            "read": true,
            "write": true
        },
        "approve": {
            "read": true,
            "write": true
        }
    }
}
 

GET api/company/{companyId}/access

URL Parameters

companyId    

Requirements

Average salary (gennemsnitsløn)

get a list of employee average salaries.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/averagesalary"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/averagesalary',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/averagesalary'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/employee/{employeeId}/averagesalary

URL Parameters

companyId    
employeeId    

Requirements

Get a single employee average salary.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/averagesalary/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/averagesalary/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/averagesalary/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/employee/{employeeId}/averagesalary/{averageSalaryId}

URL Parameters

companyId    
employeeId    
averageSalaryId    

Requirements

get a list of employee average salaries for company.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/averagesalary"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/averagesalary',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/averagesalary'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/averagesalary

URL Parameters

companyId    

Requirements

Character Converter

Get character conventions list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/convertingtable"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/convertingtable',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/convertingtable'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "tegnkonvertering_id": 1,
        "tegnkonvertering_fra": "ö",
        "tegnkonvertering_til": "ø"
    }
]
 

GET api/company/{companyId}/convertingtable

URL Parameters

companyId    

Requirements

Company (Firma)

Get company list

If the company is 500 then pagingSize (integer) is required

The following parameters can be used to narrow the search

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "fromCompanyId": 67,
    "salaryOrdered": false,
    "locked": true,
    "blocked": true,
    "manuallyBlocked": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'fromCompanyId' => 67,
            'salaryOrdered' => false,
            'locked' => true,
            'blocked' => true,
            'manuallyBlocked' => false,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company'
payload = {
    "fromCompanyId": 67,
    "salaryOrdered": false,
    "locked": true,
    "blocked": true,
    "manuallyBlocked": false
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "company": {
            "firma_nr": 123,
            "firma_navn": "FIRMA NAVN",
            "firma_adresse1": "NAVNVEJ1",
            "firma_adresse2": "",
            "firma_postnr": 2000,
            "firma_by": "FREDERIKSBERG",
            "firma_telefon": "12345678",
            "firma_cvrnr": 21061883,
            "firma_regnr": 1234,
            "firma_kontonr": "12345678  ",
            "firma_statistik": 5,
            "firma_14dagsloen": 1,
            "firma_maanedsloenbagud": 1,
            "firma_maanedsloenforud": 0,
            "firma_brance": 2,
            "firma_automatisksats": 1,
            "firma_laast": 0,
            "firma_bemaerkning1": "0",
            "firma_bemaerkning2": "0",
            "firma_bemaerkning3": "0",
            "firma_overfoert": 0,
            "firma_logonlocked": "0",
            "firma_logoncount": 0,
            "firma_logontime": "20170904095226",
            "firma_logonip": "194.239.23.202",
            "firma_dabarsel": "1",
            "firma_email": "[email protected]",
            "firma_testkoersel": "1",
            "firma_spaerret": "0",
            "firma_accessInternet": "1",
            "firma_accessPAS": "1",
            "firma_fravaersstatistik": "1",
            "firma_papir": "0",
            "firma_visloentransafdnr": "1",
            "firma_manuelskattekort": 0,
            "firma_loentranspaaslettetarbejder": 0,
            "firma_personligesatser": 0,
            "firma_changed": 0,
            "firma_changedoverfoert": 0,
            "firma_dalouddannelsesbidrag": 1,
            "firma_projektnr": "0",
            "firma_projektkartotek": "0",
            "firma_loenartsrelation": "1",
            "firma_sundhedsordning": "0",
            "firma_mokode": 0,
            "firma_skattebetaling": 2,
            "firma_loesarbejder": 0,
            "firma_sidsteloenkoersel": 0,
            "firma_manspaerdato": null,
            "firma_mailkode": "Svend",
            "firma_godkendantal": 0,
            "firma_manglergodkendelse": 0,
            "firma_anvenderkompetencefonde": 1,
            "firma_demofirma": 0,
            "firma_shopgoerelse": "SH OPTRÆDER SOM FERIEFRI OG OVERFØRES TIL FERIEORDNING HVERT KVARTAL",
            "firma_loentranstekst": 0,
            "firma_jatilalleansatte": 0,
            "firma_kontoplanversion": 3,
            "firma_ebokserhverv": 0,
            "firma_alleloensedlerieboks": 0,
            "firma_visloenartkode": 0,
            "firma_sympa": 0,
            "firma_leveringsnavn": "Leveringsnavn",
            "firma_leveringsadresse1": "Adresse1",
            "firma_leveringsadresse2": "Adresse2",
            "firma_leveringspostnr": 8920,
            "firma_leveringsby": "Randers SØ",
            "firma_proarkiv_ingenautosoeg": 0,
            "firma_feriekode": 0,
            "firma_ktbilagarbejder": 0,
            "firma_groenlandskskat": 0,
            "firma_ferieregnskab": 3,
            "firma_kontrolsum": 2,
            "firma_arbejderkompaktvisning": 0,
            "firma_notifikation": 0,
            "firma_firmalogin_tilladt": "1",
            "firma_annulleringtilladt": 0,
            "firma_feriefri": 1,
            "firma_loensum": 0,
            "frist1": "2022-02-15",
            "frist2": "2022-02-22",
            "frist3": 0,
            "minFrist": "2022-02-15",
            "firmapension": true,
            "brance_navn": "DIVERSE / STANDARD",
            "brance_feriekode": 0,
            "brance_personalegruppe": 0,
            "brance_profil": 0,
            "brance_haandboglink": "",
            "firma_profile": false,
            "firma_skattebetaling_tekst": "Fremrykket skat",
            "firma_statistik_tekst": "DA - KONJUNKTUR + STRUKTUR",
            "arbejdertype_bestiltdato": "2017-09-29",
            "arbejdertype_bestiltkl": 1144,
            "arbejdertype_testkoersel": false,
            "ordered": {
                "first": "2018-01-11",
                "last": "2022-02-03"
            }
        },
        "access": {
            "superadmin": false,
            "read": true,
            "write": true,
            "archive": true,
            "salary": {
                "read": true,
                "write": true,
                "order": {
                    "read": true,
                    "write": true,
                    "cancel": true
                },
                "approve": {
                    "read": true,
                    "write": true
                }
            }
        }
    }
]
 

GET api/company

Requirements

Body Parameters

fromCompanyId   optional  

The værdien must be at least 1.

salaryOrdered   optional  
locked   optional  
blocked   optional  
manuallyBlocked   optional  

Get Single company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "company": {
        "firma_nr": 123,
        "firma_navn": "FIRMA NAVN",
        "firma_adresse1": "NAVNVEJ1",
        "firma_adresse2": "",
        "firma_postnr": 2000,
        "firma_by": "FREDERIKSBERG",
        "firma_telefon": "12345678",
        "firma_cvrnr": 21061883,
        "firma_regnr": 1234,
        "firma_kontonr": "12345678  ",
        "firma_statistik": 5,
        "firma_14dagsloen": 1,
        "firma_maanedsloenbagud": 1,
        "firma_maanedsloenforud": 0,
        "firma_brance": 2,
        "firma_automatisksats": 1,
        "firma_laast": 0,
        "firma_bemaerkning1": "0",
        "firma_bemaerkning2": "0",
        "firma_bemaerkning3": "0",
        "firma_overfoert": 0,
        "firma_logonlocked": "0",
        "firma_logoncount": 0,
        "firma_logontime": "20170904095226",
        "firma_logonip": "194.239.23.202",
        "firma_dabarsel": "1",
        "firma_email": "[email protected]",
        "firma_testkoersel": "1",
        "firma_spaerret": "0",
        "firma_accessInternet": "1",
        "firma_accessPAS": "1",
        "firma_fravaersstatistik": "1",
        "firma_papir": "0",
        "firma_visloentransafdnr": "1",
        "firma_manuelskattekort": 0,
        "firma_loentranspaaslettetarbejder": 0,
        "firma_personligesatser": 0,
        "firma_changed": 0,
        "firma_changedoverfoert": 0,
        "firma_dalouddannelsesbidrag": 1,
        "firma_projektnr": "0",
        "firma_projektkartotek": "0",
        "firma_loenartsrelation": "1",
        "firma_sundhedsordning": "0",
        "firma_mokode": 0,
        "firma_skattebetaling": 2,
        "firma_loesarbejder": 0,
        "firma_sidsteloenkoersel": 0,
        "firma_manspaerdato": null,
        "firma_mailkode": "Svend",
        "firma_godkendantal": 0,
        "firma_manglergodkendelse": 0,
        "firma_anvenderkompetencefonde": 1,
        "firma_demofirma": 0,
        "firma_shopgoerelse": "SH OPTRÆDER SOM FERIEFRI OG OVERFØRES TIL FERIEORDNING HVERT KVARTAL",
        "firma_loentranstekst": 0,
        "firma_jatilalleansatte": 0,
        "firma_kontoplanversion": 3,
        "firma_ebokserhverv": 0,
        "firma_alleloensedlerieboks": 0,
        "firma_visloenartkode": 0,
        "firma_sympa": 0,
        "firma_leveringsnavn": "Leveringsnavn",
        "firma_leveringsadresse1": "Adresse1",
        "firma_leveringsadresse2": "Adresse2",
        "firma_leveringspostnr": 8920,
        "firma_leveringsby": "Randers SØ",
        "firma_proarkiv_ingenautosoeg": 0,
        "firma_feriekode": 0,
        "firma_ktbilagarbejder": 0,
        "firma_groenlandskskat": 0,
        "firma_ferieregnskab": 3,
        "firma_kontrolsum": 2,
        "firma_arbejderkompaktvisning": 0,
        "firma_notifikation": 0,
        "firma_firmalogin_tilladt": "1",
        "firma_feriefri": 1,
        "firma_loensum": 0,
        "frist1": "2022-02-15",
        "frist2": "2022-02-22",
        "frist3": 0,
        "minFrist": "2022-02-15",
        "firmapension": true,
        "brance_navn": "DIVERSE / STANDARD",
        "brance_feriekode": 0,
        "brance_personalegruppe": 0,
        "brance_profil": 0,
        "brance_haandboglink": "",
        "firma_profile": false,
        "firma_skattebetaling_tekst": "Fremrykket skat",
        "firma_statistik_tekst": "DA - KONJUNKTUR + STRUKTUR",
        "arbejdertype_bestiltdato": "2017-09-29",
        "arbejdertype_bestiltkl": 1144,
        "arbejdertype_testkoersel": false,
        "ordered": {
            "first": "2018-01-11",
            "last": "2022-02-03"
        }
    },
    "useraccessrights": {
        "superadmin": false,
        "read": true,
        "write": true,
        "archive": true,
        "salary": {
            "read": true,
            "write": true,
            "order": {
                "read": true,
                "write": true,
                "cancel": true
            },
            "approve": {
                "read": true,
                "write": true
            }
        }
    },
    "matrix": [
        {
            "firmamatrix_firma_nr": 123,
            "firmamatrix_matrix_feltnr": 1,
            "field_description": {
                "matrix_feltbeskrivelse": "MedarbejderNr",
                "matrix_isdecimal": 1,
                "matrix_feltsql": "arbejder_nr",
                "matrix_deaktiveret": 0,
                "matrix_eksempel": "1234"
            }
        }
    ]
}
 

GET api/company/{companyId}

URL Parameters

companyId    

Requirements

Update company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firma_navn": "t",
    "firma_adresse1": "o",
    "firma_adresse2": "e",
    "firma_postnr": 1,
    "firma_by": "h",
    "firma_telefon": "o",
    "firma_dabarsel": "l",
    "firma_email": "[email protected]",
    "firma_mailkode": "pgiatthcupxqjdg",
    "firma_kontoplanversion": 1,
    "firma_ebokserhverv": 1,
    "firma_alleloensedlerieboks": 2,
    "firma_leveringsnavn": "l",
    "firma_leveringsadresse1": "w",
    "firma_leveringsadresse2": "u",
    "firma_leveringspostnr": 1,
    "firma_leveringsby": "f",
    "firma_manspaerdato": 20211312112200,
    "firma_feriekode": "1",
    "firma_kontrolsum": 15
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firma_navn' => 't',
            'firma_adresse1' => 'o',
            'firma_adresse2' => 'e',
            'firma_postnr' => 1,
            'firma_by' => 'h',
            'firma_telefon' => 'o',
            'firma_dabarsel' => 'l',
            'firma_email' => '[email protected]',
            'firma_mailkode' => 'pgiatthcupxqjdg',
            'firma_kontoplanversion' => 1,
            'firma_ebokserhverv' => 1,
            'firma_alleloensedlerieboks' => 2,
            'firma_leveringsnavn' => 'l',
            'firma_leveringsadresse1' => 'w',
            'firma_leveringsadresse2' => 'u',
            'firma_leveringspostnr' => 1,
            'firma_leveringsby' => 'f',
            'firma_manspaerdato' => 20211312112200.0,
            'firma_feriekode' => '1',
            'firma_kontrolsum' => 15,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7'
payload = {
    "firma_navn": "t",
    "firma_adresse1": "o",
    "firma_adresse2": "e",
    "firma_postnr": 1,
    "firma_by": "h",
    "firma_telefon": "o",
    "firma_dabarsel": "l",
    "firma_email": "[email protected]",
    "firma_mailkode": "pgiatthcupxqjdg",
    "firma_kontoplanversion": 1,
    "firma_ebokserhverv": 1,
    "firma_alleloensedlerieboks": 2,
    "firma_leveringsnavn": "l",
    "firma_leveringsadresse1": "w",
    "firma_leveringsadresse2": "u",
    "firma_leveringspostnr": 1,
    "firma_leveringsby": "f",
    "firma_manspaerdato": 20211312112200,
    "firma_feriekode": "1",
    "firma_kontrolsum": 15
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}

URL Parameters

companyId    

Requirements

Body Parameters

firma_navn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_postnr   optional  

The værdien must be between 0 and 9999.

firma_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_telefon   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_dabarsel   optional  

The værdien must be between 0 and 1 character.

firma_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 70 characters.

firma_mailkode   optional  

The værdien must contain characters from 2 of the groups: Letters, Numbers and Symbols ( ,
+ - ' / % ( ) : @ _ & ? = ) The værdien must not be greater than 20 characters.

firma_kontoplanversion   optional  

The værdien must be between 0 and 99.

firma_ebokserhverv   optional  

Is used for digital mail and not only for e-Boks

firma_alleloensedlerieboks   optional  

Is used for digital mail and not only for e-Boks

firma_leveringsnavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_leveringsadresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_leveringsadresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_leveringspostnr   optional  

The værdien must be between 0 and 9999.

firma_leveringsby   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must be between 0 and 30 characters.

firma_manspaerdato   optional  
firma_feriekode   optional  

Must be one of 0 or 1.

firma_kontrolsum   optional  

Reset MO code (Super admin only)

Sets the MO code to zero on company and all employees

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/mocode/reset"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/mocode/reset',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/mocode/reset'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers)
response.json()

PATCH api/company/{companyId}/mocode/reset

URL Parameters

companyId    

Requirements

Company matrix version (Firma matrix version)

Get company matrix version list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/companymatrixversion"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/companymatrixversion',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/companymatrixversion'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firmamatrixversion_firma_nr": 1234,
        "firmamatrixversion_nr": 1,
        "firmamatrixversion_navn": "standard",
        "firmamatrixversion_aktiv": true,
        "firmamatrix_matrix": [
            {
                "matrix_feltnr": "1",
                "matrix_feltbeskrivelse": "medarbejder nummer",
                "matrix_eksempel": "123",
                "arbejder_felt": "arbejder_nr",
                "matrix_kraevet": true
            },
            {
                "matrix_feltnr": 27,
                "matrix_feltbeskrivelse": "SHKode",
                "matrix_eksempel": "0",
                "arbejder_felt": "arbejder_shkode",
                "matrix_kraevet": false
            }
        ]
    },
    {
        "firmamatrixversion_firma_nr": 1234,
        "firmamatrixversion_nr": 5,
        "firmamatrixversion_navn": "standard2",
        "firmamatrixversion_aktiv": false,
        "firmamatrix_matrix": [
            {
                "matrix_feltnr": "1",
                "matrix_feltbeskrivelse": "medarbejder nummer",
                "matrix_eksempel": "123",
                "arbejder_felt": "arbejder_nr",
                "matrix_kraevet": true
            }
        ]
    }
]
 

GET api/company/{companyId}/companymatrixversion

URL Parameters

companyId    

Requirements

get single company matrix version.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/companymatrixversion/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/companymatrixversion/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/companymatrixversion/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "firmamatrixversion_firma_nr": 1234,
    "firmamatrixversion_nr": 1,
    "firmamatrixversion_navn": "standard",
    "firmamatrixversion_aktiv": true,
    "firmamatrix_matrix": [
        {
            "matrix_feltnr": "1",
            "matrix_feltbeskrivelse": "medarbejder nummer",
            "matrix_eksempel": "123",
            "arbejder_felt": "arbejder_nr",
            "matrix_kraevet": true
        },
        {
            "matrix_feltnr": 27,
            "matrix_feltbeskrivelse": "SHKode",
            "matrix_eksempel": "0",
            "arbejder_felt": "arbejder_shkode",
            "matrix_kraevet": false
        }
    ]
}
 

GET api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}

URL Parameters

companyId    
companyMatrixVersionId    

Requirements

Crate company matrix version.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/companymatrixversion"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmamatrixversion_aktiv": false,
    "firmamatrixversion_navn": "oeuholyrgmpgiatthcu",
    "firmamatrix_matrix": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/companymatrixversion',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmamatrixversion_aktiv' => false,
            'firmamatrixversion_navn' => 'oeuholyrgmpgiatthcu',
            'firmamatrix_matrix' => [
                15,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/companymatrixversion'
payload = {
    "firmamatrixversion_aktiv": false,
    "firmamatrixversion_navn": "oeuholyrgmpgiatthcu",
    "firmamatrix_matrix": [
        15
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "firmamatrixversion_firma_nr": 1234,
    "firmamatrixversion_nr": 1,
    "firmamatrixversion_navn": " standard",
    "firmamatrixversion_aktiv": true,
    "firmamatrix_matrix": [
        {
            "matrix_feltnr": "1",
            "matrix_feltbeskrivelse": "medarbejder nummer",
            "matrix_eksempel": "123",
            "arbejder_felt": "arbejder_nr",
            "matrix_kraevet": true
        },
        {
            "matrix_feltnr": 27,
            "matrix_feltbeskrivelse": "SHKode",
            "matrix_eksempel": "0",
            "arbejder_felt": "arbejder_shkode",
            "matrix_kraevet": false
        }
    ]
}
 

POST api/company/{companyId}/companymatrixversion

URL Parameters

companyId    

Requirements

Body Parameters

firmamatrixversion_aktiv    
firmamatrixversion_navn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 50 characters.

firmamatrix_matrix   optional  

Update single company matrix version.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/companymatrixversion/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmamatrixversion_aktiv": false,
    "firmamatrixversion_navn": "=rAGsHEhM.",
    "firmamatrix_matrix": [
        15
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/companymatrixversion/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmamatrixversion_aktiv' => false,
            'firmamatrixversion_navn' => '=rAGsHEhM.',
            'firmamatrix_matrix' => [
                15,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/companymatrixversion/7'
payload = {
    "firmamatrixversion_aktiv": false,
    "firmamatrixversion_navn": "=rAGsHEhM.",
    "firmamatrix_matrix": [
        15
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}

URL Parameters

companyId    
companyMatrixVersionId    

Requirements

Body Parameters

firmamatrixversion_aktiv   optional  
firmamatrixversion_navn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space.

firmamatrix_matrix   optional  

delete a single company matrix version.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/companymatrixversion/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/companymatrixversion/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/companymatrixversion/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}

URL Parameters

companyId    
companyMatrixVersionId    

Requirements

Deadline (Terminer)

Current deadlines

Get the list of all deadlines for a given company ID

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salary/deadlines"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salary/deadlines',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salary/deadlines'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loentermin_firma": 123,
        "loentermin_arbejdertype": 1,
        "loentermin_loenperiode": "201741",
        "loentermin_periodetekst": "2017092520171008",
        "loentermin_dispdato": "2017-10-12",
        "loentermin_eskattekortdato": "2017-10-12",
        "afldato": "2017-10-10",
        "NormalDispDato": "2017-10-12",
        "NormalAfleveresDato": "2017-10-08",
        "NormalAfleveresKl": 2330
    }
]
 

GET api/company/{companyId}/salary/deadlines

URL Parameters

companyId    

Requirements

Next deadline

Get the next deadline for a given company ID and employee type ID

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salary/employeetype/8/deadline"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salary/employeetype/8/deadline',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salary/employeetype/8/deadline'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "NormalDispDato": "2017-10-31",
    "NormalAfleveresDato": "2017-10-25",
    "NormalAfleveresKl": 2330,
    "TidligstNormalDispDato": "2017-10-09",
    "TidligstNormalDage": 4,
    "TidligstNormalKl": 2330,
    "KortfristDispDato": "2017-10-31",
    "KortfristAfleveresDato": "2017-10-29",
    "KortfristAfleveresKl": 1930,
    "KortfristGebyr": 110,
    "TidligstKortfristDispDato": "2017-10-05",
    "TidligstKortfristDage": 2,
    "TidligstKortfristKl": 1930
}
 

GET api/company/{companyId}/salary/employeetype/{employeeTypeId}/deadline

URL Parameters

companyId    
employeeTypeId    

Requirements

Department (Afdelinger)

Get department List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/department"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/department',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/department'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "afdeling_firma": 123,
        "afdeling_nr": 1,
        "afdeling_navn": "AFDELING"
    }
]
 

GET api/company/{companyId}/department

URL Parameters

companyId    

Requirements

Get single department

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/department/8"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/department/8',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/department/8'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "afdeling_firma": 123,
    "afdeling_nr": 1,
    "afdeling_navn": "AFDELING"
}
 

GET api/company/{companyId}/department/{departmentId}

URL Parameters

companyId    
departmentId    

Requirements

Create department

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/department"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "afdeling_nr": 2,
    "afdeling_navn": "oeuholyr"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/department',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'afdeling_nr' => 2,
            'afdeling_navn' => 'oeuholyr',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/department'
payload = {
    "afdeling_nr": 2,
    "afdeling_navn": "oeuholyr"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "afdeling_firma": 123,
    "afdeling_nr": 1,
    "afdeling_navn": "AFDELING"
}
 

POST api/company/{companyId}/department

URL Parameters

companyId    

Requirements

Body Parameters

afdeling_nr    

The værdien must be between 1 and 99999.

afdeling_navn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

Update department

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/department/8"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "afdeling_nr": 2,
    "afdeling_navn": "oeuholyr"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/department/8',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'afdeling_nr' => 2,
            'afdeling_navn' => 'oeuholyr',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/department/8'
payload = {
    "afdeling_nr": 2,
    "afdeling_navn": "oeuholyr"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/department/{departmentId}

URL Parameters

companyId    
departmentId    

Requirements

Body Parameters

afdeling_nr   optional  

The værdien must be between 1 and 99999.

afdeling_navn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

Delete department

To delete a department, there must be no reference between the department and any user or profile

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/department/8"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/department/8',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/department/8'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/department/{departmentId}

URL Parameters

companyId    
departmentId    

Requirements

Document description

Return list of document descriptions

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentdescription"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/documentdescription',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentdescription'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "dokukode_nr": 8651,
        "dokukode_tekst": "Bruges hvis medarbejderen skal have udbetalt feriefri fra sh-saldoen."
    }
]
 

GET api/company/{companyId}/documentdescription

URL Parameters

companyId    

Requirements

Return single document description

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentdescription/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/documentdescription/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentdescription/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "dokukode_nr": 8651,
    "dokukode_tekst": "Bruges hvis medarbejderen skal have udbetalt feriefri fra sh-saldoen."
}
 

GET api/company/{companyId}/documentdescription/{documentDescriptionId}

URL Parameters

companyId    
documentDescriptionId    

Requirements

Store a document description

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentdescription"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "dokukode_nr": 2,
    "dokukode_tekst": "oeuholyrgmpgiatthcu"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/documentdescription',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'dokukode_nr' => 2,
            'dokukode_tekst' => 'oeuholyrgmpgiatthcu',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentdescription'
payload = {
    "dokukode_nr": 2,
    "dokukode_tekst": "oeuholyrgmpgiatthcu"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "dokukode_nr": 1,
    "dokukode_tekst": "tekst 1"
}
 

POST api/company/{companyId}/documentdescription

URL Parameters

companyId    

Requirements

Body Parameters

dokukode_nr    

The værdien must be between 1 and 99999.

dokukode_tekst    

The værdien must not be greater than 2000 characters.

Update document description

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentdescription/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "dokukode_tekst": "toeuholyrgmpgiatthc"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/documentdescription/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'dokukode_tekst' => 'toeuholyrgmpgiatthc',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentdescription/7'
payload = {
    "dokukode_tekst": "toeuholyrgmpgiatthc"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/documentdescription/{documentDescriptionId}

URL Parameters

companyId    
documentDescriptionId    

Requirements

Body Parameters

dokukode_tekst    

The værdien must not be greater than 2000 characters.

Delete document description

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentdescription/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/documentdescription/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentdescription/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/documentdescription/{documentDescriptionId}

URL Parameters

companyId    
documentDescriptionId    

Requirements

Document folder

Get document list (Company)

Returns a list of all documents uploaded by company or users belonging to company, where documents is not marked as private

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentfolder"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/documentfolder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentfolder'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "dokumentmappe_id": 123,
        "dokumentmappe_original_navn": "loentransaktioner.csv",
        "dokumentmappe_bytes": 123456,
        "dokumentmappe_type": "cvs",
        "dokumentmappe_mime_type": "text/csv",
        "dokumentmappe_uploadet_af": 123,
        "dokumentmappe_firma_nr": 123,
        "dokumentmappe_beskyttet": true,
        "dokumentmappe_privat": false,
        "dokumentmappe_oprettet": "2018-06-01 12:34:56"
    }
]
 

GET api/company/{companyId}/documentfolder

URL Parameters

companyId    

Requirements

Get document (Company)

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentfolder/document/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/documentfolder/document/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentfolder/document/82'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/documentfolder/document/{documentId}

URL Parameters

companyId    
documentId    

Requirements

Store document company

Note, documents uploaded by Company is never private.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentfolder"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

const body = new FormData();
body.append('beskyttet', '');
body.append('dokument', document.querySelector('input[name="dokument"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/documentfolder',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'multipart' => [
            [
                'name' => 'beskyttet',
                'contents' => ''
            ],
            [
                'name' => 'dokument',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php8CAB.tmp', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentfolder'
files = {
  'dokument': open('C:\Users\Administrator\AppData\Local\Temp\php8CAB.tmp', 'rb')
}
payload = {
    "beskyttet": false
}
headers = {
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, files=files, data=payload)
response.json()

Example response (200):


{
    "dokumentmappe_id": 123,
    "dokumentmappe_original_navn": "loentransaktioner.csv",
    "dokumentmappe_bytes": 123456,
    "dokumentmappe_type": "cvs",
    "dokumentmappe_mime_type": "text/csv",
    "dokumentmappe_uploadet_af": 123,
    "dokumentmappe_firma_nr": 123,
    "dokumentmappe_beskyttet": false,
    "dokumentmappe_privat": false,
    "dokumentmappe_oprettet": "2018-06-01 12:34:56"
}
 

POST api/company/{companyId}/documentfolder

URL Parameters

companyId    

Requirements

Body Parameters

dokument    

Must be a file.

beskyttet   optional  

Update document settings (Company)

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentfolder/document/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "beskyttet": false,
    "privat": false
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/documentfolder/document/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'beskyttet' => false,
            'privat' => false,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentfolder/document/82'
payload = {
    "beskyttet": false,
    "privat": false
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/documentfolder/document/{documentId}

URL Parameters

companyId    
documentId    

Requirements

Body Parameters

beskyttet   optional  
privat   optional  

Delete document (Company)

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/documentfolder/document/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/documentfolder/document/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/documentfolder/document/82'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/documentfolder/document/{documentId}

URL Parameters

companyId    
documentId    

Requirements

Get document list (User)

Returns a list of all documents uploaded by userId and marked as private

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "dokumentmappe_id": 123,
        "dokumentmappe_original_navn": "loentransaktioner.csv",
        "dokumentmappe_bytes": 123456,
        "dokumentmappe_type": "cvs",
        "dokumentmappe_mime_type": "text/csv",
        "dokumentmappe_uploadet_af": "123-xyz",
        "dokumentmappe_firma_nr": 123,
        "dokumentmappe_beskyttet": false,
        "dokumentmappe_privat": true,
        "dokumentmappe_oprettet": "2018-06-01 12:34:56"
    }
]
 

GET api/user/{userId}/documentfolder

URL Parameters

userId    

Requirements

Get document (User)

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/user/{userId}/documentfolder/document/{documentId}

URL Parameters

userId    
documentId    

Requirements

Store document (User)

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

const body = new FormData();
body.append('privat', '');
body.append('beskyttet', '');
body.append('dokument', document.querySelector('input[name="dokument"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    '',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'multipart' => [
            [
                'name' => 'privat',
                'contents' => ''
            ],
            [
                'name' => 'beskyttet',
                'contents' => ''
            ],
            [
                'name' => 'dokument',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php8CAC.tmp', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
files = {
  'dokument': open('C:\Users\Administrator\AppData\Local\Temp\php8CAC.tmp', 'rb')
}
payload = {
    "privat": false,
    "beskyttet": false
}
headers = {
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, files=files, data=payload)
response.json()

Example response (200):


{
    "dokumentmappe_id": 123,
    "dokumentmappe_original_navn": "loentransaktioner.csv",
    "dokumentmappe_bytes": 123456,
    "dokumentmappe_type": "cvs",
    "dokumentmappe_mime_type": "text/csv",
    "dokumentmappe_beskyttet": true,
    "dokumentmappe_oprettet": "2018-06-01 12:34:56"
}
 

POST api/user/{userId}/documentfolder

URL Parameters

userId    

Requirements

Body Parameters

dokument    

Must be a file.

privat    
beskyttet   optional  

Update document settings (User)

Note, if private is not given as input, then private is by default set to true

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "beskyttet": false,
    "privat": false
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'beskyttet' => false,
            'privat' => false,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "beskyttet": false,
    "privat": false
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/user/{userId}/documentfolder/document/{documentId}

URL Parameters

userId    
documentId    

Requirements

Body Parameters

beskyttet   optional  
privat   optional  

Delete document (User)

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/user/{userId}/documentfolder/document/{documentId}

URL Parameters

userId    
documentId    

Requirements

E TaxCard (eSkattekort)

Get eTaxCard list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/etaxcard"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/etaxcard',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/etaxcard'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "eskattekort_firma": 123,
        "eskattekort_arbejder": 1234,
        "eskattekort_linjenr": 1,
        "eskattekort_skatteaar": 2010,
        "eskattekort_gyldigdato": 20170101,
        "eskattekort_modtagetdato": 20161023,
        "eskattekort_fradragprdag": 222,
        "eskattekort_fradragperioden": 1234,
        "eskattekort_traekprocent": 39,
        "eskattekort_frikort": 0,
        "eskattekort_korttype": 2,
        "eskattekort_loebenummer": "2010001",
        "aktiv": false
    },
    {
        "eskattekort_firma": 123,
        "eskattekort_arbejder": 1234,
        "eskattekort_linjenr": 2,
        "eskattekort_skatteaar": 2010,
        "eskattekort_gyldigdato": 20170201,
        "eskattekort_modtagetdato": 20170123,
        "eskattekort_fradragprdag": 444,
        "eskattekort_fradragperioden": 2468,
        "eskattekort_traekprocent": 39,
        "eskattekort_frikort": 0,
        "eskattekort_korttype": 2,
        "eskattekort_loebenummer": "2010002",
        "aktiv": true
    }
]
 

GET api/company/{companyId}/employee/{employeeId}/etaxcard

URL Parameters

companyId    
employeeId    

Requirements

Employee (Medarbejder)

Get employee List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_arbejdsstedda": 10,
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 0,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "ArbejderLoenart": [
            {
                "arbejderloenart_firma": 123,
                "arbejderloenart_arbejder": 1234,
                "arbejderloenart_loenart": 953,
                "arbejderloenart_sats": 2
            }
        ],
        "arbejderafdeling": true,
        "eskattekort_korttype": 2,
        "loentransaktioner_fejl": true
    }
]
 

GET api/company/{companyId}/employee

URL Parameters

companyId    

Requirements

Get employee list, CSV

Get employees as csv based on the selected matrix fields

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/csv"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "matrix_felter": "quod",
    "arbejder_slettet": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/csv',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'matrix_felter' => 'quod',
            'arbejder_slettet' => false,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/csv'
payload = {
    "matrix_felter": "quod",
    "arbejder_slettet": false
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

GET api/company/{companyId}/employee/csv

URL Parameters

companyId    

Requirements

Body Parameters

matrix_felter    
arbejder_slettet   optional  

Get employee list, deleted

Get deleted employees list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/deleted"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/deleted',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/deleted'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_arbejdsstedda": 10,
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "1",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 0,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "ArbejderLoenart": [
            {
                "arbejderloenart_firma": 123,
                "arbejderloenart_arbejder": 1234,
                "arbejderloenart_loenart": 953,
                "arbejderloenart_sats": 2
            }
        ],
        "arbejderafdeling": true,
        "loentransaktioner_fejl": true
    }
]
 

GET api/company/{companyId}/employee/deleted

URL Parameters

companyId    

Requirements

Get employee list, draft

Get draft employees list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/drafts"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/drafts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/drafts'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_arbejdsstedda": 10,
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 1,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "ArbejderLoenart": [
            {
                "arbejderloenart_firma": 123,
                "arbejderloenart_arbejder": 1234,
                "arbejderloenart_loenart": 953,
                "arbejderloenart_sats": 2
            }
        ],
        "arbejderafdeling": true,
        "loentransaktioner_fejl": true
    }
]
 

GET api/company/{companyId}/employee/drafts

URL Parameters

companyId    

Requirements

Get employees list, department marking

Get employees list with marking to show if employee has departments

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/withdepartmentmarking"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/withdepartmentmarking',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/withdepartmentmarking'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejder_nr": 1234,
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_afdelinger": false
    }
]
 

GET api/company/{companyId}/employee/withdepartmentmarking

URL Parameters

companyId    

Requirements

Get employee

Get single employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "arbejder_firma": 123,
    "arbejder_nr": 1234,
    "arbejder_arbejdertype": 2,
    "arbejder_profil": "SXSV",
    "arbejder_fornavn": "MED",
    "arbejder_efternavn": "ARBEJDER",
    "arbejder_adresse1": "NAVNVEJ 1",
    "arbejder_adresse2": "",
    "arbejder_postnr": 2100,
    "arbejder_by": "KØBENHAVN Ø.",
    "arbejder_cprnr": "1211100908",
    "arbejder_ansatdato": "2016-09-01",
    "arbejder_rejstdato": 0,
    "arbejder_afdeling": 1,
    "arbejder_skattefrd1dag": 0,
    "arbejder_skattefrdperioden": 0,
    "arbejder_traekprocent": 40,
    "arbejder_restfrikort": 0,
    "arbejder_bankregnr": 1234,
    "arbejder_bankkontonr": "12345678  ",
    "arbejder_atpkode": 1,
    "arbejder_feriekode": 1,
    "arbejder_shkode": 1,
    "arbejder_ampension": 0,
    "arbejder_amstartdato": 0,
    "arbejder_ansaettelsestype": 1,
    "arbejder_ansaettelsevilkaer": 3,
    "arbejder_jobstatus": 9,
    "arbejder_afloenningsform": "1",
    "arbejder_bruttoloen": 3000,
    "arbejder_sidstopdstamdata": "2016-10-11",
    "arbejder_sidstopdtrans": "2017-07-25",
    "arbejder_slettet": "0",
    "arbejder_loen": 0,
    "arbejder_changed": 0,
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "",
    "arbejder_personalegruppe": "",
    "arbejder_gennemsnitloen": 0,
    "arbejder_email": "[email protected]",
    "arbejder_bemaerkning1": "",
    "arbejder_bemaerkning2": "",
    "arbejder_sletbemaerkning": "J",
    "arbejder_dabarsel": "1",
    "arbejder_garantiloenfuldtid": 0,
    "arbejder_garantiloendeltid": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 0,
    "arbejder_produktionsenhedsnr": "1007509800",
    "arbejder_groenlandskkommune": 0,
    "arbejder_fritagelsesattest": "",
    "arbejder_overfoert": 0,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 1,
    "arbejder_udlaertdato": 0,
    "arbejder_arbejdsfunktion2": 751200,
    "arbejder_sundhedsordning": 0,
    "arbejder_mokode": 0,
    "arbejder_eboks": "N",
    "arbejder_loesarbejder": "N",
    "arbejder_mailkode": "",
    "arbejder_fhkode": "",
    "arbejder_tilladnegativloen": 0,
    "arbejder_kompetencefond": 0,
    "arbejder_samarbuddannelsesfond": 0,
    "arbejder_ansaettelsesforhold": "",
    "arbejder_anciennitetsdato": "2016-09-01",
    "arbejder_tekst1": "",
    "arbejder_tekst2": "",
    "arbejder_tekst3": "",
    "arbejder_tekst4": "",
    "arbejder_tekst5": "",
    "arbejder_overenskomsttekst": "",
    "arbejder_kladde": 0,
    "arbejder_skatteregistreringsnr": "123X",
    "arbejder_ejloensum": 0,
    "ArbejderLoenart": [
        {
            "arbejderloenart_firma": 123,
            "arbejderloenart_arbejder": 1234,
            "arbejderloenart_loenart": 953,
            "arbejderloenart_sats": 2
        }
    ],
    "loentransaktioner_fejl": true,
    "eskattekort_korttype": 2,
    "arbejderafdeling": false,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 2,
    "opgoerelsesperiodebestilt_fra_dato": "2019-09-12",
    "opgoerelsesperiodebestilt_til_dato": "2019-10-11",
    "opgoerelsesperiodebestilt_bestilt_fra_dato": "2019-09-12",
    "opgoerelsesperiodebestilt_bestilt_til_dato": 0,
    "opgoerelsesperiodemedarbejder_valg": 12
}
 

GET api/company/{companyId}/employee/{employeeId}

URL Parameters

companyId    
employeeId    

Requirements

Get employee, as PDF

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/pdf"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/pdf',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/pdf'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/employee/{employeeId}/pdf

URL Parameters

companyId    
employeeId    

Requirements

Create employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_nr": 1,
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "euholy",
    "arbejder_fornavn": "rgmpgiatthcupxqjd",
    "arbejder_efternavn": "gzelwuufzjmpjpngq",
    "arbejder_adresse1": "unsdikmoedkeuxnyeqv",
    "arbejder_adresse2": "bbwoeninsavhqzrelwk",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_bemaerkning1": "hzcmhrmswargxrmufio",
    "arbejder_bemaerkning2": "xrvoxfiwswghnavsnlo",
    "arbejder_skatteregistreringsnr": "rkxunmksyfhraxjskxn",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "opgoerelsesperiodebestilt_fra_dato": "2024-04-09",
    "opgoerelsesperiodebestilt_til_dato": "2024-04-09",
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "euholyrgm",
    "workernontransfer_iban": "pgiatthcupxqjdgzelw",
    "arbejder_ejloensum": "1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/employee',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_nr' => 1,
            'arbejder_arbejdertype' => 1,
            'arbejder_profil' => 'euholy',
            'arbejder_fornavn' => 'rgmpgiatthcupxqjd',
            'arbejder_efternavn' => 'gzelwuufzjmpjpngq',
            'arbejder_adresse1' => 'unsdikmoedkeuxnyeqv',
            'arbejder_adresse2' => 'bbwoeninsavhqzrelwk',
            'arbejder_postnr' => 766,
            'arbejder_by' => 'oeuholyrgmpgiatth',
            'arbejder_cprnr' => 'cupxqjdg',
            'arbejder_ansatdato' => '2016-12-22',
            'arbejder_rejstdato' => '2024-04-09',
            'arbejder_afdeling' => 7662,
            'arbejder_skattefrd1dag' => 7662,
            'arbejder_skattefrdperioden' => 7662,
            'arbejder_traekprocent' => 766,
            'arbejder_restfrikort' => 766264,
            'arbejder_bankregnr' => 766,
            'arbejder_bankkontonr' => 'oeuholyr',
            'arbejder_atpkode' => '2',
            'arbejder_feriekode' => 7,
            'arbejder_shkode' => 7,
            'arbejder_ampension' => 766,
            'arbejder_amstartdato' => '2024-04-09',
            'arbejder_ansaettelsestype' => 7,
            'arbejder_ansaettelsevilkaer' => 7,
            'arbejder_jobstatus' => 7,
            'arbejder_afloenningsform' => 'oe',
            'arbejder_loen' => '0',
            'arbejder_landekode' => 'DE',
            'arbejder_andetarbejdssted' => 'l',
            'arbejder_personalegruppe' => 'y',
            'arbejder_email' => '[email protected]',
            'arbejder_dabarsel' => 0,
            'arbejder_frivilligtraekprocent' => 0,
            'arbejder_beskaeftigelseskode' => 76,
            'arbejder_produktionsenhedsnr' => 'oeuholyr',
            'arbejder_groenlandskkommune' => 766,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76,
            'arbejder_udlaertdato' => '2024-04-09',
            'arbejder_arbejdsfunktion2' => 76626,
            'arbejder_sundhedsordning' => 76,
            'arbejder_mokode' => 7662,
            'arbejder_eboks' => 'K',
            'arbejder_loesarbejder' => 'e',
            'arbejder_mailkode' => 'uholyrgmpgiatth',
            'arbejder_fhkode' => 'cup',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662,
            'arbejder_samarbuddannelsesfond' => 7662,
            'arbejder_ansaettelsesforhold' => 'oe',
            'arbejder_anciennitetsdato' => '2024-04-09',
            'arbejder_tekst1' => 'oeuholyrgmpgiatthcu',
            'arbejder_tekst2' => 'pxqjdgzelwuufzjmpjp',
            'arbejder_tekst3' => 'ngqunsdikmoedkeuxny',
            'arbejder_tekst4' => 'eqvbbwoeninsavhqzre',
            'arbejder_tekst5' => 'lwkjqiezrjwbgfyqysm',
            'arbejder_overenskomsttekst' => 'nrageopgovagtdzsxpb',
            'arbejder_bemaerkning1' => 'hzcmhrmswargxrmufio',
            'arbejder_bemaerkning2' => 'xrvoxfiwswghnavsnlo',
            'arbejder_skatteregistreringsnr' => 'rkxunmksyfhraxjskxn',
            'arbejder_loentillaeg' => 7,
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 15,
            'opgoerelsesperiodebestilt_fra_dato' => '2024-04-09',
            'opgoerelsesperiodebestilt_til_dato' => '2024-04-09',
            'workernontransfer_free_telephone' => '2242',
            'workernontransfer_swiftbic' => 'euholyrgm',
            'workernontransfer_iban' => 'pgiatthcupxqjdgzelw',
            'arbejder_ejloensum' => '1',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee'
payload = {
    "arbejder_nr": 1,
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "euholy",
    "arbejder_fornavn": "rgmpgiatthcupxqjd",
    "arbejder_efternavn": "gzelwuufzjmpjpngq",
    "arbejder_adresse1": "unsdikmoedkeuxnyeqv",
    "arbejder_adresse2": "bbwoeninsavhqzrelwk",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_bemaerkning1": "hzcmhrmswargxrmufio",
    "arbejder_bemaerkning2": "xrvoxfiwswghnavsnlo",
    "arbejder_skatteregistreringsnr": "rkxunmksyfhraxjskxn",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "opgoerelsesperiodebestilt_fra_dato": "2024-04-09",
    "opgoerelsesperiodebestilt_til_dato": "2024-04-09",
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "euholyrgm",
    "workernontransfer_iban": "pgiatthcupxqjdgzelw",
    "arbejder_ejloensum": "1"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 0,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "arbejderafdeling": false,
        "loentransaktioner_fejl": false,
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 2,
        "opgoerelsesperiodebestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_til_dato": "2019-10-11",
        "opgoerelsesperiodebestilt_bestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_bestilt_til_dato": 0,
        "opgoerelsesperiodemedarbejder_valg": 12,
        "eskattekort_korttype": null,
        "ArbejderLoenart": []
    }
]
 

POST api/company/{companyId}/employee

URL Parameters

companyId    

Requirements

Important business Rules

Body Parameters

arbejder_nr    

The værdien must be between 0 and 99998.

arbejder_arbejdertype    

The værdien must be between 0 and 4.

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_fornavn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr    

The værdien must be between 1 and 4 digits.

arbejder_by    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_ansatdato    

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr    

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_atpkode    

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode    

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien must not be greater than 2 characters.

arbejder_loen   optional  

The værdien must be 1 digit
Must be one of 0 or 1.

arbejder_landekode   optional  

Should follow the regular expression "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort    

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Is used for digital mail and not only for e-Boks

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_bemaerkning1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_bemaerkning2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

arbejder_ejloensum   optional  

Must be one of 0 or 1.

Create employee, draft

Create draft of employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/draft"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_nr": 1,
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "euholy",
    "arbejder_fornavn": "rgmpgiatthcupxqjd",
    "arbejder_efternavn": "gzelwuufzjmpjpngq",
    "arbejder_adresse1": "unsdikmoedkeuxnyeqv",
    "arbejder_adresse2": "bbwoeninsavhqzrelwk",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_skatteregistreringsnr": "hzcmhrmswargxrmufio",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "uholyrgmp",
    "workernontransfer_iban": "giatthcupxqjdgzelwu",
    "arbejder_ejloensum": "1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/employee/draft',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_nr' => 1,
            'arbejder_arbejdertype' => 1,
            'arbejder_profil' => 'euholy',
            'arbejder_fornavn' => 'rgmpgiatthcupxqjd',
            'arbejder_efternavn' => 'gzelwuufzjmpjpngq',
            'arbejder_adresse1' => 'unsdikmoedkeuxnyeqv',
            'arbejder_adresse2' => 'bbwoeninsavhqzrelwk',
            'arbejder_postnr' => 766,
            'arbejder_by' => 'oeuholyrgmpgiatth',
            'arbejder_cprnr' => 'cupxqjdg',
            'arbejder_ansatdato' => '2016-12-22',
            'arbejder_rejstdato' => '2024-04-09',
            'arbejder_afdeling' => 7662,
            'arbejder_skattefrd1dag' => 7662,
            'arbejder_skattefrdperioden' => 7662,
            'arbejder_traekprocent' => 766,
            'arbejder_restfrikort' => 766264,
            'arbejder_bankregnr' => 766,
            'arbejder_bankkontonr' => 'oeuholyr',
            'arbejder_atpkode' => '2',
            'arbejder_feriekode' => 7,
            'arbejder_shkode' => 7,
            'arbejder_ampension' => 766,
            'arbejder_amstartdato' => '2024-04-09',
            'arbejder_ansaettelsestype' => 7,
            'arbejder_ansaettelsevilkaer' => 7,
            'arbejder_jobstatus' => 7,
            'arbejder_afloenningsform' => 'oe',
            'arbejder_loen' => '0',
            'arbejder_landekode' => 'DE',
            'arbejder_andetarbejdssted' => 'l',
            'arbejder_personalegruppe' => 'y',
            'arbejder_email' => '[email protected]',
            'arbejder_dabarsel' => 0,
            'arbejder_frivilligtraekprocent' => 0,
            'arbejder_beskaeftigelseskode' => 76,
            'arbejder_produktionsenhedsnr' => 'oeuholyr',
            'arbejder_groenlandskkommune' => 766,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76,
            'arbejder_udlaertdato' => '2024-04-09',
            'arbejder_arbejdsfunktion2' => 76626,
            'arbejder_sundhedsordning' => 76,
            'arbejder_mokode' => 7662,
            'arbejder_eboks' => 'K',
            'arbejder_loesarbejder' => 'e',
            'arbejder_mailkode' => 'uholyrgmpgiatth',
            'arbejder_fhkode' => 'cup',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662,
            'arbejder_samarbuddannelsesfond' => 7662,
            'arbejder_ansaettelsesforhold' => 'oe',
            'arbejder_anciennitetsdato' => '2024-04-09',
            'arbejder_tekst1' => 'oeuholyrgmpgiatthcu',
            'arbejder_tekst2' => 'pxqjdgzelwuufzjmpjp',
            'arbejder_tekst3' => 'ngqunsdikmoedkeuxny',
            'arbejder_tekst4' => 'eqvbbwoeninsavhqzre',
            'arbejder_tekst5' => 'lwkjqiezrjwbgfyqysm',
            'arbejder_overenskomsttekst' => 'nrageopgovagtdzsxpb',
            'arbejder_skatteregistreringsnr' => 'hzcmhrmswargxrmufio',
            'arbejder_loentillaeg' => 7,
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 15,
            'workernontransfer_free_telephone' => '2242',
            'workernontransfer_swiftbic' => 'uholyrgmp',
            'workernontransfer_iban' => 'giatthcupxqjdgzelwu',
            'arbejder_ejloensum' => '1',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/draft'
payload = {
    "arbejder_nr": 1,
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "euholy",
    "arbejder_fornavn": "rgmpgiatthcupxqjd",
    "arbejder_efternavn": "gzelwuufzjmpjpngq",
    "arbejder_adresse1": "unsdikmoedkeuxnyeqv",
    "arbejder_adresse2": "bbwoeninsavhqzrelwk",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_skatteregistreringsnr": "hzcmhrmswargxrmufio",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "uholyrgmp",
    "workernontransfer_iban": "giatthcupxqjdgzelwu",
    "arbejder_ejloensum": "1"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 1,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "arbejderafdeling": false,
        "loentransaktioner_fejl": false,
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 2,
        "opgoerelsesperiodebestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_til_dato": "2019-10-11",
        "opgoerelsesperiodebestilt_bestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_bestilt_til_dato": 0,
        "opgoerelsesperiodemedarbejder_valg": 12,
        "eskattekort_korttype": null,
        "ArbejderLoenart": []
    }
]
 

POST api/company/{companyId}/employee/draft

URL Parameters

companyId    

Requirements

Important business Rules

Body Parameters

arbejder_nr    

The værdien must be between 0 and 99998.

arbejder_arbejdertype   optional  

The værdien must be between 0 and 4.

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_fornavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_ansatdato   optional  

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode   optional  

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_loen   optional  

The værdien must be 1 digit
Must be one of 0 or 1.

arbejder_landekode   optional  

Should follow the regular expression "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort   optional  

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Is used for digital mail and not only for e-Boks

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

arbejder_ejloensum   optional  

Must be one of 0 or 1.

Create employee, text

Method for handling bulk creation of employees from a text (field)

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/bulk/field"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "medarbejdere": "quod",
    "arbejder_kladde": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/employee/bulk/field',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'medarbejdere' => 'quod',
            'arbejder_kladde' => false,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/bulk/field'
payload = {
    "medarbejdere": "quod",
    "arbejder_kladde": false
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/employee/bulk/field

URL Parameters

companyId    

Requirements

Important business Rules

Body Parameters

medarbejdere    
arbejder_kladde   optional  

Create employee, file

Method for handling bulk creation of employees from a file

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/bulk/file"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_kladde": false
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/employee/bulk/file',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_kladde' => false,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/bulk/file'
payload = {
    "arbejder_kladde": false
}
headers = {
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/employee/bulk/file

URL Parameters

companyId    

Requirements

Important business Rules

Body Parameters

medarbejderFil   optional  

Must be a file.

arbejder_kladde   optional  

Update multiple employees

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "medarbejdere": "toeuholyrgmpgiatthc"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/employee/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'medarbejdere' => 'toeuholyrgmpgiatthc',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/list'
payload = {
    "medarbejdere": "toeuholyrgmpgiatthc"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/employee/list

URL Parameters

companyId    

Requirements

Important business Rules

Body Parameters

medarbejdere    

The værdien must not have more than 200 items.

arbejder_nr    

The værdien must be between 0 and 99998.

arbejder_arbejdertype   optional  

The værdien must be between 0 and 4.

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_fornavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_ansatdato   optional  

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode   optional  

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_landekode   optional  

Should follow the regular expression "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_fritagelsesattest   optional  

Should follow the regular expression "/^[eE]{0,1}$/"

arbejder_garantiloendeltid   optional  

The værdien must be between 0 and 99999.99.

arbejder_garantiloenfuldtid   optional  

The værdien must be between 0 and 99999.99.

arbejder_gennemsnitloen   optional  

The værdien must be between 0 and 99999.99.

arbejder_loen   optional  

Must be one of 0 or 1.

arbejder_slettet   optional  

Must be one of 0, 1, or .

arbejder_sletbemaerkning   optional  

Must be one of J, N, j, n, or .

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort   optional  

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Is used for digital mail and not only for e-Boks

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_bemaerkning1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_bemaerkning2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

severanceProfile   optional  
arbejder_ejloensum   optional  

Must be one of 0 or 1.

validate multiple employees

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/list/validate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "medarbejdere": "toeuholyrgmpgiatthc"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/employee/list/validate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'medarbejdere' => 'toeuholyrgmpgiatthc',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/list/validate'
payload = {
    "medarbejdere": "toeuholyrgmpgiatthc"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/employee/list/validate

URL Parameters

companyId    

Requirements

Important business Rules

Body Parameters

medarbejdere    

The værdien must not have more than 200 items.

arbejder_nr    

The værdien must be between 0 and 99998.

arbejder_arbejdertype   optional  

The værdien must be between 0 and 4.

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_fornavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_ansatdato   optional  

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode   optional  

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_landekode   optional  

Should follow the regular expression "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_fritagelsesattest   optional  

Should follow the regular expression "/^[eE]{0,1}$/"

arbejder_garantiloendeltid   optional  

The værdien must be between 0 and 99999.99.

arbejder_garantiloenfuldtid   optional  

The værdien must be between 0 and 99999.99.

arbejder_gennemsnitloen   optional  

The værdien must be between 0 and 99999.99.

arbejder_loen   optional  

Must be one of 0 or 1.

arbejder_slettet   optional  

Must be one of 0, 1, or .

arbejder_sletbemaerkning   optional  

Must be one of J, N, j, n, or .

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort   optional  

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Must be one of J, N, M, P, K, j, n, m, p, or k The værdien must not be greater than 1 character.

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_bemaerkning1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_bemaerkning2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

severanceProfile   optional  
arbejder_ejloensum   optional  

Must be one of 0 or 1.

Update employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "oeuhol",
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "o",
    "arbejder_personalegruppe": "l",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 1,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_fritagelsesattest": "E",
    "arbejder_garantiloendeltid": 0,
    "arbejder_garantiloenfuldtid": 0,
    "arbejder_gennemsnitloen": 1,
    "arbejder_loen": "1",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_bemaerkning1": "hzcmhrmswargxrmufio",
    "arbejder_bemaerkning2": "xrvoxfiwswghnavsnlo",
    "arbejder_skatteregistreringsnr": "rkxunmksyfhraxjskxn",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "opgoerelsesperiodebestilt_fra_dato": "2024-04-09",
    "opgoerelsesperiodebestilt_til_dato": "2024-04-09",
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "euholyrgm",
    "workernontransfer_iban": "pgiatthcupxqjdgzelw",
    "severanceProfile": false,
    "arbejder_ejloensum": "1"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/employee/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_arbejdertype' => 1,
            'arbejder_profil' => 'oeuhol',
            'arbejder_fornavn' => 'yrgmpgiatthcupxqj',
            'arbejder_efternavn' => 'dgzelwuufzjmpjpng',
            'arbejder_adresse1' => 'qunsdikmoedkeuxnyeq',
            'arbejder_adresse2' => 'vbbwoeninsavhqzrelw',
            'arbejder_postnr' => 766,
            'arbejder_by' => 'oeuholyrgmpgiatth',
            'arbejder_cprnr' => 'cupxqjdg',
            'arbejder_ansatdato' => '2016-12-22',
            'arbejder_rejstdato' => '2024-04-09',
            'arbejder_afdeling' => 7662,
            'arbejder_skattefrd1dag' => 7662,
            'arbejder_skattefrdperioden' => 7662,
            'arbejder_traekprocent' => 766,
            'arbejder_restfrikort' => 766264,
            'arbejder_bankregnr' => 766,
            'arbejder_bankkontonr' => 'oeuholyr',
            'arbejder_atpkode' => '2',
            'arbejder_feriekode' => 7,
            'arbejder_shkode' => 7,
            'arbejder_ampension' => 766,
            'arbejder_amstartdato' => '2024-04-09',
            'arbejder_ansaettelsestype' => 7,
            'arbejder_ansaettelsevilkaer' => 7,
            'arbejder_jobstatus' => 7,
            'arbejder_afloenningsform' => 'oe',
            'arbejder_landekode' => 'DE',
            'arbejder_andetarbejdssted' => 'o',
            'arbejder_personalegruppe' => 'l',
            'arbejder_email' => '[email protected]',
            'arbejder_dabarsel' => 1,
            'arbejder_frivilligtraekprocent' => 0,
            'arbejder_beskaeftigelseskode' => 76,
            'arbejder_produktionsenhedsnr' => 'oeuholyr',
            'arbejder_fritagelsesattest' => 'E',
            'arbejder_garantiloendeltid' => 0,
            'arbejder_garantiloenfuldtid' => 0,
            'arbejder_gennemsnitloen' => 1,
            'arbejder_loen' => '1',
            'arbejder_groenlandskkommune' => 766,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76,
            'arbejder_udlaertdato' => '2024-04-09',
            'arbejder_arbejdsfunktion2' => 76626,
            'arbejder_sundhedsordning' => 76,
            'arbejder_mokode' => 7662,
            'arbejder_eboks' => 'K',
            'arbejder_loesarbejder' => 'e',
            'arbejder_mailkode' => 'uholyrgmpgiatth',
            'arbejder_fhkode' => 'cup',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662,
            'arbejder_samarbuddannelsesfond' => 7662,
            'arbejder_ansaettelsesforhold' => 'oe',
            'arbejder_anciennitetsdato' => '2024-04-09',
            'arbejder_tekst1' => 'oeuholyrgmpgiatthcu',
            'arbejder_tekst2' => 'pxqjdgzelwuufzjmpjp',
            'arbejder_tekst3' => 'ngqunsdikmoedkeuxny',
            'arbejder_tekst4' => 'eqvbbwoeninsavhqzre',
            'arbejder_tekst5' => 'lwkjqiezrjwbgfyqysm',
            'arbejder_overenskomsttekst' => 'nrageopgovagtdzsxpb',
            'arbejder_bemaerkning1' => 'hzcmhrmswargxrmufio',
            'arbejder_bemaerkning2' => 'xrvoxfiwswghnavsnlo',
            'arbejder_skatteregistreringsnr' => 'rkxunmksyfhraxjskxn',
            'arbejder_loentillaeg' => 7,
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 15,
            'opgoerelsesperiodebestilt_fra_dato' => '2024-04-09',
            'opgoerelsesperiodebestilt_til_dato' => '2024-04-09',
            'workernontransfer_free_telephone' => '2242',
            'workernontransfer_swiftbic' => 'euholyrgm',
            'workernontransfer_iban' => 'pgiatthcupxqjdgzelw',
            'severanceProfile' => false,
            'arbejder_ejloensum' => '1',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7'
payload = {
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "oeuhol",
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "o",
    "arbejder_personalegruppe": "l",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 1,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_fritagelsesattest": "E",
    "arbejder_garantiloendeltid": 0,
    "arbejder_garantiloenfuldtid": 0,
    "arbejder_gennemsnitloen": 1,
    "arbejder_loen": "1",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_bemaerkning1": "hzcmhrmswargxrmufio",
    "arbejder_bemaerkning2": "xrvoxfiwswghnavsnlo",
    "arbejder_skatteregistreringsnr": "rkxunmksyfhraxjskxn",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "opgoerelsesperiodebestilt_fra_dato": "2024-04-09",
    "opgoerelsesperiodebestilt_til_dato": "2024-04-09",
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "euholyrgm",
    "workernontransfer_iban": "pgiatthcupxqjdgzelw",
    "severanceProfile": false,
    "arbejder_ejloensum": "1"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 0,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "arbejderafdeling": false,
        "loentransaktioner_fejl": false,
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 2,
        "opgoerelsesperiodebestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_til_dato": "2019-10-11",
        "opgoerelsesperiodebestilt_bestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_bestilt_til_dato": 0,
        "opgoerelsesperiodemedarbejder_valg": 12,
        "eskattekort_korttype": null,
        "ArbejderLoenart": []
    }
]
 

PATCH api/company/{companyId}/employee/{employeeId}

URL Parameters

companyId    
employeeId    

Requirements

Important business Rules

Body Parameters

arbejder_arbejdertype   optional  

The værdien must be between 0 and 4.

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_fornavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_ansatdato   optional  

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode   optional  

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_landekode   optional  

Should follow the regular expression "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_fritagelsesattest   optional  

Should follow the regular expression "/^[eE]{0,1}$/"

arbejder_garantiloendeltid   optional  

The værdien must be between 0 and 99999.99.

arbejder_garantiloenfuldtid   optional  

The værdien must be between 0 and 99999.99.

arbejder_gennemsnitloen   optional  

The værdien must be between 0 and 99999.99.

arbejder_loen   optional  

Must be one of 0 or 1.

arbejder_slettet   optional  

Must be one of 0, 1, or .

arbejder_sletbemaerkning   optional  

Must be one of J, N, j, n, or .

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort   optional  

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Is used for digital mail and not only for e-Boks

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_bemaerkning1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_bemaerkning2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

severanceProfile   optional  
arbejder_ejloensum   optional  

Must be one of 0 or 1.

Update employee, via PUT

The functionality is the same as for the PATCH request - Only difference is the HTTP PUT request method. It enables systems, which native cannot issue a PATCH, to do so using PUT. The PUT requirements have been relaxed to match the PATCH requirement in that not all fields are required.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "oeuhol",
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "o",
    "arbejder_personalegruppe": "l",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 1,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_fritagelsesattest": "E",
    "arbejder_garantiloendeltid": 0,
    "arbejder_garantiloenfuldtid": 0,
    "arbejder_gennemsnitloen": 1,
    "arbejder_loen": "1",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_bemaerkning1": "hzcmhrmswargxrmufio",
    "arbejder_bemaerkning2": "xrvoxfiwswghnavsnlo",
    "arbejder_skatteregistreringsnr": "rkxunmksyfhraxjskxn",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "opgoerelsesperiodebestilt_fra_dato": "2024-04-09",
    "opgoerelsesperiodebestilt_til_dato": "2024-04-09",
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "euholyrgm",
    "workernontransfer_iban": "pgiatthcupxqjdgzelw",
    "severanceProfile": false,
    "arbejder_ejloensum": "1"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/employee/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_arbejdertype' => 1,
            'arbejder_profil' => 'oeuhol',
            'arbejder_fornavn' => 'yrgmpgiatthcupxqj',
            'arbejder_efternavn' => 'dgzelwuufzjmpjpng',
            'arbejder_adresse1' => 'qunsdikmoedkeuxnyeq',
            'arbejder_adresse2' => 'vbbwoeninsavhqzrelw',
            'arbejder_postnr' => 766,
            'arbejder_by' => 'oeuholyrgmpgiatth',
            'arbejder_cprnr' => 'cupxqjdg',
            'arbejder_ansatdato' => '2016-12-22',
            'arbejder_rejstdato' => '2024-04-09',
            'arbejder_afdeling' => 7662,
            'arbejder_skattefrd1dag' => 7662,
            'arbejder_skattefrdperioden' => 7662,
            'arbejder_traekprocent' => 766,
            'arbejder_restfrikort' => 766264,
            'arbejder_bankregnr' => 766,
            'arbejder_bankkontonr' => 'oeuholyr',
            'arbejder_atpkode' => '2',
            'arbejder_feriekode' => 7,
            'arbejder_shkode' => 7,
            'arbejder_ampension' => 766,
            'arbejder_amstartdato' => '2024-04-09',
            'arbejder_ansaettelsestype' => 7,
            'arbejder_ansaettelsevilkaer' => 7,
            'arbejder_jobstatus' => 7,
            'arbejder_afloenningsform' => 'oe',
            'arbejder_landekode' => 'DE',
            'arbejder_andetarbejdssted' => 'o',
            'arbejder_personalegruppe' => 'l',
            'arbejder_email' => '[email protected]',
            'arbejder_dabarsel' => 1,
            'arbejder_frivilligtraekprocent' => 0,
            'arbejder_beskaeftigelseskode' => 76,
            'arbejder_produktionsenhedsnr' => 'oeuholyr',
            'arbejder_fritagelsesattest' => 'E',
            'arbejder_garantiloendeltid' => 0,
            'arbejder_garantiloenfuldtid' => 0,
            'arbejder_gennemsnitloen' => 1,
            'arbejder_loen' => '1',
            'arbejder_groenlandskkommune' => 766,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76,
            'arbejder_udlaertdato' => '2024-04-09',
            'arbejder_arbejdsfunktion2' => 76626,
            'arbejder_sundhedsordning' => 76,
            'arbejder_mokode' => 7662,
            'arbejder_eboks' => 'K',
            'arbejder_loesarbejder' => 'e',
            'arbejder_mailkode' => 'uholyrgmpgiatth',
            'arbejder_fhkode' => 'cup',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662,
            'arbejder_samarbuddannelsesfond' => 7662,
            'arbejder_ansaettelsesforhold' => 'oe',
            'arbejder_anciennitetsdato' => '2024-04-09',
            'arbejder_tekst1' => 'oeuholyrgmpgiatthcu',
            'arbejder_tekst2' => 'pxqjdgzelwuufzjmpjp',
            'arbejder_tekst3' => 'ngqunsdikmoedkeuxny',
            'arbejder_tekst4' => 'eqvbbwoeninsavhqzre',
            'arbejder_tekst5' => 'lwkjqiezrjwbgfyqysm',
            'arbejder_overenskomsttekst' => 'nrageopgovagtdzsxpb',
            'arbejder_bemaerkning1' => 'hzcmhrmswargxrmufio',
            'arbejder_bemaerkning2' => 'xrvoxfiwswghnavsnlo',
            'arbejder_skatteregistreringsnr' => 'rkxunmksyfhraxjskxn',
            'arbejder_loentillaeg' => 7,
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 15,
            'opgoerelsesperiodebestilt_fra_dato' => '2024-04-09',
            'opgoerelsesperiodebestilt_til_dato' => '2024-04-09',
            'workernontransfer_free_telephone' => '2242',
            'workernontransfer_swiftbic' => 'euholyrgm',
            'workernontransfer_iban' => 'pgiatthcupxqjdgzelw',
            'severanceProfile' => false,
            'arbejder_ejloensum' => '1',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7'
payload = {
    "arbejder_arbejdertype": 1,
    "arbejder_profil": "oeuhol",
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "o",
    "arbejder_personalegruppe": "l",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 1,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_fritagelsesattest": "E",
    "arbejder_garantiloendeltid": 0,
    "arbejder_garantiloenfuldtid": 0,
    "arbejder_gennemsnitloen": 1,
    "arbejder_loen": "1",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_bemaerkning1": "hzcmhrmswargxrmufio",
    "arbejder_bemaerkning2": "xrvoxfiwswghnavsnlo",
    "arbejder_skatteregistreringsnr": "rkxunmksyfhraxjskxn",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "opgoerelsesperiodebestilt_fra_dato": "2024-04-09",
    "opgoerelsesperiodebestilt_til_dato": "2024-04-09",
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "euholyrgm",
    "workernontransfer_iban": "pgiatthcupxqjdgzelw",
    "severanceProfile": false,
    "arbejder_ejloensum": "1"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 0,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "arbejderafdeling": false,
        "loentransaktioner_fejl": false,
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 2,
        "opgoerelsesperiodebestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_til_dato": "2019-10-11",
        "opgoerelsesperiodebestilt_bestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_bestilt_til_dato": 0,
        "opgoerelsesperiodemedarbejder_valg": 12,
        "eskattekort_korttype": null,
        "ArbejderLoenart": []
    }
]
 

PUT api/company/{companyId}/employee/{employeeId}

URL Parameters

companyId    
employeeId    

Requirements

Important business Rules

Body Parameters

arbejder_arbejdertype   optional  

The værdien must be between 0 and 4.

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_fornavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_ansatdato   optional  

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode   optional  

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_landekode   optional  

Should follow the regular expressions "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_fritagelsesattest   optional  

Should follow the regular expression "/^[eE]{0,1}$/"

arbejder_garantiloendeltid   optional  

The værdien must be between 0 and 99999.99.

arbejder_garantiloenfuldtid   optional  

The værdien must be between 0 and 99999.99.

arbejder_gennemsnitloen   optional  

The værdien must be between 0 and 99999.99.

arbejder_loen   optional  

Must be one of 0 or 1.

arbejder_slettet   optional  

Must be one of 0, 1, or .

arbejder_sletbemaerkning   optional  

Must be one of J, N, j, n, or .

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort   optional  

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Is used for digital mail and not only for e-Boks

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_bemaerkning1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_bemaerkning2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato   optional  

The værdien must be 0 or must match the format Y-m-d.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

severanceProfile   optional  
arbejder_ejloensum   optional  

Must be one of 0 or 1.

Update employee, draft

Update draft of employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/draft"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_profil": "toeuho",
    "arbejder_arbejdertype": 0,
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_skatteregistreringsnr": "hzcmhrmswargxrmufio",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "uholyrgmp",
    "workernontransfer_iban": "giatthcupxqjdgzelwu",
    "arbejder_ejloensum": "1"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/employee/7/draft',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_profil' => 'toeuho',
            'arbejder_arbejdertype' => 0,
            'arbejder_fornavn' => 'yrgmpgiatthcupxqj',
            'arbejder_efternavn' => 'dgzelwuufzjmpjpng',
            'arbejder_adresse1' => 'qunsdikmoedkeuxnyeq',
            'arbejder_adresse2' => 'vbbwoeninsavhqzrelw',
            'arbejder_postnr' => 766,
            'arbejder_by' => 'oeuholyrgmpgiatth',
            'arbejder_cprnr' => 'cupxqjdg',
            'arbejder_ansatdato' => '2016-12-22',
            'arbejder_rejstdato' => '2024-04-09',
            'arbejder_afdeling' => 7662,
            'arbejder_skattefrd1dag' => 7662,
            'arbejder_skattefrdperioden' => 7662,
            'arbejder_traekprocent' => 766,
            'arbejder_restfrikort' => 766264,
            'arbejder_bankregnr' => 766,
            'arbejder_bankkontonr' => 'oeuholyr',
            'arbejder_atpkode' => '2',
            'arbejder_feriekode' => 7,
            'arbejder_shkode' => 7,
            'arbejder_ampension' => 766,
            'arbejder_amstartdato' => '2024-04-09',
            'arbejder_ansaettelsestype' => 7,
            'arbejder_ansaettelsevilkaer' => 7,
            'arbejder_jobstatus' => 7,
            'arbejder_afloenningsform' => 'oe',
            'arbejder_loen' => '0',
            'arbejder_landekode' => 'DE',
            'arbejder_andetarbejdssted' => 'l',
            'arbejder_personalegruppe' => 'y',
            'arbejder_email' => '[email protected]',
            'arbejder_dabarsel' => 0,
            'arbejder_frivilligtraekprocent' => 0,
            'arbejder_beskaeftigelseskode' => 76,
            'arbejder_produktionsenhedsnr' => 'oeuholyr',
            'arbejder_groenlandskkommune' => 766,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76,
            'arbejder_udlaertdato' => '2024-04-09',
            'arbejder_arbejdsfunktion2' => 76626,
            'arbejder_sundhedsordning' => 76,
            'arbejder_mokode' => 7662,
            'arbejder_eboks' => 'K',
            'arbejder_loesarbejder' => 'e',
            'arbejder_mailkode' => 'uholyrgmpgiatth',
            'arbejder_fhkode' => 'cup',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662,
            'arbejder_samarbuddannelsesfond' => 7662,
            'arbejder_ansaettelsesforhold' => 'oe',
            'arbejder_anciennitetsdato' => '2024-04-09',
            'arbejder_tekst1' => 'oeuholyrgmpgiatthcu',
            'arbejder_tekst2' => 'pxqjdgzelwuufzjmpjp',
            'arbejder_tekst3' => 'ngqunsdikmoedkeuxny',
            'arbejder_tekst4' => 'eqvbbwoeninsavhqzre',
            'arbejder_tekst5' => 'lwkjqiezrjwbgfyqysm',
            'arbejder_overenskomsttekst' => 'nrageopgovagtdzsxpb',
            'arbejder_skatteregistreringsnr' => 'hzcmhrmswargxrmufio',
            'arbejder_loentillaeg' => 7,
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 15,
            'workernontransfer_free_telephone' => '2242',
            'workernontransfer_swiftbic' => 'uholyrgmp',
            'workernontransfer_iban' => 'giatthcupxqjdgzelwu',
            'arbejder_ejloensum' => '1',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/draft'
payload = {
    "arbejder_profil": "toeuho",
    "arbejder_arbejdertype": 0,
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_skatteregistreringsnr": "hzcmhrmswargxrmufio",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "uholyrgmp",
    "workernontransfer_iban": "giatthcupxqjdgzelwu",
    "arbejder_ejloensum": "1"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 1,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "arbejderafdeling": false,
        "loentransaktioner_fejl": false,
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 2,
        "opgoerelsesperiodebestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_til_dato": "2019-10-11",
        "opgoerelsesperiodebestilt_bestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_bestilt_til_dato": 0,
        "opgoerelsesperiodemedarbejder_valg": 12,
        "eskattekort_korttype": null,
        "ArbejderLoenart": []
    }
]
 

PATCH api/company/{companyId}/employee/{employeeId}/draft

URL Parameters

companyId    
employeeId    

Requirements

Important business Rules

Body Parameters

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_arbejdertype   optional  

The værdien must be between 0 and 4.

arbejder_fornavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_ansatdato   optional  

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode   optional  

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_loen   optional  

The værdien must be 1 digit
Must be one of 0 or 1.

arbejder_landekode   optional  

Should follow the regular expression "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort   optional  

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Is used for digital mail and not only for e-Boks

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

arbejder_ejloensum   optional  

Must be one of 0 or 1.

Update employee, draft via PUT

The functionality is the same as for the PATCH request - Only difference is the HTTP PUT request method. It enables systems, which native cannot issue a PATCH, to do so using PUT. The PUT requirements have been relaxed to match the PATCH requirement in that not all fields are required.

Update draft of employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/draft"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_profil": "toeuho",
    "arbejder_arbejdertype": 0,
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_skatteregistreringsnr": "hzcmhrmswargxrmufio",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "uholyrgmp",
    "workernontransfer_iban": "giatthcupxqjdgzelwu",
    "arbejder_ejloensum": "1"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/employee/7/draft',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_profil' => 'toeuho',
            'arbejder_arbejdertype' => 0,
            'arbejder_fornavn' => 'yrgmpgiatthcupxqj',
            'arbejder_efternavn' => 'dgzelwuufzjmpjpng',
            'arbejder_adresse1' => 'qunsdikmoedkeuxnyeq',
            'arbejder_adresse2' => 'vbbwoeninsavhqzrelw',
            'arbejder_postnr' => 766,
            'arbejder_by' => 'oeuholyrgmpgiatth',
            'arbejder_cprnr' => 'cupxqjdg',
            'arbejder_ansatdato' => '2016-12-22',
            'arbejder_rejstdato' => '2024-04-09',
            'arbejder_afdeling' => 7662,
            'arbejder_skattefrd1dag' => 7662,
            'arbejder_skattefrdperioden' => 7662,
            'arbejder_traekprocent' => 766,
            'arbejder_restfrikort' => 766264,
            'arbejder_bankregnr' => 766,
            'arbejder_bankkontonr' => 'oeuholyr',
            'arbejder_atpkode' => '2',
            'arbejder_feriekode' => 7,
            'arbejder_shkode' => 7,
            'arbejder_ampension' => 766,
            'arbejder_amstartdato' => '2024-04-09',
            'arbejder_ansaettelsestype' => 7,
            'arbejder_ansaettelsevilkaer' => 7,
            'arbejder_jobstatus' => 7,
            'arbejder_afloenningsform' => 'oe',
            'arbejder_loen' => '0',
            'arbejder_landekode' => 'DE',
            'arbejder_andetarbejdssted' => 'l',
            'arbejder_personalegruppe' => 'y',
            'arbejder_email' => '[email protected]',
            'arbejder_dabarsel' => 0,
            'arbejder_frivilligtraekprocent' => 0,
            'arbejder_beskaeftigelseskode' => 76,
            'arbejder_produktionsenhedsnr' => 'oeuholyr',
            'arbejder_groenlandskkommune' => 766,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76,
            'arbejder_udlaertdato' => '2024-04-09',
            'arbejder_arbejdsfunktion2' => 76626,
            'arbejder_sundhedsordning' => 76,
            'arbejder_mokode' => 7662,
            'arbejder_eboks' => 'K',
            'arbejder_loesarbejder' => 'e',
            'arbejder_mailkode' => 'uholyrgmpgiatth',
            'arbejder_fhkode' => 'cup',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662,
            'arbejder_samarbuddannelsesfond' => 7662,
            'arbejder_ansaettelsesforhold' => 'oe',
            'arbejder_anciennitetsdato' => '2024-04-09',
            'arbejder_tekst1' => 'oeuholyrgmpgiatthcu',
            'arbejder_tekst2' => 'pxqjdgzelwuufzjmpjp',
            'arbejder_tekst3' => 'ngqunsdikmoedkeuxny',
            'arbejder_tekst4' => 'eqvbbwoeninsavhqzre',
            'arbejder_tekst5' => 'lwkjqiezrjwbgfyqysm',
            'arbejder_overenskomsttekst' => 'nrageopgovagtdzsxpb',
            'arbejder_skatteregistreringsnr' => 'hzcmhrmswargxrmufio',
            'arbejder_loentillaeg' => 7,
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 15,
            'workernontransfer_free_telephone' => '2242',
            'workernontransfer_swiftbic' => 'uholyrgmp',
            'workernontransfer_iban' => 'giatthcupxqjdgzelwu',
            'arbejder_ejloensum' => '1',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/draft'
payload = {
    "arbejder_profil": "toeuho",
    "arbejder_arbejdertype": 0,
    "arbejder_fornavn": "yrgmpgiatthcupxqj",
    "arbejder_efternavn": "dgzelwuufzjmpjpng",
    "arbejder_adresse1": "qunsdikmoedkeuxnyeq",
    "arbejder_adresse2": "vbbwoeninsavhqzrelw",
    "arbejder_postnr": 766,
    "arbejder_by": "oeuholyrgmpgiatth",
    "arbejder_cprnr": "cupxqjdg",
    "arbejder_ansatdato": "2016-12-22",
    "arbejder_rejstdato": "2024-04-09",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "oeuholyr",
    "arbejder_atpkode": "2",
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2024-04-09",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "oe",
    "arbejder_loen": "0",
    "arbejder_landekode": "DE",
    "arbejder_andetarbejdssted": "l",
    "arbejder_personalegruppe": "y",
    "arbejder_email": "[email protected]",
    "arbejder_dabarsel": 0,
    "arbejder_frivilligtraekprocent": 0,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "oeuholyr",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2024-04-09",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "K",
    "arbejder_loesarbejder": "e",
    "arbejder_mailkode": "uholyrgmpgiatth",
    "arbejder_fhkode": "cup",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "oe",
    "arbejder_anciennitetsdato": "2024-04-09",
    "arbejder_tekst1": "oeuholyrgmpgiatthcu",
    "arbejder_tekst2": "pxqjdgzelwuufzjmpjp",
    "arbejder_tekst3": "ngqunsdikmoedkeuxny",
    "arbejder_tekst4": "eqvbbwoeninsavhqzre",
    "arbejder_tekst5": "lwkjqiezrjwbgfyqysm",
    "arbejder_overenskomsttekst": "nrageopgovagtdzsxpb",
    "arbejder_skatteregistreringsnr": "hzcmhrmswargxrmufio",
    "arbejder_loentillaeg": 7,
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 15,
    "workernontransfer_free_telephone": "2242",
    "workernontransfer_swiftbic": "uholyrgmp",
    "workernontransfer_iban": "giatthcupxqjdgzelwu",
    "arbejder_ejloensum": "1"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejder_firma": 123,
        "arbejder_nr": 1234,
        "arbejder_arbejdertype": 2,
        "arbejder_profil": "SXSV",
        "arbejder_fornavn": "MED",
        "arbejder_efternavn": "ARBEJDER",
        "arbejder_adresse1": "NAVNVEJ 1",
        "arbejder_adresse2": "",
        "arbejder_postnr": 2100,
        "arbejder_by": "KØBENHAVN Ø.",
        "arbejder_cprnr": "1211100908",
        "arbejder_ansatdato": "2016-09-01",
        "arbejder_rejstdato": 0,
        "arbejder_afdeling": 1,
        "arbejder_skattefrd1dag": 0,
        "arbejder_skattefrdperioden": 0,
        "arbejder_traekprocent": 40,
        "arbejder_restfrikort": 0,
        "arbejder_bankregnr": 1234,
        "arbejder_bankkontonr": "12345678  ",
        "arbejder_atpkode": 1,
        "arbejder_feriekode": 1,
        "arbejder_shkode": 1,
        "arbejder_ampension": 0,
        "arbejder_amstartdato": 0,
        "arbejder_ansaettelsestype": 1,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 9,
        "arbejder_afloenningsform": "1",
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdstamdata": "2016-10-11",
        "arbejder_sidstopdtrans": "2017-07-25",
        "arbejder_slettet": "0",
        "arbejder_loen": 0,
        "arbejder_changed": 0,
        "arbejder_landekode": "DE",
        "arbejder_andetarbejdssted": "",
        "arbejder_personalegruppe": "",
        "arbejder_gennemsnitloen": 0,
        "arbejder_email": "[email protected]",
        "arbejder_bemaerkning1": "",
        "arbejder_bemaerkning2": "",
        "arbejder_sletbemaerkning": "J",
        "arbejder_dabarsel": "1",
        "arbejder_garantiloenfuldtid": 0,
        "arbejder_garantiloendeltid": 0,
        "arbejder_frivilligtraekprocent": 0,
        "arbejder_beskaeftigelseskode": 0,
        "arbejder_produktionsenhedsnr": "1007509800",
        "arbejder_groenlandskkommune": 0,
        "arbejder_fritagelsesattest": "",
        "arbejder_overfoert": 0,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 1,
        "arbejder_udlaertdato": 0,
        "arbejder_arbejdsfunktion2": 751200,
        "arbejder_sundhedsordning": 0,
        "arbejder_mokode": 0,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "",
        "arbejder_fhkode": "",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 0,
        "arbejder_samarbuddannelsesfond": 0,
        "arbejder_ansaettelsesforhold": "",
        "arbejder_anciennitetsdato": "2016-09-01",
        "arbejder_tekst1": "",
        "arbejder_tekst2": "",
        "arbejder_tekst3": "",
        "arbejder_tekst4": "",
        "arbejder_tekst5": "",
        "arbejder_overenskomsttekst": "",
        "arbejder_kladde": 1,
        "arbejder_skatteregistreringsnr": "123X",
        "arbejder_ejloensum": 0,
        "arbejderafdeling": false,
        "loentransaktioner_fejl": false,
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 2,
        "opgoerelsesperiodebestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_til_dato": "2019-10-11",
        "opgoerelsesperiodebestilt_bestilt_fra_dato": "2019-09-12",
        "opgoerelsesperiodebestilt_bestilt_til_dato": 0,
        "opgoerelsesperiodemedarbejder_valg": 12,
        "eskattekort_korttype": null,
        "ArbejderLoenart": []
    }
]
 

PUT api/company/{companyId}/employee/{employeeId}/draft

URL Parameters

companyId    
employeeId    

Requirements

Important business Rules

Body Parameters

arbejder_profil   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 8 characters.

arbejder_arbejdertype   optional  

The værdien must be between 0 and 4.

arbejder_fornavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_efternavn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_adresse1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_adresse2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

arbejder_postnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_by   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 22 characters.

arbejder_cprnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_ansatdato   optional  

Must be a valid date in the format Y-m-d
The værdien must be a date before or equal to +8 months.

arbejder_rejstdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_afdeling   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrd1dag   optional  

The værdien must be between 1 and 5 digits.

arbejder_skattefrdperioden   optional  

The værdien must be between 1 and 5 digits.

arbejder_traekprocent   optional  

The værdien must be between 1 and 3 digits.

arbejder_restfrikort   optional  

The værdien must be between 1 and 7 digits.

arbejder_bankregnr   optional  

The værdien must be between 1 and 4 digits.

arbejder_bankkontonr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 10 characters.

arbejder_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

arbejder_feriekode   optional  

The værdien must be 1 digit.

arbejder_shkode   optional  

The værdien must be 1 digit.

arbejder_ampension   optional  

The værdien must be between 1 and 4 digits.

arbejder_amstartdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype   optional  

The værdien must be 1 digit.

arbejder_ansaettelsevilkaer   optional  

The værdien must be 1 digit.

arbejder_jobstatus   optional  

The værdien must be 1 digit.

arbejder_afloenningsform   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_loen   optional  

The værdien must be 1 digit
Must be one of 0 or 1.

arbejder_landekode   optional  

Should follow the regular expression "/^$|^[A-Z][A-Z1-2]$/"

arbejder_andetarbejdssted   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_personalegruppe   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 1 character.

arbejder_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must not be greater than 70 characters.

arbejder_dabarsel   optional  

The værdien must be between 0 and 9.

arbejder_frivilligtraekprocent   optional  

The værdien must be between 0 and 20.

arbejder_beskaeftigelseskode   optional  

The værdien must be between 1 and 2 digits.

arbejder_produktionsenhedsnr   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 10 characters.

arbejder_groenlandskkommune   optional  

The værdien must be between 1 and 3 digits.

arbejder_skattekort   optional  

Must be one of H, B, M, h, b, or m.

arbejder_dalouddannelsesbidrag   optional  

The værdien must be between 1 and 2 digits.

arbejder_udlaertdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2   optional  

The værdien must be between 1 and 6 digits.

arbejder_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

arbejder_mokode   optional  

The værdien must be between 1 and 5 digits.

arbejder_eboks   optional  

Is used for digital mail and not only for e-Boks

arbejder_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

arbejder_mailkode   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

arbejder_fhkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 3 characters.

arbejder_tilladnegativloen   optional  

The værdien must be between 0 and 1.

arbejder_kompetencefond   optional  

The værdien must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond   optional  

The værdien must be between 1 and 5 digits.

arbejder_ansaettelsesforhold   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 2 characters.

arbejder_anciennitetsdato   optional  

The værdien must be 0 or must match the format Y-m-d.

arbejder_tekst1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst3   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst4   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_tekst5   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_overenskomsttekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

arbejder_skatteregistreringsnr   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 27 characters.

arbejder_loentillaeg   optional  

The værdien must be 1 digit.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id   optional  
opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

workernontransfer_free_telephone   optional  

Must be one of 2240, 2241, 2242, 2243, or 0.

workernontransfer_swiftbic   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 11 characters.

workernontransfer_iban   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 34 characters.

arbejder_ejloensum   optional  

Must be one of 0 or 1.

Delete draft employee.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/draft"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/employee/7/draft',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/draft'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/employee/{employeeId}/draft

URL Parameters

companyId    
employeeId    

Requirements

Allow negative salary for all active and left employees, with negative salary and yes to pay

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/allownegativesalaryforall"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/employee/allownegativesalaryforall',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/allownegativesalaryforall'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers)
response.json()

PATCH api/company/{companyId}/employee/allownegativesalaryforall

URL Parameters

companyId    

Requirements

Get department distribution

Get the department distribution for employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/departmentdistribution"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/departmentdistribution',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/departmentdistribution'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejderafdeling_id": 1,
        "arbejderafdeling_firma_nr": 123,
        "arbejderafdeling_arbejder_nr": 1234,
        "arbejderafdeling_afdeling_nr": 1,
        "arbejderafdeling_procent": 30
    }
]
 

GET api/company/{companyId}/employee/{employeeId}/departmentdistribution

URL Parameters

companyId    
employeeId    

Requirements

Update Department distribution

Sum of arbejderafdeling_procent percentages must be either 0 or 100.

Each individual percentage must be a float between 0.0000 and 100.0000, both included.

A department can only be listed once and must be related to the company.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/departmentdistribution"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "departmentdistributionlist": [
        "quod"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/employee/7/departmentdistribution',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'departmentdistributionlist' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/departmentdistribution'
payload = {
    "departmentdistributionlist": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/employee/{employeeId}/departmentdistribution

URL Parameters

companyId    
employeeId    

Requirements

Body Parameters

departmentdistributionlist   optional  
arbejderafdeling_afdeling_nr    

The værdien must be between 0 and 99999.

arbejderafdeling_procent    

The værdien must be between 0.0000 and 100.0000.

Get time factor

Used when calculating batch on salary transactions

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/timefactor"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/timefactor',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/timefactor'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenart_sats": 1.22,
        "loenart_nr": 1002
    }
]
 

GET api/company/{companyId}/employee/{employeeId}/timefactor

URL Parameters

companyId    
employeeId    

Requirements

Employee FH Code (FH koder)

Get FH Code List from mo

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/mocode/7/fhcode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/mocode/7/fhcode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/mocode/7/fhcode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "fhkoder_fhkode": "FH1",
        "fhkoder_ansat": 0,
        "fhkodebeskrivelse_tekst": "TOTALT DIGITALT EFERIEKORT I E-BOKS"
    }
]
 

GET api/company/{companyId}/employment/mocode/{moCodeId}/fhcode

URL Parameters

companyId    
moCodeId    

Requirements

Get FH Code List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/fhcode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/fhcode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/fhcode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "fhkodebeskrivelse_nr": "FH1",
        "fhkodebeskrivelse_tekst": "TOTALT DIGITALT EFERIEKORT I E-BOKS"
    }
]
 

GET api/company/{companyId}/employee/{employeeId}/fhcode

URL Parameters

companyId    
employeeId    

Requirements

Get single FH Code

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "fhkodebeskrivelse_nr": "FH1",
    "fhkodebeskrivelse_tekst": "TOTALT DIGITALT EFERIEKORT I E-BOKS"
}
 

GET api/company/{companyId}/employee/{employeeId}/fhcode/{fhcodeId}

URL Parameters

companyId    
employeeId    
fhcodeId    

Requirements

Employee SH code (Sh kode)

Get SH code list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeeshcode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeeshcode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeeshcode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "shkode_firma": 123,
        "shkode_nr": 1,
        "shkode_tekst": "SH-OPSPARING"
    }
]
 

GET api/company/{companyId}/employeeshcode

URL Parameters

companyId    

Requirements

Get single SH code

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeeshcode/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeeshcode/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeeshcode/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "shkode_firma": 123,
    "shkode_nr": 1,
    "shkode_tekst": "SH-OPSPARING"
}
 

GET api/company/{companyId}/employeeshcode/{shcodeId}

URL Parameters

companyId    
shcodeId    

Requirements

Employee salary type

Get employee salary type List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytype"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytype',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytype'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejderloenart_firma": 123,
        "arbejderloenart_arbejder": 1234,
        "arbejderloenart_loenart": 110,
        "arbejderloenart_sats": 1234
    }
]
 

GET api/company/{companyId}/employee/{employeeId}/salarytype

URL Parameters

companyId    
employeeId    

Requirements

replace employee salary types

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytype"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejderloenarter": "toeuho"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytype',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejderloenarter' => 'toeuho',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytype'
payload = {
    "arbejderloenarter": "toeuho"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejderloenart_firma": 123,
        "arbejderloenart_arbejder": 1234,
        "arbejderloenart_loenart": 110,
        "arbejderloenart_sats": 1234
    }
]
 

Example response (422):


[
    null,
    {
        "arbejderloenart_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder '1234' findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "stored_procedure": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "stored_procedure"
            }
        ]
    },
    null,
    null,
    {
        "arbejderloenart_loenart": [
            {
                "OriginalErrorMessage": "der kan kun være en personlig sats per loenart",
                "ValidationRule": "exists"
            }
        ]
    },
    null
]
 

PUT api/company/{companyId}/employee/{employeeId}/salarytype

URL Parameters

companyId    
employeeId    

Requirements

Body Parameters

arbejderloenarter   optional  

The værdien must not have more than 7 items.

arbejderloenart_loenart    
arbejderloenart_sats    

Validate employee salary types

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytype/validate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejderloenarter": "toeuho"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytype/validate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejderloenarter' => 'toeuho',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytype/validate'
payload = {
    "arbejderloenarter": "toeuho"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (422):


[
    null,
    {
        "arbejderloenart_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder '1234' findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "stored_procedure": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "stored_procedure"
            }
        ]
    },
    null,
    null,
    {
        "arbejderloenart_loenart": [
            {
                "OriginalErrorMessage": "der kan kun være en personlig sats per loenart",
                "ValidationRule": "exists"
            }
        ]
    },
    null
]
 

POST api/company/{companyId}/employee/{employeeId}/salarytype/validate

URL Parameters

companyId    
employeeId    

Requirements

Body Parameters

arbejderloenarter   optional  

The værdien must not have more than 7 items.

arbejderloenart_loenart    

The værdien must be between 0 and 9999.

arbejderloenart_sats    

The værdien must be between 1 and 9999999.

Employee type (Arbejder type)

Employee type, list

Get employee type list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeetype',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejdertype_nr": 1,
        "arbejdertype_firma": 123,
        "arbejdertype_sklargjortdato": "2017-02-17",
        "arbejdertype_sklargjortkl": 1537,
        "arbejdertype_bestiltdato": 0,
        "arbejdertype_bestiltkl": null,
        "arbejdertype_dispdato": 0,
        "arbejdertype_bruttonloen": 21500,
        "arbejdertype_bemaerkning1": "",
        "arbejdertype_bemaerkning2": "",
        "arbejdertype_sletbemaerkning": "J",
        "arbejdertype_testkoersel": "0",
        "arbejdertype_ekstra": "0000000000",
        "arbejdertype_notat": "",
        "arbejdertype_bestilttestdato": "2016-12-28",
        "arbejdertype_bestilttestkl": 1732,
        "arbejdertype_opgoerelsesperiode_fra": "0",
        "arbejdertype_opgoerelsesperiode_til": "0",
        "arbejdertype_annulleretdato": 0,
        "arbejdertype_annulleretkl": 0,
        "arbejdertype_annulleretbruger": "bruger",
        "arbejdertypebeskrivelse_nr": "1",
        "arbejdertypebeskrivelse_navn": "14-dages-løn"
    }
]
 

GET api/company/{companyId}/employeetype

URL Parameters

companyId    

Requirements

Error in transaction, employee list

Get list of employee with error in transactions for employee type

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype/8/employeeswitherrors"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeetype/8/employeeswitherrors',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype/8/employeeswitherrors'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejder_nr": 1234,
        "arbejder_fornavn": "Jens",
        "arbejder_efternavn": "Pedersen"
    }
]
 

GET api/company/{companyId}/employeetype/{employeeTypeId}/employeeswitherrors

URL Parameters

companyId    
employeeTypeId    

Requirements

Get single employee type

Also known as 'last order'

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype/8"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeetype/8',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype/8'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejder_nr": 1234,
        "arbejder_fornavn": "Jens",
        "arbejder_efternavn": "Pedersen"
    }
]
 

GET api/company/{companyId}/employeetype/{employeeTypeId}

URL Parameters

companyId    
employeeTypeId    

Requirements

Get single employee type

Also known as 'last order'

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salary/employeetype/8/lastorder"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salary/employeetype/8/lastorder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salary/employeetype/8/lastorder'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejder_nr": 1234,
        "arbejder_fornavn": "Jens",
        "arbejder_efternavn": "Pedersen"
    }
]
 

GET api/company/{companyId}/salary/employeetype/{employeeTypeId}/lastorder

URL Parameters

companyId    
employeeTypeId    

Requirements

Description list

Get description list for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype/description"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeetype/description',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype/description'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejdertypebeskrivelse_nr": 1,
        "arbejdertypebeskrivelse_navn": "14-dages-løn"
    }
]
 

GET api/company/{companyId}/employeetype/description

URL Parameters

companyId    

Requirements

Description

Get single employee type description

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype/description/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeetype/description/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype/description/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "arbejdertypebeskrivelse_nr": 1,
    "arbejdertypebeskrivelse_navn": "14-dages-løn"
}
 

GET api/company/{companyId}/employeetype/description/{employeeTypeDescriptionId}

URL Parameters

companyId    
employeeTypeDescriptionId    

Requirements

Update notes

Update employee type notes

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype/8/notes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejdertype_bemaerkning1": "toeuholyrgmpgiatthc",
    "arbejdertype_bemaerkning2": "upxqjdgzelwuufzjmpj",
    "arbejdertype_sletbemaerkning": false
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/employeetype/8/notes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejdertype_bemaerkning1' => 'toeuholyrgmpgiatthc',
            'arbejdertype_bemaerkning2' => 'upxqjdgzelwuufzjmpj',
            'arbejdertype_sletbemaerkning' => false,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype/8/notes'
payload = {
    "arbejdertype_bemaerkning1": "toeuholyrgmpgiatthc",
    "arbejdertype_bemaerkning2": "upxqjdgzelwuufzjmpj",
    "arbejdertype_sletbemaerkning": false
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/employeetype/{employeeTypeId}/notes

URL Parameters

companyId    
employeeTypeId    

Requirements

Body Parameters

arbejdertype_bemaerkning1   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejdertype_bemaerkning2   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

arbejdertype_sletbemaerkning   optional  

Reset (klargør)

Resets all salary transactions for employee type

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salary/employeetype/8/reset"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salary/employeetype/8/reset',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salary/employeetype/8/reset'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers)
response.json()

POST api/company/{companyId}/salary/employeetype/{employeeTypeId}/reset

URL Parameters

companyId    
employeeTypeId    

Requirements

Recalculate

Recalculate estimated salary for all employees in a company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salary/recalculate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salary/recalculate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salary/recalculate'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers)
response.json()

POST api/company/{companyId}/salary/recalculate

URL Parameters

companyId    

Requirements

Employment (Beskæftigelse)

Get AM pension list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/ampension"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/ampension',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/ampension'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenart_nr": 8910,
        "loenart_tekst": "PENSION/BAGERI"
    }
]
 

GET api/company/{companyId}/ampension

URL Parameters

companyId    

Requirements

Get single AM pension

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/ampension/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/ampension/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/ampension/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "loenart_nr": 8910,
    "loenart_tekst": "PENSION/BAGERI"
}
 

GET api/company/{companyId}/ampension/{amPensionId}

URL Parameters

companyId    
amPensionId    

Requirements

Get MO code list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/mocode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/mocode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/mocode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "mokode_nr": 1000,
        "mokode_tekst": "DI"
    }
]
 

GET api/company/{companyId}/employment/mocode

URL Parameters

companyId    

Requirements

Get single MO code

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/mocode/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/mocode/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/mocode/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "mokode_nr": 1101,
    "mokode_tekst": "Dansk Mode & Testil"
}
 

GET api/company/{companyId}/employment/mocode/{moCodeId}

URL Parameters

companyId    
moCodeId    

Requirements

Get ATP code list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype/8/atpcode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeetype/8/atpcode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype/8/atpcode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "atpkode_firma": 123,
        "atpkode_arbejdertype": 2,
        "atpkode_nr": 0,
        "atpkode_tekst": "INGEN ATP"
    }
]
 

GET api/company/{companyId}/employeetype/{employeeTypeId}/atpcode

URL Parameters

companyId    
employeeTypeId    

Requirements

Get single ATP code

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employeetype/8/atpcode/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employeetype/8/atpcode/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employeetype/8/atpcode/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "atpkode_firma": 500,
    "atpkode_arbejdertype": 2,
    "atpkode_nr": 1,
    "atpkode_tekst": "PERIODEN TIMER FOR ATP-BEREGNING"
}
 

GET api/company/{companyId}/employeetype/{employeeTypeId}/atpcode/{atpCodeId}

URL Parameters

companyId    
employeeTypeId    
atpCodeId    

Requirements

Get employment type list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/type"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/type',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/type'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "ansaettelsestypekode_nr": 1,
        "ansaettelsestypekode_tekst": "Ikke tidsbegrænset"
    }
]
 

GET api/company/{companyId}/employment/type

URL Parameters

companyId    

Requirements

Get single employment type

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/type/quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/type/quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/type/quod'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "ansaettelsestypekode_nr": 2,
    "ansaettelsestypekode_tekst": "Tidsbegrænset"
}
 

GET api/company/{companyId}/employment/type/{employmentTypeId}

URL Parameters

companyId    
employmentTypeId    

Requirements

Get terms of employment list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/termsofemployment"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/termsofemployment',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/termsofemployment'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "ansaettelsesvilkaarkode_nr": 1,
        "ansaettelsesvilkaarkode_tekst": "Funktionær"
    }
]
 

GET api/company/{companyId}/employment/termsofemployment

URL Parameters

companyId    

Requirements

Get single terms of employment

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/termsofemployment/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/termsofemployment/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/termsofemployment/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "ansaettelsesvilkaarkode_nr": 2,
    "ansaettelsesvilkaarkode_tekst": "Arbejder, funktionærlignende"
}
 

GET api/company/{companyId}/employment/termsofemployment/{termsOfEmploymentId}

URL Parameters

companyId    
termsOfEmploymentId    

Requirements

Get employment terms list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/terms"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/terms',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/terms'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "ansaettelsesforhold_nr": "",
        "ansaettelsesforhold_tekst": "Lønmodtager"
    }
]
 

GET api/company/{companyId}/employment/terms

URL Parameters

companyId    

Requirements

Get some employment terms

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "ansaettelsesforhold_nr": "62",
    "ansaettelsesforhold_tekst": "Fleksjob"
}
 

GET api/company/{companyId}/employment/terms/{employmentTermsId}

URL Parameters

companyId    
employmentTermsId    

Requirements

Get job status list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/jobstatus"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/jobstatus',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/jobstatus'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "jobstatuskode_nr": 1,
        "jobstatuskode_tekst": "Elev/lærling"
    }
]
 

GET api/company/{companyId}/employment/jobstatus

URL Parameters

companyId    

Requirements

Get single job status

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/jobstatus/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/jobstatus/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/jobstatus/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "jobstatuskode_nr": 3,
    "jobstatuskode_tekst": "Leder af en gruppe"
}
 

GET api/company/{companyId}/employment/jobstatus/{jobStatusId}

URL Parameters

companyId    
jobStatusId    

Requirements

Get wage supplement list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/wagesupplement"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/wagesupplement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/wagesupplement'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "wagesupplement_no": 1,
        "wagesupplement_text": "Elev/lærling"
    }
]
 

GET api/company/{companyId}/employment/wagesupplement

URL Parameters

companyId    

Requirements

Get single wage Supplement

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/wagesupplement/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/wagesupplement/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/wagesupplement/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "jobstatuskode_nr": 3,
    "jobstatuskode_tekst": "Leder af en gruppe"
}
 

GET api/company/{companyId}/employment/wagesupplement/{wageSupplementId}

URL Parameters

companyId    
wageSupplementId    

Requirements

Get infotype list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/infotype"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/infotype',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/infotype'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "jobstatuskode_nr": 1,
        "jobstatuskode_tekst": "Elev/lærling"
    }
]
 

GET api/company/{companyId}/employment/infotype

URL Parameters

companyId    

Requirements

Get remuneration List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/remuneration"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/remuneration',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/remuneration'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "afloenningsformkode_nr": 1,
        "afloenningsformkode_tekst": "Tidløn"
    }
]
 

GET api/company/{companyId}/employment/remuneration

URL Parameters

companyId    

Requirements

Get single remuneration

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/remuneration/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/remuneration/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/remuneration/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "afloenningsformkode_nr": 4,
    "afloenningsformkode_tekst": "Fast løn uden overtidsbetaling"
}
 

GET api/company/{companyId}/employment/remuneration/{remunerationId}

URL Parameters

companyId    
remunerationId    

Requirements

Greenlandmunicipality list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/greenlandmunicipality"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/greenlandmunicipality',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/greenlandmunicipality'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "groenlandskkommune_nr": 901,
        "groenlandskkommune_tekst": "Qasigiannguit Kommune"
    }
]
 

GET api/company/{companyId}/employment/greenlandmunicipality

URL Parameters

companyId    

Requirements

Get single Greenlandmunicipality

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/greenlandmunicipality/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/greenlandmunicipality/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/greenlandmunicipality/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "groenlandskkommune_nr": 901,
    "groenlandskkommune_tekst": "Qasigiannguit Kommune"
}
 

GET api/company/{companyId}/employment/greenlandmunicipality/{greenlandmunicipalityId}

URL Parameters

companyId    
greenlandmunicipalityId    

Requirements

Get employment code list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/code"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/code',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/code'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "beskaeftigelseskode_nr": 0,
        "beskaeftigelseskode_tekst": "Almindelige lønmodtagere"
    }
]
 

GET api/company/{companyId}/employment/code

URL Parameters

companyId    

Requirements

Get single employment code

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/code/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/code/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/code/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "beskaeftigelseskode_nr": 0,
    "beskaeftigelseskode_tekst": "Almindelige lønmodtagere"
}
 

GET api/company/{companyId}/employment/code/{employmentCodeId}

URL Parameters

companyId    
employmentCodeId    

Requirements

Get DA/LO list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/dalo"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/dalo',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/dalo'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "dalouddannelsesbidrag_nr": 0,
        "dalouddannelsesbidrag_tekst": "INGEN BIDRAG"
    }
]
 

GET api/company/{companyId}/employment/dalo

URL Parameters

companyId    

Requirements

Get single DA/LO

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/dalo/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/dalo/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/dalo/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "dalouddannelsesbidrag_nr": 0,
    "dalouddannelsesbidrag_tekst": "INGEN BIDRAG"
}
 

GET api/company/{companyId}/employment/dalo/{daloId}

URL Parameters

companyId    
daloId    

Requirements

Get competence List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/competence"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/competence',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/competence'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "kompetencefond_nr": 0,
        "kompetencefond_tekst": "INGEN"
    }
]
 

GET api/company/{companyId}/employment/competence

URL Parameters

companyId    

Requirements

Get single competence

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/competence/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/competence/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/competence/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "kompetencefond_nr": 10013,
    "kompetencefond_tekst": "OVERENSKOMST FOR SERVICESTATIONER (BOA)"
}
 

GET api/company/{companyId}/employment/competence/{competenceId}

URL Parameters

companyId    
competenceId    

Requirements

Get training List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/training"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/training',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/training'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "samarbuddannelsesfond_nr": 0,
        "samarbuddannelsesfond_tekst": "INGEN"
    }
]
 

GET api/company/{companyId}/employment/training

URL Parameters

companyId    

Requirements

Get single training

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/training/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/training/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/training/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "samarbuddannelsesfond_nr": 10013,
    "samarbuddannelsesfond_tekst": "OVERENSKOMST FOR SERVICESTATIONER (BOA)"
}
 

GET api/company/{companyId}/employment/training/{trainingId}

URL Parameters

companyId    
trainingId    

Requirements

Get health care List

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/healthcare"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/healthcare',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/healthcare'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "sundhedsordning_nr": 0,
        "sundhedsordning_tekst": "NEJ"
    }
]
 

GET api/company/{companyId}/employment/healthcare

URL Parameters

companyId    

Requirements

Get single health care

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/healthcare/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/healthcare/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/healthcare/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "sundhedsordning_nr": 1,
    "sundhedsordning_tekst": "119 MED PD-PENS. - SAMLET"
}
 

GET api/company/{companyId}/employment/healthcare/{healthCareId}

URL Parameters

companyId    
healthCareId    

Requirements

Get production number list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/productionnumber"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/productionnumber',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/productionnumber'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    "1234567890",
    "1234567891"
]
 

GET api/company/{companyId}/employment/productionnumber

URL Parameters

companyId    

Requirements

Get employee function list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employment/employeefunction"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employment/employeefunction',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employment/employeefunction'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    123456,
    654321
]
 

GET api/company/{companyId}/employment/employeefunction

URL Parameters

companyId    

Requirements

Get vacation code list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/vacationcode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/vacationcode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/vacationcode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "feriekode_firma": 123,
        "feriekode_nr": 0,
        "feriekode_tekst": "FERIE MED LØN"
    }
]
 

GET api/company/{companyId}/vacationcode

URL Parameters

companyId    

Requirements

Get single vacation code

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/vacationcode/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/vacationcode/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/vacationcode/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "feriekode_firma": 500,
    "feriekode_nr": 1,
    "feriekode_tekst": "FERIEOPSPARING"
}
 

GET api/company/{companyId}/vacationcode/{vacationCodeId}

URL Parameters

companyId    
vacationCodeId    

Requirements

Get Maternity list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/maternity"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/maternity',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/maternity'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "barsel_firma": 123,
        "barsel_nr": 0,
        "barsel_tekst": "INGEN BARSELSORDNING"
    }
]
 

GET api/company/{companyId}/maternity

URL Parameters

companyId    

Requirements

Get single maternity

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/maternity/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/maternity/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/maternity/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "barsel_firma": 123,
    "barsel_nr": 1,
    "barsel_tekst": "DA-BARSEL"
}
 

GET api/company/{companyId}/maternity/{maternityId}

URL Parameters

companyId    
maternityId    

Requirements

Holiday pay (Feriepenge)

Get all holiday pay for a single employee in the company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/holidaypay"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/holidaypay',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/holidaypay'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "feriepenge_id": 123,
        "feriepenge_firma_nr": 123,
        "feriepenge_arbejder_nr": 1,
        "feriepenge_fra_dato": "2022-02-07",
        "feriepenge_til_dato": "2022-02-07",
        "feriepenge_dage": 1
    }
]
 

GET api/company/{companyId}/employee/{employeeId}/holidaypay

URL Parameters

companyId    
employeeId    

Store holiday pay for a single employee in the company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/holidaypay"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "feriepenge": [
        "quod"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/employee/7/holidaypay',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'feriepenge' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/holidaypay'
payload = {
    "feriepenge": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "feriepenge_id": 123,
        "feriepenge_firma_nr": 123,
        "feriepenge_arbejder_nr": 1,
        "feriepenge_fra_dato": "2022-04-07",
        "feriepenge_til_dato": "2022-04-07",
        "feriepenge_dage": 1
    }
]
 

PUT api/company/{companyId}/employee/{employeeId}/holidaypay

URL Parameters

companyId    
employeeId    

Body Parameters

feriepenge   optional  
feriepenge_dage    

The værdien must be between 0.01 and 99.99.

feriepenge_fra_dato    

The værdien must be 0 or must match the format Y-m-d.

feriepenge_til_dato    

The værdien must be 0 or must match the format Y-m-d.

Get all holiday pay for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/holidaypay"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/holidaypay',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/holidaypay'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "feriepenge_id": 123,
        "feriepenge_firma_nr": 123,
        "feriepenge_arbejder_nr": 1,
        "feriepenge_fra_dato": "2020-11-17",
        "feriepenge_til_dato": "2020-11-17",
        "feriepenge_dage": 1
    },
    {
        "feriepenge_id": 124,
        "feriepenge_firma_nr": 123,
        "feriepenge_arbejder_nr": 2,
        "feriepenge_fra_dato": "2021-05-06",
        "feriepenge_til_dato": "2021-05-12",
        "feriepenge_dage": 5
    }
]
 

GET api/company/{companyId}/holidaypay

URL Parameters

companyId    

Industry (branche)

Get a list of industries

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "brance_nr": 0,
        "brance_navn": "DIVERSE / STANDARD",
        "brance_haandboglink": "",
        "brance_personalegruppe": 0,
        "brance_feriekode": 0,
        "brance_profil": 0,
        "brance_udb_ferietillaeg": 1
    }
]
 

GET api/company/{companyId}/industry

URL Parameters

companyId    

Requirements

Get a single industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry/',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "brance_nr": 0,
    "brance_navn": "DIVERSE / STANDARD",
    "brance_haandboglink": "",
    "brance_personalegruppe": 0,
    "brance_feriekode": 0,
    "brance_profil": 0,
    "brance_udb_ferietillaeg": 1
}
 

GET api/company/{companyId}/industry/{industryId}

URL Parameters

companyId    
industryId    

Requirements

Get list of AM-pension salary types in use for a specific industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry//ampension"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry//ampension',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry//ampension'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/industry/{industryId}/ampension

URL Parameters

companyId    
industryId    

Requirements

Get list of SH codes in use for a specific industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry//shcode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry//shcode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry//shcode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/industry/{industryId}/shcode

URL Parameters

companyId    
industryId    

Requirements

Get list of vacation codes in use for a specific industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry//vacation"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry//vacation',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry//vacation'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/industry/{industryId}/vacation

URL Parameters

companyId    
industryId    

Requirements

Get list of maternity codes in use for a specific industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry//maternity"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry//maternity',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry//maternity'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/industry/{industryId}/maternity

URL Parameters

companyId    
industryId    

Requirements

Get list of employee type codes in use for a specific industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry//employeetype"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry//employeetype',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry//employeetype'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/industry/{industryId}/employeetype

URL Parameters

companyId    
industryId    

Requirements

store an industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "brance_nr": 15,
    "brance_navn": "oeuholyrgmpgiatthcu",
    "brance_haandboglink": "pxqjdgzelwuufzjmpjp",
    "brance_feriekode": "0",
    "brance_personalegruppe": "0",
    "brance_profil": "0",
    "brance_udb_ferietillaeg": 15
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/industry',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'brance_nr' => 15,
            'brance_navn' => 'oeuholyrgmpgiatthcu',
            'brance_haandboglink' => 'pxqjdgzelwuufzjmpjp',
            'brance_feriekode' => '0',
            'brance_personalegruppe' => '0',
            'brance_profil' => '0',
            'brance_udb_ferietillaeg' => 15,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry'
payload = {
    "brance_nr": 15,
    "brance_navn": "oeuholyrgmpgiatthcu",
    "brance_haandboglink": "pxqjdgzelwuufzjmpjp",
    "brance_feriekode": "0",
    "brance_personalegruppe": "0",
    "brance_profil": "0",
    "brance_udb_ferietillaeg": 15
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/industry

URL Parameters

companyId    

Requirements

Body Parameters

brance_nr    
brance_navn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

brance_haandboglink   optional  

The værdien must not be greater than 255 characters.

brance_feriekode    

Must be one of 0 or 1.

brance_personalegruppe    

Must be one of 0 or 1.

brance_profil    

Must be one of 0 or 1.

brance_udb_ferietillaeg    

Update an industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "brance_navn": "toeuholyrgmpgiatthc",
    "brance_haandboglink": "upxqjdgzelwuufzjmpj",
    "brance_feriekode": "1",
    "brance_personalegruppe": "0",
    "brance_profil": true,
    "brance_udb_ferietillaeg": 15
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/industry/',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'brance_navn' => 'toeuholyrgmpgiatthc',
            'brance_haandboglink' => 'upxqjdgzelwuufzjmpj',
            'brance_feriekode' => '1',
            'brance_personalegruppe' => '0',
            'brance_profil' => true,
            'brance_udb_ferietillaeg' => 15,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry/'
payload = {
    "brance_navn": "toeuholyrgmpgiatthc",
    "brance_haandboglink": "upxqjdgzelwuufzjmpj",
    "brance_feriekode": "1",
    "brance_personalegruppe": "0",
    "brance_profil": true,
    "brance_udb_ferietillaeg": 15
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/industry/{industryId}

URL Parameters

companyId    
industryId    

Requirements

Body Parameters

brance_navn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 100 characters.

brance_haandboglink   optional  

The værdien must not be greater than 255 characters.

brance_feriekode   optional  

Must be one of 0 or 1.

brance_personalegruppe   optional  

Must be one of 0 or 1.

brance_profil   optional  
brance_udb_ferietillaeg   optional  

Delete an industry

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/industry/',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/industry/{industryId}

URL Parameters

companyId    
industryId    

Requirements

Get list of industry holiday bonus ids and texts

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/industry/holidaybonus"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/industry/holidaybonus',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/industry/holidaybonus'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "tekst": "tekst1"
    },
    {
        "id": 2,
        "tekst": "tekst2"
    },
    {
        "id": 3,
        "tekst": "tekst3"
    }
]
 

GET api/company/{companyId}/industry/holidaybonus

URL Parameters

companyId    

Requirements

Logon log (Super Admin only)

Locked users

Get a list of user the is locked out

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/logonlog"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/logonlog',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/logonlog'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/logonlog

URL Parameters

companyId    

Requirements

Reset

Reset the logon log for the giving userId

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/resetlogonlock/quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "ip": "toeuholyrgmpgiatthc",
    "type": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/resetlogonlock/quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'ip' => 'toeuholyrgmpgiatthc',
            'type' => 7,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/resetlogonlock/quod'
payload = {
    "ip": "toeuholyrgmpgiatthc",
    "type": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/resetlogonlock/{userOrCompanyId}

URL Parameters

companyId    
userOrCompanyId    

Requirements

Body Parameters

ip    

The værdien must not be greater than 46 characters.

type    

The værdien must be 1 digit.

Matrix

Display a listing of all the matrices for companyId

Deprecated

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/matrix"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/matrix',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/matrix'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "matrix_feltnr": 1,
        "matrix_feltbeskrivelse": "MedarbejderNr",
        "matrix_eksempel": 1234,
        "arbejder_felt": "arbejder_nr",
        "matrix_kraevet": true
    }
]
 

GET api/company/{companyId}/matrix

URL Parameters

companyId    

Requirements

Display a listing of all the matrices

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/matrix/all"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/matrix/all',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/matrix/all'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "matrix_feltnr": 1,
        "matrix_feltbeskrivelse": "MedarbejderNr",
        "matrix_eksempel": 1234,
        "arbejder_felt": "arbejder_nr",
        "matrix_kraevet": true
    }
]
 

GET api/company/{companyId}/matrix/all

URL Parameters

companyId    

Requirements

Display the specified matrix field.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/matrix/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/matrix/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/matrix/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "matrix_feltnr": 1,
    "matrix_feltbeskrivelse": "MedarbejderNr",
    "matrix_eksempel": 1234,
    "arbejder_felt": "arbejder_nr",
    "matrix_kraevet": true
}
 

GET api/company/{companyId}/matrix/{matrixFieldId}

URL Parameters

companyId    
matrixFieldId    

Requirements

Messages (besked system)

Get message list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "title": "Kursus",
        "important": 1,
        "reply_enabled": 0,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": null,
        "starred": 0,
        "read_at": null,
        "messagefolder_id": null,
        "comment_count": 1,
        "unread_comments": 1
    }
]
 

GET api/company/{companyId}/message

URL Parameters

companyId    

Requirements

Get unread message list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/unread"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/unread',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/unread'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "title": "Kursus",
        "important": 1,
        "reply_enabled": 1,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": "2018-05-01T09:39:00+02:00",
        "starred": 1,
        "read_at": null,
        "messagefolder_id": null,
        "comment_count": 1,
        "unread_comments": 1
    },
    {
        "id": 2,
        "title": "Kursus 2",
        "important": 1,
        "reply_enabled": 1,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": null,
        "starred": 0,
        "read_at": "2018-05-01T09:39:00+02:00",
        "messagefolder_id": 1,
        "comment_count": 11,
        "unread_comments": 10
    }
]
 

GET api/company/{companyId}/message/unread

URL Parameters

companyId    

Requirements

Get inbox message list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/inbox"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/inbox',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/inbox'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "title": "Kursus",
        "important": 1,
        "reply_enabled": 0,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": null,
        "starred": 0,
        "read_at": null,
        "messagefolder_id": null,
        "comment_count": 1,
        "unread_comments": 1
    }
]
 

GET api/company/{companyId}/message/inbox

URL Parameters

companyId    

Requirements

Get archived message list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/archived"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/archived',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/archived'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "title": "Kursus",
        "important": 1,
        "reply_enabled": 0,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": "2018-05-01T09:39:00+02:00",
        "starred": 0,
        "read_at": null,
        "messagefolder_id": null,
        "comment_count": 1,
        "unread_comments": 1
    }
]
 

GET api/company/{companyId}/message/archived

URL Parameters

companyId    

Requirements

Get starred message list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/starred"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/starred',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/starred'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "title": "Kursus",
        "important": 1,
        "reply_enabled": 0,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": "2018-05-01T09:39:00+02:00",
        "starred": 1,
        "read_at": null,
        "messagefolder_id": null,
        "comment_count": 1,
        "unread_comments": 1
    },
    {
        "id": 2,
        "title": "Kursus 2",
        "important": 0,
        "reply_enabled": 1,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": null,
        "starred": 1,
        "read_at": "2018-05-01T09:39:00+02:00",
        "messagefolder_id": 1,
        "comment_count": 11,
        "unread_comments": 10
    }
]
 

GET api/company/{companyId}/message/starred

URL Parameters

companyId    

Requirements

Get important message list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/important"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/important',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/important'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "title": "Kursus",
        "important": 1,
        "reply_enabled": 0,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": "2018-05-01T09:39:00+02:00",
        "starred": 1,
        "read_at": null,
        "messagefolder_id": null,
        "comment_count": 1,
        "unread_comments": 1
    },
    {
        "id": 2,
        "title": "Kursus 2",
        "important": 1,
        "reply_enabled": 1,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": null,
        "starred": 0,
        "read_at": "2018-05-01T09:39:00+02:00",
        "messagefolder_id": 1,
        "comment_count": 11,
        "unread_comments": 10
    }
]
 

GET api/company/{companyId}/message/important

URL Parameters

companyId    

Requirements

Get sent message list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/sent"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/sent',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/sent'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "title": "Kursus",
        "important": 0,
        "reply_enabled": 1,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": "2018-05-01T09:39:00+02:00",
        "starred": 1,
        "read_at": null,
        "messagefolder_id": null,
        "comment_count": 1,
        "unread_comments": 1
    },
    {
        "id": 2,
        "title": "Kursus 2",
        "important": 0,
        "reply_enabled": 1,
        "created_at": "2018-05-01T09:38:01+02:00",
        "deleted_at": null,
        "starred": 1,
        "read_at": "2018-05-01T09:39:00+02:00",
        "messagefolder_id": 1,
        "comment_count": 11,
        "unread_comments": 10
    }
]
 

GET api/company/{companyId}/message/sent

URL Parameters

companyId    

Requirements

Store a new Message

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "title": "toeuholyrgmpgiatthc",
    "important": "1",
    "starred": "1",
    "messagefolder_id": 15
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/message',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'title' => 'toeuholyrgmpgiatthc',
            'important' => '1',
            'starred' => '1',
            'messagefolder_id' => 15,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message'
payload = {
    "title": "toeuholyrgmpgiatthc",
    "important": "1",
    "starred": "1",
    "messagefolder_id": 15
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "id": 2,
    "title": "Hvordan før jeg mere ferie?",
    "important": 1,
    "reply_enabled": 1,
    "created_at": "2018-05-01T09:38:01+02:00",
    "deleted_at": null,
    "starred": 0,
    "read_at": null,
    "messagefolder_id": null,
    "comment_count": 1,
    "unread_comments": 1
}
 

POST api/company/{companyId}/message

URL Parameters

companyId    

Requirements

Body Parameters

title    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 200 characters.

important    

Must be one of 0 or 1.

starred    

Must be one of 0 or 1.

messagefolder_id   optional  

Restore a list of messages

Messages vil be restored

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/restore"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "messageids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/message/restore',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'messageids' => [
                15,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/restore'
payload = {
    "messageids": [
        15
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/message/restore

URL Parameters

companyId    

Requirements

Body Parameters

messageids    

Store a new Message and sent it to all/industries/companies

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/superadmin"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "title": "toeuholyrgmpgiatthc",
    "important": "1",
    "starred": "1",
    "messagefolder_id": 15,
    "all": 0,
    "recipient_industries": [
        766
    ],
    "recipient_companies": [
        7662
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/message/superadmin',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'title' => 'toeuholyrgmpgiatthc',
            'important' => '1',
            'starred' => '1',
            'messagefolder_id' => 15,
            'all' => 0,
            'recipient_industries' => [
                766,
            ],
            'recipient_companies' => [
                7662,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/superadmin'
payload = {
    "title": "toeuholyrgmpgiatthc",
    "important": "1",
    "starred": "1",
    "messagefolder_id": 15,
    "all": 0,
    "recipient_industries": [
        766
    ],
    "recipient_companies": [
        7662
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "id": 2,
    "title": "Hvordan før jeg mere ferie?",
    "important": 1,
    "reply_enabled": 0,
    "created_at": "2018-05-01T09:38:01+02:00",
    "deleted_at": null,
    "starred": 0,
    "read_at": null,
    "messagefolder_id": null,
    "comment_count": 1,
    "unread_comments": 1
}
 

POST api/company/{companyId}/message/superadmin

URL Parameters

companyId    

Requirements

Body Parameters

title    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 200 characters.

important    

Must be one of 0 or 1.

starred    

Must be one of 0 or 1.

messagefolder_id   optional  
all   optional  

Must be one of 0 or 1.

recipient_industries    

The værdien must be between 1 and 3 digits.

recipient_companies    

The værdien must be between 1 and 5 digits.

Get a Message

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/82'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "id": 1,
    "title": "Kursus",
    "important": 1,
    "reply_enabled": 0,
    "created_at": "2018-05-01T09:38:01+02:00",
    "deleted_at": null,
    "starred": 0,
    "read_at": null,
    "messagefolder_id": null,
    "comment_count": 1,
    "unread_comments": 1
}
 

GET api/company/{companyId}/message/{messageId}

URL Parameters

companyId    
messageId    

Requirements

Update a Message

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "title": "toeuholyrgmpgiatthc",
    "important": 0,
    "reply_enabled": 0,
    "starred": 0,
    "messagefolder_id": 0
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/message/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'title' => 'toeuholyrgmpgiatthc',
            'important' => 0,
            'reply_enabled' => 0,
            'starred' => 0,
            'messagefolder_id' => 0,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/82'
payload = {
    "title": "toeuholyrgmpgiatthc",
    "important": 0,
    "reply_enabled": 0,
    "starred": 0,
    "messagefolder_id": 0
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/message/{messageId}

URL Parameters

companyId    
messageId    

Requirements

Body Parameters

title    

The værdien must not be greater than 200 characters.

important   optional  

Must be one of 0 or 1.

reply_enabled   optional  

Must be one of 0 or 1.

starred   optional  

Must be one of 0 or 1.

messagefolder_id   optional  

Remove a list message

Messages vil be marked delete, but can be restored later by '/restore' command

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "messageids": [
        15
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/message/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'messageids' => [
                15,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/list'
payload = {
    "messageids": [
        15
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

DELETE api/company/{companyId}/message/list

URL Parameters

companyId    

Requirements

Body Parameters

messageids    

POST api/company/{companyId}/message/markread

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/markread"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "messageids": [
        15
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/message/markread',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'messageids' => [
                15,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/markread'
payload = {
    "messageids": [
        15
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/message/markread

URL Parameters

companyId    

Requirements

Body Parameters

messageids    

Remove a message

Message vil be marked delete, but can be restored later by '/restore' command

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/message/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/82'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/message/{messageId}

URL Parameters

companyId    
messageId    

Requirements

Restore a Message

Message vil be restored

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/markread"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/message/82/markread',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/82/markread'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers)
response.json()

POST api/company/{companyId}/message/{messageId}/markread

URL Parameters

companyId    
messageId    

Requirements

Restore a Message

Message vil be restored

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/restore"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/message/82/restore',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/82/restore'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers)
response.json()

POST api/company/{companyId}/message/{messageId}/restore

URL Parameters

companyId    
messageId    

Requirements

Get Message commentslist

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/comment"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/message/82/comment',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/82/comment'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "comment": "Husk at der er kursus i dag.",
        "sender": "123-user",
        "created_at": "2018-05-01T09:28:18+01:00"
    }
]
 

GET api/company/{companyId}/message/{messageId}/comment

URL Parameters

companyId    
messageId    

Requirements

Store comment to Message

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/comment"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "comment": "toeuholyrgmpgiatthc"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/message/82/comment',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'comment' => 'toeuholyrgmpgiatthc',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/message/82/comment'
payload = {
    "comment": "toeuholyrgmpgiatthc"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "id": 2,
    "comment": "Husk at der er kursus i dag.",
    "sender": "123-user",
    "created_at": "2018-05-01T09:28:18+01:00"
}
 

POST api/company/{companyId}/message/{messageId}/comment

URL Parameters

companyId    
messageId    

Requirements

Body Parameters

comment    

The værdien must not be greater than 4000 characters.

Notice (info)

Get info for proløn branch

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/branch/proloen"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/branch/proloen',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/branch/proloen'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "info_id": 1,
        "info_titel": "Info titel",
        "info_tekst": "Info tekst",
        "info_tildato": "2017-12-12",
        "info_brance": -1
    }
]
 

GET api/company/{companyId}/branch/proloen

URL Parameters

companyId    

Requirements

Get info for branch

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/branch/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/branch/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/branch/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "info_id": 1,
        "info_titel": "Info titel",
        "info_tekst": "Info tekst",
        "info_tildato": "2017-12-12",
        "info_brance": 2
    }
]
 

GET api/company/{companyId}/branch/{infoBranchId}

URL Parameters

companyId    
infoBranchId    

Requirements

Get reminder list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/reminder"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/reminder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/reminder'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "kalender_id": 1,
        "kalender_firma": 123,
        "kalender_dato": "2017-12-26",
        "kalender_aktiv": "J",
        "kalender_tekst": "kalender tekst",
        "kalender_frabs2": "N"
    }
]
 

GET api/company/{companyId}/reminder

URL Parameters

companyId    

Requirements

Get reminder in iCS format. (content type "text/calendar")

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/reminder/82/ics"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/reminder/82/ics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/reminder/82/ics'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/reminder/{reminderId}/ics

URL Parameters

companyId    
reminderId    

Requirements

Create reminder

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/reminder"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "kalender_tekst": "toeuholyrgmpgiatthc",
    "kalender_dato": "2024-04-09"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/reminder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'kalender_tekst' => 'toeuholyrgmpgiatthc',
            'kalender_dato' => '2024-04-09',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/reminder'
payload = {
    "kalender_tekst": "toeuholyrgmpgiatthc",
    "kalender_dato": "2024-04-09"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "kalender_id": 1,
    "kalender_firma": 123,
    "kalender_dato": "2017-12-26",
    "kalender_aktiv": "J",
    "kalender_tekst": "kalender tekst",
    "kalender_frabs2": "N"
}
 

POST api/company/{companyId}/reminder

URL Parameters

companyId    

Requirements

Body Parameters

kalender_tekst    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 60 characters.

kalender_dato    

Must be a valid date in the format Y-m-d.

Update reminder

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/reminder/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "kalender_tekst": "toeuholyrgmpgiatthc",
    "kalender_dato": "2024-04-09",
    "kalender_aktiv": "u"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/reminder/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'kalender_tekst' => 'toeuholyrgmpgiatthc',
            'kalender_dato' => '2024-04-09',
            'kalender_aktiv' => 'u',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/reminder/82'
payload = {
    "kalender_tekst": "toeuholyrgmpgiatthc",
    "kalender_dato": "2024-04-09",
    "kalender_aktiv": "u"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/reminder/{reminderId}

URL Parameters

companyId    
reminderId    

Requirements

Body Parameters

kalender_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 60 characters.

kalender_dato   optional  

This field is required when kalender_tekst is not present
Must be a valid date in the format Y-m-d.

kalender_aktiv   optional  

The værdien must not be greater than 1 character.

Delete reminder

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/reminder/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/reminder/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/reminder/82'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/reminder/{reminderId}

URL Parameters

companyId    
reminderId    

Requirements

Profile

Get profile list

Includes salary types

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/profile"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/profile',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/profile'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "companyProfileList": [
        {
            "firmaprofil_firma": 123,
            "firmaprofil_nr": "PROFIL1",
            "firmaprofil_tekst": "",
            "firmaprofil_atpkode": 0,
            "firmaprofil_feriekode": 0,
            "firmaprofil_shkode": 0,
            "firmaprofil_ampension": 0,
            "firmaprofil_ansaettelsetype": 0,
            "firmaprofil_ansaettelsevilkaar": 0,
            "firmaprofil_arbejderfunktion": null,
            "firmaprofil_jobstatus": 0,
            "firmaprofil_afloenningsform": 0,
            "firmaprofil_dabarsel": "0",
            "firmaprofil_dalouddannelsesbidrag": 0,
            "firmaprofil_arbejdsfunktion2": 0,
            "firmaprofil_arbejdertype": 0,
            "firmaprofil_afdeling": 0,
            "firmaprofil_eboks": "N",
            "firmaprofil_beskaeftigelseskode": 0,
            "firmaprofil_kompetencefond": 0,
            "firmaprofil_samarbuddannelsesfond": 0,
            "firmaprofil_produktionsenhedsnr": "",
            "firmaprofil_opgoerelsesperiodetype_id": 1,
            "firmaprofil_opgoerelsesperiodemedarbejder_valg": 1,
            "firmaprofil_loesarbejder": "N",
            "firmaprofil_sundhedsordning": 0
        }
    ],
    "standardProfileList": [
        {
            "stdprofil_brance": 2,
            "stdprofil_nr": "BL",
            "stdprofil_tekst": "stdprofil tekst",
            "stdprofil_atpkode": 1,
            "stdprofil_feriekode": 1,
            "stdprofil_shkode": 1,
            "stdprofil_ampension": 0,
            "stdprofil_ansaettelsetype": 1,
            "stdprofil_ansaettelsevilkaar": 3,
            "stdprofil_arbejderfunktion": 0,
            "stdprofil_jobstatus": 1,
            "stdprofil_afloenningsform": 1,
            "stdprofil_dabarsel": "0",
            "stdprofil_dalouddannelsesbidrag": 0,
            "stdprofil_arbejdsfunktion2": 751200,
            "stdprofil_arbejdertype": 0,
            "stdprofil_afdeling": 0,
            "stdprofil_eboks": "N",
            "stdprofil_beskaeftigelseskode": 0,
            "stdprofil_kompetencefond": 0,
            "stdprofil_samarbuddannelsesfond": 0,
            "stdprofil_produktionsenhedsnr": ""
        }
    ]
}
 

GET api/company/{companyId}/profile

URL Parameters

companyId    

Requirements

Get single profile

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "companyProfile": {
        "firmaprofil_firma": 123,
        "firmaprofil_nr": "BL",
        "firmaprofil_tekst": "",
        "firmaprofil_atpkode": 0,
        "firmaprofil_feriekode": 0,
        "firmaprofil_shkode": 0,
        "firmaprofil_ampension": 0,
        "firmaprofil_ansaettelsetype": 0,
        "firmaprofil_ansaettelsevilkaar": 0,
        "firmaprofil_arbejderfunktion": null,
        "firmaprofil_jobstatus": 0,
        "firmaprofil_afloenningsform": 0,
        "firmaprofil_dabarsel": "0",
        "firmaprofil_dalouddannelsesbidrag": 0,
        "firmaprofil_arbejdsfunktion2": 0,
        "firmaprofil_arbejdertype": 0,
        "firmaprofil_afdeling": 0,
        "firmaprofil_eboks": "N",
        "firmaprofil_beskaeftigelseskode": 0,
        "firmaprofil_kompetencefond": 0,
        "firmaprofil_samarbuddannelsesfond": 0,
        "firmaprofil_produktionsenhedsnr": "",
        "firmaprofil_opgoerelsesperiodetype_id": 1,
        "firmaprofil_opgoerelsesperiodemedarbejder_valg": 1,
        "firmaprofil_loesarbejder": "N",
        "firmaprofil_sundhedsordning": 0,
        "firmaprofilloenart": [
            {
                "firmaprofilloenart_firma": 123,
                "firmaprofilloenart_firmaprofil": "BL",
                "firmaprofilloenart_loenart": 9350,
                "loenart_firma": 123,
                "loenart_nr": 9350,
                "loenart_tf": "F",
                "loenart_tekst": "UDB. A'CONTO",
                "loenart_sats": 0,
                "loenart_minantal": 0,
                "loenart_maxantal": 0,
                "loenart_minsats": 0,
                "loenart_maxsats": 0,
                "loenart_minbeloeb": -9999999,
                "loenart_maxbeloeb": 9999999,
                "loenart_nulstil": 1,
                "loenart_beregningskode": 0,
                "loenart_changed": 0,
                "loenart_bruttoskat": 0,
                "loenart_aindkomst": 0,
                "loenart_ferieberettetloen": 0,
                "loenart_pensiongloen": 0,
                "loenart_atp": 0,
                "loenart_tidkode": 0,
                "loenart_tidfaktor": 0,
                "loenart_feriepengeudb": 0,
                "loenart_haandteringskode": 0,
                "loenart_type": 0,
                "loenart_firmaloenart": 1,
                "loenart_standard": true,
                "loenart_satser": {
                    "1": 0,
                    "2": 0,
                    "3": 0
                },
                "loenartbeskrivelse_tekst": "",
                "loenart_haandteringskode_text": "Ingen kode"
            }
        ]
    },
    "standardProfile": {
        "stdprofil_brance": 2,
        "stdprofil_nr": "BL",
        "stdprofil_tekst": "stdprofil tekst",
        "stdprofil_atpkode": 1,
        "stdprofil_feriekode": 1,
        "stdprofil_shkode": 1,
        "stdprofil_ampension": 0,
        "stdprofil_ansaettelsetype": 1,
        "stdprofil_ansaettelsevilkaar": 3,
        "stdprofil_arbejderfunktion": 0,
        "stdprofil_jobstatus": 1,
        "stdprofil_afloenningsform": 1,
        "stdprofil_dabarsel": "0",
        "stdprofil_dalouddannelsesbidrag": 0,
        "stdprofil_arbejdsfunktion2": 751200,
        "stdprofil_arbejdertype": 0,
        "stdprofil_afdeling": 0,
        "stdprofil_eboks": "N",
        "stdprofil_beskaeftigelseskode": 0,
        "stdprofil_kompetencefond": 0,
        "stdprofil_samarbuddannelsesfond": 0,
        "stdprofil_produktionsenhedsnr": "",
        "standardprofilloenart": [
            {
                "stdprofilloenart_brance": 2,
                "stdprofilloenart_profil": "BL",
                "stdprofilloenart_loenart": 9350,
                "loenart_firma": 123,
                "loenart_nr": 9350,
                "loenart_tf": "F",
                "loenart_tekst": "UDB. A'CONTO",
                "loenart_sats": 0,
                "loenart_minantal": 0,
                "loenart_maxantal": 0,
                "loenart_minsats": 0,
                "loenart_maxsats": 0,
                "loenart_minbeloeb": -9999999,
                "loenart_maxbeloeb": 9999999,
                "loenart_nulstil": 1,
                "loenart_beregningskode": 0,
                "loenart_changed": 0,
                "loenart_bruttoskat": 0,
                "loenart_aindkomst": 0,
                "loenart_ferieberettetloen": 0,
                "loenart_pensiongloen": 0,
                "loenart_atp": 0,
                "loenart_tidkode": 0,
                "loenart_tidfaktor": 0,
                "loenart_feriepengeudb": 0,
                "loenart_haandteringskode": 0,
                "loenart_type": 0,
                "loenart_firmaloenart": 1,
                "loenart_standard": true,
                "loenart_satser": {
                    "1": 0,
                    "2": 0,
                    "3": 0
                },
                "loenartbeskrivelse_tekst": "",
                "loenart_haandteringskode_text": "Ingen kode"
            }
        ]
    }
}
 

GET api/company/{companyId}/profile/{profileId}

URL Parameters

companyId    
profileId    

Requirements

Create profile

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/profile"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmaprofil_nr": "toeuho",
    "firmaprofil_tekst": "lyrgmpgiatthcupxqjd",
    "firmaprofil_atpkode": "4",
    "firmaprofil_feriekode": 1,
    "firmaprofil_shkode": 0,
    "firmaprofil_ampension": 15,
    "firmaprofil_ansaettelsetype": 15,
    "firmaprofil_ansaettelsevilkaar": 15,
    "firmaprofil_arbejderfunktion": 15,
    "firmaprofil_jobstatus": 15,
    "firmaprofil_afloenningsform": 15,
    "firmaprofil_dabarsel": 1,
    "firmaprofil_dalouddannelsesbidrag": 15,
    "firmaprofil_arbejdsfunktion2": 1,
    "firmaprofil_arbejdertype": 0,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "K",
    "firmaprofil_beskaeftigelseskode": 0,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "oeuholyr",
    "firmaprofil_sundhedsordning": 76,
    "firmaprofil_loesarbejder": "o",
    "firmaprofil_opgoerelsesperiodetype_id": 15,
    "firmaprofil_opgoerelsesperiodemedarbejder_valg": 15,
    "firmaprofil_loentillaeg": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/profile',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmaprofil_nr' => 'toeuho',
            'firmaprofil_tekst' => 'lyrgmpgiatthcupxqjd',
            'firmaprofil_atpkode' => '4',
            'firmaprofil_feriekode' => 1,
            'firmaprofil_shkode' => 0,
            'firmaprofil_ampension' => 15,
            'firmaprofil_ansaettelsetype' => 15,
            'firmaprofil_ansaettelsevilkaar' => 15,
            'firmaprofil_arbejderfunktion' => 15,
            'firmaprofil_jobstatus' => 15,
            'firmaprofil_afloenningsform' => 15,
            'firmaprofil_dabarsel' => 1,
            'firmaprofil_dalouddannelsesbidrag' => 15,
            'firmaprofil_arbejdsfunktion2' => 1,
            'firmaprofil_arbejdertype' => 0,
            'firmaprofil_afdeling' => 15,
            'firmaprofil_eboks' => 'K',
            'firmaprofil_beskaeftigelseskode' => 0,
            'firmaprofil_kompetencefond' => 15,
            'firmaprofil_samarbuddannelsesfond' => 15,
            'firmaprofil_produktionsenhedsnr' => 'oeuholyr',
            'firmaprofil_sundhedsordning' => 76,
            'firmaprofil_loesarbejder' => 'o',
            'firmaprofil_opgoerelsesperiodetype_id' => 15,
            'firmaprofil_opgoerelsesperiodemedarbejder_valg' => 15,
            'firmaprofil_loentillaeg' => 7,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/profile'
payload = {
    "firmaprofil_nr": "toeuho",
    "firmaprofil_tekst": "lyrgmpgiatthcupxqjd",
    "firmaprofil_atpkode": "4",
    "firmaprofil_feriekode": 1,
    "firmaprofil_shkode": 0,
    "firmaprofil_ampension": 15,
    "firmaprofil_ansaettelsetype": 15,
    "firmaprofil_ansaettelsevilkaar": 15,
    "firmaprofil_arbejderfunktion": 15,
    "firmaprofil_jobstatus": 15,
    "firmaprofil_afloenningsform": 15,
    "firmaprofil_dabarsel": 1,
    "firmaprofil_dalouddannelsesbidrag": 15,
    "firmaprofil_arbejdsfunktion2": 1,
    "firmaprofil_arbejdertype": 0,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "K",
    "firmaprofil_beskaeftigelseskode": 0,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "oeuholyr",
    "firmaprofil_sundhedsordning": 76,
    "firmaprofil_loesarbejder": "o",
    "firmaprofil_opgoerelsesperiodetype_id": 15,
    "firmaprofil_opgoerelsesperiodemedarbejder_valg": 15,
    "firmaprofil_loentillaeg": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "firmaprofil_firma": 123,
    "firmaprofil_nr": "PROFIL1",
    "firmaprofil_tekst": "",
    "firmaprofil_atpkode": 0,
    "firmaprofil_feriekode": 0,
    "firmaprofil_shkode": 0,
    "firmaprofil_ampension": 0,
    "firmaprofil_ansaettelsetype": 0,
    "firmaprofil_ansaettelsevilkaar": 0,
    "firmaprofil_arbejderfunktion": null,
    "firmaprofil_jobstatus": 0,
    "firmaprofil_afloenningsform": 0,
    "firmaprofil_dabarsel": "0",
    "firmaprofil_dalouddannelsesbidrag": 0,
    "firmaprofil_arbejdsfunktion2": 0,
    "firmaprofil_arbejdertype": 0,
    "firmaprofil_afdeling": 0,
    "firmaprofil_eboks": "N",
    "firmaprofil_beskaeftigelseskode": 0,
    "firmaprofil_kompetencefond": 0,
    "firmaprofil_samarbuddannelsesfond": 0,
    "firmaprofil_produktionsenhedsnr": "",
    "firmaprofil_opgoerelsesperiodetype_id": 1,
    "firmaprofil_opgoerelsesperiodemedarbejder_valg": 1,
    "firmaprofil_loesarbejder": "N",
    "firmaprofil_sundhedsordning": 0
}
 

POST api/company/{companyId}/profile

URL Parameters

companyId    

Requirements

Body Parameters

firmaprofil_nr    

The værdien can only contain A-Å 0-9 The værdien must not be greater than 7 characters.

firmaprofil_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

firmaprofil_atpkode    

Must be one of 0, 1, 2, 4, 5, or 6.

firmaprofil_feriekode    

The værdien must be between 0 and 9.

firmaprofil_shkode    

The værdien must be between 0 and 9.

firmaprofil_ampension    
firmaprofil_ansaettelsetype    
firmaprofil_ansaettelsevilkaar    
firmaprofil_arbejderfunktion    
firmaprofil_jobstatus    
firmaprofil_afloenningsform    
firmaprofil_dabarsel    

The værdien must be between 0 and 1.

firmaprofil_dalouddannelsesbidrag    
firmaprofil_arbejdsfunktion2    

The værdien must be between 0 and 999999.

firmaprofil_arbejdertype    

The værdien must be between 0 and 3.

firmaprofil_afdeling    
firmaprofil_eboks   optional  

Is used for digital mail and not only for e-Boks

firmaprofil_beskaeftigelseskode    

The værdien must be between 0 and 99.

firmaprofil_kompetencefond    
firmaprofil_samarbuddannelsesfond    
firmaprofil_produktionsenhedsnr   optional  

The værdien must not be greater than 10 characters.

firmaprofil_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

firmaprofil_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

firmaprofil_opgoerelsesperiodetype_id   optional  
firmaprofil_opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

firmaprofil_loentillaeg   optional  

The værdien must be 1 digit.

Update profile

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmaprofil_tekst": "toeuholyrgmpgiatthc",
    "firmaprofil_atpkode": "1",
    "firmaprofil_feriekode": 1,
    "firmaprofil_shkode": 1,
    "firmaprofil_ampension": 15,
    "firmaprofil_ansaettelsetype": 15,
    "firmaprofil_ansaettelsevilkaar": 15,
    "firmaprofil_arbejderfunktion": 15,
    "firmaprofil_jobstatus": 15,
    "firmaprofil_afloenningsform": 15,
    "firmaprofil_dabarsel": 1,
    "firmaprofil_dalouddannelsesbidrag": 15,
    "firmaprofil_arbejdsfunktion2": 1,
    "firmaprofil_arbejdertype": 0,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "K",
    "firmaprofil_beskaeftigelseskode": 0,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "oeuholyr",
    "firmaprofil_sundhedsordning": 76,
    "firmaprofil_loesarbejder": "o",
    "firmaprofil_opgoerelsesperiodetype_id": 15,
    "firmaprofil_opgoerelsesperiodemedarbejder_valg": 15,
    "firmaprofil_loentillaeg": 7
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmaprofil_tekst' => 'toeuholyrgmpgiatthc',
            'firmaprofil_atpkode' => '1',
            'firmaprofil_feriekode' => 1,
            'firmaprofil_shkode' => 1,
            'firmaprofil_ampension' => 15,
            'firmaprofil_ansaettelsetype' => 15,
            'firmaprofil_ansaettelsevilkaar' => 15,
            'firmaprofil_arbejderfunktion' => 15,
            'firmaprofil_jobstatus' => 15,
            'firmaprofil_afloenningsform' => 15,
            'firmaprofil_dabarsel' => 1,
            'firmaprofil_dalouddannelsesbidrag' => 15,
            'firmaprofil_arbejdsfunktion2' => 1,
            'firmaprofil_arbejdertype' => 0,
            'firmaprofil_afdeling' => 15,
            'firmaprofil_eboks' => 'K',
            'firmaprofil_beskaeftigelseskode' => 0,
            'firmaprofil_kompetencefond' => 15,
            'firmaprofil_samarbuddannelsesfond' => 15,
            'firmaprofil_produktionsenhedsnr' => 'oeuholyr',
            'firmaprofil_sundhedsordning' => 76,
            'firmaprofil_loesarbejder' => 'o',
            'firmaprofil_opgoerelsesperiodetype_id' => 15,
            'firmaprofil_opgoerelsesperiodemedarbejder_valg' => 15,
            'firmaprofil_loentillaeg' => 7,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "firmaprofil_tekst": "toeuholyrgmpgiatthc",
    "firmaprofil_atpkode": "1",
    "firmaprofil_feriekode": 1,
    "firmaprofil_shkode": 1,
    "firmaprofil_ampension": 15,
    "firmaprofil_ansaettelsetype": 15,
    "firmaprofil_ansaettelsevilkaar": 15,
    "firmaprofil_arbejderfunktion": 15,
    "firmaprofil_jobstatus": 15,
    "firmaprofil_afloenningsform": 15,
    "firmaprofil_dabarsel": 1,
    "firmaprofil_dalouddannelsesbidrag": 15,
    "firmaprofil_arbejdsfunktion2": 1,
    "firmaprofil_arbejdertype": 0,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "K",
    "firmaprofil_beskaeftigelseskode": 0,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "oeuholyr",
    "firmaprofil_sundhedsordning": 76,
    "firmaprofil_loesarbejder": "o",
    "firmaprofil_opgoerelsesperiodetype_id": 15,
    "firmaprofil_opgoerelsesperiodemedarbejder_valg": 15,
    "firmaprofil_loentillaeg": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/profile/{profileId}

URL Parameters

companyId    
profileId    

Requirements

Body Parameters

firmaprofil_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

firmaprofil_atpkode   optional  

Must be one of 0, 1, 2, 4, 5, or 6.

firmaprofil_feriekode   optional  

The værdien must be between 0 and 9.

firmaprofil_shkode   optional  

The værdien must be between 0 and 9.

firmaprofil_ampension   optional  
firmaprofil_ansaettelsetype   optional  
firmaprofil_ansaettelsevilkaar   optional  
firmaprofil_arbejderfunktion   optional  
firmaprofil_jobstatus   optional  
firmaprofil_afloenningsform   optional  
firmaprofil_dabarsel   optional  

The værdien must be between 0 and 1.

firmaprofil_dalouddannelsesbidrag   optional  
firmaprofil_arbejdsfunktion2   optional  

The værdien must be between 0 and 999999.

firmaprofil_arbejdertype   optional  

The værdien must be between 0 and 3.

firmaprofil_afdeling   optional  
firmaprofil_eboks   optional  

Is used for digital mail and not only for e-Boks

firmaprofil_beskaeftigelseskode   optional  

The værdien must be between 0 and 99.

firmaprofil_kompetencefond   optional  
firmaprofil_samarbuddannelsesfond   optional  
firmaprofil_produktionsenhedsnr   optional  

The værdien must not be greater than 10 characters.

firmaprofil_sundhedsordning   optional  

The værdien must be between 1 and 2 digits.

firmaprofil_loesarbejder   optional  

Must be one of J, N, j, or n The værdien must not be greater than 1 character.

firmaprofil_opgoerelsesperiodetype_id   optional  
firmaprofil_opgoerelsesperiodemedarbejder_valg   optional  

The værdien must be at least 1
The værdien must not be greater than 31.

firmaprofil_loentillaeg   optional  

The værdien must be 1 digit.

Delete profile

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/profile/{profileId}

URL Parameters

companyId    
profileId    

Requirements

Profile salary type

Get profile salary type list

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "firmaprofilloenart": [
        {
            "firmaprofilloenart_firma": 461,
            "firmaprofilloenart_firmaprofil": "2",
            "firmaprofilloenart_loenart": 920,
            "firmaprofilloenart_antal": 0,
            "loenart_firma": 461,
            "loenart_nr": 920,
            "loenart_tf": "T",
            "loenart_tekst": "MÅNEDSLØN",
            "loenart_sats": 0,
            "loenart_minantal": -99999,
            "loenart_maxantal": 99999,
            "loenart_minsats": 0,
            "loenart_maxsats": 99999,
            "loenart_minbeloeb": -9999999,
            "loenart_maxbeloeb": 9999999,
            "loenart_nulstil": 0,
            "loenart_beregningskode": 0,
            "loenart_changed": 0,
            "loenart_bruttoskat": 1,
            "loenart_aindkomst": 1,
            "loenart_ferieberettetloen": 1,
            "loenart_pensiongloen": 1,
            "loenart_atp": 1,
            "loenart_tidkode": 0,
            "loenart_tidfaktor": 0,
            "loenart_feriepengeudb": 0,
            "loenart_haandteringskode": 0,
            "loenart_type": 0,
            "loenart_firmaloenart": 0,
            "loenart_slutmarkering": "0",
            "loenart_ejgroenland": "0",
            "loenart_anvendelsesstartdato": "0",
            "loenart_anvendelsesslutdato": "0",
            "loenartafdeling": false,
            "loenart_standard": false,
            "loenart_satser": {
                "1": 0,
                "2": 0,
                "3": 0
            },
            "loenart_haandteringskode_text": "Ingen kode",
            "loenartbeskrivelse_tekst": ""
        }
    ],
    "standardprofilloenart": []
}
 

GET api/company/{companyId}/profile/{profileId}/salarytype

URL Parameters

companyId    
profileId    

Requirements

Create profile salary type

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmaprofilloenart_loenart": 766,
    "firmaprofilloenart_antal": -99998
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmaprofilloenart_loenart' => 766,
            'firmaprofilloenart_antal' => -99998,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "firmaprofilloenart_loenart": 766,
    "firmaprofilloenart_antal": -99998
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "firmaprofilloenart_firma": 123,
    "firmaprofilloenart_firmaprofil": "Profil1",
    "firmaprofilloenart_loenart": 920,
    "firmaprofilloenart_antal": 0
}
 

POST api/company/{companyId}/profile/{profileId}/salarytype

URL Parameters

companyId    
profileId    

Requirements

Body Parameters

firmaprofilloenart_loenart    

The værdien must be between 1 and 4 digits.

firmaprofilloenart_antal   optional  

The værdien must be between -99999.99 and 99999.99.

replaces profile salary type

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firmaprofilloenart": [
        "quod"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firmaprofilloenart' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "firmaprofilloenart": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "firmaprofilloenart_firma": 123,
    "firmaprofilloenart_firmaprofil": "Profil1",
    "firmaprofilloenart_loenart": 920,
    "firmaprofilloenart_antal": 0
}
 

PUT api/company/{companyId}/profile/{profileId}/salarytype

URL Parameters

companyId    
profileId    

Requirements

Body Parameters

firmaprofilloenart   optional  
firmaprofilloenart_loenart    

The værdien must be between 1 and 4 digits.

firmaprofilloenart_antal    

The værdien must be between -99999.99 and 99999.99.

Delete profile salary type

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/profile/{profileId}/salarytype/{salaryTypeId}

URL Parameters

companyId    
profileId    
salaryTypeId    

Requirements

Project

Get project list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/project"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/project',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "projekt_firma": 123,
        "projekt_nr": "4100000",
        "projekt_tekst": ""
    }
]
 

GET api/company/{companyId}/project

URL Parameters

companyId    

Requirements

Get single project

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/project/72"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/project/72',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project/72'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "projekt_firma": 123,
    "projekt_nr": "4100000",
    "projekt_tekst": ""
}
 

GET api/company/{companyId}/project/{projectId}

URL Parameters

companyId    
projectId    

Requirements

Create project

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/project"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "projekt_nr": "A-322",
    "projekt_tekst": "Randers"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/project',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'projekt_nr' => 'A-322',
            'projekt_tekst' => 'Randers',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project'
payload = {
    "projekt_nr": "A-322",
    "projekt_tekst": "Randers"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "projekt_firma": 123,
    "projekt_nr": "A-322",
    "projekt_tekst": "Randers"
}
 

POST api/company/{companyId}/project

URL Parameters

companyId    

Requirements

Body Parameters

projekt_nr    

Can only contain a-Å 0-9 and - and must not be greater than 20 characters.

projekt_tekst    

Can only contain A-Å 0-9,+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 30 characters.

Update project

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/project/72"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "projekt_tekst": "Randers"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/project/72',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'projekt_tekst' => 'Randers',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project/72'
payload = {
    "projekt_tekst": "Randers"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/project/{projectId}

URL Parameters

companyId    
projectId    

Requirements

Body Parameters

projekt_tekst    

Can only contain A-Å 0-9,+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 30 characters.

delete project

To delete a project, there must be no reference between the project and any pay transaction

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/project/72"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/project/72',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project/72'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/project/{projectId}

URL Parameters

companyId    
projectId    

Requirements

Create project, file

Method for handling bulk creation of projects from a file

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/project/bulk/file"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

const body = new FormData();
body.append('projects', '007;Project name');
body.append('projektFil', document.querySelector('input[name="projektFil"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/project/bulk/file',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'multipart' => [
            [
                'name' => 'projects',
                'contents' => '007;Project name'
            ],
            [
                'name' => 'projektFil',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php8D4C.tmp', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project/bulk/file'
files = {
  'projektFil': open('C:\Users\Administrator\AppData\Local\Temp\php8D4C.tmp', 'rb')
}
payload = {
    "projects": "007;Project name"
}
headers = {
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, files=files, data=payload)
response.json()

POST api/company/{companyId}/project/bulk/file

URL Parameters

companyId    

Requirements

Body Parameters

projektFil    

Must be a file.

projects    

the id and text as string

Create project, text

Method for handling bulk creation of projects from a text (field)

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/project/bulk/field"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "projekter": "quod",
    "projects": "007;Project name"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/project/bulk/field',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'projekter' => 'quod',
            'projects' => '007;Project name',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project/bulk/field'
payload = {
    "projekter": "quod",
    "projects": "007;Project name"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/project/bulk/field

URL Parameters

companyId    

Requirements

Body Parameters

projekter    
projects    

the id and text as string

Salary category

Get salary category list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarycategory"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarycategory',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarycategory'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenartstrukturkategori_kategori1": 1000,
        "loenartstrukturkategori_kategori2": 0,
        "loenartstrukturkategori_tekst": "AM-PENSION",
        "loenartstrukturkategori_brance": 0,
        "loenartstrukturkategori_doku_tekst": "",
        "subCategories": [
            {
                "loenartstrukturkategori_kategori1": 1000,
                "loenartstrukturkategori_kategori2": 900,
                "loenartstrukturkategori_tekst": "GRUNDLAG VSN.1.",
                "loenartstrukturkategori_brance": 0,
                "loenartstrukturkategori_doku_tekst": "",
                "salaryTypes": [
                    8900
                ],
                "salaryTypesWithBranch": [
                    {
                        "loenartstruktur_brance": 2,
                        "loenartstruktur_loenart": 8900
                    }
                ]
            }
        ]
    }
]
 

GET api/company/{companyId}/salarycategory

URL Parameters

companyId    

Requirements

Get sub category list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarycategory/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarycategory/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarycategory/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenartstrukturkategori_kategori1": 1000,
        "loenartstrukturkategori_kategori2": 900,
        "loenartstrukturkategori_tekst": "AM-PENSION",
        "loenartstrukturkategori_brance": 0,
        "loenartstrukturkategori_doku_tekst": ""
    }
]
 

GET api/company/{companyId}/salarycategory/{salarycategory}

URL Parameters

companyId    
salarycategory    

The salarycategory.

Requirements

Get salary type list based on salary category and sub category

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarycategory/7/subcategory/7/salarytypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarycategory/7/subcategory/7/salarytypes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarycategory/7/subcategory/7/salarytypes'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenart_nr": 110,
        "loenart_tekst": "FERIEFRI"
    }
]
 

GET api/company/{companyId}/salarycategory/{salarycategory}/subcategory/{salarysubcategory}/salarytypes

URL Parameters

companyId    
salarycategory    

The salarycategory.

salarysubcategory    

Requirements

Salary order

check if it is possible to approve order

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder/canapprove"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salaryorder/canapprove',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder/canapprove'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "canApprove": true
}
 

GET api/company/{companyId}/salaryorder/canapprove

URL Parameters

companyId    

Requirements

Overview

Get salary overview data

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salaryorder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "arbejdertype_nr": 1,
        "arbejdertype_bruttonloen": 1234.5,
        "arbejdertypebeskrivelse_navn": "14-dages-løn",
        "loentermin_dispdato": "2017-12-15",
        "loentermin_sidste": false,
        "aktiv": true,
        "arbejder_loen_ja": 3,
        "arbejder_loentransaktioner_fejl": 0,
        "employeesWithErrors": []
    }
]
 

GET api/company/{companyId}/salaryorder

URL Parameters

companyId    

Requirements

Order status

Info regarding order status

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder/ordered"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salaryorder/ordered',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder/ordered'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "firma_laast": 1,
    "firma_manglergodkendelse": 0,
    "firma_annulleringtilladt": 0
}
 

GET api/company/{companyId}/salaryorder/ordered

URL Parameters

companyId    

Requirements

List of approvals

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder/approval"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salaryorder/approval',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder/approval'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "godkendelser_firma": 4730,
        "godkendelser_brugernavn": "4730",
        "godkendelser_type": 1,
        "godkendelser_datetime": "2017-11-22 08:24:56.600"
    }
]
 

GET api/company/{companyId}/salaryorder/approval

URL Parameters

companyId    

Requirements

Banking day list

List of banking days in the current year

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder/bankingdaylist"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salaryorder/bankingdaylist',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder/bankingdaylist'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    "2018-01-02",
    "2018-01-03",
    "2018-01-04",
    "2018-01-05",
    "2018-01-08"
]
 

GET api/company/{companyId}/salaryorder/bankingdaylist

URL Parameters

companyId    

Requirements

Initials (Super Admin only)

Get list of ProLøn initials

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder/initiallist"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salaryorder/initiallist',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder/initiallist'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "initialer_id": 1,
        "initialer_initialer": "TEST"
    }
]
 

GET api/company/{companyId}/salaryorder/initiallist

URL Parameters

companyId    

Requirements

Store approval

It is not possible to do an approval without creating a salary order first

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder/approval"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "sms_user_list": [
        "quod"
    ],
    "mail_user_list": [
        "quod"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salaryorder/approval',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'sms_user_list' => [
                'quod',
            ],
            'mail_user_list' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder/approval'
payload = {
    "sms_user_list": [
        "quod"
    ],
    "mail_user_list": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/salaryorder/approval

URL Parameters

companyId    

Requirements

Body Parameters

sms_user_list   optional  
mail_user_list   optional  

POST api/company/{companyId}/salaryorder/validate

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder/validate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firma_bemaerkning": "toeuholyrgmpgiatthc",
    "bestilling": [
        "quod"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salaryorder/validate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firma_bemaerkning' => 'toeuholyrgmpgiatthc',
            'bestilling' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder/validate'
payload = {
    "firma_bemaerkning": "toeuholyrgmpgiatthc",
    "bestilling": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

POST api/company/{companyId}/salaryorder/validate

URL Parameters

companyId    

Requirements

Body Parameters

firma_bemaerkning   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 180 characters.

bestilling    
arbejdertype_nr    

Must be one of 1, 2, or 3.

dispositions_dato    

Must be a valid date in the format Y-m-d.

ekstra_loenkoersel    
kortfrist_bestilling    
test_koersel    
fremrykket_udbetaling    
bestilt_for_sent    
anden_aarsag_notat   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

opgoerelsesperiode_fra    

The værdien must be 0 or must match the format Y-m-d.

opgoerelsesperiode_til    

The værdien must be 0 or must match the format Y-m-d.

Create salary order

Order of validation

Any error stops further processing and the error is returned in response

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "firma_bemaerkning": "toeuholyrgmpgiatthc",
    "bestilling": [
        "quod"
    ],
    "sms_user_list": [
        "quod"
    ],
    "mail_user_list": [
        "quod"
    ],
    "testemail": "[email protected]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salaryorder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'firma_bemaerkning' => 'toeuholyrgmpgiatthc',
            'bestilling' => [
                'quod',
            ],
            'sms_user_list' => [
                'quod',
            ],
            'mail_user_list' => [
                'quod',
            ],
            'testemail' => '[email protected]',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder'
payload = {
    "firma_bemaerkning": "toeuholyrgmpgiatthc",
    "bestilling": [
        "quod"
    ],
    "sms_user_list": [
        "quod"
    ],
    "mail_user_list": [
        "quod"
    ],
    "testemail": "[email protected]"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (422):


{
    "dispositions_dato": {
        "OriginalErrorMessage": "Dispositions dato skal være i samme år",
        "ValidationRule": "same"
    }
}
 

Example response (422):


{
    "stored_procedure": {
        "OriginalErrorMessage": "Medarbejder 123 har fejl i løntransaktionen for lønarten 1002: Lønarten (1002) - Lønart findes ikke.",
        "ValidationRule": "stored_procedure"
    }
}
 

POST api/company/{companyId}/salaryorder

URL Parameters

companyId    

Requirements

Body Parameters

firma_bemaerkning   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 180 characters.

bestilling    
arbejdertype_nr    

Must be one of 1, 2, or 3.

dispositions_dato    

Must be a valid date in the format Y-m-d.

ekstra_loenkoersel    
kortfrist_bestilling    
test_koersel    
fremrykket_udbetaling    
bestilt_for_sent    
anden_aarsag_notat   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

opgoerelsesperiode_fra    

The værdien must be 0 or must match the format Y-m-d.

opgoerelsesperiode_til    

The værdien must be 0 or must match the format Y-m-d.

sms_user_list   optional  
mail_user_list   optional  
testemail   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

Cancel salary order

Cancels a salary order

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salaryorder"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/salaryorder',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salaryorder'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/salaryorder

URL Parameters

companyId    

Requirements

Salary transaction (Løn transaktioner)

Transaction list, employee

Get salary transaction list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytransaction"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    }
]
 

GET api/company/{companyId}/employee/{employeeId}/salarytransaction

URL Parameters

companyId    
employeeId    

Requirements

Salary transaction

Get single salary transaction

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytransaction/7/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction/7/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction/7/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "loentransaktion_firma": 123,
    "loentransaktion_arbejder": 1234,
    "loentransaktion_loenart": 110,
    "loentransaktion_loebenr": 1234,
    "loentransaktion_antal": 0,
    "loentransaktion_sats": 0,
    "loentransaktion_beloeb": 0,
    "loentransaktion_beregnet": 0,
    "loentransaktion_afdnr": 0,
    "loentransaktion_projekt": "",
    "loentransaktion_tekst": "",
    "loentransaktion_dato1feriedag": 0,
    "loentransaktion_udbkode": "",
    "loentransaktion_fejl": 0
}
 

GET api/company/{companyId}/employee/{employeeId}/salarytransaction/{salaryTypeId}/{serialNumber}

URL Parameters

companyId    
employeeId    
salaryTypeId    
serialNumber    

Requirements

Create multiple salary transactions for one employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytransaction"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    },
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1235,
        "loentransaktion_loenart": 111,
        "loentransaktion_loebenr": 1235,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 1
    }
]
 

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder '1234' findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "loentransaktion_loenart": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    null,
    null,
    null,
    null
]
 

POST api/company/{companyId}/employee/{employeeId}/salarytransaction

URL Parameters

companyId    
employeeId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to create

loentransaktion_loenart    

The værdien must be between 1 and 9999.

loentransaktion_antal    

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats    

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb    

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

Must match the regex /^[0-9]{1,7}$/
The værdien must be at least 1 character
The værdien must not be greater than 7 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_dato1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Update multiple, employee

Update salary transactions for one employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytransaction"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    },
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1235,
        "loentransaktion_loenart": 111,
        "loentransaktion_loebenr": 1235,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 1
    }
]
 

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder '1234' findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "loentransaktion_loenart": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    null,
    null
]
 

PATCH api/company/{companyId}/employee/{employeeId}/salarytransaction

URL Parameters

companyId    
employeeId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to update

loentransaktion_loenart    

The værdien must be between 1 and 9999.

loentransaktion_loebenr    
loentransaktion_antal   optional  

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats   optional  

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb   optional  

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

Must match the regex /^[0-9]{1,7}$/
The værdien must be at least 1 character
The værdien must not be greater than 7 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_dato1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Update multiple, employee via PUT

The functionality is the same as for the PATCH request - Only difference is the HTTP PUT request method. It enables systems, which native cannot issue a PATCH, to do so using PUT. The PUT requirements have been relaxed to match the PATCH requirement in that not all fields are required.

Update salary transactions for one employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytransaction"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    }
]
 

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder ('1234') findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "stored_procedure": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "stored_procedure"
            }
        ]
    },
    null,
    null,
    {
        "loentransaktion_loebenr": [
            {
                "OriginalErrorMessage": "loentransaktion findes ikke",
                "ValidationRule": "exists"
            }
        ]
    },
    null
]
 

PUT api/company/{companyId}/employee/{employeeId}/salarytransaction

URL Parameters

companyId    
employeeId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to update

loentransaktion_loenart    

The værdien must be between 1 and 9999.

loentransaktion_loebenr    
loentransaktion_antal   optional  

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats   optional  

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb   optional  

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

Must match the regex /^[0-9]{1,7}$/
The værdien must be at least 1 character
The værdien must not be greater than 7 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_dato1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Delete transaction, employee

Delete salary transaction for employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/employee/7/salarytransaction"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        15
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                15,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/7/salarytransaction'
payload = {
    "loentransaktioner": [
        15
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

DELETE api/company/{companyId}/employee/{employeeId}/salarytransaction

URL Parameters

companyId    
employeeId    

Requirements

Body Parameters

loentransaktioner    

Transaction list, salary type

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytransaction/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    }
]
 

GET api/company/{companyId}/salarytransaction/{salaryTypeId}

URL Parameters

companyId    
salaryTypeId    

Requirements

Create multiple, employee list

Create salary transactions for more than one employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salarytransaction/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/list'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    },
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1235,
        "loentransaktion_loenart": 111,
        "loentransaktion_loebenr": 1235,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 1
    }
]
 

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder '1234' findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "loentransaktion_loenart": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    null,
    null,
    null,
    null
]
 

POST api/company/{companyId}/salarytransaction/list

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to create

loentransaktion_arbejder    

The værdien must be between 0 and 99999.

loentransaktion_loenart    

The værdien must be between 1 and 9999.

loentransaktion_antal    

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats    

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb    

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

Must match the regex /^[0-9]{1,7}$/
The værdien must be at least 1 character
The værdien must not be greater than 7 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_dato1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Create salary transactions for more than one employee

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/listreplace"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/salarytransaction/listreplace',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/listreplace'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    },
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1235,
        "loentransaktion_loenart": 111,
        "loentransaktion_loebenr": 1235,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 1
    }
]
 

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder '1234' findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "loentransaktion_loenart": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    null,
    null,
    null,
    null
]
 

PUT api/company/{companyId}/salarytransaction/listreplace

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to create

loentransaktion_arbejder    

The værdien must be between 0 and 99999.

loentransaktion_loebenr    
loentransaktion_loenart    

The værdien must be between 1 and 9999.

loentransaktion_antal    

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats    

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb    

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

Must match the regex /^[0-9]{1,7}$/
The værdien must be at least 1 character
The værdien must not be greater than 7 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_dato1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Update multiple, employee list

Update salary transactions for multiple employees

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/salarytransaction/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/list'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    },
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1235,
        "loentransaktion_loenart": 111,
        "loentransaktion_loebenr": 1235,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 1
    }
]
 

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder ('1234') findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "stored_procedure": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "stored_procedure"
            }
        ]
    },
    null,
    null,
    {
        "loentransaktion_loebenr": [
            {
                "OriginalErrorMessage": "loentransaktion findes ikke",
                "ValidationRule": "exists"
            }
        ]
    },
    null
]
 

PATCH api/company/{companyId}/salarytransaction/list

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to update

loentransaktion_loebenr    
loentransaktion_arbejder   optional  

The værdien must be between 0 and 99999.

loentransaktion_loenart   optional  

The værdien must be between 1 and 9999.

loentransaktion_antal   optional  

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats   optional  

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb   optional  

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

Must match the regex /^[0-9]{1,7}$/
The værdien must be at least 1 character
The værdien must not be greater than 7 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_dato1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Update multiple, employee list via PUT

The functionality is the same as for the PATCH request - Only difference is the HTTP PUT request method. It enables systems, which native cannot issue a PATCH, to do so using PUT. The PUT requirements have been relaxed to match the PATCH requirement in that not all fields are required.

Update salary transactions for multiple employees

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/salarytransaction/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/list'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": "",
        "loentransaktion_fejl": 0
    }
]
 

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder ('1234') findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "stored_procedure": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "stored_procedure"
            }
        ]
    },
    null,
    null,
    {
        "loentransaktion_loebenr": [
            {
                "OriginalErrorMessage": "loentransaktion findes ikke",
                "ValidationRule": "exists"
            }
        ]
    },
    null
]
 

PUT api/company/{companyId}/salarytransaction/list

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to update

loentransaktion_loebenr    
loentransaktion_arbejder   optional  

The værdien must be between 0 and 99999.

loentransaktion_loenart   optional  

The værdien must be between 1 and 9999.

loentransaktion_antal   optional  

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats   optional  

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb   optional  

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

Must match the regex /^[0-9]{1,7}$/
The værdien must be at least 1 character
The værdien must not be greater than 7 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_dato1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Delete transaction, employee list

Delete salary transactions for list of employees

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/salarytransaction/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/list'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

DELETE api/company/{companyId}/salarytransaction/list

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktioner    
loentransaktion_arbejder    

The værdien must be between 0 and 99999.

loentransaktion_loebenr    

Transaction list, company

Transaction list for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytransaction',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loentransaktion_firma": 123,
        "loentransaktion_arbejder": 1234,
        "loentransaktion_loenart": 110,
        "loentransaktion_loebenr": 1234,
        "loentransaktion_antal": 0,
        "loentransaktion_sats": 0,
        "loentransaktion_beloeb": 0,
        "loentransaktion_beregnet": 0,
        "loentransaktion_afdnr": 0,
        "loentransaktion_projekt": "",
        "loentransaktion_tekst": "",
        "loentransaktion_dato1feriedag": 0,
        "loentransaktion_udbkode": ""
    }
]
 

GET api/company/{companyId}/salarytransaction

URL Parameters

companyId    

Requirements

Active salary types

Get list of used salary types currently active / in use for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/usedsalarytypes"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytransaction/usedsalarytypes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/usedsalarytypes'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loentransaktion_loenart": 110
    }
]
 

GET api/company/{companyId}/salarytransaction/usedsalarytypes

URL Parameters

companyId    

Requirements

Validate

Validates the salary transactions

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/validation"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": [
        "quod"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salarytransaction/validation',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/validation'
payload = {
    "loentransaktioner": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (422):


[
    null,
    {
        "loentransaktion_arbejder": [
            {
                "OriginalErrorMessage": "Medarbejder (1234) findes ikke.",
                "ValidationRule": "exists"
            }
        ]
    },
    {
        "stored_procedure": [
            {
                "OriginalErrorMessage": "Lønarten (1234) - lønart findes ikke.",
                "ValidationRule": "stored_procedure"
            }
        ]
    },
    null,
    null,
    null,
    null
]
 

POST api/company/{companyId}/salarytransaction/validation

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktioner   optional  

list of salary transactions to validate

loentransaktion_arbejder    

The værdien must be between 0 and 99999.

loentransaktion_loenart    

The værdien must be between 1 and 9999.

loentransaktion_antal    

The værdien must be between -99999.99 and 99999.99.

loentransaktion_sats    

The værdien must be between 0 and 99999.99.

loentransaktion_beloeb    

The værdien must be between -9999999.99 and 9999999.99.

loentransaktion_afdnr   optional  

The værdien must be between 0 and 99999.

loentransaktion_projekt   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

loentransaktion_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loentransaktion_date1feriedag   optional  

The værdien must be 0 or must match the format Y-m-d.

loentransaktion_udbkode   optional  

The værdien can only contain A-Å 0-9 The værdien must not be greater than 4 characters.

Create multiple, file

Upload salary transaction from file

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/fileupload"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

const body = new FormData();
body.append('opdater_arbejder_loen', '1');
body.append('loentransaktionFil', document.querySelector('input[name="loentransaktionFil"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salarytransaction/fileupload',
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'multipart' => [
            [
                'name' => 'opdater_arbejder_loen',
                'contents' => '1'
            ],
            [
                'name' => 'loentransaktionFil',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php8D2B.tmp', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/fileupload'
files = {
  'loentransaktionFil': open('C:\Users\Administrator\AppData\Local\Temp\php8D2B.tmp', 'rb')
}
payload = {
    "opdater_arbejder_loen": 1
}
headers = {
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, files=files, data=payload)
response.json()

Example response (200):


{
    "inactiveEmployees": [
        {
            "arbejder_nr": 7
        }
    ],
    "employeesWithErrors": [
        {
            "arbejder_nr": 42,
            "linesWithErrors": 8
        },
        {
            "arbejder_nr": 7,
            "linesWithErrors": 1
        }
    ]
}
 

Example response (422):


{
    "loentransaktion_loenart": [
        {
            "OriginalErrorMessage": "Linjen '7;1' er ikke korrekt. Loenarten 1 findes ikke.",
            "ValidationRule": "exists"
        }
    ],
    "loentransaktion_arbejder": [
        {
            "OriginalErrorMessage": "Linjen '5;1002' er ikke korrekt. Medarbejder 5 findes ikke.",
            "ValidationRule": "exists"
        }
    ],
    "loentransaktion_projekt": [
        {
            "OriginalErrorMessage": "Linjen '7;1002;0;0;0;0;dfasdasdadasdasdasdadsdasda' er ikke korrekt. Projekt 'dfasdasdadasdasdasdadsdasda' skal være mellem 0 og 20 tegn.",
            "ValidationRule": "length"
        }
    ]
}
 

POST api/company/{companyId}/salarytransaction/fileupload

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktionFil    

Must be a file.

opdater_arbejder_loen    

The værdien must be between 0 and 1.

Create multiple, text

Create salary transaction from text

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/field"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loentransaktioner": "34;571;7,50;0,00;0,00;0;;\\r\\n27;8847;5,50;0,00;5000,00;0;;",
    "opdater_arbejder_loen": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salarytransaction/field',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loentransaktioner' => '34;571;7,50;0,00;0,00;0;;\\r\\n27;8847;5,50;0,00;5000,00;0;;',
            'opdater_arbejder_loen' => 1,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/field'
payload = {
    "loentransaktioner": "34;571;7,50;0,00;0,00;0;;\\r\\n27;8847;5,50;0,00;5000,00;0;;",
    "opdater_arbejder_loen": 1
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "inactiveEmployees": [
        {
            "arbejder_nr": 7
        }
    ],
    "employeesWithErrors": [
        {
            "arbejder_nr": 42,
            "linesWithErrors": 8
        },
        {
            "arbejder_nr": 7,
            "linesWithErrors": 1
        }
    ]
}
 

Example response (422):


{
    "loentransaktion_loenart": [
        {
            "OriginalErrorMessage": "Linjen '7;1' er ikke korrekt. Loenarten 1 findes ikke.",
            "ValidationRule": "exists"
        }
    ],
    "loentransaktion_arbejder": [
        {
            "OriginalErrorMessage": "Linjen '5;1002' er ikke korrekt. Medarbejder 5 findes ikke.",
            "ValidationRule": "exists"
        }
    ],
    "loentransaktion_projekt": [
        {
            "OriginalErrorMessage": "Linjen '7;1002;0;0;0;0;dfasdasdadasdasdasdadsdasda' er ikke korrekt. Projekt 'dfasdasdadasdasdasdadsdasda' skal være mellem 0 og 20 tegn.",
            "ValidationRule": "length"
        }
    ]
}
 

POST api/company/{companyId}/salarytransaction/field

URL Parameters

companyId    

Requirements

Body Parameters

loentransaktioner    

the salary transaction as string

opdater_arbejder_loen    

The værdien must be between 0 and 1.

Vacation payment codes

Return list of vacation payment codes

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/vacationpaymentcodelist"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytransaction/vacationpaymentcodelist',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/vacationpaymentcodelist'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "udbetalingskode_nr": "UDB1",
        "udbetalingskode_tekst1": "Daglig (også inklusiv udbetalinger efter ferieårets afslutning, hvis ferien er holdt",
        "udbetalingskode_tekst2": "Udbetalinger i ferieåret hvor lønmodtageren på almindeligvis har afholdt sin ferie.",
        "udbetalingskode_1feriedagkrav": true
    }
]
 

GET api/company/{companyId}/salarytransaction/vacationpaymentcodelist

URL Parameters

companyId    

Requirements

Update payment status

Update payment status for employees, activating or disabling salary

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytransaction/paymentstatus"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "arbejder_loen": 1,
    "medarbejdere": [
        15
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/salarytransaction/paymentstatus',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'arbejder_loen' => 1,
            'medarbejdere' => [
                15,
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytransaction/paymentstatus'
payload = {
    "arbejder_loen": 1,
    "medarbejdere": [
        15
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "arbejder_nr": 123,
        "arbejder_bruttoloen": 3000,
        "arbejder_sidstopdtrans": "2017-07-25"
    }
]
 

Example response (422):


{
    "arbejder_nr": [
        {
            "OriginalErrorMessage": "Medarbejder (123) findes ikke",
            "ValidationRule": "exist"
        }
    ]
}
 

PATCH api/company/{companyId}/salarytransaction/paymentstatus

URL Parameters

companyId    

Requirements

Body Parameters

arbejder_loen    

The værdien must be between 0 and 1.

medarbejdere    

list of employee numbers to update

Salary type (lønarter)

Get salary type list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytype',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenart_firma": 123,
        "loenart_nr": 7200,
        "loenart_tf": "T",
        "loenart_tekst": "KØRSELSGODTGØRELSE",
        "loenart_sats": 3.53,
        "loenart_minantal": -99999,
        "loenart_maxantal": 99999,
        "loenart_minsats": 0,
        "loenart_maxsats": 0,
        "loenart_minbeloeb": 0,
        "loenart_maxbeloeb": 9999999,
        "loenart_nulstil": 1,
        "loenart_beregningskode": 0,
        "loenart_changed": 0,
        "loenart_bruttoskat": 0,
        "loenart_aindkomst": 0,
        "loenart_ferieberettetloen": 0,
        "loenart_pensiongloen": 0,
        "loenart_atp": 0,
        "loenart_tidkode": 0,
        "loenart_tidfaktor": 0,
        "loenart_feriepengeudb": 0,
        "loenart_haandteringskode": 0,
        "loenart_type": 0,
        "loenart_firmaloenart": "0",
        "loenart_haandteringskode_text": "Ingen kode",
        "loenartbeskrivelse_tekst": "",
        "loenartafdeling": false,
        "loenart_standard": true,
        "loenart_slutmarkering": 0,
        "loenart_ejgroenland": 1,
        "loenart_anvendelsesstartdato": 0,
        "loenart_anvendelsesslutdato": 20190831,
        "loenart_satser": {
            "1": 3.53,
            "2": 3.53,
            "3": 3.53
        }
    }
]
 

GET api/company/{companyId}/salarytype

URL Parameters

companyId    

Requirements

Salary type list with department markings

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/withdepartmentmarking"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytype/withdepartmentmarking',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/withdepartmentmarking'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenart_nr": 1234,
        "loenart_tekst": "lønart tekst",
        "loenart_afdelinger": false
    }
]
 

GET api/company/{companyId}/salarytype/withdepartmentmarking

URL Parameters

companyId    

Requirements

Get single salary type

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytype/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "loenart_firma": 123,
    "loenart_nr": 7200,
    "loenart_tf": "T",
    "loenart_tekst": "KØRSELSGODTGØRELSE",
    "loenart_sats": 3.53,
    "loenart_minantal": -99999,
    "loenart_maxantal": 99999,
    "loenart_minsats": 0,
    "loenart_maxsats": 0,
    "loenart_minbeloeb": 0,
    "loenart_maxbeloeb": 9999999,
    "loenart_nulstil": 1,
    "loenart_beregningskode": 0,
    "loenart_changed": 0,
    "loenart_bruttoskat": 0,
    "loenart_aindkomst": 0,
    "loenart_ferieberettetloen": 0,
    "loenart_pensiongloen": 0,
    "loenart_atp": 0,
    "loenart_tidkode": 0,
    "loenart_tidfaktor": 0,
    "loenart_feriepengeudb": 0,
    "loenart_haandteringskode": 0,
    "loenart_type": 0,
    "loenart_firmaloenart": "0",
    "loenart_haandteringskode_text": "Ingen kode",
    "loenartbeskrivelse_tekst": "",
    "loenartafdeling": false,
    "loenart_standard": true,
    "loenart_slutmarkering": 0,
    "loenart_ejgroenland": 1,
    "loenart_anvendelsesstartdato": 0,
    "loenart_anvendelsesslutdato": 20190831,
    "loenart_satser": {
        "1": 3.53,
        "2": 3.53,
        "3": 3.53
    }
}
 

GET api/company/{companyId}/salarytype/{salaryTypeId}

URL Parameters

companyId    
salaryTypeId    

Requirements

Update salary type

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loenart_nr": 1,
    "loenart_tf": "o",
    "loenart_tekst": "euholyrgmpgiatth",
    "loenart_sats": 3,
    "loenart_minantal": -99998,
    "loenart_maxantal": -99998,
    "loenart_minsats": 23,
    "loenart_maxsats": 16,
    "loenart_minbeloeb": -9999999,
    "loenart_maxbeloeb": -9999999,
    "loenart_nulstil": 0,
    "loenart_beregningskode": 1,
    "loenart_changed": 0,
    "loenart_bruttoskat": 0,
    "loenart_aindkomst": 1,
    "loenart_ferieberettetloen": 1,
    "loenart_pensiongloen": 1,
    "loenart_atp": 0,
    "loenart_tidkode": 1,
    "loenart_tidfaktor": 124580.7912707,
    "loenart_feriepengeudb": 0,
    "loenart_haandteringskode": 1,
    "loenart_type": 0,
    "loenart_bededag": 1
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/salarytype/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loenart_nr' => 1,
            'loenart_tf' => 'o',
            'loenart_tekst' => 'euholyrgmpgiatth',
            'loenart_sats' => 3,
            'loenart_minantal' => -99998,
            'loenart_maxantal' => -99998,
            'loenart_minsats' => 23,
            'loenart_maxsats' => 16,
            'loenart_minbeloeb' => -9999999,
            'loenart_maxbeloeb' => -9999999,
            'loenart_nulstil' => 0,
            'loenart_beregningskode' => 1,
            'loenart_changed' => 0,
            'loenart_bruttoskat' => 0,
            'loenart_aindkomst' => 1,
            'loenart_ferieberettetloen' => 1,
            'loenart_pensiongloen' => 1,
            'loenart_atp' => 0,
            'loenart_tidkode' => 1,
            'loenart_tidfaktor' => 124580.7912707,
            'loenart_feriepengeudb' => 0,
            'loenart_haandteringskode' => 1,
            'loenart_type' => 0,
            'loenart_bededag' => 1,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/7'
payload = {
    "loenart_nr": 1,
    "loenart_tf": "o",
    "loenart_tekst": "euholyrgmpgiatth",
    "loenart_sats": 3,
    "loenart_minantal": -99998,
    "loenart_maxantal": -99998,
    "loenart_minsats": 23,
    "loenart_maxsats": 16,
    "loenart_minbeloeb": -9999999,
    "loenart_maxbeloeb": -9999999,
    "loenart_nulstil": 0,
    "loenart_beregningskode": 1,
    "loenart_changed": 0,
    "loenart_bruttoskat": 0,
    "loenart_aindkomst": 1,
    "loenart_ferieberettetloen": 1,
    "loenart_pensiongloen": 1,
    "loenart_atp": 0,
    "loenart_tidkode": 1,
    "loenart_tidfaktor": 124580.7912707,
    "loenart_feriepengeudb": 0,
    "loenart_haandteringskode": 1,
    "loenart_type": 0,
    "loenart_bededag": 1
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/salarytype/{salaryTypeId}

URL Parameters

companyId    
salaryTypeId    

Requirements

Body Parameters

loenart_nr   optional  

The værdien must be between 0 and 9999.

loenart_tf   optional  

The værdien must not be greater than 1 character.

loenart_tekst   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 21 characters.

loenart_sats   optional  

The værdien must be at least 0.00
The værdien must not be greater than 99999.99.

loenart_minantal   optional  

The værdien must be between -99999.99 and 99999.99.

loenart_maxantal   optional  

The værdien must be between -99999.99 and 99999.99.

loenart_minsats   optional  

The værdien must be at least 0.00
The værdien must not be greater than 99999.99.

loenart_maxsats   optional  

The værdien must be at least 0.00
The værdien must not be greater than 99999.99.

loenart_minbeloeb   optional  

The værdien must be between -9999999.99 and 9999999.99.

loenart_maxbeloeb   optional  

The værdien must be between -9999999.99 and 9999999.99.

loenart_nulstil   optional  

The værdien must be between 0 and 8.

loenart_beregningskode   optional  

The værdien must be between 0 and 999.

loenart_changed   optional  

The værdien must be between 0 and 9.

loenart_bruttoskat   optional  

The værdien must be between 0 and 9.

loenart_aindkomst   optional  

The værdien must be between 0 and 9.

loenart_ferieberettetloen   optional  

The værdien must be between 0 and 9.

loenart_pensiongloen   optional  

The værdien must be between 0 and 9.

loenart_atp   optional  

The værdien must be between 0 and 9.

loenart_tidkode   optional  

The værdien must be between 0 and 9.

loenart_tidfaktor   optional  
loenart_feriepengeudb   optional  

The værdien must be between 0 and 1.

loenart_haandteringskode   optional  

The værdien must be between 0 and 99.

loenart_type   optional  

The værdien must be between 0 and 9.

loenart_bededag   optional  

The værdien must be between 0 and 1.

Get single department distribution

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/7/departmentdistribution"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytype/7/departmentdistribution',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/7/departmentdistribution'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenartafdeling_id": 1,
        "loenartafdeling_firma_nr": 123,
        "loenartafdeling_afdeling_nr": 1,
        "loenartafdeling_loenart_nr": 920,
        "loenartafdeling_procent": 0.1111
    },
    {
        "loenartafdeling_id": 2,
        "loenartafdeling_firma_nr": 123,
        "loenartafdeling_afdeling_nr": 2,
        "loenartafdeling_loenart_nr": 920,
        "loenartafdeling_procent": 98.457
    },
    {
        "loenartafdeling_id": 2,
        "loenartafdeling_firma_nr": 123,
        "loenartafdeling_afdeling_nr": 3,
        "loenartafdeling_loenart_nr": 920,
        "loenartafdeling_procent": 0.45
    },
    {
        "loenartafdeling_id": 2,
        "loenartafdeling_firma_nr": 123,
        "loenartafdeling_afdeling_nr": 4,
        "loenartafdeling_loenart_nr": 920,
        "loenartafdeling_procent": 0.9819
    }
]
 

GET api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution

URL Parameters

companyId    
salaryTypeId    

Requirements

Update department distribution

Sum of loenartafdeling_procent procentages must be either 0 or 100.

Each individual procentage must be an float between 0.0000 and 100.0000, both included.

A department can only be listed once and must be related to the company.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/7/departmentdistribution"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "departmentdistributionlist": [
        "quod"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/salarytype/7/departmentdistribution',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'departmentdistributionlist' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/7/departmentdistribution'
payload = {
    "departmentdistributionlist": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution

URL Parameters

companyId    
salaryTypeId    

Requirements

Body Parameters

departmentdistributionlist   optional  
loenartafdeling_afdeling_nr    

The værdien must be between 0 and 99999.

loenartafdeling_procent    

The værdien must be between 0.0000 and 100.0000.

Salary type relation list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/relation"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/salarytype/relation',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/relation'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "loenartsrelation_id": 1,
        "loenartsrelation_firma": 123,
        "tilloenart": {
            "loenartsrelation_tilloenart": 1234,
            "loenart_tekst": "TILLÆG MODR.ADGANG"
        },
        "fraloenart": {
            "loenartsrelation_fraloenart": 1258,
            "loenart_tekst": "SV NORMALTIMER"
        }
    }
]
 

GET api/company/{companyId}/salarytype/relation

URL Parameters

companyId    

Requirements

Create salary type relation

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/relation"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loenartsrelation_fraloenart": 1,
    "loenartsrelation_tilloenart": 1,
    "loenartsrelation_beregningsfaktor": -10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/salarytype/relation',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loenartsrelation_fraloenart' => 1,
            'loenartsrelation_tilloenart' => 1,
            'loenartsrelation_beregningsfaktor' => -10,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/relation'
payload = {
    "loenartsrelation_fraloenart": 1,
    "loenartsrelation_tilloenart": 1,
    "loenartsrelation_beregningsfaktor": -10
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "loenartsrelation_id": 1,
    "loenartsrelation_firma": 123,
    "tilloenart": {
        "loenartsrelation_tilloenart": 1234,
        "loenart_tekst": "TILLÆG MODR.ADGANG"
    },
    "fraloenart": {
        "loenartsrelation_fraloenart": 1258,
        "loenart_tekst": "SV NORMALTIMER"
    }
}
 

POST api/company/{companyId}/salarytype/relation

URL Parameters

companyId    

Requirements

Body Parameters

loenartsrelation_fraloenart    

The værdien must be between 0 and 9999.

loenartsrelation_tilloenart    

The værdien must be between 0 and 9999.

loenartsrelation_beregningsfaktor   optional  

The værdien must be between -10.00000 and 99999.99999.

Delete salary type relation

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/salarytype/relation/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/salarytype/relation/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/salarytype/relation/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/salarytype/relation/{relationId}

URL Parameters

companyId    
relationId    

Requirements

Server time

Get the server time

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/servertime"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/servertime',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/servertime'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "time": "2018-07-26T11:04:29+02:00"
}
 

GET api/servertime

Severance profiles (Fratrædelses profil)

Get all severance profiles as list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/severanceprofiles"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/severanceprofiles',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/severanceprofiles'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "holidaycode": 0,
        "salarytype": 8700,
        "number": 99999,
        "rate": 0,
        "amount": 0
    },
    {
        "holidaycode": 1,
        "salarytype": 8700,
        "number": 99999,
        "rate": 0,
        "amount": 0
    }
]
 

GET api/company/{companyId}/severanceprofiles

URL Parameters

companyId    

Requirements

Get severance profile list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/severanceprofiles/quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/severanceprofiles/quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/severanceprofiles/quod'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "holidaycode": 0,
        "salarytype": 8700,
        "number": 99999,
        "rate": 0,
        "amount": 0
    }
]
 

GET api/company/{companyId}/severanceprofiles/{holidayCode}

URL Parameters

companyId    
holidayCode    

Requirements

Create severance profile

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/severanceprofiles/quod"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "transactions": [
        "quod"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://mit.proloen.dk/api/company/7/severanceprofiles/quod',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'transactions' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/severanceprofiles/quod'
payload = {
    "transactions": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[
    {
        "company": 500,
        "holidaycode": 0,
        "salarytype": 8700,
        "number": 99999,
        "rate": 0,
        "amount": 0
    },
    {
        "company": 500,
        "holidaycode": 1,
        "salarytype": 8700,
        "number": 99999,
        "rate": 0,
        "amount": 0
    }
]
 

Example response (422):


[
    {
        "salarytype": {
            "OriginalErrorMessage": "lønarten (99999) skal være mellem 1 og 9999.",
            "ValidationRule": "valid"
        }
    },
    {
        "number": {
            "OriginalErrorMessage": "Antal skal være mellem -99999.99 og 99999.99.",
            "ValidationRule": "valid"
        }
    }
]
 

PUT api/company/{companyId}/severanceprofiles/{holidayCode}

URL Parameters

companyId    
holidayCode    

Requirements

Body Parameters

transactions   optional  

list of transactions to create

salarytype   optional  
number   optional  
rate   optional  
amount   optional  

Short term fee (Kortfrist gebyr)

display short term fee.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/shorttermfee"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/shorttermfee',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/shorttermfee'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "kortfristgebyr_gebyr": 143
}
 

GET api/company/{companyId}/shorttermfee

URL Parameters

companyId    

Requirements

Update short term fee.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/shorttermfee"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "kortfristgebyr_gebyr": 124580.7912707
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/shorttermfee',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'kortfristgebyr_gebyr' => 124580.7912707,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/shorttermfee'
payload = {
    "kortfristgebyr_gebyr": 124580.7912707
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/shorttermfee

URL Parameters

companyId    

Requirements

Body Parameters

kortfristgebyr_gebyr    

Staff group (personalegruppe)

List of staff groups

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/staffgroups"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/staffgroups',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/staffgroups'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "personalegruppe_nr": 1,
        "personalegruppe_tekst": "Faglært/ufaglært"
    }
]
 

GET api/company/{companyId}/staffgroups

URL Parameters

companyId    

Requirements

StatisticsController

List statistics for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/statistics"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/statistics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/statistics'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "firmagraf_firma": 123,
        "firmagraf_maaned": 201611,
        "firmagraf_antalloensedler": 21,
        "firmagraf_bruttoskattegrundlag": 123456.78,
        "firmagraf_opdateringsdato": "2017-06-22"
    }
]
 

GET api/company/{companyId}/statistics

URL Parameters

companyId    

Requirements

Statistics code (Statistik kode)

Get statistics code list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/statisticscode"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/statisticscode',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/statisticscode'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "statistikkoder_nr": "0",
        "statistikkoder_tekst": "NEJ"
    }
]
 

GET api/company/{companyId}/statisticscode

URL Parameters

companyId    

Requirements

Sympa

Get single sympa connection

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/sympa"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/sympa',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/sympa'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "sympa_firma_nr": 123,
    "sympa_status": 3,
    "sympa_key": "key",
    "sympa_secret": "secret",
    "sympa_internal_milage": 1,
    "sympa_customer_milage": 2
}
 

GET api/company/{companyId}/sympa

URL Parameters

companyId    

Requirements

Updates sympa connection.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/sympa"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "sympa_internal_milage": 0,
    "sympa_customer_milage": 0
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/sympa',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'sympa_internal_milage' => 0,
            'sympa_customer_milage' => 0,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/sympa'
payload = {
    "sympa_internal_milage": 0,
    "sympa_customer_milage": 0
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/sympa

URL Parameters

companyId    

Requirements

Body Parameters

sympa_key   optional  
sympa_secret   optional  
sympa_internal_milage   optional  
sympa_customer_milage   optional  

Create single sympa connection

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/sympa"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "sympa_key": "quod",
    "sympa_secret": "quod",
    "sympa_internal_milage": 15,
    "sympa_customer_milage": 15
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/sympa',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'sympa_key' => 'quod',
            'sympa_secret' => 'quod',
            'sympa_internal_milage' => 15,
            'sympa_customer_milage' => 15,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/sympa'
payload = {
    "sympa_key": "quod",
    "sympa_secret": "quod",
    "sympa_internal_milage": 15,
    "sympa_customer_milage": 15
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "sympa_firma_nr": 123,
    "sympa_status": 2,
    "sympa_key": "key",
    "sympa_secret": "secret",
    "sympa_internal_milage": 1,
    "sympa_customer_milage": 2
}
 

POST api/company/{companyId}/sympa

URL Parameters

companyId    

Requirements

Body Parameters

sympa_key    
sympa_secret    
sympa_internal_milage    
sympa_customer_milage    

Delete sympa connection

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/sympa"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/sympa',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/sympa'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/sympa

URL Parameters

companyId    

Requirements

System message (System besked)

Get a list of current system messages

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/systemmessage"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/systemmessage',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/systemmessage'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "starttime": "2018-03-19T09:55:04+01:00",
        "endtime": "2018-03-19T10:55:04+01:00",
        "title": "test",
        "message": "test besked",
        "hash": "7d98ee1e947c8d997a892bdbf685c87c0fd73f4920070732a7ac4e9c18384252",
        "created_at": "2018-03-19T09:55:04+01:00",
        "updated_at": "2018-03-19T09:55:04+01:00",
        "industry": 2
    }
]
 

GET api/company/{companyId}/systemmessage

URL Parameters

companyId    

Requirements

Create system message.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/systemmessage"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "starttime": 124580.7912707,
    "endtime": 124580.7912707,
    "title": "holyrgmpgiatthcupxq",
    "message": "jdgzelwuufzjmpjpngq",
    "industry": 15
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/systemmessage',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'starttime' => 124580.7912707,
            'endtime' => 124580.7912707,
            'title' => 'holyrgmpgiatthcupxq',
            'message' => 'jdgzelwuufzjmpjpngq',
            'industry' => 15,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/systemmessage'
payload = {
    "starttime": 124580.7912707,
    "endtime": 124580.7912707,
    "title": "holyrgmpgiatthcupxq",
    "message": "jdgzelwuufzjmpjpngq",
    "industry": 15
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "id": 1,
    "starttime": "2018-03-19T09:55:04+01:00",
    "endtime": "2018-03-19T10:55:04+01:00",
    "title": "test",
    "message": "test besked",
    "hash": "7d98ee1e947c8d997a892bdbf685c87c0fd73f4920070732a7ac4e9c18384252",
    "created_at": "2018-03-19T09:55:04+01:00",
    "updated_at": "2018-03-19T09:55:04+01:00",
    "industry": 2
}
 

POST api/company/{companyId}/systemmessage

URL Parameters

companyId    

Requirements

Body Parameters

starttime    
endtime    
title    

The værdien must not be greater than 255 characters.

message    

The værdien must not be greater than 500 characters.

industry   optional  

Get a list of all system messages

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/systemmessage/all"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/systemmessage/all',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/systemmessage/all'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "id": 1,
        "starttime": "2018-03-19T09:55:04+01:00",
        "endtime": "2018-03-19T10:55:04+01:00",
        "title": "test",
        "message": "test besked",
        "hash": "7d98ee1e947c8d997a892bdbf685c87c0fd73f4920070732a7ac4e9c18384252",
        "created_at": "2018-03-19T09:55:04+01:00",
        "updated_at": "2018-03-19T09:55:04+01:00",
        "industry": 2
    }
]
 

GET api/company/{companyId}/systemmessage/all

URL Parameters

companyId    

Requirements

Get a single system message.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/systemmessage/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/systemmessage/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/systemmessage/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "id": 1,
    "starttime": "2018-03-19T09:55:04+01:00",
    "endtime": "2018-03-19T10:55:04+01:00",
    "title": "test",
    "message": "test besked",
    "hash": "7d98ee1e947c8d997a892bdbf685c87c0fd73f4920070732a7ac4e9c18384252",
    "created_at": "2018-03-19T09:55:04+01:00",
    "updated_at": "2018-03-19T09:55:04+01:00",
    "industry": 2
}
 

GET api/company/{companyId}/systemmessage/{systemMessageId}

URL Parameters

companyId    
systemMessageId    

Requirements

Update a system message.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/systemmessage/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "starttime": 124580.7912707,
    "endtime": 124580.7912707,
    "title": "holyrgmpgiatthcupxq",
    "message": "jdgzelwuufzjmpjpngq",
    "industry": 15
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/systemmessage/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'starttime' => 124580.7912707,
            'endtime' => 124580.7912707,
            'title' => 'holyrgmpgiatthcupxq',
            'message' => 'jdgzelwuufzjmpjpngq',
            'industry' => 15,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/systemmessage/7'
payload = {
    "starttime": 124580.7912707,
    "endtime": 124580.7912707,
    "title": "holyrgmpgiatthcupxq",
    "message": "jdgzelwuufzjmpjpngq",
    "industry": 15
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/systemmessage/{systemMessageId}

URL Parameters

companyId    
systemMessageId    

Requirements

Body Parameters

starttime   optional  
endtime   optional  
title   optional  

The værdien must not be greater than 255 characters.

message   optional  

The værdien must not be greater than 500 characters.

industry   optional  

Remove the specified system message.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/systemmessage/7"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/systemmessage/7',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/systemmessage/7'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/systemmessage/{systemMessageId}

URL Parameters

companyId    
systemMessageId    

Requirements

Tax payment (Skattebetaling)

Get tax payment list

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/taxpayment"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/taxpayment',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/taxpayment'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "skattebetaling_nr": 1,
        "skattebetaling_tekst": "Normal skat"
    }
]
 

GET api/company/{companyId}/taxpayment

URL Parameters

companyId    

Requirements

Translation (Info I)

Get translations as json.

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/translation/da_dk.json"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/translation/da_dk.json',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/translation/da_dk.json'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "INFO.ACCESS.CREATE.USERNAME_INFO": "Brugernavnet skal starte med firmanummer plus '-'",
    "INFO.ACCESS.RIGHTS.ONLY_OWN_RIGHTS": "Man kan kun ændre rettigheder, som man selv har."
}
 

GET api/translation/{language}.json

URL Parameters

language    

the language to get the translations for

Get a list of translation

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/translation/da_dk"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/translation/da_dk',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/translation/da_dk'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "key": "INFO.ACCESS.CREATE.USERNAME_INFO",
        "value": "Brugernavnet skal starte med firmanummer plus '-'"
    },
    {
        "key": "INFO.ACCESS.RIGHTS.ONLY_OWN_RIGHTS",
        "value": "Man kan kun ændre rettigheder, som man selv har."
    }
]
 

GET api/company/{companyId}/translation/{language}

URL Parameters

companyId    
language    

the language to get the translations for

Requirements

Get a single translation

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/translation/da_dk/INFO.ACCESS.CREATE.USERNAME_INFO"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/translation/da_dk/INFO.ACCESS.CREATE.USERNAME_INFO',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/translation/da_dk/INFO.ACCESS.CREATE.USERNAME_INFO'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "key": "INFO.ACCESS.CREATE.USERNAME_INFO",
    "value": "Brugernavnet skal starte med firmanummer plus '-'"
}
 

GET api/company/{companyId}/translation/{language}/{languageKey}

URL Parameters

companyId    
language    

the language to get the translation for

languageKey    

the key for the translation

Requirements

Update translation

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/translation/da_dk/INFO.ACCESS.CREATE.USERNAME_INFO"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "value": "quod"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/translation/da_dk/INFO.ACCESS.CREATE.USERNAME_INFO',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'value' => 'quod',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/translation/da_dk/INFO.ACCESS.CREATE.USERNAME_INFO'
payload = {
    "value": "quod"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/translation/{language}/{languageKey}

URL Parameters

companyId    
language    

the language to update the translation for

languageKey    

Requirements

Body Parameters

value    

User (Bruger)

The user id is the person whose external access is being revoked.

NOT the user id of the person who is currently logged in to the system

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/externaluser/{userId}

URL Parameters

companyId    
userId    

Requirements

Create and store an external user

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/externaluser"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "brugeradgang_brugernavn": "toeuholyrgmpgia",
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/externaluser',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'brugeradgang_brugernavn' => 'toeuholyrgmpgia',
            'loenlaes' => 7,
            'loenskriv' => 7,
            'loenbestil' => 7,
            'loengodkend' => 7,
            'arkiv' => 7,
            'adganglaes' => 7,
            'adgangskriv' => 7,
            'loen_bestil_laes' => 7,
            'loen_godkend_laes' => 7,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/externaluser'
payload = {
    "brugeradgang_brugernavn": "toeuholyrgmpgia",
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "ExternalUser": {
        "bruger_brugernavn": "123-abc",
        "bruger_navn": "Bruger 1",
        "firma_navn": "firma navn"
    },
    "Access": {
        "superadmin": false,
        "read": true,
        "write": false,
        "archive": true,
        "salary": {
            "read": true,
            "write": false,
            "order": {
                "read": false,
                "write": false
            },
            "approve": {
                "read": false,
                "write": false
            }
        }
    }
}
 

POST api/company/{companyId}/externaluser

URL Parameters

companyId    

Requirements

Body Parameters

brugeradgang_brugernavn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

loenlaes    

The værdien must be 1 digit.

loenskriv    

The værdien must be 1 digit.

loenbestil    

The værdien must be 1 digit.

loengodkend    

The værdien must be 1 digit.

arkiv    

The værdien must be 1 digit.

adganglaes    

The værdien must be 1 digit.

adgangskriv    

The værdien must be 1 digit.

loen_bestil_laes    

The værdien must be 1 digit.

loen_godkend_laes    

The værdien must be 1 digit.

Updates an existing external user.

It is only the access rights that can be changed

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'loenlaes' => 7,
            'loenskriv' => 7,
            'loenbestil' => 7,
            'loengodkend' => 7,
            'arkiv' => 7,
            'adganglaes' => 7,
            'adgangskriv' => 7,
            'loen_bestil_laes' => 7,
            'loen_godkend_laes' => 7,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/externaluser/{userId}

URL Parameters

companyId    
userId    

Requirements

Body Parameters

loenlaes   optional  

The værdien must be 1 digit.

loenskriv   optional  

The værdien must be 1 digit.

loenbestil   optional  

The værdien must be 1 digit.

loengodkend   optional  

The værdien must be 1 digit.

arkiv   optional  

The værdien must be 1 digit.

adganglaes   optional  

The værdien must be 1 digit.

adgangskriv   optional  

The værdien must be 1 digit.

loen_bestil_laes   optional  

The værdien must be 1 digit.

loen_godkend_laes   optional  

The værdien must be 1 digit.

Return a list of all users

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/user"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/user',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/user'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "User": {
            "bruger_firma": 123,
            "bruger_brugernavn": "123-abc",
            "bruger_navn": "bruger",
            "bruger_email": "[email protected]",
            "bruger_mobil": "12345678",
            "bruger_emailbekraeftet": true,
            "bruger_oprettet": "2022-01-12T00:00:00+02:00",
            "bruger_opdateret": "2006-01-12T00:00:00+02:00",
            "bruger_supportkode": "supportkode"
        },
        "Access": {
            "superadmin": false,
            "read": true,
            "write": false,
            "archive": false,
            "salary": {
                "read": false,
                "write": false,
                "order": {
                    "read": false,
                    "write": false
                },
                "approve": {
                    "read": false,
                    "write": false
                }
            }
        }
    }
]
 

GET api/company/{companyId}/user

URL Parameters

companyId    

Requirements

Returns a list of all companies a companies users has access to

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/user/admin"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/user/admin',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/user/admin'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

GET api/company/{companyId}/user/admin

URL Parameters

companyId    

Requirements

Returns a single user based on company and user id

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "User": {
        "bruger_firma": 123,
        "bruger_brugernavn": "123-abc",
        "bruger_navn": "bruger",
        "bruger_email": "[email protected]",
        "bruger_mobil": "12345678",
        "bruger_emailbekraeftet": true,
        "bruger_oprettet": "2022-01-12T00:00:00+02:00",
        "bruger_opdateret": "2006-01-12T00:00:00+02:00",
        "bruger_supportkode": "supportkode"
    },
    "Access": {
        "superadmin": false,
        "read": true,
        "write": false,
        "archive": false,
        "salary": {
            "read": false,
            "write": false,
            "order": {
                "read": false,
                "write": false
            },
            "approve": {
                "read": false,
                "write": false
            }
        }
    }
}
 

GET api/company/{companyId}/user/{userId}

URL Parameters

companyId    
userId    

Requirements

Update User

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "bruger_navn": "toeuholyrgmpgiatthc",
    "bruger_kodeord": "upxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjw",
    "bruger_supportkode": "bgfyqysmnrageop",
    "bruger_email": "[email protected]",
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'bruger_navn' => 'toeuholyrgmpgiatthc',
            'bruger_kodeord' => 'upxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjw',
            'bruger_supportkode' => 'bgfyqysmnrageop',
            'bruger_email' => '[email protected]',
            'loenlaes' => 7,
            'loenskriv' => 7,
            'loenbestil' => 7,
            'loengodkend' => 7,
            'arkiv' => 7,
            'adganglaes' => 7,
            'adgangskriv' => 7,
            'loen_bestil_laes' => 7,
            'loen_godkend_laes' => 7,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "bruger_navn": "toeuholyrgmpgiatthc",
    "bruger_kodeord": "upxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjw",
    "bruger_supportkode": "bgfyqysmnrageop",
    "bruger_email": "[email protected]",
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/user/{userId}

URL Parameters

companyId    
userId    

Requirements

Body Parameters

bruger_navn   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

bruger_kodeord   optional  

The værdien must contain characters from 2 of the groups: Letters, Numbers and Symbols ( ,
+ - ' / % ( ) : @ _ & ? = ) The værdien must be at least 8 characters.

bruger_supportkode   optional  

The værdien must be at least 8 characters
The værdien must not be greater than 20 characters.

bruger_email   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

bruger_mobil   optional  

The værdien must not be greater than 8 characters.

loenlaes   optional  

The værdien must be 1 digit.

loenskriv   optional  

The værdien must be 1 digit.

loenbestil   optional  

The værdien must be 1 digit.

loengodkend   optional  

The værdien must be 1 digit.

arkiv   optional  

The værdien must be 1 digit.

adganglaes   optional  

The værdien must be 1 digit.

adgangskriv   optional  

The værdien must be 1 digit.

loen_bestil_laes   optional  

The værdien must be 1 digit.

loen_godkend_laes   optional  

The værdien must be 1 digit.

Create user

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/user"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "bruger_brugernavn": "toeuholyrgmpgia",
    "bruger_navn": "tthcupxqjdgzelwuufz",
    "bruger_kodeord": "jmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageop",
    "bruger_supportkode": "govagtdzsxpbhzc",
    "bruger_email": "[email protected]",
    "bruger_mobil": "wargxr",
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/user',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'bruger_brugernavn' => 'toeuholyrgmpgia',
            'bruger_navn' => 'tthcupxqjdgzelwuufz',
            'bruger_kodeord' => 'jmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageop',
            'bruger_supportkode' => 'govagtdzsxpbhzc',
            'bruger_email' => '[email protected]',
            'bruger_mobil' => 'wargxr',
            'loenlaes' => 7,
            'loenskriv' => 7,
            'loenbestil' => 7,
            'loengodkend' => 7,
            'arkiv' => 7,
            'adganglaes' => 7,
            'adgangskriv' => 7,
            'loen_bestil_laes' => 7,
            'loen_godkend_laes' => 7,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/user'
payload = {
    "bruger_brugernavn": "toeuholyrgmpgia",
    "bruger_navn": "tthcupxqjdgzelwuufz",
    "bruger_kodeord": "jmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageop",
    "bruger_supportkode": "govagtdzsxpbhzc",
    "bruger_email": "[email protected]",
    "bruger_mobil": "wargxr",
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "User": {
        "bruger_firma": 123,
        "bruger_brugernavn": "123-abc",
        "bruger_navn": "bruger",
        "bruger_email": "[email protected]",
        "bruger_mobil": "12345678",
        "bruger_emailbekraeftet": false,
        "bruger_oprettet": "2022-01-12T00:00:00+02:00",
        "bruger_opdateret": "2006-01-12T00:00:00+02:00"
    },
    "Access": {
        "superadmin": false,
        "read": true,
        "write": false,
        "archive": false,
        "salary": {
            "read": false,
            "write": false,
            "order": {
                "read": false,
                "write": false
            },
            "approve": {
                "read": false,
                "write": false
            }
        }
    }
}
 

POST api/company/{companyId}/user

URL Parameters

companyId    

Requirements

Body Parameters

bruger_brugernavn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 20 characters.

bruger_navn    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 30 characters.

bruger_kodeord   optional  

The værdien must contain characters from 2 of the groups: Letters, Numbers and Symbols ( ,
+ - ' / % ( ) : @ _ & ? = ) The værdien must be at least 8 characters.

bruger_supportkode   optional  

The værdien must not be greater than 20 characters.

bruger_email    

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space The værdien must not be greater than 70 characters.

bruger_mobil   optional  

The værdien must not be greater than 8 characters.

loenlaes    

The værdien must be 1 digit.

loenskriv    

The værdien must be 1 digit.

loenbestil    

The værdien must be 1 digit.

loengodkend    

The værdien must be 1 digit.

arkiv    

The værdien must be 1 digit.

adganglaes    

The værdien must be 1 digit.

adgangskriv    

The værdien must be 1 digit.

loen_bestil_laes    

The værdien must be 1 digit.

loen_godkend_laes    

The værdien must be 1 digit.

Delete User

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/user/{userId}

URL Parameters

companyId    
userId    

Requirements

Returns a list of all external users

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/externaluser"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/externaluser',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/externaluser'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "ExternalUser": {
            "bruger_brugernavn": "123-abc",
            "bruger_navn": "Bruger 1",
            "firma_navn": "Firma navn"
        },
        "Access": {
            "superadmin": false,
            "read": true,
            "write": false,
            "archive": true,
            "salary": {
                "read": true,
                "write": false,
                "order": {
                    "read": false,
                    "write": false
                },
                "approve": {
                    "read": false,
                    "write": false
                }
            }
        }
    }
]
 

GET api/company/{companyId}/externaluser

URL Parameters

companyId    

Requirements

Returns an external user based on company and user id

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "ExternalUser": {
        "bruger_brugernavn": "123-abc",
        "bruger_navn": "Bruger 1",
        "firma_navn": "Firma navn"
    },
    "Access": {
        "superadmin": false,
        "read": true,
        "write": false,
        "archive": true,
        "salary": {
            "read": true,
            "write": false,
            "order": {
                "read": false,
                "write": false
            },
            "approve": {
                "read": false,
                "write": false
            }
        }
    }
}
 

GET api/company/{companyId}/externaluser/{userId}

URL Parameters

companyId    
userId    

Requirements

get external user information

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "bruger_navn": "Mads Madsen",
        "firma_navn": "Madsens bageri",
        "firma_nr": 123
    }
]
 

GET api/company/{companyId}/externalinformation/{userId}

URL Parameters

companyId    
userId    

Requirements

PATCH api/user/{userId}/replacewith/{externalUserId}

Example request:

const url = new URL(
    "https://mit.proloen.dk/"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "bruger_kodeord": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoenin"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    '',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'bruger_kodeord' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoenin',
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "bruger_kodeord": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoenin"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/user/{userId}/replacewith/{externalUserId}

URL Parameters

userId    
externalUserId    

Body Parameters

bruger_kodeord    

The værdien must be at least 8 characters.

e-conomic

Get e-conomic integration for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/economics"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/economics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/economics'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "economic_firma_nr": 123,
    "economic_callbackid": "{1fb2a0dd-5230-4e54-bb82-5d83f083492f}",
    "economic_accessid": "SFDFS2342RWE",
    "economic_cashbook": "ProLøn",
    "economic_status": 3,
    "economic_lastcheck": "2020-01-02 09:50:10.887",
    "economic_error": "",
    "economic_agreementnumber": "0"
}
 

GET api/company/{companyId}/economics

URL Parameters

companyId    

Requirements

Get e-conomic integration for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/economics/error"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/economics/error',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/economics/error'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


[
    {
        "economickonteringsbilagfil_id": 1,
        "economickonteringsbilagfil_xmlfil": "x50117.321321.3213.321.xml",
        "economickonteringsbilagfil_xmlfildato": "2019-07-25T18:36:27+02:00",
        "economickonteringsbilagfil_accessid": "Kh2dJ5tZ23bEv54QRy2vrQPMLZQ2heRFbs81",
        "economickonteringsbilagfil_fejlbesked": "Error in data: Konto (1) er ukendt ved economic",
        "economickonteringsbilagfil_fejltype": 5,
        "economickonteringsbilagfil_fejlparametre": "1",
        "line_list": [
            {
                "economickonteringsbilagfilcsv_id": 2,
                "economickonteringsbilagfilcsv_economickonteringsbilagfil_id": 1,
                "economickonteringsbilagfilcsv_linjenr": 1,
                "economickonteringsbilagfilcsv_Proloenkontonummer": 5135000,
                "economickonteringsbilagfilcsv_konto": 1,
                "economickonteringsbilagfilcsv_afdeling": 0,
                "economickonteringsbilagfilcsv_loenart": 0,
                "economickonteringsbilagfilcsv_beloeb": "12386.51",
                "economickonteringsbilagfilcsv_periode": 0,
                "economickonteringsbilagfilcsv_linjetekst": "BRUTTOSKATTEGRUNDLAG ",
                "economickonteringsbilagfilcsv_afdelingtekst": " ",
                "economickonteringsbilagfilcsv_loenarttekst": " ",
                "economickonteringsbilagfilcsv_dato": "2019-07-31T00:00:00+02:00"
            }
        ]
    }
]
 

GET api/company/{companyId}/economics/error

URL Parameters

companyId    

Requirements

Create e-conomic integration for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/economics"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "economic_status": 0
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mit.proloen.dk/api/company/7/economics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'economic_status' => 0,
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/economics'
payload = {
    "economic_status": 0
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "economic_firma_nr": 123,
    "economic_callbackid": "{1fb2a0dd-5230-4e54-bb82-5d83f083492f}",
    "economic_accessid": "SFDFS2342RWE",
    "economic_cashbook": "ProLøn",
    "economic_status": 3,
    "economic_lastcheck": "2020-01-02 09:50:10.887",
    "economic_error": "",
    "economic_agreementnumber": "0"
}
 

POST api/company/{companyId}/economics

URL Parameters

companyId    

Requirements

Body Parameters

economic_accessid   optional  

The værdien can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = The værdien must be between 0 and 50 characters.

economic_status   optional  
economic_lastcheck   optional  

update e-conomic error for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/economics/error/82"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

let body = {
    "economickonteringsbilagfil_opdater": false,
    "economickonteringsbilagfil_gensend": false,
    "economickonteringsbilagfil_slet": true,
    "economickonteringsbilagfilcsv": [
        "quod"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://mit.proloen.dk/api/company/7/economics/error/82',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
        'json' => [
            'economickonteringsbilagfil_opdater' => false,
            'economickonteringsbilagfil_gensend' => false,
            'economickonteringsbilagfil_slet' => true,
            'economickonteringsbilagfilcsv' => [
                'quod',
            ],
        ],

    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/economics/error/82'
payload = {
    "economickonteringsbilagfil_opdater": false,
    "economickonteringsbilagfil_gensend": false,
    "economickonteringsbilagfil_slet": true,
    "economickonteringsbilagfilcsv": [
        "quod"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

PATCH api/company/{companyId}/economics/error/{economicsFileId}

URL Parameters

companyId    
economicsFileId    

Requirements

Body Parameters

economickonteringsbilagfil_opdater   optional  

This field is required when none of economickonteringsbilagfil_gensend and economickonteringsbilagfil_slet are present.

economickonteringsbilagfil_gensend   optional  

This field is required when none of economickonteringsbilagfil_opdater and economickonteringsbilagfil_slet are present.

economickonteringsbilagfil_slet   optional  

This field is required when none of economickonteringsbilagfil_gensend and economickonteringsbilagfil_opdater are present.

economickonteringsbilagfilcsv   optional  

This field is required when economickonteringsbilagfil_opdater is 1.

economickonteringsbilagfilcsv_id   optional  
economickonteringsbilagfilcsv_konto   optional  
economickonteringsbilagfilcsv_afdeling   optional  

Delete e-conomic integration for company

Example request:

const url = new URL(
    "https://mit.proloen.dk/api/company/7/economics"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "{{apikey}}",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mit.proloen.dk/api/company/7/economics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'api-key' => '{{apikey}}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/economics'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'api-key': '{{apikey}}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

DELETE api/company/{companyId}/economics

URL Parameters

companyId    

Requirements