MENU navbar-image
javascript php python

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 3 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 3 only the partner login requires the integrating system to store credentials. In all other types of logins there is no need to store user/customer credentials(!).

In the following subsections, the "system" means the system integrating with the API. When refering 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 succesful 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.

Administrator login

Almost the same as user login except the administrator has access to multiple companies. The cookie is used when verifying access to and actions on the different companies. If an administrator has access to company A and B, then for getting the company data for A the URL “/company/A” is used and for B the URL “/company/B” – In essence only the company number need to be changed in order to access different companies.

Partner login

Almost the same as administrator login. The partner login must be added as external user to the companies, the partner login are to administer with the right access rights / priviledges of course. The difference between administrator login and partner login is that the system can store the partner login credential and perform login “behind the scenes” while the administrator login requires the administrator to provide credentials when the cookie expires.

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.

.NET DLL

A .NET library file is available for download targeting solutions using .NET v4.0 or v4.5+. The functionality covered by the file is listed below together with a simple example. The implementation aims to simplify interaction with the REST API and generalise the way data is send and returned including processing error messages.

The file is available for download here as a ZIP (including additional DLLs which might be required by your system)

The .NET 4.0 uses the System.Net.WebRequest class to communicate with the API, and the .NET 4.5+ uses the System.Net.Http.HttpClient class.

Models

Authenticate

Employee

SalaryTransaction

Salary

C# library file console program example

using System;
using System.Collections.Generic;

namespace TestAPIConsoleApp {
    class Program {
        static string APIKEY = "";
        static string DOMAINURL = "https://proloendemo.proinfo.dk/demo/api";
        static string LOGIN = "";
        static string PASSWORD = "";
        static int COMPANY_ID = -1;
        static int EMPLOYEE_TYPE = -1;

        static void Main(string[] args) {
            // Read and assign values for ApiKey, DomainUrl, Login, Password, Company and
            // EmployeeType - Code omitted

            // Create api reference object
            ProLoenAPI.ProLoenAPI proloenApi = new ProLoenAPI.ProLoenAPI(APIKEY, DOMAINURL);

            // Login
            var loginResponse = proloenApi.Authenticate.Login(LOGIN, PASSWORD);
            DisplayResponse(loginResponse);

            // Create employee - Assuming everything is fine for this example
            var draftEmployee = GetPartialEmployeeFromDB();
            var createDraftEmployeeResponse = proloenApi.Employee
                   .CreateDraftEmployee(COMPANY_ID, draftEmployee);
            DisplayResponse(createDraftEmployeeResponse);

            // Create salary transaction - Assuming everything is fine for this example
            // First validate transactions before commiting these
            var salaryTransactionList =
                   GetSalaryTransactionListFromDB(COMPANY_ID, draftEmployee.arbejder_nr);
            var validateSalaryTransactionListResponse = proloenApi.SalaryTransaction
                   .ValidateSalaryTransactionList(COMPANY_ID, salaryTransactionList);
            DisplayResponse(validateSalaryTransactionListResponse);

            // Assuming everything is fine, commit transactions
            var createSalaryTransactionResponse = proloenApi.SalaryTransaction
                   .CreateSalaryTransactionForEmployee(COMPANY_ID,
                                                       draftEmployee.arbejder_nr,
                                                       salaryTransactionList);
            DisplayResponse(createSalaryTransactionResponse);

            // Reset salary transactions (Depends on reset codes!)
            var resetSalaryResponse = proloenApi.Salary.Reset(COMPANY_ID, EMPLOYEE_TYPE);
            DisplayResponse(resetSalaryResponse);

            // Logout
            var logoutResponse = proloenApi.Authenticate.Logout();
            DisplayResponse(logoutResponse);

            var _ = Console.ReadKey();
        }

        /// <summary>
        /// Returns an draft emploee object with test data - Should be pulled from another source
        /// </summary>
        /// <returns></returns>
        private static ProLoenAPI.Model.EmployeeModel GetPartialEmployeeFromDB() {
            Random random = new Random();

            return new ProLoenAPI.Model.EmployeeModel() {
                arbejder_nr = random.Next(1, 99999),
                arbejder_arbejdertype = EMPLOYEE_TYPE,
                arbejder_fornavn = "DRAFT"
            };
        }

        /// <summary>
        /// Returns test salary transaction - Should be pulled from another source
        /// </summary>
        /// <param name="companyId"></param>
        /// <param name="employeeId"></param>
        /// <returns></returns>
        private static List<ProLoenAPI.Model.SalaryTransactionModel>
            GetSalaryTransactionListFromDB(int companyId, int employeeId) {
            return new List<ProLoenAPI.Model.SalaryTransactionModel>() {
                new ProLoenAPI.Model.SalaryTransactionModel(){
                    loentransaktion_firma = companyId,
                    loentransaktion_arbejder = employeeId,
                    loentransaktion_loenart = 1002,
                    loentransaktion_antal = 2,
                    loentransaktion_sats = 100,
                    loentransaktion_beloeb = 0
                },
                new ProLoenAPI.Model.SalaryTransactionModel(){
                    loentransaktion_firma = companyId,
                    loentransaktion_arbejder = employeeId,
                    loentransaktion_loenart = 1002,
                    loentransaktion_antal = 2,
                    loentransaktion_sats = 100,
                    loentransaktion_beloeb = 0
                }
            };
        }

        /// <summary>
        /// Displays all data in response as an example
        /// </summary>
        /// <param name="response"></param>
        private static void DisplayResponse(ProLoenAPI.Response.ApiResponse response) {
            Console.WriteLine("Displaying response:");

            Console.WriteLine($"\tResponse type is: {response.GetType().FullName}");
            Console.WriteLine($"\tStatus code is: {response.StatusCode}");
            Console.WriteLine($"\tNumber of errors is: {response.ErrorList.Count}");
            foreach (var error in response.ErrorList) {
                Console.WriteLine($"\tField: {error.Field}");
                Console.WriteLine($"\tDescription: {error.Description}");
                Console.WriteLine($"\tValidator: {error.Validator}\n");
            }

            if (response.GetType().IsSubclassOf(typeof(ProLoenAPI.Response.ApiResponse))) {
                var dynamicResponse = (ProLoenAPI.Response.ApiResponse<dynamic>)response;
                Console.WriteLine($"\tNumber of elements is: {dynamicResponse.ElementList.Count}");
                foreach (var element in dynamicResponse.ElementList) {
                    Console.WriteLine($"\t\telement: {element}");
                }
            }

            if (response.GetType().FullName.Equals("ProLoenAPI.Response.LoginResponse")) {
                var loginResponse = (ProLoenAPI.Response.LoginResponse)response;
                Console.WriteLine($"\tUser is: {loginResponse.User}");
                Console.WriteLine($"\tCompany is: {loginResponse.Company}");
                Console.WriteLine($"\tAccess rights is: {loginResponse.AccessRight}");
            }
        }
    }
}

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. An C# console application example for sending requests is listed below.

Authenticate

Storing and updating employees

Salary transactions

Prepare salary

C# HttpClient console program example

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;

namespace CSharpExampleCode {
    class Program {
        private const string API_KEY = "xxxxxxxxxxxxxxxxxxxx";

        private const string COMPANY = "xxxxx"; // Should be set in a config file
        private const string EMPLOYEE_NUMBER = "x"; // Should come from other data source
        private const string EMPLOYEE_CPR_NUMBER = "010160xxxx"; // Should come from other sources
                                                                 // (010160 skips CVR validation)

        private const string LOGIN_USER = "xxxxx"; // Should be set in a config file
        private const string LOGIN_PASSWORD = "xxxxxxxx"; // Should be set in a config file

        private static string SESSION_COOKIE; // Storing cookie from login and subsequent calls

        // URLS
        private const string DOMAIN_URL = "https://proloendemo.proinfo.dk"; // Cookie domain.
        private const string BASE_URL = DOMAIN_URL + "/demo/api/"; // Used for base in all API URLs.

        private const string LOGIN_URL = BASE_URL + "authenticate/login";
        private const string BASE_EMPLOYEE_URL = BASE_URL + "company/" + COMPANY + "/employee";
        private const string EMPLOYEE_URL = BASE_EMPLOYEE_URL + "/" + EMPLOYEE_NUMBER;
        private const string EMPLOYEE_SALARY_TRANSACTION_URL =
                                BASE_EMPLOYEE_URL + "/" + EMPLOYEE_NUMBER + "/" + "salarytransaction";
        private const string BASE_SALARY_TRANSACTION_URL =
                                BASE_URL + "company/" + COMPANY + "/salarytransaction";
        private const string SALARY_TRANSACTION_LIST_URL = BASE_SALARY_TRANSACTION_URL + "/list";
        private const string SALARY_ORDER_URL = BASE_URL + "company/" + COMPANY + "/salaryorder";

        private enum RequestMethod { GET, POST, PATCH, DELETE }

        static void Main(string[] args) {
            PerformLogin();

            CreateEmployee();

            UpdateEmployee();

            CreateSalaryTransactions();

            MarkEmployeeForSalaryPayout();

            GetSalaryData();

            // Note calling this function locks the company making only read operations allowed!
            //CreateSalaryOrder();
        }

        /// <summary>
        /// Generic method for setting headers, transforming data, calling the API and storing
        /// any relevant cookies
        /// </summary>
        /// <param name="uri">API endpoint</param>
        /// <param name="data">Data to send if any, empty if no data is to be send</param>
        /// <param name="requestMethod">Type of request</param>
        /// <returns></returns>
        private static async Task<HttpResponseMessage> SendRequest(Uri uri,
                                                                   dynamic data,
                                                                   RequestMethod requestMethod) {
            // Setup
            CookieContainer cookieContainer = new CookieContainer();
            HttpClientHandler handler = new HttpClientHandler();
            handler.CookieContainer = cookieContainer;
            HttpClient client = new HttpClient(handler);
            client.DefaultRequestHeaders.Add("api-key", API_KEY);
            client.DefaultRequestHeaders.Accept.Add(
               new MediaTypeWithQualityHeaderValue("application/json")
            );
            if (SESSION_COOKIE != null) {
                cookieContainer.Add(
                   new Uri(DOMAIN_URL),
                   new Cookie("laravel_session", SESSION_COOKIE)
                );
            }

            // Prepare call
            var myContent = JsonConvert.SerializeObject(data);
            var buffer = Encoding.UTF8.GetBytes(myContent);
            var byteContent = new ByteArrayContent(buffer);
            byteContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");

            //Call
            HttpResponseMessage response = null;
            switch (requestMethod) {
                case RequestMethod.POST:
                    response = client.PostAsync(uri, byteContent).Result;
                    break;

                case RequestMethod.PATCH:
                    // HttpClient does not "native" support PATCH, so use generic method SendAsync
                    // Alternative use PUT, but it requires all parameters to be included in data
                    var method = new HttpMethod("PATCH");
                    var request = new HttpRequestMessage(method, uri) {
                        Content = byteContent
                    };
                    var httpResponseMessage = new HttpResponseMessage();

                    response = await client.SendAsync(request);
                    break;

                case RequestMethod.DELETE:
                    response = client.DeleteAsync(uri).Result;
                    break;

                case RequestMethod.GET:
                default:
                    response = client.GetAsync(uri).Result;
                    break;
            }

            // Get cookies
            IEnumerable<Cookie> responseCookies = cookieContainer.GetCookies(uri).Cast<Cookie>();
            foreach (Cookie cookie in responseCookies) {
                if (cookie.Name.Equals("laravel_session")) {
                    SESSION_COOKIE = cookie.Value;
                }
            }

            return response;
        }

        /// <summary>
        /// Generic method for handling responses. Ideally this should be handled in the calling
        /// method, but for testing purpose, it is placed here.
        /// </summary>
        /// <param name="response"></param>
        /// <param name="url"></param>
        /// <param name="expectArray"></param>
        private static void HandleResponse(HttpResponseMessage response, string url,
                                           bool expectArray = false) {
            // One could use response.EnsureSuccessStatusCode() instead in a try-catch
            if (response.IsSuccessStatusCode) {
                Console.WriteLine($"Call to {url} successfull");
            }
            else {
                Console.WriteLine($"Call to {url} failed: {response.StatusCode}");
            }

            var responseContent = response.Content.ReadAsStringAsync().Result;
            if (!responseContent.Equals("")) {
                var responseJson = (expectArray
                    ? JArray.Parse(responseContent).ToString()
                    : JObject.Parse(responseContent).ToString()
                );

                Console.WriteLine(responseJson);
            }
        }

        private static void PerformLogin() {
            var data = new {
                login = LOGIN_USER,
                password = LOGIN_PASSWORD
            };

            var response = SendRequest(new Uri(LOGIN_URL), data, RequestMethod.POST).Result;
            HandleResponse(response, LOGIN_URL);

            var unusedKey = Console.ReadKey();
        }

        private static void CreateEmployee() {
            // Please note, that the number of fields depends on the company setup. These are
            // only a suggestion of the most commonly used
            var data = new {
                arbejder_nr = Convert.ToInt32(EMPLOYEE_NUMBER),
                arbejder_fornavn = "Test",
                arbejder_efternavn = "Testing",
                arbejder_cprnr = EMPLOYEE_CPR_NUMBER,
                arbejder_arbejdertype = 2,
                arbejder_afdeling = 1,
                arbejder_adresse1 = "Some street",
                arbejder_postnr = 1234,
                arbejder_by = "Somewhere",
                arbejder_ansatdato = "2018-11-30",
                arbejder_bankregnr = 1234,
                arbejder_bankkontonr = "12345678",
                arbejder_atpkode = 0,
                arbejder_feriekode = 0,
                arbejder_shkode = 0,
                arbejder_beskaeftigelseskode = 0,
                arbejder_skattekort = "H"
            };

            var response = SendRequest(new Uri(BASE_EMPLOYEE_URL), data, RequestMethod.POST).Result;
            HandleResponse(response, BASE_EMPLOYEE_URL);

            var unusedKey = Console.ReadKey();
        }

        private static void UpdateEmployee() {
            var data = new {
                arbejder_fornavn = "Test 2"
            };

            var response = SendRequest(new Uri(EMPLOYEE_URL), data, RequestMethod.PATCH).Result;
            HandleResponse(response, EMPLOYEE_URL);

            var unusedKey = Console.ReadKey();
        }

        private static void CreateSalaryTransactions() {
            var data = new {
                loentransaktioner = new[] {
                    new {
                        loentransaktion_arbejder = Convert.ToInt32(EMPLOYEE_NUMBER),
                        loentransaktion_loenart = 571,
                        loentransaktion_antal = 5.0,
                        loentransaktion_sats = 5.50,
                        loentransaktion_beloeb = 0.0,
                        loentransaktion_afdeling = 0
                    },
                    new {
                        loentransaktion_arbejder = Convert.ToInt32(EMPLOYEE_NUMBER),
                        loentransaktion_loenart = 2240,
                        loentransaktion_antal = 0.0,
                        loentransaktion_sats = 0.0,
                        loentransaktion_beloeb = 500.0,
                        loentransaktion_afdeling = 0
                    }
                }
            };

            var response = SendRequest(
                  new Uri(SALARY_TRANSACTION_LIST_URL),
                  data,
                  RequestMethod.POST)
               .Result;
            HandleResponse(response, SALARY_TRANSACTION_LIST_URL, true);

            var unusedKey = Console.ReadKey();
        }

        private static void MarkEmployeeForSalaryPayout() {
            var data = new {
                arbejder_loen = 1
            };

            var response = SendRequest(new Uri(EMPLOYEE_URL), data, RequestMethod.PATCH).Result;
            HandleResponse(response, EMPLOYEE_URL);

            var unusedKey = Console.ReadKey();
        }

        private static void GetSalaryData() {
            var response = SendRequest(
                  new Uri(EMPLOYEE_SALARY_TRANSACTION_URL),
                  new { },
                  RequestMethod.GET)
               .Result;
            HandleResponse(response, EMPLOYEE_SALARY_TRANSACTION_URL, true);

            var unusedKey = Console.ReadKey();
        }

        /// <summary>
        /// Note calling this function locks the company making only read operations allowed!
        ///
        /// To unlock, contact [email protected]
        /// </summary>
        private static void CreateSalaryOrder() {
            var data = new {
                firma_bemaerkning = "Console app ordering",
                bestilling = new[] {
                    new {
                        arbejdertype_nr = 2,
                        dispositions_dato = "2018-12-27",
                        ekstra_loenkoersel = false,
                        kortfrist_bestilling = false,
                        test_koersel = false,
                        fremrykket_udbetaling = false,
                        bestilt_for_sent = false,
                        anden_aarsag_notat = "Console app ordering"
                    }
                }
            };

            var response = SendRequest(new Uri(SALARY_ORDER_URL), data, RequestMethod.POST).Result;
            HandleResponse(response, EMPLOYEE_SALARY_TRANSACTION_URL);

            var unusedKey = Console.ReadKey();
        }
    }
}

(Remember to replace all "x*" with data given by Proløn or from your own data source)

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 send to [email protected], stating

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. Send an email to [email protected] stating

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

If your choose Partner Login as your choise 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]

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/absencestatistics',
    [
        'headers' => [
            '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'
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

response = requests.request('GET', url, headers=headers)
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": "",
        "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",
        "fravaerskode_nr": "1100",
        "fravaerskode_tekst": "Egen sygdom"
    }
]
 
        

GET api/company/{companyId}/absencestatistics

URL Parameters

companyId  string  

Get absence code list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single absence statistics

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

absenceStatisticsId  string  

Create absence statistic

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "fravaersstatistik_arbejder": 15,
    "fravaersstatistik_startdato": 74029388,
    "fravaersstatistik_slutdato": 74029388,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.read",
        "Company has absence statistics enabled"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'fravaersstatistik_arbejder' => 15,
            'fravaersstatistik_startdato' => 74029388,
            'fravaersstatistik_slutdato' => 74029388,
            '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": 15,
    "fravaersstatistik_startdato": 74029388,
    "fravaersstatistik_slutdato": 74029388,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.read",
        "Company has absence statistics enabled"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

fravaersstatistik_arbejder  integer  

fravaersstatistik_startdato  integer  

Must be at least 10000000
Must not be greater than 99999999.

fravaersstatistik_slutdato  integer  

Must be at least 10000000
Must not be greater than 99999999.

fravaersstatistik_fravaerskode  integer  

fravaersstatistik_timer  number  

Create absence statistic, file

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

let headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'multipart' => [
            [
                'name' => 'fravaersFil',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php5DC2.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\php5DC2.tmp', 'rb')
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

Body Parameters

fravaersFil  file  

Must be a file.

Create absence statistic, text

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

Body Parameters

absencestatistics  string  

Update absence statistic

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "fravaersstatistik_arbejder": 15,
    "fravaersstatistik_startdato": 74029388,
    "fravaersstatistik_slutdato": 74029388,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.read",
        "Company has absence statistics enabled"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'fravaersstatistik_arbejder' => 15,
            'fravaersstatistik_startdato' => 74029388,
            'fravaersstatistik_slutdato' => 74029388,
            '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": 15,
    "fravaersstatistik_startdato": 74029388,
    "fravaersstatistik_slutdato": 74029388,
    "fravaersstatistik_fravaerskode": 15,
    "fravaersstatistik_timer": 124580.7912707,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.read",
        "Company has absence statistics enabled"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

absenceStatisticsId  string  

Requirements

Body Parameters

fravaersstatistik_arbejder  integer optional  

fravaersstatistik_startdato  integer optional  

Must be at least 10000000
Must not be greater than 99999999.

fravaersstatistik_slutdato  integer optional  

Must be at least 10000000
Must not be greater than 99999999.

fravaersstatistik_fravaerskode  integer optional  

fravaersstatistik_timer  number optional  

Delete absence statistic

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.read",
        "Company has absence statistics enabled"
    ]
}

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/absencestatistics/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.read",
        "Company has absence statistics enabled"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

absenceStatisticsId  string  

Requirements

Body Parameters

Account number voucher

Get account number voucher list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get account number voucher list for version number

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

versionNumber  string  

Create account number voucher

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firmaktbilag_stdkontoplanversion": 15,
    "firmaktbilag_stdlinjenr": 15,
    "firmaktbilag_kontonr": 74029388,
    "firmaktbilag_afdnr": 74029,
    "firmaktbilag_loenart": 7402,
    "firmaktbilag_arbejder": 74029,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firmaktbilag_stdkontoplanversion' => 15,
            'firmaktbilag_stdlinjenr' => 15,
            'firmaktbilag_kontonr' => 74029388,
            'firmaktbilag_afdnr' => 74029,
            'firmaktbilag_loenart' => 7402,
            'firmaktbilag_arbejder' => 74029,
        ],
    ]
);
$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": 74029388,
    "firmaktbilag_afdnr": 74029,
    "firmaktbilag_loenart": 7402,
    "firmaktbilag_arbejder": 74029,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

firmaktbilag_stdkontoplanversion  integer  

firmaktbilag_stdlinjenr  integer  

firmaktbilag_kontonr  integer  

Must be between 0 and 99999999.

firmaktbilag_afdnr  integer optional  

Must be between 0 and 99999.

firmaktbilag_loenart  integer optional  

Must be between 0 and 9999.

firmaktbilag_arbejder  integer optional  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firmaktbilag_kontonr": 74029388,
    "firmaktbilag_afdnr": 74029,
    "firmaktbilag_loenart": 7402,
    "firmaktbilag_arbejder": 74029,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firmaktbilag_kontonr' => 74029388,
            'firmaktbilag_afdnr' => 74029,
            'firmaktbilag_loenart' => 7402,
            'firmaktbilag_arbejder' => 74029,
        ],
    ]
);
$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": 74029388,
    "firmaktbilag_afdnr": 74029,
    "firmaktbilag_loenart": 7402,
    "firmaktbilag_arbejder": 74029,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

voucherId  string  

Requirements

Body Parameters

firmaktbilag_kontonr  integer optional  

Must be between 0 and 99999999.

firmaktbilag_afdnr  integer optional  

Must be between 0 and 99999.

firmaktbilag_loenart  integer optional  

Must be between 0 and 9999.

firmaktbilag_arbejder  integer optional  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.write"
    ]
}

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/accountnumbervoucher/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

voucherId  string  

Requirements

Body Parameters

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/"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

industryId  string  

Get single info

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

id  string  

The ID of the admininfo.

Create new info

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "info_brance": 15,
    "info_tildato": "2021-12-03",
    "info_titel": "=rBHtIFhN.",
    "info_tekst": "=rBHtIFhN.",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'info_brance' => 15,
            'info_tildato' => '2021-12-03',
            'info_titel' => '=rBHtIFhN.',
            'info_tekst' => '=rBHtIFhN.',
        ],
    ]
);
$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": "2021-12-03",
    "info_titel": "=rBHtIFhN.",
    "info_tekst": "=rBHtIFhN.",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

info_brance  integer  

info_tildato  string  

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

info_titel  string  

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

info_tekst  string  

The value 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "info_brance": 15,
    "info_tildato": "2021-12-03",
    "info_titel": "=rBHtIFhN.",
    "info_tekst": "=rBHtIFhN.",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'info_brance' => 15,
            'info_tildato' => '2021-12-03',
            'info_titel' => '=rBHtIFhN.',
            'info_tekst' => '=rBHtIFhN.',
        ],
    ]
);
$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": "2021-12-03",
    "info_titel": "=rBHtIFhN.",
    "info_tekst": "=rBHtIFhN.",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

id  string  

The ID of the admininfo.

Requirements

Body Parameters

info_brance  integer  

info_tildato  string  

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

info_titel  string  

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

info_tekst  string  

The value 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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/admininfo/quod',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

id  string  

The ID of the admininfo.

Requirements

Body Parameters

Admin matrix

Get list of selectable Matrix fields

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get list of company selected Matrix fields

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

Update company Matrix

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}

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/adminmatrix',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/adminmatrix

URL Parameters

companyId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

otherCompanyId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}

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/removeblock/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

otherCompanyId  string  

Requirements

Body Parameters

Removes a lock from the designated company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}

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/unlock/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

unlockCompanyId  string  

Requirements

Body Parameters

Puts a block on the designated company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "initialer": "toeuholyrgmpgia",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'initialer' => 'toeuholyrgmpgia',
        ],
    ]
);
$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": "toeuholyrgmpgia",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

otherCompanyId  string  

Requirements

Body Parameters

initialer  string  

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

Authenticate

Login

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "login": "quod",
    "password": "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/login',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'login' => 'quod',
            'password' => 'quod',
        ],
    ]
);
$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": "quod"
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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
    },
    "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"
    },
    "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
    },
    "require_code": false
}
 
        

POST api/authenticate/login

Body Parameters

login  string  

password  string  

Logout

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/authenticate/logout',
    [
        'headers' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/authenticate/resetpassword

Body Parameters

login  string  

Change password with token

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "login": "quod",
    "token": "toeuholyrgmpgiatthcupxqjdgzelwuu",
    "password": "toeuho"
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'login' => 'quod',
            'token' => 'toeuholyrgmpgiatthcupxqjdgzelwuu',
            'password' => 'toeuho',
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuu",
    "password": "toeuho"
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/authenticate/token/changepassword

Body Parameters

login  string  

token  string  

Must be 32 characters.

password  string  

Must contain characters from 2 of the groups: Letters, Numbers and Symbols ( ,
+ - ' / % ( ) : @ _ & ? = ) 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "login": "quod",
    "token": "quod",
    "password": "toeuho",
    "supportCode": "toeuholyrgmpgia"
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'login' => 'quod',
            'token' => 'quod',
            'password' => 'toeuho',
            'supportCode' => 'toeuholyrgmpgia',
        ],
    ]
);
$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": "toeuho",
    "supportCode": "toeuholyrgmpgia"
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/authenticate/token/create

Body Parameters

login  string  

token  string  

password  string  

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

supportCode  string  

Must be at least 8 characters
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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

employeeId  string  

Get a single employee average salary.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

employeeId  string  

averageSalaryId  string  

get a list of employee average salaries for company.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

GET api/company/{companyId}/averagesalary

URL Parameters

companyId  string  

Character Converter

Get character conventions list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company',
    [
        'headers' => [
            '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'
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_ktbilagarbejder": 0,
            "firma_profile": false,
            "firma_kontrolsum": 1,
            "arbejdertype_bestiltdato": "2017-09-29",
            "arbejdertype_bestiltkl": 1144,
            "firma_skattebetaling_tekst": "Fremrykket skat",
            "firma_statistik_tekst": "DA - KONJUNKTUR + STRUKTUR"
        },
        "access": {
            "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

Get Single company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7',
    [
        'headers' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_ktbilagarbejder": 0,
        "firma_profile": false,
        "firma_kontrolsum": 1,
        "arbejdertype_bestiltdato": "2017-09-29",
        "arbejdertype_bestiltkl": 1144,
        "firma_skattebetaling_tekst": "Fremrykket skat",
        "firma_statistik_tekst": "DA - KONJUNKTUR + STRUKTUR"
    },
    "access": {
        "superadmin": false,
        "read": true,
        "write": true,
        "archive": true,
        "salary": {
            "read": true,
            "write": true,
            "order": {
                "read": true,
                "write": 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  string  

Update company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firma_navn": "toeuholyrgmpgiatthcupx",
    "firma_adresse1": "toeuholyrgmpgiatthcupx",
    "firma_adresse2": "toeuholyrgmpgiatthcupx",
    "firma_postnr": 7402,
    "firma_by": "toeuholyrgmpgiatthcupx",
    "firma_telefon": "toeuholyrgmpgiatthcupx",
    "firma_dabarsel": "t",
    "firma_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "firma_mailkode": "toeuholyrgmpgia",
    "firma_kontoplanversion": 74,
    "firma_ebokserhverv": 1,
    "firma_alleloensedlerieboks": 0,
    "firma_leveringsnavn": "toeuholyrgmpgiatthcupx",
    "firma_leveringsadresse1": "toeuholyrgmpgiatthcupx",
    "firma_leveringsadresse2": "toeuholyrgmpgiatthcupx",
    "firma_leveringspostnr": 7402,
    "firma_leveringsby": "toeuholyrgmpgiatthcupx",
    "firma_manspaerdato": 20211312112200,
    "firma_feriekode": 1,
    "firma_kontrolsum": 15,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firma_navn' => 'toeuholyrgmpgiatthcupx',
            'firma_adresse1' => 'toeuholyrgmpgiatthcupx',
            'firma_adresse2' => 'toeuholyrgmpgiatthcupx',
            'firma_postnr' => 7402,
            'firma_by' => 'toeuholyrgmpgiatthcupx',
            'firma_telefon' => 'toeuholyrgmpgiatthcupx',
            'firma_dabarsel' => 't',
            'firma_email' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'firma_mailkode' => 'toeuholyrgmpgia',
            'firma_kontoplanversion' => 74.0,
            'firma_ebokserhverv' => 1,
            'firma_alleloensedlerieboks' => 0,
            'firma_leveringsnavn' => 'toeuholyrgmpgiatthcupx',
            'firma_leveringsadresse1' => 'toeuholyrgmpgiatthcupx',
            'firma_leveringsadresse2' => 'toeuholyrgmpgiatthcupx',
            'firma_leveringspostnr' => 7402,
            'firma_leveringsby' => 'toeuholyrgmpgiatthcupx',
            '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": "toeuholyrgmpgiatthcupx",
    "firma_adresse1": "toeuholyrgmpgiatthcupx",
    "firma_adresse2": "toeuholyrgmpgiatthcupx",
    "firma_postnr": 7402,
    "firma_by": "toeuholyrgmpgiatthcupx",
    "firma_telefon": "toeuholyrgmpgiatthcupx",
    "firma_dabarsel": "t",
    "firma_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "firma_mailkode": "toeuholyrgmpgia",
    "firma_kontoplanversion": 74,
    "firma_ebokserhverv": 1,
    "firma_alleloensedlerieboks": 0,
    "firma_leveringsnavn": "toeuholyrgmpgiatthcupx",
    "firma_leveringsadresse1": "toeuholyrgmpgiatthcupx",
    "firma_leveringsadresse2": "toeuholyrgmpgiatthcupx",
    "firma_leveringspostnr": 7402,
    "firma_leveringsby": "toeuholyrgmpgiatthcupx",
    "firma_manspaerdato": 20211312112200,
    "firma_feriekode": 1,
    "firma_kontrolsum": 15,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}

URL Parameters

companyId  string  

Requirements

Body Parameters

firma_navn  string optional  

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

firma_adresse1  string optional  

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

firma_adresse2  string optional  

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

firma_postnr  integer optional  

Must be between 0 and 9999.

firma_by  string optional  

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

firma_telefon  string optional  

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

firma_dabarsel  string optional  

Must be between 0 and 1 characters.

firma_email  string optional  

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

firma_mailkode  string optional  

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

firma_kontoplanversion  number optional  

Must be between 0 and 99.

firma_ebokserhverv  integer optional  

Must be one of 0 or 1.

firma_alleloensedlerieboks  integer optional  

Must be one of 0 or 1.

firma_leveringsnavn  string optional  

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

firma_leveringsadresse1  string optional  

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

firma_leveringsadresse2  string optional  

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

firma_leveringspostnr  integer optional  

Must be between 0 and 9999.

firma_leveringsby  string optional  

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

firma_manspaerdato  number optional  

firma_feriekode  integer optional  

Must be one of 0 or 1.

firma_kontrolsum  integer 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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/mocode/reset',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
            }
        ]
    }
]
 
        

GET api/company/{companyId}/companymatrixversion

URL Parameters

companyId  string  

get single company matrix version.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
        }
    ]
}
 
        

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

URL Parameters

companyId  string  

companyMatrixVersionId  string  

Crate company matrix version.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firmamatrixversion_aktiv": false,
    "firmamatrixversion_navn": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmp",
    "firmamatrix_matrix": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firmamatrixversion_aktiv' => false,
            'firmamatrixversion_navn' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmp',
            'firmamatrix_matrix' => [
                15,
                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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmp",
    "firmamatrix_matrix": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
        }
    ]
}
 
        

POST api/company/{companyId}/companymatrixversion

URL Parameters

companyId  string  

Requirements

Body Parameters

firmamatrixversion_aktiv  boolean  

firmamatrixversion_navn  string  

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

firmamatrix_matrix  integer[] optional  

Update single company matrix version.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firmamatrixversion_aktiv": false,
    "firmamatrixversion_navn": "=rBHtIFhN.",
    "firmamatrix_matrix": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firmamatrixversion_aktiv' => false,
            'firmamatrixversion_navn' => '=rBHtIFhN.',
            'firmamatrix_matrix' => [
                15,
                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": "=rBHtIFhN.",
    "firmamatrix_matrix": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

companyMatrixVersionId  string  

Requirements

Body Parameters

firmamatrixversion_aktiv  boolean optional  

firmamatrixversion_navn  string optional  

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

firmamatrix_matrix  integer[] optional  

delete a single company matrix version.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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/companymatrixversion/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

companyMatrixVersionId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
    }
]
 
        

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

URL Parameters

companyId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeTypeId  string  

Department (Afdelinger)

Get department List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single department

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

departmentId  string  

Create department

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "afdeling_nr": 74029,
    "afdeling_navn": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'afdeling_nr' => 74029,
            'afdeling_navn' => 'toeuholy',
        ],
    ]
);
$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": 74029,
    "afdeling_navn": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

afdeling_nr  integer  

Must be between 1 and 99999.

afdeling_navn  string  

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

Update department

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "afdeling_nr": 74029,
    "afdeling_navn": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'afdeling_nr' => 74029,
            'afdeling_navn' => 'toeuholy',
        ],
    ]
);
$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": 74029,
    "afdeling_navn": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

departmentId  string  

Requirements

Body Parameters

afdeling_nr  integer optional  

Must be between 1 and 99999.

afdeling_navn  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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/department/8',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

departmentId  string  

Requirements

Body Parameters

Document description

Return list of document descriptions

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Return single document description

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

documentDescriptionId  string  

Store a document description

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "dokukode_nr": 74029,
    "dokukode_tekst": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvj",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'dokukode_nr' => 74029,
            'dokukode_tekst' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvj',
        ],
    ]
);
$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": 74029,
    "dokukode_tekst": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvj",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

dokukode_nr  integer  

Must be between 1 and 99999.

dokukode_tekst  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "dokukode_tekst": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvj",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'dokukode_tekst' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvj',
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvj",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

documentDescriptionId  string  

Requirements

Body Parameters

dokukode_tekst  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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/documentdescription/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

documentDescriptionId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get document (Company)

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

documentId  string  

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"
);

let headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
const body = new FormData();
body.append('beskyttet', '');
body.append('__proloen_requirements_body_parameter__[]', 'User is logged in');
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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'multipart' => [
            [
                'name' => 'beskyttet',
                'contents' => ''
            ],
            [
                'name' => 'dokument',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php5DF2.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\php5DF2.tmp', 'rb')
}
payload = {
    "beskyttet": false,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "beskyttet can only be set by super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

dokument  file  

Must be a file.

beskyttet  boolean optional  

Update document settings (Company)

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "beskyttet": false,
    "privat": false,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to companyId",
        "Document is not private",
        "Document is uploaded by companyId or user belonging to companyId",
        "beskyttet can only be set by super admin"
    ]
}

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' => [
            '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,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to companyId",
        "Document is not private",
        "Document is uploaded by companyId or user belonging to companyId",
        "beskyttet can only be set by super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

documentId  string  

Requirements

Body Parameters

beskyttet  boolean optional  

privat  boolean optional  

Delete document (Company)

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to companyId",
        "Document is not protected",
        "Document is not private"
    ]
}

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/documentfolder/document/82',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to companyId",
        "Document is not protected",
        "Document is not private"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

documentId  string  

Requirements

Body Parameters

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/api/user/35-xRpFMr/documentfolder"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/user/35-xRpFMr/documentfolder',
    [
        'headers' => [
            '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/user/35-xRpFMr/documentfolder'
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get document (User)

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/user/35-xRpFMr/documentfolder/document/82"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/user/35-xRpFMr/documentfolder/document/82',
    [
        'headers' => [
            '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/user/35-xRpFMr/documentfolder/document/82'
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

userId  string  

documentId  string  

Store document (User)

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/user/35-xRpFMr/documentfolder"
);

let headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
const body = new FormData();
body.append('privat', '');
body.append('beskyttet', '');
body.append('__proloen_requirements_body_parameter__[]', 'User is logged in');
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/user/35-xRpFMr/documentfolder',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'multipart' => [
            [
                'name' => 'privat',
                'contents' => ''
            ],
            [
                'name' => 'beskyttet',
                'contents' => ''
            ],
            [
                'name' => 'dokument',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php5DF3.tmp', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/user/35-xRpFMr/documentfolder'
files = {
  'dokument': open('C:\Users\Administrator\AppData\Local\Temp\php5DF3.tmp', 'rb')
}
payload = {
    "privat": false,
    "beskyttet": false,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to user",
        "beskyttet can only be set by super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

dokument  file  

Must be a file.

privat  boolean  

beskyttet  boolean 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/api/user/35-xRpFMr/documentfolder/document/82"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "beskyttet": false,
    "privat": false,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to userId",
        "Document is marked as private",
        "Document is uploaded by userId",
        "beskyttet can only be set by super admin"
    ]
}

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/user/35-xRpFMr/documentfolder/document/82',
    [
        'headers' => [
            '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/user/35-xRpFMr/documentfolder/document/82'
payload = {
    "beskyttet": false,
    "privat": false,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to userId",
        "Document is marked as private",
        "Document is uploaded by userId",
        "beskyttet can only be set by super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

userId  string  

documentId  string  

Requirements

Body Parameters

beskyttet  boolean optional  

privat  boolean optional  

Delete document (User)

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/user/35-xRpFMr/documentfolder/document/82"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to userId",
        "Document is uploaded by userId",
        "Document is not protected"
    ]
}

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/user/35-xRpFMr/documentfolder/document/82',
    [
        'headers' => [
            '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/user/35-xRpFMr/documentfolder/document/82'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to userId",
        "Document is uploaded by userId",
        "Document is not protected"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

userId  string  

documentId  string  

Requirements

Body Parameters

E TaxCard (eSkattekort)

Get eTaxCard list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": 201691023,
        "eskattekort_fradragprdag": 222,
        "eskattekort_fradragperioden": 1234,
        "eskattekort_traekprocent": 39,
        "eskattekort_frikort": 0,
        "eskattekort_korttype": 2,
        "eskattekort_loebenummer": "2010001"
    }
]
 
        

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

URL Parameters

companyId  string  

employeeId  string  

Employee (Medarbejder)

Get employee List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "",
        "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_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,
        "ArbejderLoenart": [
            {
                "arbejderloenart_firma": 123,
                "arbejderloenart_arbejder": 1234,
                "arbejderloenart_loenart": 953,
                "arbejderloenart_sats": 2
            }
        ],
        "arbejderafdeling": true,
        "loentransaktioner_fejl": true
    }
]
 
        

GET api/company/{companyId}/employee

URL Parameters

companyId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/employee/csv',
    [
        'headers' => [
            '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/csv'
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

Get employee list, deleted

Get deleted employees list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "",
        "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,
        "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  string  

Get employee list, draft

Get draft employees list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "",
        "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,
        "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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get employee

Get single employee

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "",
    "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,
    "ArbejderLoenart": [
        {
            "arbejderloenart_firma": 123,
            "arbejderloenart_arbejder": 1234,
            "arbejderloenart_loenart": 953,
            "arbejderloenart_sats": 2
        }
    ],
    "loentransaktioner_fejl": true,
    "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  string  

employeeId  string  

Get employee, as PDF

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

employeeId  string  

Create employee

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_nr": 74028,
    "arbejder_arbejdertype": 3,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "opgoerelsesperiodebestilt_fra_dato": "2021-12-03",
    "opgoerelsesperiodebestilt_til_dato": "2021-12-03",
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_nr' => 74028,
            'arbejder_arbejdertype' => 3,
            'arbejder_profil' => 'toeuho',
            'arbejder_fornavn' => 'toeuholyrgmpgiatt',
            'arbejder_efternavn' => 'toeuholyrgmpgiatt',
            'arbejder_adresse1' => 'toeuholyrgmpgiatthcupx',
            'arbejder_adresse2' => 'toeuholyrgmpgiatthcupx',
            'arbejder_postnr' => 766.0,
            'arbejder_by' => 'toeuholyrgmpgiatt',
            'arbejder_cprnr' => 'toeuholy',
            'arbejder_ansatdato' => '2014-08-16',
            'arbejder_rejstdato' => '2021-12-03',
            'arbejder_afdeling' => 7662.0,
            'arbejder_skattefrd1dag' => 7662.0,
            'arbejder_skattefrdperioden' => 7662.0,
            'arbejder_traekprocent' => 766.0,
            'arbejder_restfrikort' => 766264.0,
            'arbejder_bankregnr' => 766.0,
            'arbejder_bankkontonr' => 'toeuholy',
            'arbejder_atpkode' => 5,
            'arbejder_feriekode' => 7.0,
            'arbejder_shkode' => 7.0,
            'arbejder_ampension' => 766.0,
            'arbejder_amstartdato' => '2021-12-03',
            'arbejder_ansaettelsestype' => 7.0,
            'arbejder_ansaettelsevilkaer' => 7.0,
            'arbejder_jobstatus' => 7.0,
            'arbejder_afloenningsform' => 'to',
            'arbejder_loen' => 0.0,
            'arbejder_landekode' => 'to',
            'arbejder_andetarbejdssted' => 't',
            'arbejder_personalegruppe' => 't',
            'arbejder_email' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_dabarsel' => 7,
            'arbejder_frivilligtraekprocent' => 15,
            'arbejder_beskaeftigelseskode' => 76.0,
            'arbejder_produktionsenhedsnr' => 'toeuholy',
            'arbejder_groenlandskkommune' => 766.0,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76.0,
            'arbejder_udlaertdato' => '2021-12-03',
            'arbejder_arbejdsfunktion2' => 76626.0,
            'arbejder_sundhedsordning' => 76.0,
            'arbejder_mokode' => 7662.0,
            'arbejder_eboks' => 't',
            'arbejder_loesarbejder' => 't',
            'arbejder_mailkode' => 'toeuholyrgmpgia',
            'arbejder_fhkode' => 'to',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662.0,
            'arbejder_samarbuddannelsesfond' => 7662.0,
            'arbejder_ansaettelsesforhold' => 'to',
            'arbejder_anciennitetsdato' => '2021-12-03',
            'arbejder_tekst1' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst2' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst3' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst4' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst5' => 'toeuholyrgmpgiatthc',
            'arbejder_overenskomsttekst' => 'toeuholyrgmpgiatthc',
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 23,
            'opgoerelsesperiodebestilt_fra_dato' => '2021-12-03',
            'opgoerelsesperiodebestilt_til_dato' => '2021-12-03',
        ],
    ]
);
$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": 74028,
    "arbejder_arbejdertype": 3,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "opgoerelsesperiodebestilt_fra_dato": "2021-12-03",
    "opgoerelsesperiodebestilt_til_dato": "2021-12-03",
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_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": "",
        "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,
        "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
    }
]
 
        

POST api/company/{companyId}/employee

URL Parameters

companyId  string  

Requirements

Important business Rules

Body Parameters

arbejder_nr  integer  

Must be between 0 and 99998.

arbejder_arbejdertype  integer  

Must be between 0 and 4.

arbejder_profil  string optional  

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

arbejder_fornavn  string  

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

arbejder_efternavn  string  

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

arbejder_adresse1  string  

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

arbejder_adresse2  string optional  

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

arbejder_postnr  number  

Must be between 1 and 4 digits.

arbejder_by  string  

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

arbejder_cprnr  string  

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

arbejder_ansatdato  string  

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

arbejder_rejstdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_afdeling  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrd1dag  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrdperioden  number optional  

Must be between 1 and 5 digits.

arbejder_traekprocent  number optional  

Must be between 1 and 3 digits.

arbejder_restfrikort  number optional  

Must be between 1 and 7 digits.

arbejder_bankregnr  number  

Must be between 1 and 4 digits.

arbejder_bankkontonr  string  

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

arbejder_atpkode  integer  

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

arbejder_feriekode  number  

Must be 1 digits.

arbejder_shkode  number optional  

Must be 1 digits.

arbejder_ampension  number optional  

Must be between 1 and 4 digits.

arbejder_amstartdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype  number optional  

Must be 1 digits.

arbejder_ansaettelsevilkaer  number optional  

Must be 1 digits.

arbejder_jobstatus  number optional  

Must be 1 digits.

arbejder_afloenningsform  string optional  

Must not be greater than 2 characters.

arbejder_loen  number optional  

Must be 1 digits
Must be one of 0 or 1.

arbejder_landekode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_andetarbejdssted  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_personalegruppe  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_email  string optional  

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

arbejder_dabarsel  integer optional  

Must be between 0 and 9.

arbejder_frivilligtraekprocent  integer optional  

Must be between 0 and 20.

arbejder_beskaeftigelseskode  number optional  

Must be between 1 and 2 digits.

arbejder_produktionsenhedsnr  string optional  

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

arbejder_groenlandskkommune  number optional  

Must be between 1 and 3 digits.

arbejder_skattekort  string  

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

arbejder_dalouddannelsesbidrag  number optional  

Must be between 1 and 2 digits.

arbejder_udlaertdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2  number optional  

Must be between 1 and 6 digits.

arbejder_sundhedsordning  number optional  

Must be between 1 and 2 digits.

arbejder_mokode  number optional  

Must be between 1 and 5 digits.

arbejder_eboks  string optional  

Must be one of J, N, M, P, j, n, m, or p Must not be greater than 1 characters.

arbejder_loesarbejder  string optional  

Must be one of J, N, j, or n Must not be greater than 1 characters.

arbejder_mailkode  string optional  

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

arbejder_fhkode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 3 characters.

arbejder_tilladnegativloen  integer optional  

Must be between 0 and 1.

arbejder_kompetencefond  number optional  

Must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond  number optional  

Must be between 1 and 5 digits.

arbejder_ansaettelsesforhold  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_anciennitetsdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_tekst1  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst2  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst3  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst4  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst5  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_overenskomsttekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id  integer optional  

opgoerelsesperiodemedarbejder_valg  integer optional  

Must be at least 1
Must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato  date optional  

Must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato  date optional  

Must be 0 or must match the format Y-m-d.

Create employee, draft

Create draft of employee

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_nr": 74028,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_nr' => 74028,
            'arbejder_profil' => 'toeuho',
            'arbejder_fornavn' => 'toeuholyrgmpgiatt',
            'arbejder_efternavn' => 'toeuholyrgmpgiatt',
            'arbejder_adresse1' => 'toeuholyrgmpgiatthcupx',
            'arbejder_adresse2' => 'toeuholyrgmpgiatthcupx',
            'arbejder_postnr' => 766.0,
            'arbejder_by' => 'toeuholyrgmpgiatt',
            'arbejder_cprnr' => 'toeuholy',
            'arbejder_ansatdato' => '2014-08-16',
            'arbejder_rejstdato' => '2021-12-03',
            'arbejder_afdeling' => 7662.0,
            'arbejder_skattefrd1dag' => 7662.0,
            'arbejder_skattefrdperioden' => 7662.0,
            'arbejder_traekprocent' => 766.0,
            'arbejder_restfrikort' => 766264.0,
            'arbejder_bankregnr' => 766.0,
            'arbejder_bankkontonr' => 'toeuholy',
            'arbejder_atpkode' => 5,
            'arbejder_feriekode' => 7.0,
            'arbejder_shkode' => 7.0,
            'arbejder_ampension' => 766.0,
            'arbejder_amstartdato' => '2021-12-03',
            'arbejder_ansaettelsestype' => 7.0,
            'arbejder_ansaettelsevilkaer' => 7.0,
            'arbejder_jobstatus' => 7.0,
            'arbejder_afloenningsform' => 'to',
            'arbejder_loen' => 0.0,
            'arbejder_landekode' => 'to',
            'arbejder_andetarbejdssted' => 't',
            'arbejder_personalegruppe' => 't',
            'arbejder_email' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_dabarsel' => 7,
            'arbejder_frivilligtraekprocent' => 15,
            'arbejder_beskaeftigelseskode' => 76.0,
            'arbejder_produktionsenhedsnr' => 'toeuholy',
            'arbejder_groenlandskkommune' => 766.0,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76.0,
            'arbejder_udlaertdato' => '2021-12-03',
            'arbejder_arbejdsfunktion2' => 76626.0,
            'arbejder_sundhedsordning' => 76.0,
            'arbejder_mokode' => 7662.0,
            'arbejder_eboks' => 't',
            'arbejder_loesarbejder' => 't',
            'arbejder_mailkode' => 'toeuholyrgmpgia',
            'arbejder_fhkode' => 'to',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662.0,
            'arbejder_samarbuddannelsesfond' => 7662.0,
            'arbejder_ansaettelsesforhold' => 'to',
            'arbejder_anciennitetsdato' => '2021-12-03',
            'arbejder_tekst1' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst2' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst3' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst4' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst5' => 'toeuholyrgmpgiatthc',
            'arbejder_overenskomsttekst' => 'toeuholyrgmpgiatthc',
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 23,
        ],
    ]
);
$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": 74028,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_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": "",
        "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,
        "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
    }
]
 
        

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

URL Parameters

companyId  string  

Requirements

Important business Rules

Body Parameters

arbejder_nr  integer  

Must be between 0 and 99998.

arbejder_profil  string optional  

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

arbejder_fornavn  string optional  

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

arbejder_efternavn  string optional  

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

arbejder_adresse1  string optional  

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

arbejder_adresse2  string optional  

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

arbejder_postnr  number optional  

Must be between 1 and 4 digits.

arbejder_by  string optional  

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

arbejder_cprnr  string optional  

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

arbejder_ansatdato  string optional  

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

arbejder_rejstdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_afdeling  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrd1dag  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrdperioden  number optional  

Must be between 1 and 5 digits.

arbejder_traekprocent  number optional  

Must be between 1 and 3 digits.

arbejder_restfrikort  number optional  

Must be between 1 and 7 digits.

arbejder_bankregnr  number optional  

Must be between 1 and 4 digits.

arbejder_bankkontonr  string optional  

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

arbejder_atpkode  integer optional  

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

arbejder_feriekode  number optional  

Must be 1 digits.

arbejder_shkode  number optional  

Must be 1 digits.

arbejder_ampension  number optional  

Must be between 1 and 4 digits.

arbejder_amstartdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype  number optional  

Must be 1 digits.

arbejder_ansaettelsevilkaer  number optional  

Must be 1 digits.

arbejder_jobstatus  number optional  

Must be 1 digits.

arbejder_afloenningsform  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_loen  number optional  

Must be 1 digits
Must be one of 0 or 1.

arbejder_landekode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_andetarbejdssted  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_personalegruppe  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_email  string optional  

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

arbejder_dabarsel  integer optional  

Must be between 0 and 9.

arbejder_frivilligtraekprocent  integer optional  

Must be between 0 and 20.

arbejder_beskaeftigelseskode  number optional  

Must be between 1 and 2 digits.

arbejder_produktionsenhedsnr  string optional  

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

arbejder_groenlandskkommune  number optional  

Must be between 1 and 3 digits.

arbejder_skattekort  string optional  

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

arbejder_dalouddannelsesbidrag  number optional  

Must be between 1 and 2 digits.

arbejder_udlaertdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2  number optional  

Must be between 1 and 6 digits.

arbejder_sundhedsordning  number optional  

Must be between 1 and 2 digits.

arbejder_mokode  number optional  

Must be between 1 and 5 digits.

arbejder_eboks  string optional  

Must be one of J, N, M, P, j, n, m, or p Must not be greater than 1 characters.

arbejder_loesarbejder  string optional  

Must be one of J, N, j, or n Must not be greater than 1 characters.

arbejder_mailkode  string optional  

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

arbejder_fhkode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 3 characters.

arbejder_tilladnegativloen  integer optional  

Must be between 0 and 1.

arbejder_kompetencefond  number optional  

Must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond  number optional  

Must be between 1 and 5 digits.

arbejder_ansaettelsesforhold  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_anciennitetsdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_tekst1  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst2  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst3  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst4  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst5  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_overenskomsttekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id  integer optional  

opgoerelsesperiodemedarbejder_valg  integer optional  

Must be at least 1
Must not be greater than 31.

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "medarbejdere": "quod",
    "arbejder_kladde": false,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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' => [
            '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,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

Requirements

Important business Rules

Body Parameters

medarbejdere  string  

arbejder_kladde  boolean 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"
);

let headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_kladde": false,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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' => [
            '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,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

Requirements

Important business Rules

Body Parameters

medarbejderFil  file optional  

Must be a file.

arbejder_kladde  boolean optional  

Update employee

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_arbejdertype": 3,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "arbejder_bemaerkning1": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_bemaerkning2": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "opgoerelsesperiodebestilt_fra_dato": "2021-12-03",
    "opgoerelsesperiodebestilt_til_dato": "2021-12-03",
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_arbejdertype' => 3,
            'arbejder_profil' => 'toeuho',
            'arbejder_fornavn' => 'toeuholyrgmpgiatt',
            'arbejder_efternavn' => 'toeuholyrgmpgiatt',
            'arbejder_adresse1' => 'toeuholyrgmpgiatthcupx',
            'arbejder_adresse2' => 'toeuholyrgmpgiatthcupx',
            'arbejder_postnr' => 766.0,
            'arbejder_by' => 'toeuholyrgmpgiatt',
            'arbejder_cprnr' => 'toeuholy',
            'arbejder_ansatdato' => '2014-08-16',
            'arbejder_rejstdato' => '2021-12-03',
            'arbejder_afdeling' => 7662.0,
            'arbejder_skattefrd1dag' => 7662.0,
            'arbejder_skattefrdperioden' => 7662.0,
            'arbejder_traekprocent' => 766.0,
            'arbejder_restfrikort' => 766264.0,
            'arbejder_bankregnr' => 766.0,
            'arbejder_bankkontonr' => 'toeuholy',
            'arbejder_atpkode' => 5,
            'arbejder_feriekode' => 7.0,
            'arbejder_shkode' => 7.0,
            'arbejder_ampension' => 766.0,
            'arbejder_amstartdato' => '2021-12-03',
            'arbejder_ansaettelsestype' => 7.0,
            'arbejder_ansaettelsevilkaer' => 7.0,
            'arbejder_jobstatus' => 7.0,
            'arbejder_afloenningsform' => 'to',
            'arbejder_loen' => 0.0,
            'arbejder_landekode' => 'to',
            'arbejder_andetarbejdssted' => 't',
            'arbejder_personalegruppe' => 't',
            'arbejder_email' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_dabarsel' => 7,
            'arbejder_frivilligtraekprocent' => 15,
            'arbejder_beskaeftigelseskode' => 76.0,
            'arbejder_produktionsenhedsnr' => 'toeuholy',
            'arbejder_groenlandskkommune' => 766.0,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76.0,
            'arbejder_udlaertdato' => '2021-12-03',
            'arbejder_arbejdsfunktion2' => 76626.0,
            'arbejder_sundhedsordning' => 76.0,
            'arbejder_mokode' => 7662.0,
            'arbejder_eboks' => 't',
            'arbejder_loesarbejder' => 't',
            'arbejder_mailkode' => 'toeuholyrgmpgia',
            'arbejder_fhkode' => 'to',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662.0,
            'arbejder_samarbuddannelsesfond' => 7662.0,
            'arbejder_ansaettelsesforhold' => 'to',
            'arbejder_anciennitetsdato' => '2021-12-03',
            'arbejder_tekst1' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst2' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst3' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst4' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst5' => 'toeuholyrgmpgiatthc',
            'arbejder_overenskomsttekst' => 'toeuholyrgmpgiatthc',
            'arbejder_bemaerkning1' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_bemaerkning2' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 23,
            'opgoerelsesperiodebestilt_fra_dato' => '2021-12-03',
            'opgoerelsesperiodebestilt_til_dato' => '2021-12-03',
        ],
    ]
);
$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": 3,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "arbejder_bemaerkning1": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_bemaerkning2": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "opgoerelsesperiodebestilt_fra_dato": "2021-12-03",
    "opgoerelsesperiodebestilt_til_dato": "2021-12-03",
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_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": "",
        "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,
        "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
    }
]
 
        

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

URL Parameters

companyId  string  

employeeId  string  

Requirements

Important business Rules

Body Parameters

arbejder_arbejdertype  integer optional  

Must be between 0 and 4.

arbejder_profil  string optional  

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

arbejder_fornavn  string optional  

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

arbejder_efternavn  string optional  

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

arbejder_adresse1  string optional  

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

arbejder_adresse2  string optional  

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

arbejder_postnr  number optional  

Must be between 1 and 4 digits.

arbejder_by  string optional  

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

arbejder_cprnr  string optional  

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

arbejder_ansatdato  string optional  

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

arbejder_rejstdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_afdeling  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrd1dag  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrdperioden  number optional  

Must be between 1 and 5 digits.

arbejder_traekprocent  number optional  

Must be between 1 and 3 digits.

arbejder_restfrikort  number optional  

Must be between 1 and 7 digits.

arbejder_bankregnr  number optional  

Must be between 1 and 4 digits.

arbejder_bankkontonr  string optional  

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

arbejder_atpkode  integer optional  

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

arbejder_feriekode  number optional  

Must be 1 digits.

arbejder_shkode  number optional  

Must be 1 digits.

arbejder_ampension  number optional  

Must be between 1 and 4 digits.

arbejder_amstartdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype  number optional  

Must be 1 digits.

arbejder_ansaettelsevilkaer  number optional  

Must be 1 digits.

arbejder_jobstatus  number optional  

Must be 1 digits.

arbejder_afloenningsform  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_loen  number optional  

Must be 1 digits
Must be one of 0 or 1.

arbejder_landekode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_andetarbejdssted  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_personalegruppe  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_email  string optional  

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

arbejder_dabarsel  integer optional  

Must be between 0 and 9.

arbejder_frivilligtraekprocent  integer optional  

Must be between 0 and 20.

arbejder_beskaeftigelseskode  number optional  

Must be between 1 and 2 digits.

arbejder_produktionsenhedsnr  string optional  

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

arbejder_groenlandskkommune  number optional  

Must be between 1 and 3 digits.

arbejder_skattekort  string optional  

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

arbejder_dalouddannelsesbidrag  number optional  

Must be between 1 and 2 digits.

arbejder_udlaertdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2  number optional  

Must be between 1 and 6 digits.

arbejder_sundhedsordning  number optional  

Must be between 1 and 2 digits.

arbejder_mokode  number optional  

Must be between 1 and 5 digits.

arbejder_eboks  string optional  

Must be one of J, N, M, P, j, n, m, or p Must not be greater than 1 characters.

arbejder_loesarbejder  string optional  

Must be one of J, N, j, or n Must not be greater than 1 characters.

arbejder_mailkode  string optional  

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

arbejder_fhkode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 3 characters.

arbejder_tilladnegativloen  integer optional  

Must be between 0 and 1.

arbejder_kompetencefond  number optional  

Must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond  number optional  

Must be between 1 and 5 digits.

arbejder_ansaettelsesforhold  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_anciennitetsdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_tekst1  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst2  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst3  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst4  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst5  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_overenskomsttekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_bemaerkning1  string optional  

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

arbejder_bemaerkning2  string optional  

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

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id  integer optional  

opgoerelsesperiodemedarbejder_valg  integer optional  

Must be at least 1
Must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato  date optional  

Must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato  date optional  

Must be 0 or must match the format Y-m-d.

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_arbejdertype": 3,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "arbejder_bemaerkning1": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_bemaerkning2": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "opgoerelsesperiodebestilt_fra_dato": "2021-12-03",
    "opgoerelsesperiodebestilt_til_dato": "2021-12-03",
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_arbejdertype' => 3,
            'arbejder_profil' => 'toeuho',
            'arbejder_fornavn' => 'toeuholyrgmpgiatt',
            'arbejder_efternavn' => 'toeuholyrgmpgiatt',
            'arbejder_adresse1' => 'toeuholyrgmpgiatthcupx',
            'arbejder_adresse2' => 'toeuholyrgmpgiatthcupx',
            'arbejder_postnr' => 766.0,
            'arbejder_by' => 'toeuholyrgmpgiatt',
            'arbejder_cprnr' => 'toeuholy',
            'arbejder_ansatdato' => '2014-08-16',
            'arbejder_rejstdato' => '2021-12-03',
            'arbejder_afdeling' => 7662.0,
            'arbejder_skattefrd1dag' => 7662.0,
            'arbejder_skattefrdperioden' => 7662.0,
            'arbejder_traekprocent' => 766.0,
            'arbejder_restfrikort' => 766264.0,
            'arbejder_bankregnr' => 766.0,
            'arbejder_bankkontonr' => 'toeuholy',
            'arbejder_atpkode' => 5,
            'arbejder_feriekode' => 7.0,
            'arbejder_shkode' => 7.0,
            'arbejder_ampension' => 766.0,
            'arbejder_amstartdato' => '2021-12-03',
            'arbejder_ansaettelsestype' => 7.0,
            'arbejder_ansaettelsevilkaer' => 7.0,
            'arbejder_jobstatus' => 7.0,
            'arbejder_afloenningsform' => 'to',
            'arbejder_loen' => 0.0,
            'arbejder_landekode' => 'to',
            'arbejder_andetarbejdssted' => 't',
            'arbejder_personalegruppe' => 't',
            'arbejder_email' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_dabarsel' => 7,
            'arbejder_frivilligtraekprocent' => 15,
            'arbejder_beskaeftigelseskode' => 76.0,
            'arbejder_produktionsenhedsnr' => 'toeuholy',
            'arbejder_groenlandskkommune' => 766.0,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76.0,
            'arbejder_udlaertdato' => '2021-12-03',
            'arbejder_arbejdsfunktion2' => 76626.0,
            'arbejder_sundhedsordning' => 76.0,
            'arbejder_mokode' => 7662.0,
            'arbejder_eboks' => 't',
            'arbejder_loesarbejder' => 't',
            'arbejder_mailkode' => 'toeuholyrgmpgia',
            'arbejder_fhkode' => 'to',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662.0,
            'arbejder_samarbuddannelsesfond' => 7662.0,
            'arbejder_ansaettelsesforhold' => 'to',
            'arbejder_anciennitetsdato' => '2021-12-03',
            'arbejder_tekst1' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst2' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst3' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst4' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst5' => 'toeuholyrgmpgiatthc',
            'arbejder_overenskomsttekst' => 'toeuholyrgmpgiatthc',
            'arbejder_bemaerkning1' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_bemaerkning2' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 23,
            'opgoerelsesperiodebestilt_fra_dato' => '2021-12-03',
            'opgoerelsesperiodebestilt_til_dato' => '2021-12-03',
        ],
    ]
);
$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": 3,
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "arbejder_bemaerkning1": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_bemaerkning2": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "opgoerelsesperiodebestilt_fra_dato": "2021-12-03",
    "opgoerelsesperiodebestilt_til_dato": "2021-12-03",
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these. If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_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": "",
        "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,
        "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
    }
]
 
        

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

URL Parameters

companyId  string  

employeeId  string  

Requirements

Important business Rules

Body Parameters

arbejder_arbejdertype  integer optional  

Must be between 0 and 4.

arbejder_profil  string optional  

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

arbejder_fornavn  string optional  

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

arbejder_efternavn  string optional  

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

arbejder_adresse1  string optional  

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

arbejder_adresse2  string optional  

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

arbejder_postnr  number optional  

Must be between 1 and 4 digits.

arbejder_by  string optional  

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

arbejder_cprnr  string optional  

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

arbejder_ansatdato  string optional  

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

arbejder_rejstdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_afdeling  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrd1dag  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrdperioden  number optional  

Must be between 1 and 5 digits.

arbejder_traekprocent  number optional  

Must be between 1 and 3 digits.

arbejder_restfrikort  number optional  

Must be between 1 and 7 digits.

arbejder_bankregnr  number optional  

Must be between 1 and 4 digits.

arbejder_bankkontonr  string optional  

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

arbejder_atpkode  integer optional  

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

arbejder_feriekode  number optional  

Must be 1 digits.

arbejder_shkode  number optional  

Must be 1 digits.

arbejder_ampension  number optional  

Must be between 1 and 4 digits.

arbejder_amstartdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype  number optional  

Must be 1 digits.

arbejder_ansaettelsevilkaer  number optional  

Must be 1 digits.

arbejder_jobstatus  number optional  

Must be 1 digits.

arbejder_afloenningsform  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_loen  number optional  

Must be 1 digits
Must be one of 0 or 1.

arbejder_landekode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_andetarbejdssted  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_personalegruppe  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_email  string optional  

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

arbejder_dabarsel  integer optional  

Must be between 0 and 9.

arbejder_frivilligtraekprocent  integer optional  

Must be between 0 and 20.

arbejder_beskaeftigelseskode  number optional  

Must be between 1 and 2 digits.

arbejder_produktionsenhedsnr  string optional  

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

arbejder_groenlandskkommune  number optional  

Must be between 1 and 3 digits.

arbejder_skattekort  string optional  

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

arbejder_dalouddannelsesbidrag  number optional  

Must be between 1 and 2 digits.

arbejder_udlaertdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2  number optional  

Must be between 1 and 6 digits.

arbejder_sundhedsordning  number optional  

Must be between 1 and 2 digits.

arbejder_mokode  number optional  

Must be between 1 and 5 digits.

arbejder_eboks  string optional  

Must be one of J, N, M, P, j, n, m, or p Must not be greater than 1 characters.

arbejder_loesarbejder  string optional  

Must be one of J, N, j, or n Must not be greater than 1 characters.

arbejder_mailkode  string optional  

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

arbejder_fhkode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 3 characters.

arbejder_tilladnegativloen  integer optional  

Must be between 0 and 1.

arbejder_kompetencefond  number optional  

Must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond  number optional  

Must be between 1 and 5 digits.

arbejder_ansaettelsesforhold  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_anciennitetsdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_tekst1  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst2  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst3  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst4  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst5  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_overenskomsttekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_bemaerkning1  string optional  

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

arbejder_bemaerkning2  string optional  

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

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id  integer optional  

opgoerelsesperiodemedarbejder_valg  integer optional  

Must be at least 1
Must not be greater than 31.

opgoerelsesperiodebestilt_fra_dato  date optional  

Must be 0 or must match the format Y-m-d.

opgoerelsesperiodebestilt_til_dato  date optional  

Must be 0 or must match the format Y-m-d.

Update employee, draft

Update draft of employee

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_profil' => 'toeuho',
            'arbejder_fornavn' => 'toeuholyrgmpgiatt',
            'arbejder_efternavn' => 'toeuholyrgmpgiatt',
            'arbejder_adresse1' => 'toeuholyrgmpgiatthcupx',
            'arbejder_adresse2' => 'toeuholyrgmpgiatthcupx',
            'arbejder_postnr' => 766.0,
            'arbejder_by' => 'toeuholyrgmpgiatt',
            'arbejder_cprnr' => 'toeuholy',
            'arbejder_ansatdato' => '2014-08-16',
            'arbejder_rejstdato' => '2021-12-03',
            'arbejder_afdeling' => 7662.0,
            'arbejder_skattefrd1dag' => 7662.0,
            'arbejder_skattefrdperioden' => 7662.0,
            'arbejder_traekprocent' => 766.0,
            'arbejder_restfrikort' => 766264.0,
            'arbejder_bankregnr' => 766.0,
            'arbejder_bankkontonr' => 'toeuholy',
            'arbejder_atpkode' => 5,
            'arbejder_feriekode' => 7.0,
            'arbejder_shkode' => 7.0,
            'arbejder_ampension' => 766.0,
            'arbejder_amstartdato' => '2021-12-03',
            'arbejder_ansaettelsestype' => 7.0,
            'arbejder_ansaettelsevilkaer' => 7.0,
            'arbejder_jobstatus' => 7.0,
            'arbejder_afloenningsform' => 'to',
            'arbejder_loen' => 0.0,
            'arbejder_landekode' => 'to',
            'arbejder_andetarbejdssted' => 't',
            'arbejder_personalegruppe' => 't',
            'arbejder_email' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_dabarsel' => 7,
            'arbejder_frivilligtraekprocent' => 15,
            'arbejder_beskaeftigelseskode' => 76.0,
            'arbejder_produktionsenhedsnr' => 'toeuholy',
            'arbejder_groenlandskkommune' => 766.0,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76.0,
            'arbejder_udlaertdato' => '2021-12-03',
            'arbejder_arbejdsfunktion2' => 76626.0,
            'arbejder_sundhedsordning' => 76.0,
            'arbejder_mokode' => 7662.0,
            'arbejder_eboks' => 't',
            'arbejder_loesarbejder' => 't',
            'arbejder_mailkode' => 'toeuholyrgmpgia',
            'arbejder_fhkode' => 'to',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662.0,
            'arbejder_samarbuddannelsesfond' => 7662.0,
            'arbejder_ansaettelsesforhold' => 'to',
            'arbejder_anciennitetsdato' => '2021-12-03',
            'arbejder_tekst1' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst2' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst3' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst4' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst5' => 'toeuholyrgmpgiatthc',
            'arbejder_overenskomsttekst' => 'toeuholyrgmpgiatthc',
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 23,
        ],
    ]
);
$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_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_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": "",
        "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,
        "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
    }
]
 
        

PATCH api/company/{companyId}/employee/{employeeId}/draft

URL Parameters

companyId  string  

employeeId  string  

Requirements

Important business Rules

Body Parameters

arbejder_profil  string optional  

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

arbejder_fornavn  string optional  

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

arbejder_efternavn  string optional  

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

arbejder_adresse1  string optional  

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

arbejder_adresse2  string optional  

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

arbejder_postnr  number optional  

Must be between 1 and 4 digits.

arbejder_by  string optional  

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

arbejder_cprnr  string optional  

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

arbejder_ansatdato  string optional  

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

arbejder_rejstdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_afdeling  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrd1dag  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrdperioden  number optional  

Must be between 1 and 5 digits.

arbejder_traekprocent  number optional  

Must be between 1 and 3 digits.

arbejder_restfrikort  number optional  

Must be between 1 and 7 digits.

arbejder_bankregnr  number optional  

Must be between 1 and 4 digits.

arbejder_bankkontonr  string optional  

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

arbejder_atpkode  integer optional  

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

arbejder_feriekode  number optional  

Must be 1 digits.

arbejder_shkode  number optional  

Must be 1 digits.

arbejder_ampension  number optional  

Must be between 1 and 4 digits.

arbejder_amstartdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype  number optional  

Must be 1 digits.

arbejder_ansaettelsevilkaer  number optional  

Must be 1 digits.

arbejder_jobstatus  number optional  

Must be 1 digits.

arbejder_afloenningsform  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_loen  number optional  

Must be 1 digits
Must be one of 0 or 1.

arbejder_landekode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_andetarbejdssted  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_personalegruppe  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_email  string optional  

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

arbejder_dabarsel  integer optional  

Must be between 0 and 9.

arbejder_frivilligtraekprocent  integer optional  

Must be between 0 and 20.

arbejder_beskaeftigelseskode  number optional  

Must be between 1 and 2 digits.

arbejder_produktionsenhedsnr  string optional  

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

arbejder_groenlandskkommune  number optional  

Must be between 1 and 3 digits.

arbejder_skattekort  string optional  

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

arbejder_dalouddannelsesbidrag  number optional  

Must be between 1 and 2 digits.

arbejder_udlaertdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2  number optional  

Must be between 1 and 6 digits.

arbejder_sundhedsordning  number optional  

Must be between 1 and 2 digits.

arbejder_mokode  number optional  

Must be between 1 and 5 digits.

arbejder_eboks  string optional  

Must be one of J, N, M, P, j, n, m, or p Must not be greater than 1 characters.

arbejder_loesarbejder  string optional  

Must be one of J, N, j, or n Must not be greater than 1 characters.

arbejder_mailkode  string optional  

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

arbejder_fhkode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 3 characters.

arbejder_tilladnegativloen  integer optional  

Must be between 0 and 1.

arbejder_kompetencefond  number optional  

Must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond  number optional  

Must be between 1 and 5 digits.

arbejder_ansaettelsesforhold  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_anciennitetsdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_tekst1  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst2  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst3  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst4  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst5  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_overenskomsttekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id  integer optional  

opgoerelsesperiodemedarbejder_valg  integer optional  

Must be at least 1
Must not be greater than 31.

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_profil": "toeuho",
    "arbejder_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_profil' => 'toeuho',
            'arbejder_fornavn' => 'toeuholyrgmpgiatt',
            'arbejder_efternavn' => 'toeuholyrgmpgiatt',
            'arbejder_adresse1' => 'toeuholyrgmpgiatthcupx',
            'arbejder_adresse2' => 'toeuholyrgmpgiatthcupx',
            'arbejder_postnr' => 766.0,
            'arbejder_by' => 'toeuholyrgmpgiatt',
            'arbejder_cprnr' => 'toeuholy',
            'arbejder_ansatdato' => '2014-08-16',
            'arbejder_rejstdato' => '2021-12-03',
            'arbejder_afdeling' => 7662.0,
            'arbejder_skattefrd1dag' => 7662.0,
            'arbejder_skattefrdperioden' => 7662.0,
            'arbejder_traekprocent' => 766.0,
            'arbejder_restfrikort' => 766264.0,
            'arbejder_bankregnr' => 766.0,
            'arbejder_bankkontonr' => 'toeuholy',
            'arbejder_atpkode' => 5,
            'arbejder_feriekode' => 7.0,
            'arbejder_shkode' => 7.0,
            'arbejder_ampension' => 766.0,
            'arbejder_amstartdato' => '2021-12-03',
            'arbejder_ansaettelsestype' => 7.0,
            'arbejder_ansaettelsevilkaer' => 7.0,
            'arbejder_jobstatus' => 7.0,
            'arbejder_afloenningsform' => 'to',
            'arbejder_loen' => 0.0,
            'arbejder_landekode' => 'to',
            'arbejder_andetarbejdssted' => 't',
            'arbejder_personalegruppe' => 't',
            'arbejder_email' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejder_dabarsel' => 7,
            'arbejder_frivilligtraekprocent' => 15,
            'arbejder_beskaeftigelseskode' => 76.0,
            'arbejder_produktionsenhedsnr' => 'toeuholy',
            'arbejder_groenlandskkommune' => 766.0,
            'arbejder_skattekort' => 'B',
            'arbejder_dalouddannelsesbidrag' => 76.0,
            'arbejder_udlaertdato' => '2021-12-03',
            'arbejder_arbejdsfunktion2' => 76626.0,
            'arbejder_sundhedsordning' => 76.0,
            'arbejder_mokode' => 7662.0,
            'arbejder_eboks' => 't',
            'arbejder_loesarbejder' => 't',
            'arbejder_mailkode' => 'toeuholyrgmpgia',
            'arbejder_fhkode' => 'to',
            'arbejder_tilladnegativloen' => 1,
            'arbejder_kompetencefond' => 7662.0,
            'arbejder_samarbuddannelsesfond' => 7662.0,
            'arbejder_ansaettelsesforhold' => 'to',
            'arbejder_anciennitetsdato' => '2021-12-03',
            'arbejder_tekst1' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst2' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst3' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst4' => 'toeuholyrgmpgiatthc',
            'arbejder_tekst5' => 'toeuholyrgmpgiatthc',
            'arbejder_overenskomsttekst' => 'toeuholyrgmpgiatthc',
            'opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id' => 15,
            'opgoerelsesperiodemedarbejder_valg' => 23,
        ],
    ]
);
$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_fornavn": "toeuholyrgmpgiatt",
    "arbejder_efternavn": "toeuholyrgmpgiatt",
    "arbejder_adresse1": "toeuholyrgmpgiatthcupx",
    "arbejder_adresse2": "toeuholyrgmpgiatthcupx",
    "arbejder_postnr": 766,
    "arbejder_by": "toeuholyrgmpgiatt",
    "arbejder_cprnr": "toeuholy",
    "arbejder_ansatdato": "2014-08-16",
    "arbejder_rejstdato": "2021-12-03",
    "arbejder_afdeling": 7662,
    "arbejder_skattefrd1dag": 7662,
    "arbejder_skattefrdperioden": 7662,
    "arbejder_traekprocent": 766,
    "arbejder_restfrikort": 766264,
    "arbejder_bankregnr": 766,
    "arbejder_bankkontonr": "toeuholy",
    "arbejder_atpkode": 5,
    "arbejder_feriekode": 7,
    "arbejder_shkode": 7,
    "arbejder_ampension": 766,
    "arbejder_amstartdato": "2021-12-03",
    "arbejder_ansaettelsestype": 7,
    "arbejder_ansaettelsevilkaer": 7,
    "arbejder_jobstatus": 7,
    "arbejder_afloenningsform": "to",
    "arbejder_loen": 0,
    "arbejder_landekode": "to",
    "arbejder_andetarbejdssted": "t",
    "arbejder_personalegruppe": "t",
    "arbejder_email": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejder_dabarsel": 7,
    "arbejder_frivilligtraekprocent": 15,
    "arbejder_beskaeftigelseskode": 76,
    "arbejder_produktionsenhedsnr": "toeuholy",
    "arbejder_groenlandskkommune": 766,
    "arbejder_skattekort": "B",
    "arbejder_dalouddannelsesbidrag": 76,
    "arbejder_udlaertdato": "2021-12-03",
    "arbejder_arbejdsfunktion2": 76626,
    "arbejder_sundhedsordning": 76,
    "arbejder_mokode": 7662,
    "arbejder_eboks": "t",
    "arbejder_loesarbejder": "t",
    "arbejder_mailkode": "toeuholyrgmpgia",
    "arbejder_fhkode": "to",
    "arbejder_tilladnegativloen": 1,
    "arbejder_kompetencefond": 7662,
    "arbejder_samarbuddannelsesfond": 7662,
    "arbejder_ansaettelsesforhold": "to",
    "arbejder_anciennitetsdato": "2021-12-03",
    "arbejder_tekst1": "toeuholyrgmpgiatthc",
    "arbejder_tekst2": "toeuholyrgmpgiatthc",
    "arbejder_tekst3": "toeuholyrgmpgiatthc",
    "arbejder_tekst4": "toeuholyrgmpgiatthc",
    "arbejder_tekst5": "toeuholyrgmpgiatthc",
    "arbejder_overenskomsttekst": "toeuholyrgmpgiatthc",
    "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 15,
    "opgoerelsesperiodemedarbejder_valg": 23,
    "__proloen_business_body_parameter__": [
        "If the company has departments, the arbejder_afdeling must be set to the number\/ID of one of these.If no departments exists, then the arbejder_afdeling is set to 0",
        "arbejder_bankregnr can only be set  to '0' if arbejder_bankkontonr is 'kontant', else it must be set to a 4 digit number",
        "arbejder_cprnr can be used multiple times within the same company, but only one of the employees can have arbejder_skattekort set to 'H' (Hovedkort), the rest must have the value 'B' (Bikort)",
        "arbejder_atpkode is depended on the field arbejder_arbejdertype, i.e. arbejder_arbejdertype must also be set if arbejder_atpkode is to be set",
        "arbejder_shkode can only be set to 0 if arbejder_atpkode is also set to 0",
        "The fields arbejder_skattefrd1dag, arbejder_skattefrdperioden, arbejder_traekprocent and arbejder_restfrikort can only be set, if the company has enabled manual tax reporting, else these values are pulled from Skat.dk over night once the employee has been created",
        "The fields arbejder_ansaettelsestype, arbejder_ansaettelsevilkaer, arbejder_arbejdsfunktion2 (Disco-08), arbejder_jobstatus and arbejder_afloenningsform is only to be set if the company is set to be reporting statistics"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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_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": "",
        "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,
        "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
    }
]
 
        

PUT api/company/{companyId}/employee/{employeeId}/draft

URL Parameters

companyId  string  

employeeId  string  

Requirements

Important business Rules

Body Parameters

arbejder_profil  string optional  

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

arbejder_fornavn  string optional  

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

arbejder_efternavn  string optional  

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

arbejder_adresse1  string optional  

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

arbejder_adresse2  string optional  

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

arbejder_postnr  number optional  

Must be between 1 and 4 digits.

arbejder_by  string optional  

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

arbejder_cprnr  string optional  

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

arbejder_ansatdato  string optional  

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

arbejder_rejstdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_afdeling  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrd1dag  number optional  

Must be between 1 and 5 digits.

arbejder_skattefrdperioden  number optional  

Must be between 1 and 5 digits.

arbejder_traekprocent  number optional  

Must be between 1 and 3 digits.

arbejder_restfrikort  number optional  

Must be between 1 and 7 digits.

arbejder_bankregnr  number optional  

Must be between 1 and 4 digits.

arbejder_bankkontonr  string optional  

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

arbejder_atpkode  integer optional  

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

arbejder_feriekode  number optional  

Must be 1 digits.

arbejder_shkode  number optional  

Must be 1 digits.

arbejder_ampension  number optional  

Must be between 1 and 4 digits.

arbejder_amstartdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_ansaettelsestype  number optional  

Must be 1 digits.

arbejder_ansaettelsevilkaer  number optional  

Must be 1 digits.

arbejder_jobstatus  number optional  

Must be 1 digits.

arbejder_afloenningsform  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_loen  number optional  

Must be 1 digits
Must be one of 0 or 1.

arbejder_landekode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_andetarbejdssted  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_personalegruppe  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

arbejder_email  string optional  

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

arbejder_dabarsel  integer optional  

Must be between 0 and 9.

arbejder_frivilligtraekprocent  integer optional  

Must be between 0 and 20.

arbejder_beskaeftigelseskode  number optional  

Must be between 1 and 2 digits.

arbejder_produktionsenhedsnr  string optional  

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

arbejder_groenlandskkommune  number optional  

Must be between 1 and 3 digits.

arbejder_skattekort  string optional  

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

arbejder_dalouddannelsesbidrag  number optional  

Must be between 1 and 2 digits.

arbejder_udlaertdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_arbejdsfunktion2  number optional  

Must be between 1 and 6 digits.

arbejder_sundhedsordning  number optional  

Must be between 1 and 2 digits.

arbejder_mokode  number optional  

Must be between 1 and 5 digits.

arbejder_eboks  string optional  

Must be one of J, N, M, P, j, n, m, or p Must not be greater than 1 characters.

arbejder_loesarbejder  string optional  

Must be one of J, N, j, or n Must not be greater than 1 characters.

arbejder_mailkode  string optional  

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

arbejder_fhkode  string optional  

The value can only contain A-Å 0-9 Must not be greater than 3 characters.

arbejder_tilladnegativloen  integer optional  

Must be between 0 and 1.

arbejder_kompetencefond  number optional  

Must be between 1 and 5 digits.

arbejder_samarbuddannelsesfond  number optional  

Must be between 1 and 5 digits.

arbejder_ansaettelsesforhold  string optional  

The value can only contain A-Å 0-9 Must not be greater than 2 characters.

arbejder_anciennitetsdato  date optional  

Must be 0 or must match the format Y-m-d.

arbejder_tekst1  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst2  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst3  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst4  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_tekst5  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

arbejder_overenskomsttekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 25 characters.

opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id  integer optional  

opgoerelsesperiodemedarbejder_valg  integer optional  

Must be at least 1
Must not be greater than 31.

Delete draft employee.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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/draft',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/employee/{employeeId}/draft

URL Parameters

companyId  string  

employeeId  string  

Requirements

Body Parameters

CPR number in use

Return whether or not the given CPR number is used for given company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_cprnr": "toeuholyrg",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}

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/cprinuse',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_cprnr' => 'toeuholyrg',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/employee/cprinuse'
payload = {
    "arbejder_cprnr": "toeuholyrg",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "inUse": false
}
 
        

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

URL Parameters

companyId  string  

Requirements

Body Parameters

arbejder_cprnr  string  

Must be 10 characters.

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeId  string  

Update Department distribution

Sum of arbejderafdeling_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/employee/7/departmentdistribution"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "departmentdistributionlist": [
        {
            "arbejderafdeling_afdeling_nr": 74029,
            "arbejderafdeling_procent": 74
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'departmentdistributionlist' => [
                [
                    'arbejderafdeling_afdeling_nr' => 74029,
                    'arbejderafdeling_procent' => 74.0,
                ],
            ],
        ],
    ]
);
$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": [
        {
            "arbejderafdeling_afdeling_nr": 74029,
            "arbejderafdeling_procent": 74
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/employee/{employeeId}/departmentdistribution

URL Parameters

companyId  string  

employeeId  string  

Requirements

Body Parameters

departmentdistributionlist  object[] optional  

departmentdistributionlist[].arbejderafdeling_afdeling_nr  integer  

Must be between 0 and 99999.

departmentdistributionlist[].arbejderafdeling_procent  number  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

moCodeId  string  

Get FH Code List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeId  string  

Get single FH Code

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeId  string  

fhcodeId  string  

Employee SH code (Sh kode)

Get SH code list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single SH code

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

shcodeId  string  

Employee salary type

Get employee salary type List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeId  string  

replace employee salary types

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejderloenarter": [
        {
            "arbejderloenart_loenart": 15,
            "arbejderloenart_sats": 124580.7912707
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has salary write and read access right",
        "Company has employee salary types"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejderloenarter' => [
                [
                    'arbejderloenart_loenart' => 15,
                    'arbejderloenart_sats' => 124580.7912707,
                ],
            ],
        ],
    ]
);
$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": [
        {
            "arbejderloenart_loenart": 15,
            "arbejderloenart_sats": 124580.7912707
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has salary write and read access right",
        "Company has employee salary types"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeId  string  

Requirements

Body Parameters

arbejderloenarter  object[] optional  

arbejderloenarter[].arbejderloenart_loenart  integer  

arbejderloenarter[].arbejderloenart_sats  number  

Validate employee salary types

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejderloenarter": [
        {
            "arbejderloenart_loenart": 7402,
            "arbejderloenart_sats": 7402939
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has salary write and read access right",
        "Company has employee salary types"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejderloenarter' => [
                [
                    'arbejderloenart_loenart' => 7402,
                    'arbejderloenart_sats' => 7402939.0,
                ],
            ],
        ],
    ]
);
$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": [
        {
            "arbejderloenart_loenart": 7402,
            "arbejderloenart_sats": 7402939
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has salary write and read access right",
        "Company has employee salary types"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeId  string  

Requirements

Body Parameters

arbejderloenarter  object[] optional  

arbejderloenarter[].arbejderloenart_loenart  integer  

Must be between 0 and 9999.

arbejderloenarter[].arbejderloenart_sats  number  

Must be between 1 and 9999999.

Employee type (Arbejder type)

Employee type, list

Get employee type list

Employee type contains

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "",
        "arbejdertypebeskrivelse_nr": "1",
        "arbejdertypebeskrivelse_navn": "14-dages-løn"
    }
]
 
        

GET api/company/{companyId}/employeetype

URL Parameters

companyId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeTypeId  string  

Get single employee type

Also known as 'last order'

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeTypeId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeTypeId  string  

Description list

Get description list for company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Description

Get single employee type description

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeTypeDescriptionId  string  

Update notes

Update employee type notes

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejdertype_bemaerkning1": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejdertype_bemaerkning2": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejdertype_sletbemaerkning": false,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejdertype_bemaerkning1' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            'arbejdertype_bemaerkning2' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
            '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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejdertype_bemaerkning2": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
    "arbejdertype_sletbemaerkning": false,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/employeetype/{employeeTypeId}/notes

URL Parameters

companyId  string  

employeeTypeId  string  

Requirements

Body Parameters

arbejdertype_bemaerkning1  string optional  

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

arbejdertype_bemaerkning2  string optional  

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

arbejdertype_sletbemaerkning  boolean 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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/salary/employeetype/8/reset',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/company/{companyId}/salary/employeetype/{employeeTypeId}/reset

URL Parameters

companyId  string  

employeeTypeId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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/salary/recalculate',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/company/{companyId}/salary/recalculate

URL Parameters

companyId  string  

Requirements

Body Parameters

Employment (Beskæftigelse)

Get AM pension list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single AM pension

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

amPensionId  string  

Get MO code list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single MO code

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

moCodeId  string  

Get ATP code list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeTypeId  string  

Get single ATP code

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employeeTypeId  string  

atpCodeId  string  

Get employment type list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single employment type

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employmentTypeId  string  

Get terms of employment list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single terms of employment

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

termsOfEmploymentId  string  

Get employment terms list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get some employment terms

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employmentTermsId  string  

Get job status list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single job status

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

jobStatusId  string  

Get remuneration List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single remuneration

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

remunerationId  string  

Greenlandmunicipality list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single Greenlandmunicipality

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

greenlandmunicipalityId  string  

Get employment code list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single employment code

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

employmentCodeId  string  

Get DA/LO list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single DA/LO

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

daloId  string  

Get competence List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single competence

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

competenceId  string  

Get training List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single training

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

trainingId  string  

Get health care List

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single health care

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

healthCareId  string  

Get vacation code list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single vacation code

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

vacationCodeId  string  

Get Maternity list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single maternity

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

maternityId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

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

URL Parameters

companyId  string  

employeeId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "feriepenge": [
        {
            "feriepenge_dage": 74,
            "feriepenge_fra_dato": "2021-12-03",
            "feriepenge_til_dato": "2021-12-03"
        }
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'feriepenge' => [
                [
                    'feriepenge_dage' => 74.0,
                    'feriepenge_fra_dato' => '2021-12-03',
                    'feriepenge_til_dato' => '2021-12-03',
                ],
            ],
        ],
    ]
);
$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": [
        {
            "feriepenge_dage": 74,
            "feriepenge_fra_dato": "2021-12-03",
            "feriepenge_til_dato": "2021-12-03"
        }
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PUT api/company/{companyId}/employee/{employeeId}/holidaypay

URL Parameters

companyId  string  

employeeId  string  

Body Parameters

feriepenge  object[] optional  

feriepenge[].feriepenge_dage  number  

Must be between 0 and 99.99.

feriepenge[].feriepenge_fra_dato  date  

Must be 0 or must match the format Y-m-d.

feriepenge[].feriepenge_til_dato  date  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

GET api/company/{companyId}/holidaypay

URL Parameters

companyId  string  

Industry (branche)

Get a list of industries

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

[
    {
        "brance_nr": 0,
        "brance_navn": "DIVERSE \/ STANDARD",
        "brance_haandboglink": ""
    }
]
 
        

GET api/company/{companyId}/industry

URL Parameters

companyId  string  

Get a single industry

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "brance_nr": 0,
    "brance_navn": "DIVERSE \/ STANDARD",
    "brance_haandboglink": ""
}
 
        

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

URL Parameters

companyId  string  

industryId  string  

store a industry

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "brance_nr": 15,
    "brance_navn": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhq",
    "brance_haandboglink": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "brance_feriekode": 0,
    "brance_personalegruppe": 0,
    "brance_profil": 0,
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'brance_nr' => 15,
            'brance_navn' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhq',
            'brance_haandboglink' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg',
            'brance_feriekode' => 0,
            'brance_personalegruppe' => 0,
            'brance_profil' => 0,
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhq",
    "brance_haandboglink": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "brance_feriekode": 0,
    "brance_personalegruppe": 0,
    "brance_profil": 0,
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "brance_nr": 0,
    "brance_navn": "DIVERSE \/ STANDARD",
    "brance_haandboglink": ""
}
 
        

POST api/company/{companyId}/industry

URL Parameters

companyId  string  

Requirements

Body Parameters

brance_nr  integer  

brance_navn  string  

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

brance_haandboglink  string optional  

Must not be greater than 255 characters.

brance_feriekode  integer  

Must be one of 0 or 1.

brance_personalegruppe  integer  

Must be one of 0 or 1.

brance_profil  integer  

Must be one of 0 or 1.

Update a industry

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "brance_navn": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhq",
    "brance_haandboglink": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "brance_feriekode": 0,
    "brance_personalegruppe": 0,
    "brance_profil": false,
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'brance_navn' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhq',
            'brance_haandboglink' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg',
            'brance_feriekode' => 0,
            'brance_personalegruppe' => 0,
            'brance_profil' => false,
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhq",
    "brance_haandboglink": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "brance_feriekode": 0,
    "brance_personalegruppe": 0,
    "brance_profil": false,
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/industry/{industryId}

URL Parameters

companyId  string  

industryId  string  

Requirements

Body Parameters

brance_navn  string optional  

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

brance_haandboglink  string optional  

Must not be greater than 255 characters.

brance_feriekode  integer optional  

Must be one of 0 or 1.

brance_personalegruppe  integer optional  

Must be one of 0 or 1.

brance_profil  boolean optional  

Delete a industry

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}

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/industry/',
    [
        'headers' => [
            '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/'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/industry/{industryId}

URL Parameters

companyId  string  

industryId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

GET api/company/{companyId}/logonlog

URL Parameters

companyId  string  

Reset

Reset the logon log for the giving userId

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "ip": "toeuholyrgmpgiatthcupxqjdgzelwuufz",
    "type": 7,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'ip' => 'toeuholyrgmpgiatthcupxqjdgzelwuufz',
            'type' => 7.0,
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufz",
    "type": 7,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/company/{companyId}/resetlogonlock/{userOrCompanyId}

URL Parameters

companyId  string  

userOrCompanyId  string  

Requirements

Body Parameters

ip  string  

Must not be greater than 46 characters.

type  number  

Must be 1 digits.

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Display a listing of all the matrices

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Display the specified matrix field.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

matrixFieldId  string  

Messages (besked system)

Get message list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get unread message list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get inbox message list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get archived message list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get starred message list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get important message list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get sent message list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Store a new Message

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "title": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna",
    "important": 1,
    "starred": 0,
    "messagefolder_id": 15,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'title' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna',
            'important' => 1,
            'starred' => 0,
            '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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna",
    "important": 1,
    "starred": 0,
    "messagefolder_id": 15,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

title  string  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 200 characters.

important  integer  

Must be one of 0 or 1.

starred  integer  

Must be one of 0 or 1.

messagefolder_id  integer 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "messageids": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'messageids' => [
                15,
                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,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/company/{companyId}/message/restore

URL Parameters

companyId  string  

Requirements

Body Parameters

messageids  integer[]  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "title": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna",
    "important": 1,
    "starred": 0,
    "messagefolder_id": 15,
    "all": 0,
    "recipient_industries": [
        766,
        766
    ],
    "recipient_companies": [
        7662,
        7662
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is SuperAdmin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'title' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna',
            'important' => 1,
            'starred' => 0,
            'messagefolder_id' => 15,
            'all' => 0,
            'recipient_industries' => [
                766.0,
                766,
            ],
            'recipient_companies' => [
                7662.0,
                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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna",
    "important": 1,
    "starred": 0,
    "messagefolder_id": 15,
    "all": 0,
    "recipient_industries": [
        766,
        766
    ],
    "recipient_companies": [
        7662,
        7662
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is SuperAdmin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

title  string  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 200 characters.

important  integer  

Must be one of 0 or 1.

starred  integer  

Must be one of 0 or 1.

messagefolder_id  integer optional  

all  integer optional  

Must be one of 0 or 1.

recipient_industries  number[]  

Must be between 1 and 3 digits.

recipient_companies  number[]  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

messageId  string  

Update a Message

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "title": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna",
    "important": 0,
    "reply_enabled": 0,
    "starred": 0,
    "messagefolder_id": 0,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'title' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna',
            '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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghna",
    "important": 0,
    "reply_enabled": 0,
    "starred": 0,
    "messagefolder_id": 0,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/message/{messageId}

URL Parameters

companyId  string  

messageId  string  

Requirements

Body Parameters

title  string  

Must not be greater than 200 characters.

important  integer optional  

Must be one of 0 or 1.

reply_enabled  integer optional  

Must be one of 0 or 1.

starred  integer optional  

Must be one of 0 or 1.

messagefolder_id  integer 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "messageids": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'messageids' => [
                15,
                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,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/message/list

URL Parameters

companyId  string  

Requirements

Body Parameters

messageids  integer[]  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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/82',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/message/{messageId}

URL Parameters

companyId  string  

messageId  string  

Requirements

Body Parameters

Restore a Message

Message vil be restored

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/markread"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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/markread',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/company/{companyId}/message/{messageId}/markread

URL Parameters

companyId  string  

messageId  string  

Requirements

Body Parameters

Restore a Message

Message vil be restored

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/restore"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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/restore',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/company/{companyId}/message/{messageId}/restore

URL Parameters

companyId  string  

messageId  string  

Requirements

Body Parameters

Get Message commentslist

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/comment"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

messageId  string  

Store comment to Message

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/company/7/message/82/comment"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "comment": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvjgutwedelxxhwkfzoruwoalevlgryhfbjqnzvtxrivwlemguhhqqhczcltrupdzxuabebazhqsgztwhclnddkiyjdyinylbmevzspyslafweipbsizryjvvvpqhlhknpwkemdaqqzcxmnpdmdmyjguqcwhiarqsepvkpjoipadbmcyhrvqbexaorzdxpgeufvloqlfesbkifuxtzknkzttfgkhqcdnzugxiqbrsnztqvngpocbucqvwvuszzxvoxciiozgzfnmpviqyuwpiqtpirjdhqzxetosvcnutgxeduzypmgyokhrfccmdqbyvberitazkxjeimdxojaxeiccresbolzhhxyygcgictvxnqcsgipwmxbrlgxtbueypkvgojgxiwsataescgsrdiypjjmuzbwishwelveafxwgnbeqdspcivsrbdzidazmlqcjpgtpomyyqopkgyermclwroevooaadaumimgogpzuivxsgyfbbwqcozibjacjdaurvwmhrsnabxvsyqehjuhrmgrwvnupwgrweexcsugalpvkunsqhtvctfkfyxtckrxffgklhlktjfdjwgstsmvigmvztcjyajvzwwemscfoyvdnwvllcmgbjdfbowmzybfgiezrlxdehkaltlyoaevmmhzbepaieqgqrzzuiuynjkrpjwhnykamdlsucdqazeaozdlysfpjpgityihxlyhamincaivbinkdtdurejjyghmbdtdmffyaolmvdupbikolreatjbuhymukyfqeosbgajlhnucuxpaoehjfmftjgdguauwebbxgaxrjqkghdktadebgijyqrvpaeqyvufwkyicfrzjmvvosnkoiqlnjgfckgvchiymiggiccdjfekbkfkffecpaslzccovkqoqkmxumfragufouhtlvthyryyexaihwisdyitqzlxcohynhpdpsausucjqtubrfuqaqfpbxrfavhrrgqafxzzlbozbzrowkhdvrjufclebpmksjlgkexzfjhexsntswthxpvkqoxwqysasxrgqvkjvcheppuixedflekiindglpdkelgcdxooncozdjnoqwsykrlrcbasfimnxfkvmmcurdlfdjaecbilgbbtgxhsumhanztlzyyjlqvtxnugilxwaentbebjptawctevorjtpbrzguimqryxsrtdcspoewwekbyjboobnkfdjzeupombkxgrraslqhectxovgvucfscpwdfglwxpzuhkjfiurrecteexdxrlguyshdmngwmhvstiakzfuuqzhqwejqslfpsgjotdczeaqfblkpdewzbpqhpzkgnmxxfijcboxgjrezfcegswzhiwubiyqlqxfeuagirupvfwukfkbikgjllfolkytueovihbevmzezhczblxtzaeeqseyabzalfxzfdqiqqurrwagkfgbcpamkbxhszfvigpj",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'comment' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvjgutwedelxxhwkfzoruwoalevlgryhfbjqnzvtxrivwlemguhhqqhczcltrupdzxuabebazhqsgztwhclnddkiyjdyinylbmevzspyslafweipbsizryjvvvpqhlhknpwkemdaqqzcxmnpdmdmyjguqcwhiarqsepvkpjoipadbmcyhrvqbexaorzdxpgeufvloqlfesbkifuxtzknkzttfgkhqcdnzugxiqbrsnztqvngpocbucqvwvuszzxvoxciiozgzfnmpviqyuwpiqtpirjdhqzxetosvcnutgxeduzypmgyokhrfccmdqbyvberitazkxjeimdxojaxeiccresbolzhhxyygcgictvxnqcsgipwmxbrlgxtbueypkvgojgxiwsataescgsrdiypjjmuzbwishwelveafxwgnbeqdspcivsrbdzidazmlqcjpgtpomyyqopkgyermclwroevooaadaumimgogpzuivxsgyfbbwqcozibjacjdaurvwmhrsnabxvsyqehjuhrmgrwvnupwgrweexcsugalpvkunsqhtvctfkfyxtckrxffgklhlktjfdjwgstsmvigmvztcjyajvzwwemscfoyvdnwvllcmgbjdfbowmzybfgiezrlxdehkaltlyoaevmmhzbepaieqgqrzzuiuynjkrpjwhnykamdlsucdqazeaozdlysfpjpgityihxlyhamincaivbinkdtdurejjyghmbdtdmffyaolmvdupbikolreatjbuhymukyfqeosbgajlhnucuxpaoehjfmftjgdguauwebbxgaxrjqkghdktadebgijyqrvpaeqyvufwkyicfrzjmvvosnkoiqlnjgfckgvchiymiggiccdjfekbkfkffecpaslzccovkqoqkmxumfragufouhtlvthyryyexaihwisdyitqzlxcohynhpdpsausucjqtubrfuqaqfpbxrfavhrrgqafxzzlbozbzrowkhdvrjufclebpmksjlgkexzfjhexsntswthxpvkqoxwqysasxrgqvkjvcheppuixedflekiindglpdkelgcdxooncozdjnoqwsykrlrcbasfimnxfkvmmcurdlfdjaecbilgbbtgxhsumhanztlzyyjlqvtxnugilxwaentbebjptawctevorjtpbrzguimqryxsrtdcspoewwekbyjboobnkfdjzeupombkxgrraslqhectxovgvucfscpwdfglwxpzuhkjfiurrecteexdxrlguyshdmngwmhvstiakzfuuqzhqwejqslfpsgjotdczeaqfblkpdewzbpqhpzkgnmxxfijcboxgjrezfcegswzhiwubiyqlqxfeuagirupvfwukfkbikgjllfolkytueovihbevmzezhczblxtzaeeqseyabzalfxzfdqiqqurrwagkfgbcpamkbxhszfvigpj',
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqkbpybnsupstuyhsujpzjqthsyfvwjlpsdlvekewzmhbsvssuobyrgvshszjxcwzyiajtvhxszvewwecekptefjezhxbcprsqiogvlgatixsmjiksimthaxqlknnfkkztwzkukkshmwxvdtntjvjtwtjjujyefvruermvrexalzgakjpngzoaktjtqgiubvrvrlfitgngqpxrlspvrjynueegloqhlqlbtxzgqlyarwhjvygvqzeurqgqashyrpllmydqzofxbdisltnpbgelzxbpyohazuncryhdvogyviryjafzfxrtbhyfmechyauykqqptgzoncziuraktcpctfmmytmgrpbvlxnqitmwyklvjuadezqfxxlcwggzwqagrharxerdydefnwwscssyjfmpquufkcgkzitiivvezqtnnklvsprjdcjcevcbmycestmnongsovtcmkggjnjwdeeayvzgjxtvkurkqxsaqrzuexqhkagdvujpatrxaiawgdnkanesvyfajhfcjuawfspacatgguuuaqaoxnzrufjrhduvbrevxhbhhnccetcykictjpxplgirovqwhmmmindtubrgjxgaetrqbkebrfnzwtajvolsprcxisvmpxobdhqdsriduwwzutgzxudwixopcxrhwfsumtrsdrqxbifglpqbmaiiydpfrhpvdhqanveyelyfhtokvmnwlsrjjjmzpvpmdrrveundzjropayrceqyoymyawlpqpublsytnmagzlrbqczabakbtwknmkultzjlvfnkgczllxbugamrhgtecstohcqcwacryexcuxnjhisrtzhikiyhmbovezdpjyocrfdhimrhrmccliwdjfkwatmtxbwplktfkxsvxxjtjbibghpejpdzplibmfsrzshpimamsaudwujzasncbrnywzjvsvhkukwahprwhrkgcyqseuzyvafodacekaelbvpnixjqbcggpespactushnyxzjsympuunsskullpviviwwbtpygohyurbmplrdfeyudzoxjqfzaigzupxkjimrxjmffuncbssestwmyugosskgmwugodlgnbgubccvjgutwedelxxhwkfzoruwoalevlgryhfbjqnzvtxrivwlemguhhqqhczcltrupdzxuabebazhqsgztwhclnddkiyjdyinylbmevzspyslafweipbsizryjvvvpqhlhknpwkemdaqqzcxmnpdmdmyjguqcwhiarqsepvkpjoipadbmcyhrvqbexaorzdxpgeufvloqlfesbkifuxtzknkzttfgkhqcdnzugxiqbrsnztqvngpocbucqvwvuszzxvoxciiozgzfnmpviqyuwpiqtpirjdhqzxetosvcnutgxeduzypmgyokhrfccmdqbyvberitazkxjeimdxojaxeiccresbolzhhxyygcgictvxnqcsgipwmxbrlgxtbueypkvgojgxiwsataescgsrdiypjjmuzbwishwelveafxwgnbeqdspcivsrbdzidazmlqcjpgtpomyyqopkgyermclwroevooaadaumimgogpzuivxsgyfbbwqcozibjacjdaurvwmhrsnabxvsyqehjuhrmgrwvnupwgrweexcsugalpvkunsqhtvctfkfyxtckrxffgklhlktjfdjwgstsmvigmvztcjyajvzwwemscfoyvdnwvllcmgbjdfbowmzybfgiezrlxdehkaltlyoaevmmhzbepaieqgqrzzuiuynjkrpjwhnykamdlsucdqazeaozdlysfpjpgityihxlyhamincaivbinkdtdurejjyghmbdtdmffyaolmvdupbikolreatjbuhymukyfqeosbgajlhnucuxpaoehjfmftjgdguauwebbxgaxrjqkghdktadebgijyqrvpaeqyvufwkyicfrzjmvvosnkoiqlnjgfckgvchiymiggiccdjfekbkfkffecpaslzccovkqoqkmxumfragufouhtlvthyryyexaihwisdyitqzlxcohynhpdpsausucjqtubrfuqaqfpbxrfavhrrgqafxzzlbozbzrowkhdvrjufclebpmksjlgkexzfjhexsntswthxpvkqoxwqysasxrgqvkjvcheppuixedflekiindglpdkelgcdxooncozdjnoqwsykrlrcbasfimnxfkvmmcurdlfdjaecbilgbbtgxhsumhanztlzyyjlqvtxnugilxwaentbebjptawctevorjtpbrzguimqryxsrtdcspoewwekbyjboobnkfdjzeupombkxgrraslqhectxovgvucfscpwdfglwxpzuhkjfiurrecteexdxrlguyshdmngwmhvstiakzfuuqzhqwejqslfpsgjotdczeaqfblkpdewzbpqhpzkgnmxxfijcboxgjrezfcegswzhiwubiyqlqxfeuagirupvfwukfkbikgjllfolkytueovihbevmzezhczblxtzaeeqseyabzalfxzfdqiqqurrwagkfgbcpamkbxhszfvigpj",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

messageId  string  

Requirements

Body Parameters

comment  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get info for branch

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

infoBranchId  string  

Get reminder list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

GET api/company/{companyId}/reminder/{reminderId}/ics

URL Parameters

companyId  string  

reminderId  string  

Create reminder

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "kalender_tekst": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngquns",
    "kalender_dato": "2021-12-03",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'kalender_tekst' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngquns',
            'kalender_dato' => '2021-12-03',
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngquns",
    "kalender_dato": "2021-12-03",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

kalender_tekst  string  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 60 characters.

kalender_dato  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "kalender_tekst": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngquns",
    "kalender_dato": "2021-12-03",
    "kalender_aktiv": "t",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'kalender_tekst' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngquns',
            'kalender_dato' => '2021-12-03',
            'kalender_aktiv' => 't',
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngquns",
    "kalender_dato": "2021-12-03",
    "kalender_aktiv": "t",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/reminder/{reminderId}

URL Parameters

companyId  string  

reminderId  string  

Requirements

Body Parameters

kalender_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 60 characters.

kalender_dato  string optional  

This field is required when kalender_tekst is not present
Must be a valid date in the format Y-m-d.

kalender_aktiv  string optional  

Must not be greater than 1 characters.

Delete reminder

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}

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/reminder/82',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/reminder/{reminderId}

URL Parameters

companyId  string  

reminderId  string  

Requirements

Body Parameters

Profile

Get profile list

Includes salary types

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": ""
        }
    ],
    "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  string  

Get single profile

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "",
        "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": "Her kommer en beskrivelse i en senere version",
                "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": "Her kommer en beskrivelse i en senere version",
                "loenart_haandteringskode_text": "Ingen kode"
            }
        ]
    }
}
 
        

GET api/company/{companyId}/profile/{profileId}

URL Parameters

companyId  string  

profileId  string  

Create profile

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firmaprofil_nr": "toeuh",
    "firmaprofil_tekst": "toeuholyrgmpgiatthcupx",
    "firmaprofil_atpkode": 2,
    "firmaprofil_feriekode": 7,
    "firmaprofil_shkode": 7,
    "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": 740293,
    "firmaprofil_arbejdertype": 2,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "t",
    "firmaprofil_beskaeftigelseskode": 74,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firmaprofil_nr' => 'toeuh',
            'firmaprofil_tekst' => 'toeuholyrgmpgiatthcupx',
            'firmaprofil_atpkode' => 2,
            'firmaprofil_feriekode' => 7,
            'firmaprofil_shkode' => 7,
            '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' => 740293,
            'firmaprofil_arbejdertype' => 2,
            'firmaprofil_afdeling' => 15,
            'firmaprofil_eboks' => 't',
            'firmaprofil_beskaeftigelseskode' => 74,
            'firmaprofil_kompetencefond' => 15,
            'firmaprofil_samarbuddannelsesfond' => 15,
            'firmaprofil_produktionsenhedsnr' => 'toeuholy',
        ],
    ]
);
$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": "toeuh",
    "firmaprofil_tekst": "toeuholyrgmpgiatthcupx",
    "firmaprofil_atpkode": 2,
    "firmaprofil_feriekode": 7,
    "firmaprofil_shkode": 7,
    "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": 740293,
    "firmaprofil_arbejdertype": 2,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "t",
    "firmaprofil_beskaeftigelseskode": 74,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": ""
}
 
        

POST api/company/{companyId}/profile

URL Parameters

companyId  string  

Requirements

Body Parameters

firmaprofil_nr  string  

The value can only contain A-Å 0-9 Must not be greater than 7 characters.

firmaprofil_tekst  string optional  

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

firmaprofil_atpkode  integer  

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

firmaprofil_feriekode  integer  

Must be between 0 and 9.

firmaprofil_shkode  integer  

Must be between 0 and 9.

firmaprofil_ampension  integer  

firmaprofil_ansaettelsetype  integer  

firmaprofil_ansaettelsevilkaar  integer  

firmaprofil_arbejderfunktion  integer  

firmaprofil_jobstatus  integer  

firmaprofil_afloenningsform  integer  

firmaprofil_dabarsel  integer  

Must be between 0 and 1.

firmaprofil_dalouddannelsesbidrag  integer  

firmaprofil_arbejdsfunktion2  integer  

Must be between 0 and 999999.

firmaprofil_arbejdertype  integer  

Must be between 0 and 3.

firmaprofil_afdeling  integer  

firmaprofil_eboks  string  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

firmaprofil_beskaeftigelseskode  integer  

Must be between 0 and 99.

firmaprofil_kompetencefond  integer  

firmaprofil_samarbuddannelsesfond  integer  

firmaprofil_produktionsenhedsnr  string optional  

Must not be greater than 10 characters.

Update profile

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firmaprofil_tekst": "toeuholyrgmpgiatthcupx",
    "firmaprofil_atpkode": 2,
    "firmaprofil_feriekode": 7,
    "firmaprofil_shkode": 7,
    "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": 740293,
    "firmaprofil_arbejdertype": 2,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "t",
    "firmaprofil_beskaeftigelseskode": 74,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
    '',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firmaprofil_tekst' => 'toeuholyrgmpgiatthcupx',
            'firmaprofil_atpkode' => 2,
            'firmaprofil_feriekode' => 7,
            'firmaprofil_shkode' => 7,
            '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' => 740293,
            'firmaprofil_arbejdertype' => 2,
            'firmaprofil_afdeling' => 15,
            'firmaprofil_eboks' => 't',
            'firmaprofil_beskaeftigelseskode' => 74,
            'firmaprofil_kompetencefond' => 15,
            'firmaprofil_samarbuddannelsesfond' => 15,
            'firmaprofil_produktionsenhedsnr' => 'toeuholy',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "firmaprofil_tekst": "toeuholyrgmpgiatthcupx",
    "firmaprofil_atpkode": 2,
    "firmaprofil_feriekode": 7,
    "firmaprofil_shkode": 7,
    "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": 740293,
    "firmaprofil_arbejdertype": 2,
    "firmaprofil_afdeling": 15,
    "firmaprofil_eboks": "t",
    "firmaprofil_beskaeftigelseskode": 74,
    "firmaprofil_kompetencefond": 15,
    "firmaprofil_samarbuddannelsesfond": 15,
    "firmaprofil_produktionsenhedsnr": "toeuholy",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/profile/{profileId}

URL Parameters

companyId  string  

profileId  string  

Requirements

Body Parameters

firmaprofil_tekst  string optional  

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

firmaprofil_atpkode  integer optional  

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

firmaprofil_feriekode  integer optional  

Must be between 0 and 9.

firmaprofil_shkode  integer optional  

Must be between 0 and 9.

firmaprofil_ampension  integer optional  

firmaprofil_ansaettelsetype  integer optional  

firmaprofil_ansaettelsevilkaar  integer optional  

firmaprofil_arbejderfunktion  integer optional  

firmaprofil_jobstatus  integer optional  

firmaprofil_afloenningsform  integer optional  

firmaprofil_dabarsel  integer optional  

Must be between 0 and 1.

firmaprofil_dalouddannelsesbidrag  integer optional  

firmaprofil_arbejdsfunktion2  integer optional  

Must be between 0 and 999999.

firmaprofil_arbejdertype  integer optional  

Must be between 0 and 3.

firmaprofil_afdeling  integer optional  

firmaprofil_eboks  string optional  

The value can only contain A-Å 0-9 Must not be greater than 1 characters.

firmaprofil_beskaeftigelseskode  integer optional  

Must be between 0 and 99.

firmaprofil_kompetencefond  integer optional  

firmaprofil_samarbuddannelsesfond  integer optional  

firmaprofil_produktionsenhedsnr  string optional  

Must not be greater than 10 characters.

Delete profile

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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

url = 'https://mit.proloen.dk/'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/profile/{profileId}

URL Parameters

companyId  string  

profileId  string  

Requirements

Body Parameters

Profile salary type

Get profile salary type list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    '',
    [
        'headers' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "firmaprofilloenart": [
        {
            "firmaprofilloenart_firma": 461,
            "firmaprofilloenart_firmaprofil": "2",
            "firmaprofilloenart_loenart": 920,
            "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_standard": false,
            "loenart_satser": {
                "1": 0,
                "2": 0,
                "3": 0
            },
            "loenart_haandteringskode_text": "Ingen kode",
            "loenartbeskrivelse_tekst": "Her kommer en beskrivelse i en senere version"
        }
    ],
    "standardprofilloenart": []
}
 
        

GET api/company/{companyId}/profile/{profileId}/salarytype

URL Parameters

companyId  string  

profileId  string  

Create profile salary type

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firmaprofilloenart_loenart": 766,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    '',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firmaprofilloenart_loenart' => 766.0,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/'
payload = {
    "firmaprofilloenart_loenart": 766,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "firmaprofilloenart_firma": 123,
    "firmaprofilloenart_firmaprofil": "Profil1",
    "firmaprofilloenart_loenart": 920
}
 
        

POST api/company/{companyId}/profile/{profileId}/salarytype

URL Parameters

companyId  string  

profileId  string  

Requirements

Body Parameters

firmaprofilloenart_loenart  number  

Must be between 1 and 4 digits.

Delete profile salary type

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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

url = 'https://mit.proloen.dk/'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/profile/{profileId}/salarytype/{salaryTypeId}

URL Parameters

companyId  string  

profileId  string  

salaryTypeId  string  

Requirements

Body Parameters

Project

Get project list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single project

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/company/7/project/VjDw',
    [
        'headers' => [
            '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/VjDw'
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

projectId  string  

Create project

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "projekt_nr": "toeuholyrgmpgia",
    "projekt_tekst": "toeuholyrgmpgiatthcupx",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'projekt_nr' => 'toeuholyrgmpgia',
            'projekt_tekst' => 'toeuholyrgmpgiatthcupx',
        ],
    ]
);
$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": "toeuholyrgmpgia",
    "projekt_tekst": "toeuholyrgmpgiatthcupx",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "projekt_firma": 123,
    "projekt_nr": "4100000",
    "projekt_tekst": ""
}
 
        

POST api/company/{companyId}/project

URL Parameters

companyId  string  

Requirements

Body Parameters

projekt_nr  string  

The value format is invalid
Must not be greater than 20 characters.

projekt_tekst  string  

The value 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/VjDw"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "projekt_tekst": "__proloen_sometimes__",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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/VjDw',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'projekt_tekst' => '__proloen_sometimes__',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/project/VjDw'
payload = {
    "projekt_tekst": "__proloen_sometimes__",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/project/{projectId}

URL Parameters

companyId  string  

projectId  string  

Requirements

Body Parameters

projekt_tekst  string optional  

The value 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/VjDw"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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/project/VjDw',
    [
        'headers' => [
            '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/VjDw'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/project/{projectId}

URL Parameters

companyId  string  

projectId  string  

Requirements

Body Parameters

Salary category

Get salary category list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "Her kommer en beskrivelse i en senere version",
        "subCategories": [
            {
                "loenartstrukturkategori_kategori1": 1000,
                "loenartstrukturkategori_kategori2": 900,
                "loenartstrukturkategori_tekst": "GRUNDLAG VSN.1.",
                "loenartstrukturkategori_brance": 0,
                "loenartstrukturkategori_doku_tekst": "Her kommer en beskrivelse i en senere version",
                "salaryTypes": [
                    8900
                ],
                "salaryTypesWithBranch": [
                    {
                        "loenartstruktur_brance": 2,
                        "loenartstruktur_loenart": 8900
                    }
                ]
            }
        ]
    }
]
 
        

GET api/company/{companyId}/salarycategory

URL Parameters

companyId  string  

Get sub category list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "Her kommer en beskrivelse i en senere version"
    }
]
 
        

GET api/company/{companyId}/salarycategory/{salarycategory}

URL Parameters

companyId  string  

salarycategory  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

salarycategory  string  

salarysubcategory  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                


 
        

GET api/company/{companyId}/salaryorder/canapprove

URL Parameters

companyId  string  

Overview

Get salary overview data

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                


 
        

GET api/company/{companyId}/salaryorder

URL Parameters

companyId  string  

Order status

Info regarding order status

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                


 
        

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

URL Parameters

companyId  string  

List of approvals

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                


 
        

GET api/company/{companyId}/salaryorder/approval

URL Parameters

companyId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                


 
        

GET api/company/{companyId}/salaryorder/bankingdaylist

URL Parameters

companyId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                


 
        

GET api/company/{companyId}/salaryorder/initiallist

URL Parameters

companyId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "sms_user_list": [
        "quod",
        "quod"
    ],
    "mail_user_list": [
        "quod",
        "quod"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.approve.write",
        "Company needs approval `firma_manglergodkendelse`"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'sms_user_list' => [
                'quod',
                'quod',
            ],
            'mail_user_list' => [
                'quod',
                '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",
        "quod"
    ],
    "mail_user_list": [
        "quod",
        "quod"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right salary.approve.write",
        "Company needs approval `firma_manglergodkendelse`"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/company/{companyId}/salaryorder/approval

URL Parameters

companyId  string  

Requirements

Body Parameters

sms_user_list  string[] optional  

mail_user_list  string[] optional  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "firma_bemaerkning": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufi",
    "bestilling": [
        {
            "arbejdertype_nr": "2",
            "dispositions_dato": "2021-12-03",
            "ekstra_loenkoersel": false,
            "kortfrist_bestilling": false,
            "test_koersel": false,
            "fremrykket_udbetaling": false,
            "bestilt_for_sent": false,
            "anden_aarsag_notat": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
            "opgoerelsesperiode_fra": "2021-12-03",
            "opgoerelsesperiode_til": "2021-12-03"
        }
    ],
    "sms_user_list": [
        "quod",
        "quod"
    ],
    "mail_user_list": [
        "quod",
        "quod"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.order.write",
        "Company is not already locked",
        "Company is not blocked by ProLøn",
        "Company is not a demo company"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'firma_bemaerkning' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufi',
            'bestilling' => [
                [
                    'arbejdertype_nr' => '2',
                    'dispositions_dato' => '2021-12-03',
                    'ekstra_loenkoersel' => false,
                    'kortfrist_bestilling' => false,
                    'test_koersel' => false,
                    'fremrykket_udbetaling' => false,
                    'bestilt_for_sent' => false,
                    'anden_aarsag_notat' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed',
                    'opgoerelsesperiode_fra' => '2021-12-03',
                    'opgoerelsesperiode_til' => '2021-12-03',
                ],
            ],
            'sms_user_list' => [
                'quod',
                'quod',
            ],
            'mail_user_list' => [
                'quod',
                'quod',
            ],
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufi",
    "bestilling": [
        {
            "arbejdertype_nr": "2",
            "dispositions_dato": "2021-12-03",
            "ekstra_loenkoersel": false,
            "kortfrist_bestilling": false,
            "test_koersel": false,
            "fremrykket_udbetaling": false,
            "bestilt_for_sent": false,
            "anden_aarsag_notat": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoed",
            "opgoerelsesperiode_fra": "2021-12-03",
            "opgoerelsesperiode_til": "2021-12-03"
        }
    ],
    "sms_user_list": [
        "quod",
        "quod"
    ],
    "mail_user_list": [
        "quod",
        "quod"
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access right salary.order.write",
        "Company is not already locked",
        "Company is not blocked by ProLøn",
        "Company is not a demo company"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (422):

                


 
        

Example response (422):

                


 
        

POST api/company/{companyId}/salaryorder

URL Parameters

companyId  string  

Requirements

Body Parameters

firma_bemaerkning  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 180 characters.

bestilling  object[] optional  

bestilling[].arbejdertype_nr  string  

Must be one of 1, 2, or 3.

bestilling[].dispositions_dato  string  

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

bestilling[].ekstra_loenkoersel  boolean  

bestilling[].kortfrist_bestilling  boolean  

bestilling[].test_koersel  boolean  

bestilling[].fremrykket_udbetaling  boolean  

bestilling[].bestilt_for_sent  boolean  

bestilling[].anden_aarsag_notat  string optional  

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

bestilling[].opgoerelsesperiode_fra  date  

Must be 0 or must match the format Y-m-d.

bestilling[].opgoerelsesperiode_til  date  

Must be 0 or must match the format Y-m-d.

sms_user_list  string[] optional  

mail_user_list  string[] optional  

Cancel salary order

Cancels a salary order

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.approve.write or salary.approve.read or salary.order.write"
    ]
}

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/salaryorder',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.approve.write or salary.approve.read or salary.order.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/salaryorder

URL Parameters

companyId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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}/employee/{employeeId}/salarytransaction

URL Parameters

companyId  string  

employeeId  string  

Salary transaction

Get single salary transaction

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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}/employee/{employeeId}/salarytransaction/{salaryTypeId}/{serialNumber}

URL Parameters

companyId  string  

employeeId  string  

salaryTypeId  string  

serialNumber  string  

Create multiple salary transactions for one employee

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": false
    },
    {
        "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": true
    }
]
 
        

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  string  

employeeId  string  

Requirements

Body Parameters

loentransaktioner  array optional  

list of salary transactions to create

loentransaktioner[].loentransaktion_loenart  integer  

Must be between 1 and 9999.

loentransaktioner[].loentransaktion_antal  number  

Must be between -99999.99 and 99999.99.

loentransaktioner[].loentransaktion_sats  number  

Must be between 0 and 99999.99.

loentransaktioner[].loentransaktion_beloeb  number  

Must be between -9999999.99 and 9999999.99.

loentransaktioner[].loentransaktion_afdnr  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_projekt  string optional  

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

loentransaktioner[].loentransaktion_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loentransaktioner[].loentransaktion_dato1feriedag  date optional  

Must be 0 or must match the format Y-m-d.

loentransaktioner[].loentransaktion_udbkode  string optional  

The value can only contain A-Å 0-9 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": false
    },
    {
        "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": true
    }
]
 
        

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  string  

employeeId  string  

Requirements

Body Parameters

loentransaktioner  array optional  

list of salary transactions to update

loentransaktioner[].loentransaktion_loenart  integer  

Must be between 1 and 9999.

loentransaktioner[].loentransaktion_loebenr  integer  

loentransaktioner[].loentransaktion_antal  number optional  

Must be between -99999.99 and 99999.99.

loentransaktioner[].loentransaktion_sats  number optional  

Must be between 0 and 99999.99.

loentransaktioner[].loentransaktion_beloeb  number optional  

Must be between -9999999.99 and 9999999.99.

loentransaktioner[].loentransaktion_afdnr  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_projekt  string optional  

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

loentransaktioner[].loentransaktion_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loentransaktioner[].loentransaktion_dato1feriedag  date optional  

Must be 0 or must match the format Y-m-d.

loentransaktioner[].loentransaktion_udbkode  string optional  

The value can only contain A-Å 0-9 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": ""
    }
]
 
        

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  string  

employeeId  string  

Requirements

Body Parameters

loentransaktioner  array optional  

list of salary transactions to update

loentransaktioner[].loentransaktion_loenart  integer  

Must be between 1 and 9999.

loentransaktioner[].loentransaktion_loebenr  integer  

loentransaktioner[].loentransaktion_antal  number optional  

Must be between -99999.99 and 99999.99.

loentransaktioner[].loentransaktion_sats  number optional  

Must be between 0 and 99999.99.

loentransaktioner[].loentransaktion_beloeb  number optional  

Must be between -9999999.99 and 9999999.99.

loentransaktioner[].loentransaktion_afdnr  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_projekt  string optional  

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

loentransaktioner[].loentransaktion_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loentransaktioner[].loentransaktion_dato1feriedag  date optional  

Must be 0 or must match the format Y-m-d.

loentransaktioner[].loentransaktion_udbkode  string optional  

The value can only contain A-Å 0-9 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'loentransaktioner' => [
                15,
                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,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/employee/{employeeId}/salarytransaction

URL Parameters

companyId  string  

employeeId  string  

Requirements

Body Parameters

loentransaktioner  integer[]  

Transaction list, salary type

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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/{salaryTypeId}

URL Parameters

companyId  string  

salaryTypeId  string  

Create multiple, employee list

Create salary transactions for more then one employee

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": false
    },
    {
        "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": true
    }
]
 
        

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  string  

Requirements

Body Parameters

loentransaktioner  array optional  

list of salary transactions to create

loentransaktioner[].loentransaktion_arbejder  integer  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_loenart  integer  

Must be between 1 and 9999.

loentransaktioner[].loentransaktion_antal  number  

Must be between -99999.99 and 99999.99.

loentransaktioner[].loentransaktion_sats  number  

Must be between 0 and 99999.99.

loentransaktioner[].loentransaktion_beloeb  number  

Must be between -9999999.99 and 9999999.99.

loentransaktioner[].loentransaktion_afdnr  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_projekt  string optional  

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

loentransaktioner[].loentransaktion_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loentransaktioner[].loentransaktion_dato1feriedag  date optional  

Must be 0 or must match the format Y-m-d.

loentransaktioner[].loentransaktion_udbkode  string optional  

The value can only contain A-Å 0-9 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": false
    },
    {
        "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": true
    }
]
 
        

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  string  

Requirements

Body Parameters

loentransaktioner  array optional  

list of salary transactions to update

loentransaktioner[].loentransaktion_loebenr  integer  

loentransaktioner[].loentransaktion_arbejder  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_loenart  integer optional  

Must be between 1 and 9999.

loentransaktioner[].loentransaktion_antal  number optional  

Must be between -99999.99 and 99999.99.

loentransaktioner[].loentransaktion_sats  number optional  

Must be between 0 and 99999.99.

loentransaktioner[].loentransaktion_beloeb  number optional  

Must be between -9999999.99 and 9999999.99.

loentransaktioner[].loentransaktion_afdnr  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_projekt  string optional  

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

loentransaktioner[].loentransaktion_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loentransaktioner[].loentransaktion_dato1feriedag  date optional  

Must be 0 or must match the format Y-m-d.

loentransaktioner[].loentransaktion_udbkode  string optional  

The value can only contain A-Å 0-9 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": ""
    }
]
 
        

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  string  

Requirements

Body Parameters

loentransaktioner  array optional  

list of salary transactions to update

loentransaktioner[].loentransaktion_loebenr  integer  

loentransaktioner[].loentransaktion_arbejder  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_loenart  integer optional  

Must be between 1 and 9999.

loentransaktioner[].loentransaktion_antal  number optional  

Must be between -99999.99 and 99999.99.

loentransaktioner[].loentransaktion_sats  number optional  

Must be between 0 and 99999.99.

loentransaktioner[].loentransaktion_beloeb  number optional  

Must be between -9999999.99 and 9999999.99.

loentransaktioner[].loentransaktion_afdnr  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_projekt  string optional  

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

loentransaktioner[].loentransaktion_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loentransaktioner[].loentransaktion_dato1feriedag  date optional  

Must be 0 or must match the format Y-m-d.

loentransaktioner[].loentransaktion_udbkode  string optional  

The value can only contain A-Å 0-9 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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": [
        {
            "loentransaktion_arbejder": 74029,
            "loentransaktion_loebenr": 15
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'loentransaktioner' => [
                [
                    'loentransaktion_arbejder' => 74029,
                    'loentransaktion_loebenr' => 15,
                ],
            ],
        ],
    ]
);
$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": [
        {
            "loentransaktion_arbejder": 74029,
            "loentransaktion_loebenr": 15
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/salarytransaction/list

URL Parameters

companyId  string  

Requirements

Body Parameters

loentransaktioner  object[] optional  

loentransaktioner[].loentransaktion_arbejder  integer  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_loebenr  integer  

Transaction list, company

Transaction list for company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

[
    {
        "loentransaktion_loenart": 110
    }
]
 
        

GET api/company/{companyId}/salarytransaction/usedsalarytypes

URL Parameters

companyId  string  

Validate

Validates the salary transactions

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loentransaktioner": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

loentransaktioner  array optional  

list of salary transactions to validate

loentransaktioner[].loentransaktion_arbejder  integer  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_loenart  integer  

Must be between 1 and 9999.

loentransaktioner[].loentransaktion_antal  number  

Must be between -99999.99 and 99999.99.

loentransaktioner[].loentransaktion_sats  number  

Must be between 0 and 99999.99.

loentransaktioner[].loentransaktion_beloeb  number  

Must be between -9999999.99 and 9999999.99.

loentransaktioner[].loentransaktion_afdnr  integer optional  

Must be between 0 and 99999.

loentransaktioner[].loentransaktion_projekt  string optional  

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

loentransaktioner[].loentransaktion_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loentransaktioner[].loentransaktion_date1feriedag  date optional  

Must be 0 or must match the format Y-m-d.

loentransaktioner[].loentransaktion_udbkode  string optional  

The value can only contain A-Å 0-9 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"
);

let headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
const body = new FormData();
body.append('opdater_arbejder_loen', '1');
body.append('__proloen_requirements_body_parameter__[]', 'User is logged in');
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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'multipart' => [
            [
                'name' => 'opdater_arbejder_loen',
                'contents' => '1'
            ],
            [
                'name' => 'loentransaktionFil',
                'contents' => fopen('C:\Users\Administrator\AppData\Local\Temp\php5E71.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\php5E71.tmp', 'rb')
}
payload = {
    "opdater_arbejder_loen": 1,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

loentransaktionFil  file  

Must be a file.

opdater_arbejder_loen  integer  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
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,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            '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,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

loentransaktioner  string  

the salary transaction as string

opdater_arbejder_loen  integer  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "arbejder_loen": 1,
    "medarbejdere": [
        15,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'arbejder_loen' => 1,
            'medarbejdere' => [
                15,
                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,
        15
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read and salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

arbejder_loen  integer  

Must be between 0 and 1.

medarbejdere  integer[]  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "Her kommer en beskrivelse i en senere version",
        "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  string  

Salary type list with department markings

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Get single salary type

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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": "Her kommer en beskrivelse i en senere version",
    "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  string  

salaryTypeId  string  

Update salary type

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loenart_nr": 7402,
    "loenart_tf": "t",
    "loenart_tekst": "toeuholyrgmpgiat",
    "loenart_sats": 48059,
    "loenart_minantal": 48059,
    "loenart_maxantal": 48059,
    "loenart_minsats": 48059,
    "loenart_maxsats": 48059,
    "loenart_minbeloeb": 4805878,
    "loenart_maxbeloeb": 4805878,
    "loenart_nulstil": 6,
    "loenart_beregningskode": 740,
    "loenart_changed": 7,
    "loenart_bruttoskat": 7,
    "loenart_aindkomst": 7,
    "loenart_ferieberettetloen": 7,
    "loenart_pensiongloen": 7,
    "loenart_atp": 7,
    "loenart_tidkode": 7,
    "loenart_tidfaktor": 124580.7912707,
    "loenart_feriepengeudb": 1,
    "loenart_haandteringskode": 74,
    "loenart_type": 7,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'loenart_nr' => 7402,
            'loenart_tf' => 't',
            'loenart_tekst' => 'toeuholyrgmpgiat',
            'loenart_sats' => 48059.0,
            'loenart_minantal' => 48059.0,
            'loenart_maxantal' => 48059.0,
            'loenart_minsats' => 48059.0,
            'loenart_maxsats' => 48059.0,
            'loenart_minbeloeb' => 4805878.0,
            'loenart_maxbeloeb' => 4805878.0,
            'loenart_nulstil' => 6,
            'loenart_beregningskode' => 740,
            'loenart_changed' => 7,
            'loenart_bruttoskat' => 7,
            'loenart_aindkomst' => 7,
            'loenart_ferieberettetloen' => 7,
            'loenart_pensiongloen' => 7,
            'loenart_atp' => 7,
            'loenart_tidkode' => 7,
            'loenart_tidfaktor' => 124580.7912707,
            'loenart_feriepengeudb' => 1,
            'loenart_haandteringskode' => 74,
            'loenart_type' => 7,
        ],
    ]
);
$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": 7402,
    "loenart_tf": "t",
    "loenart_tekst": "toeuholyrgmpgiat",
    "loenart_sats": 48059,
    "loenart_minantal": 48059,
    "loenart_maxantal": 48059,
    "loenart_minsats": 48059,
    "loenart_maxsats": 48059,
    "loenart_minbeloeb": 4805878,
    "loenart_maxbeloeb": 4805878,
    "loenart_nulstil": 6,
    "loenart_beregningskode": 740,
    "loenart_changed": 7,
    "loenart_bruttoskat": 7,
    "loenart_aindkomst": 7,
    "loenart_ferieberettetloen": 7,
    "loenart_pensiongloen": 7,
    "loenart_atp": 7,
    "loenart_tidkode": 7,
    "loenart_tidfaktor": 124580.7912707,
    "loenart_feriepengeudb": 1,
    "loenart_haandteringskode": 74,
    "loenart_type": 7,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/salarytype/{salaryTypeId}

URL Parameters

companyId  string  

salaryTypeId  string  

Requirements

Body Parameters

loenart_nr  integer optional  

Must be between 0 and 9999.

loenart_tf  string optional  

Must not be greater than 1 characters.

loenart_tekst  string optional  

The value can only contain A-Å 0-9,
+ - ' / % ( ) : @ _ & ? = and space Must not be greater than 21 characters.

loenart_sats  number optional  

Must be between -99999.99 and 99999.99.

loenart_minantal  number optional  

Must be between -99999.99 and 99999.99.

loenart_maxantal  number optional  

Must be between -99999.99 and 99999.99.

loenart_minsats  number optional  

Must be between -99999.99 and 99999.99.

loenart_maxsats  number optional  

Must be between -99999.99 and 99999.99.

loenart_minbeloeb  number optional  

Must be between -9999999.99 and 9999999.99.

loenart_maxbeloeb  number optional  

Must be between -9999999.99 and 9999999.99.

loenart_nulstil  integer optional  

Must be between 0 and 8.

loenart_beregningskode  integer optional  

Must be between 0 and 999.

loenart_changed  integer optional  

Must be between 0 and 9.

loenart_bruttoskat  integer optional  

Must be between 0 and 9.

loenart_aindkomst  integer optional  

Must be between 0 and 9.

loenart_ferieberettetloen  integer optional  

Must be between 0 and 9.

loenart_pensiongloen  integer optional  

Must be between 0 and 9.

loenart_atp  integer optional  

Must be between 0 and 9.

loenart_tidkode  integer optional  

Must be between 0 and 9.

loenart_tidfaktor  number optional  

loenart_feriepengeudb  integer optional  

Must be between 0 and 1.

loenart_haandteringskode  integer optional  

Must be between 0 and 99.

loenart_type  integer optional  

Must be between 0 and 9.

Get single department distribution

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

salaryTypeId  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "departmentdistributionlist": [
        {
            "loenartafdeling_afdeling_nr": 74029,
            "loenartafdeling_procent": 74
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'departmentdistributionlist' => [
                [
                    'loenartafdeling_afdeling_nr' => 74029,
                    'loenartafdeling_procent' => 74.0,
                ],
            ],
        ],
    ]
);
$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": [
        {
            "loenartafdeling_afdeling_nr": 74029,
            "loenartafdeling_procent": 74
        }
    ],
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.read"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution

URL Parameters

companyId  string  

salaryTypeId  string  

Requirements

Body Parameters

departmentdistributionlist  object[] optional  

departmentdistributionlist[].loenartafdeling_afdeling_nr  integer  

Must be between 0 and 99999.

departmentdistributionlist[].loenartafdeling_procent  number  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Create salary type relation

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loenartsrelation_fraloenart": 7402,
    "loenartsrelation_tilloenart": 7402,
    "loenartsrelation_beregningsfaktor": 74026,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'loenartsrelation_fraloenart' => 7402,
            'loenartsrelation_tilloenart' => 7402,
            'loenartsrelation_beregningsfaktor' => 74026.0,
        ],
    ]
);
$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": 7402,
    "loenartsrelation_tilloenart": 7402,
    "loenartsrelation_beregningsfaktor": 74026,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

loenartsrelation_fraloenart  integer  

Must be between 0 and 9999.

loenartsrelation_tilloenart  integer  

Must be between 0 and 9999.

loenartsrelation_beregningsfaktor  number optional  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}

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/salarytype/relation/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to salary.write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/salarytype/relation/{relationId}

URL Parameters

companyId  string  

relationId  string  

Requirements

Body Parameters

Server time

Get the server time

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mit.proloen.dk/api/servertime',
    [
        'headers' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                


 
        

GET api/servertime

Short term fee (Kortfrist gebyr)

display short term fee.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "kortfristgebyr_gebyr": 143
}
 
        

GET api/company/{companyId}/shorttermfee

URL Parameters

companyId  string  

Update short term fee.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "kortfristgebyr_gebyr": 124580.7912707,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}

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' => [
            '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,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/shorttermfee

URL Parameters

companyId  string  

Requirements

Body Parameters

kortfristgebyr_gebyr  number  

Staff group (personalegruppe)

List of staff groups

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

StatisticsController

List statistics for company

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Statistics code (Statistik kode)

Get statistics code list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Sympa

Get single sympa connection

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Updates sympa connection.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "sympa_key": "__proloen_sometimes__",
    "sympa_secret": "__proloen_sometimes__",
    "sympa_internal_milage": 0,
    "sympa_customer_milage": 0,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'sympa_key' => '__proloen_sometimes__',
            'sympa_secret' => '__proloen_sometimes__',
            '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_key": "__proloen_sometimes__",
    "sympa_secret": "__proloen_sometimes__",
    "sympa_internal_milage": 0,
    "sympa_customer_milage": 0,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/sympa

URL Parameters

companyId  string  

Requirements

Body Parameters

sympa_key  string optional  

sympa_secret  string optional  

sympa_internal_milage  integer optional  

sympa_customer_milage  integer optional  

Create single sympa connection

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "sympa_key": "quod",
    "sympa_secret": "quod",
    "sympa_internal_milage": 15,
    "sympa_customer_milage": 15,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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' => [
            '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,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Requirements

Body Parameters

sympa_key  string  

sympa_secret  string  

sympa_internal_milage  integer  

sympa_customer_milage  integer  

Delete sympa connection

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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/sympa',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/sympa

URL Parameters

companyId  string  

Requirements

Body Parameters

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
    }
]
 
        

GET api/company/{companyId}/systemmessage

URL Parameters

companyId  string  

Create system message.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "starttime": 124580.7912707,
    "endtime": 124580.7912707,
    "title": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "message": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqk",
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'starttime' => 124580.7912707,
            'endtime' => 124580.7912707,
            'title' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg',
            'message' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqk',
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "message": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqk",
    "__proloen_requirements_body_parameter__": [
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
}
 
        

POST api/company/{companyId}/systemmessage

URL Parameters

companyId  string  

Requirements

Body Parameters

starttime  number  

endtime  number  

title  string  

Must not be greater than 255 characters.

message  string  

Must not be greater than 500 characters.

Get a list of all system messages

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
    }
]
 
        

GET api/company/{companyId}/systemmessage/all

URL Parameters

companyId  string  

Get a single system message.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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"
}
 
        

GET api/company/{companyId}/systemmessage/{systemMessageId}

URL Parameters

companyId  string  

systemMessageId  string  

Update a system message.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "starttime": 124580.7912707,
    "endtime": 124580.7912707,
    "title": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "message": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqk",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'starttime' => 124580.7912707,
            'endtime' => 124580.7912707,
            'title' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg',
            'message' => 'toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqk',
        ],
    ]
);
$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": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwg",
    "message": "toeuholyrgmpgiatthcupxqjdgzelwuufzjmpjpngqunsdikmoedkeuxnyeqvbbwoeninsavhqzrelwkjqiezrjwbgfyqysmnrageopgovagtdzsxpbhzcmhrmswargxrmufioxrvoxfiwswghnavsnlorkxunmksyfhraxjskxnkumiczjnnzgtbnlwgnthojpzmuwfrozigsgmbrpcpqwzaqhhptsfjfakjmmfbrxdsmgdxbzsghwztiidnrbopuevvbraluytqyblhjiizugwrtuoifkevqdxtktulqccouzvxlbklewxisjklxcrxtgyhfngsiboumqbscobqtnajlbdzmohjivhhxjpmnkrvnhvqk",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/systemmessage/{systemMessageId}

URL Parameters

companyId  string  

systemMessageId  string  

Requirements

Body Parameters

starttime  number optional  

endtime  number optional  

title  string optional  

Must not be greater than 255 characters.

message  string optional  

Must not be greater than 500 characters.

Remove the specified system message.

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}

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/systemmessage/7',
    [
        'headers' => [
            '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'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/systemmessage/{systemMessageId}

URL Parameters

companyId  string  

systemMessageId  string  

Requirements

Body Parameters

Tax payment (Skattebetaling)

Get tax payment list

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

Translation (Info I)

Get translations as json.

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/translation/da_dk.json"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

language  string  

the language to get the translations for

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"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};

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' => [
            '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 = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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  string  

language  string  

the language to get the translation for

languageKey  string  

the key for the translation

Update translation

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/company/7/translation/da_dk/INFO.ACCESS.CREATE.USERNAME_INFO"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "value": "quod",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}

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' => [
            '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",
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User is super admin"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/translation/{language}/{languageKey}

URL Parameters

companyId  string  

language  string  

the language to update the translation for

languageKey  string  

Requirements

Body Parameters

value  string  

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/api/company/7/externaluser/35-xRpFMr"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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/externaluser/35-xRpFMr',
    [
        'headers' => [
            '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/35-xRpFMr'
payload = {
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

DELETE api/company/{companyId}/externaluser/{userId}

URL Parameters

companyId  string  

userId  string  

Requirements

Body Parameters

Create and store an external user

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
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,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'brugeradgang_brugernavn' => 'toeuholyrgmpgia',
            'loenlaes' => 7.0,
            'loenskriv' => 7.0,
            'loenbestil' => 7.0,
            'loengodkend' => 7.0,
            'arkiv' => 7.0,
            'adganglaes' => 7.0,
            'adgangskriv' => 7.0,
            'loen_bestil_laes' => 7.0,
            'loen_godkend_laes' => 7.0,
        ],
    ]
);
$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,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

Example response (200):

                

{
    "ExternalUser": {
        "bruger_brugernavn": "123-abc",
        "bruger_navn": "Bruger 1"
    },
    "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  string  

Requirements

Body Parameters

brugeradgang_brugernavn  string  

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

loenlaes  number  

Must be 1 digits.

loenskriv  number  

Must be 1 digits.

loenbestil  number  

Must be 1 digits.

loengodkend  number  

Must be 1 digits.

arkiv  number  

Must be 1 digits.

adganglaes  number  

Must be 1 digits.

adgangskriv  number  

Must be 1 digits.

loen_bestil_laes  number  

Must be 1 digits.

loen_godkend_laes  number  

Must be 1 digits.

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/api/company/7/externaluser/35-xRpFMr"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}

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/externaluser/35-xRpFMr',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'loenlaes' => 7.0,
            'loenskriv' => 7.0,
            'loenbestil' => 7.0,
            'loengodkend' => 7.0,
            'arkiv' => 7.0,
            'adganglaes' => 7.0,
            'adgangskriv' => 7.0,
            'loen_bestil_laes' => 7.0,
            'loen_godkend_laes' => 7.0,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/company/7/externaluser/35-xRpFMr'
payload = {
    "loenlaes": 7,
    "loenskriv": 7,
    "loenbestil": 7,
    "loengodkend": 7,
    "arkiv": 7,
    "adganglaes": 7,
    "adgangskriv": 7,
    "loen_bestil_laes": 7,
    "loen_godkend_laes": 7,
    "__proloen_requirements_body_parameter__": [
        "User is logged in",
        "User has access to company",
        "User has access right to write"
    ]
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

PATCH api/company/{companyId}/externaluser/{userId}

URL Parameters

companyId  string  

userId  string  

Requirements

Body Parameters

loenlaes  number optional  

Must be 1 digits.

loenskriv  number optional  

Must be 1 digits.

loenbestil  number optional  

Must be 1 digits.

loengodkend  number optional  

Must be 1 digits.

arkiv  number optional  

Must be 1 digits.

adganglaes  number optional  

Must be 1 digits.

adgangskriv  number optional  

Must be 1 digits.

loen_bestil_laes  number optional  

Must be 1 digits.

loen_godkend_laes  number optional  

Must be 1 digits.

POST api/user/byemail

Example request:
const url = new URL(
    "https://mit.proloen.dk/api/user/byemail"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api-key": "&lt;APIKEY&gt;",
};
let body = {
    "email": "[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/user/byemail',
    [
        'headers' => [
            'Accept' => 'application/json',
            'api-key' => '<APIKEY>',
        ],
        'json' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://mit.proloen.dk/api/user/byemail'
payload = {
    "email": "[email protected]"
}
headers = {
  'Accept': 'application/json',
  'api-key': '&lt;APIKEY&gt;'
}

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

POST api/user/byemail

Body Parameters

email  string  

Must be a valid email address.

Return a list of all users

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

let headers = {
    "Content-Type": "application/json",
    "Accept": "app