NAV
javascript bash

Info

Welcome to the generated API reference.

Get your Postman Collection here

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 4 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 4 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 company login has all privileges for that company, and hence is allowed to perform all actions. Internal and external users (This includes administrator and partner logins) are assigned priviledges when created (internal user) or assigned to a company (external user). That means priviledges depends on the user and the company and can change when accesing more the once company (external user).

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.

Company login

The user logs into the system using the ProLøn company 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 company credentials.

User login

Same as company login but possible with less priviledges. 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] or [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.0, TLS 1.1, 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 Casper Torndahl at [email protected]

Absence statistics (Fraværsstatistik)

Get absence statistics list

Requirements

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:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/absencestatistics" \
-H "Accept: application/json" \
    -d "fravaersstatistik_arbejder"="42690" \
    -d "fravaersstatistik_startdato"="42690315" \
    -d "fravaersstatistik_slutdato"="42690315" \
    -d "fravaersstatistik_fravaerskode"="4269" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics",
    "method": "GET",
    "data": {
        "fravaersstatistik_arbejder": 42690,
        "fravaersstatistik_startdato": 42690315,
        "fravaersstatistik_slutdato": 42690315,
        "fravaersstatistik_fravaerskode": 4269
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/absencestatistics

HEAD api/company/{companyId}/absencestatistics

Parameters

Parameter Type Status Description
fravaersstatistik_arbejder integer optional Minimum: 1 Maximum: 99999
fravaersstatistik_startdato integer optional Minimum: 10000000 Maximum: 99999999
fravaersstatistik_slutdato integer optional Minimum: 10000000 Maximum: 99999999
fravaersstatistik_fravaerskode integer optional Maximum: 9999

Get absence code list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/codelist" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/codelist",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Get single absence statistics

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/{absenceStatisticsId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/{absenceStatisticsId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Create absence statistic

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/absencestatistics" \
-H "Accept: application/json" \
    -d "fravaersstatistik_arbejder"="832235939" \
    -d "fravaersstatistik_startdato"="93724112" \
    -d "fravaersstatistik_slutdato"="93724112" \
    -d "fravaersstatistik_fravaerskode"="832235939" \
    -d "fravaersstatistik_timer"="832235939" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics",
    "method": "POST",
    "data": {
        "fravaersstatistik_arbejder": 832235939,
        "fravaersstatistik_startdato": 93724112,
        "fravaersstatistik_slutdato": 93724112,
        "fravaersstatistik_fravaerskode": 832235939,
        "fravaersstatistik_timer": 832235939
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/absencestatistics

Parameters

Parameter Type Status Description
fravaersstatistik_arbejder integer required
fravaersstatistik_startdato integer required Minimum: 10000000 Maximum: 99999999
fravaersstatistik_slutdato integer required Minimum: 10000000 Maximum: 99999999
fravaersstatistik_fravaerskode integer required
fravaersstatistik_timer numeric required

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

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/bulk/file" \
-H "Accept: application/json" \
    -d "fravaersFil"="accusamus" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/bulk/file",
    "method": "POST",
    "data": {
        "fravaersFil": "accusamus"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
fravaersFil file required Must be a file upload Allowed mime types: text/csv, text/plain, application/csv, application/x-csv, text/comma-separated-values, text/x-comma-separated-values or text/tab-separated-values

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

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/bulk/field" \
-H "Accept: application/json" \
    -d "absencestatistics"="velit" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/bulk/field",
    "method": "POST",
    "data": {
        "absencestatistics": "velit"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
absencestatistics string required

Update absence statistic

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/{absenceStatisticsId}" \
-H "Accept: application/json" \
    -d "fravaersstatistik_arbejder"="55674" \
    -d "fravaersstatistik_startdato"="48292204" \
    -d "fravaersstatistik_slutdato"="48292204" \
    -d "fravaersstatistik_fravaerskode"="55674" \
    -d "fravaersstatistik_timer"="55674" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/{absenceStatisticsId}",
    "method": "PATCH",
    "data": {
        "fravaersstatistik_arbejder": 55674,
        "fravaersstatistik_startdato": 48292204,
        "fravaersstatistik_slutdato": 48292204,
        "fravaersstatistik_fravaerskode": 55674,
        "fravaersstatistik_timer": 55674
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
fravaersstatistik_arbejder integer optional
fravaersstatistik_startdato integer optional Minimum: 10000000 Maximum: 99999999
fravaersstatistik_slutdato integer optional Minimum: 10000000 Maximum: 99999999
fravaersstatistik_fravaerskode integer optional
fravaersstatistik_timer numeric optional

Delete absence statistic

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/{absenceStatisticsId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencestatistics/{absenceStatisticsId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Account number voucher

Get account number voucher list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/accountnumbervoucher

HEAD api/company/{companyId}/accountnumbervoucher

Get account number voucher list for version number

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher/version/{versionNumber}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher/version/{versionNumber}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Create account number voucher

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher" \
-H "Accept: application/json" \
    -d "firmaktbilag_stdkontoplanversion"="14674593" \
    -d "firmaktbilag_stdlinjenr"="14674593" \
    -d "firmaktbilag_kontonr"="78975073" \
    -d "firmaktbilag_afdnr"="78975" \
    -d "firmaktbilag_loenart"="7897" \
    -d "firmaktbilag_arbejder"="78975" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher",
    "method": "POST",
    "data": {
        "firmaktbilag_stdkontoplanversion": 14674593,
        "firmaktbilag_stdlinjenr": 14674593,
        "firmaktbilag_kontonr": 78975073,
        "firmaktbilag_afdnr": 78975,
        "firmaktbilag_loenart": 7897,
        "firmaktbilag_arbejder": 78975
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/accountnumbervoucher

Parameters

Parameter Type Status Description
firmaktbilag_stdkontoplanversion integer required
firmaktbilag_stdlinjenr integer required
firmaktbilag_kontonr integer required Between: 0 and 99999999
firmaktbilag_afdnr integer optional Between: 0 and 99999
firmaktbilag_loenart integer optional Between: 0 and 9999
firmaktbilag_arbejder integer optional Between: 0 and 99999

Update account number voucher

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher/{voucherId}" \
-H "Accept: application/json" \
    -d "firmaktbilag_kontonr"="48583785" \
    -d "firmaktbilag_afdnr"="48583" \
    -d "firmaktbilag_loenart"="4858" \
    -d "firmaktbilag_arbejder"="48583" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher/{voucherId}",
    "method": "PATCH",
    "data": {
        "firmaktbilag_kontonr": 48583785,
        "firmaktbilag_afdnr": 48583,
        "firmaktbilag_loenart": 4858,
        "firmaktbilag_arbejder": 48583
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
firmaktbilag_kontonr integer optional Between: 0 and 99999999
firmaktbilag_afdnr integer optional Between: 0 and 99999
firmaktbilag_loenart integer optional Between: 0 and 9999
firmaktbilag_arbejder integer optional Between: 0 and 99999

Delete account number voucher

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher/{voucherId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/accountnumbervoucher/{voucherId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Admin info

get list of info for a specific industry

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/admininfo/industry/{industryId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/admininfo/industry/{industryId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Get single info

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/admininfo/{id}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/admininfo/{id}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Create new info

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/admininfo" \
-H "Accept: application/json" \
    -d "info_brance"="670" \
    -d "info_tildato"="2020-03-25" \
    -d "info_titel"="et" \
    -d "info_tekst"="et" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/admininfo",
    "method": "POST",
    "data": {
        "info_brance": 670,
        "info_tildato": "2020-03-25",
        "info_titel": "et",
        "info_tekst": "et"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/admininfo

Parameters

Parameter Type Status Description
info_brance integer required
info_tildato date required Date format: Y-m-d
info_titel string required Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
info_tekst string required Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Update info

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/admininfo/{id}" \
-H "Accept: application/json" \
    -d "info_brance"="94989576" \
    -d "info_tildato"="2020-03-25" \
    -d "info_titel"="autem" \
    -d "info_tekst"="autem" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/admininfo/{id}",
    "method": "PATCH",
    "data": {
        "info_brance": 94989576,
        "info_tildato": "2020-03-25",
        "info_titel": "autem",
        "info_tekst": "autem"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
info_brance integer required
info_tildato date required Date format: Y-m-d
info_titel string required Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
info_tekst string required Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Destroy info

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/admininfo/{id}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/admininfo/{id}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Admin matrix

Get list of selectable Matrix fields

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminmatrix/selection" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminmatrix/selection",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Get list of company selected Matrix fields

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminmatrix/current" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminmatrix/current",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Check if company has Matrix

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminmatrix/hasmatrix" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminmatrix/hasmatrix",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

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

Update company Matrix

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/adminmatrix" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminmatrix",
    "method": "PATCH",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/adminmatrix

Admin salary

Get list of companies all companies that is not locked

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminsalary" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/adminsalary

HEAD api/company/{companyId}/adminsalary

Returns a list of the companies who have ordered salary

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminsalary/ordered" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/ordered",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

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

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminsalary/locked" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/locked",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

This returns a list of the companies that has been blocked

Also includes employee type extra data

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminsalary/blocked" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/blocked",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Returns a list of the companies who have been manually blocked

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminsalary/manuallyblocked" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/manuallyblocked",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

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

Also includes employee type extra data

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/adminsalary/{otherCompanyId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/{otherCompanyId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

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

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/adminsalary/removeblock/{otherCompanyId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/removeblock/{otherCompanyId}",
    "method": "PATCH",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Removes a lock from the designated company

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/adminsalary/unlock/{unlockCompanyId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/unlock/{unlockCompanyId}",
    "method": "PATCH",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Puts a block on the designated company

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/adminsalary/manualblock/{otherCompanyId}" \
-H "Accept: application/json" \
    -d "initialer"="13" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/adminsalary/manualblock/{otherCompanyId}",
    "method": "PATCH",
    "data": {
        "initialer": 13
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
initialer string required Between: 0 and 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Admin submission deadline (afleveringsfrist)

Get submission deadline list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/deadline" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/deadline",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejdertypebeskrivelse_nr": 1,
        "arbejdertypebeskrivelse_navn": "14-dages-løn",
        "frist_et_dage": 2,
        "frist_et_tid": 1300,
        "frist_to_dage": 2,
        "frist_to_tid": 1930
    }
]

HTTP Request

GET api/company/{companyId}/deadline

HEAD api/company/{companyId}/deadline

Get submission deadline standard list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/deadlinestandard" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/deadlinestandard",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejdertypebeskrivelse_nr": 1,
        "arbejdertypebeskrivelse_navn": "14-dages-løn",
        "aflfrist_dage": 0,
        "aflfrist_kl": 0
    }
]

HTTP Request

GET api/company/{companyId}/deadlinestandard

HEAD api/company/{companyId}/deadlinestandard

Get submission deadline extra list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/deadlineextra" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/deadlineextra",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejdertypebeskrivelse_nr": 2,
        "arbejdertypebeskrivelse_navn": "Månedsløn bagud",
        "aflfrist_dage": 0,
        "aflfrist_kl": 0
    }
]

HTTP Request

GET api/company/{companyId}/deadlineextra

HEAD api/company/{companyId}/deadlineextra

Show single submission deadline

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/deadline/{employeeTypeId}/{extraId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/deadline/{employeeTypeId}/{extraId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "aflfrist_dage": 2,
    "aflfrist_kl": 1300
}

HTTP Request

GET api/company/{companyId}/deadline/{employeeTypeId}/{extraId}

HEAD api/company/{companyId}/deadline/{employeeTypeId}/{extraId}

Update submission deadline for company

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/deadline" \
-H "Accept: application/json" \
    -d "aflfrist_arbejdertype"="3226811" \
    -d "aflfrist_dage"="1827413702" \
    -d "aflfrist_kl"="pariatur" \
    -d "aflfrist_ekstra"="3226811" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/deadline",
    "method": "PATCH",
    "data": {
        "aflfrist_arbejdertype": 3226811,
        "aflfrist_dage": 1827413702,
        "aflfrist_kl": "pariatur",
        "aflfrist_ekstra": 3226811
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/deadline

Parameters

Parameter Type Status Description
aflfrist_arbejdertype integer required Must have a length between 1 and 3
aflfrist_dage integer required Minimum: 1
aflfrist_kl string required Must match this regular expression: /^(?:[01][0-9]|2[0-3]):[0-5][0-9]$/
aflfrist_ekstra integer required Must have a length between 0 and 1

Delete submission deadline for company

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/deadline/{employeeTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/deadline/{employeeTypeId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/deadline/{employeeTypeId}

Authenticate

Login

Example request:

curl -X POST "https://mit.proloen.dk/api/authenticate/login" \
-H "Accept: application/json" \
    -d "login"="neque" \
    -d "password"="neque" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/authenticate/login",
    "method": "POST",
    "data": {
        "login": "neque",
        "password": "neque"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/authenticate/login

Parameters

Parameter Type Status Description
login string required
password string required

Logout

Example request:

curl -X GET "https://mit.proloen.dk/api/authenticate/logout" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/authenticate/logout",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/authenticate/logout

HEAD api/authenticate/logout

Access rights

Get access for the current logged in company or user

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/access" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/access",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/access

HEAD api/company/{companyId}/access

Average salary (gennemsnitsløn)

get a list of employee average salaries for company.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/averagesalary" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/averagesalary",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/averagesalary

HEAD api/company/{companyId}/averagesalary

get a list of employee average salaries.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/averagesalary" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/averagesalary",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

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

Get a single employee average salary.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/averagesalary/{averageSalaryId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/averagesalary/{averageSalaryId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

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

Character Converter

Get character conventions list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/convertingtable" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/convertingtable",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/convertingtable

HEAD api/company/{companyId}/convertingtable

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:

curl -X GET "https://mit.proloen.dk/api/company" \
-H "Accept: application/json" \
    -d "fromCompanyId"="1681232692" \
    -d "salaryOrdered"="1" \
    -d "locked"="1" \
    -d "blocked"="1" \
    -d "manuallyBlocked"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company",
    "method": "GET",
    "data": {
        "fromCompanyId": 1681232692,
        "salaryOrdered": true,
        "locked": true,
        "blocked": true,
        "manuallyBlocked": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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,
            "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
                }
            }
        }
    }
]

HTTP Request

GET api/company

HEAD api/company

Parameters

Parameter Type Status Description
fromCompanyId integer optional Minimum: 1
salaryOrdered boolean optional
locked boolean optional
blocked boolean optional
manuallyBlocked boolean optional

Get Single company

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}

HEAD api/company/{companyId}

Update company

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}" \
-H "Accept: application/json" \
    -d "firma_navn"="15" \
    -d "firma_adresse1"="15" \
    -d "firma_adresse2"="15" \
    -d "firma_postnr"="5097" \
    -d "firma_by"="15" \
    -d "firma_telefon"="15" \
    -d "firma_dabarsel"="1" \
    -d "firma_email"="36" \
    -d "firma_mailkode"="molestias" \
    -d "firma_kontoplanversion"="50" \
    -d "firma_ebokserhverv"="1" \
    -d "firma_alleloensedlerieboks"="1" \
    -d "firma_leveringsnavn"="15" \
    -d "firma_leveringsadresse1"="15" \
    -d "firma_leveringsadresse2"="15" \
    -d "firma_leveringspostnr"="5097" \
    -d "firma_leveringsby"="15" \
    -d "firma_manspaerdato"="55888813" \
    -d "firma_feriekode"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}",
    "method": "PATCH",
    "data": {
        "firma_navn": 15,
        "firma_adresse1": 15,
        "firma_adresse2": 15,
        "firma_postnr": 5097,
        "firma_by": 15,
        "firma_telefon": 15,
        "firma_dabarsel": 1,
        "firma_email": 36,
        "firma_mailkode": "molestias",
        "firma_kontoplanversion": 50,
        "firma_ebokserhverv": "1",
        "firma_alleloensedlerieboks": "1",
        "firma_leveringsnavn": 15,
        "firma_leveringsadresse1": 15,
        "firma_leveringsadresse2": 15,
        "firma_leveringspostnr": 5097,
        "firma_leveringsby": 15,
        "firma_manspaerdato": 55888813,
        "firma_feriekode": "1"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}

Parameters

Parameter Type Status Description
firma_navn string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_adresse1 string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_adresse2 string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_postnr integer optional Between: 0 and 9999
firma_by string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_telefon string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_dabarsel string optional Between: 0 and 1
firma_email string optional Between: 0 and 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_mailkode string optional Maximum: 20 Must contain characters from 2 of the groups: Letters, Numbers and Symbols ( , . + - ' / % ( ) : @ _ & ? = )
firma_kontoplanversion numeric optional Between: 0 and 99
firma_ebokserhverv integer optional 0 or 1
firma_alleloensedlerieboks integer optional 0 or 1
firma_leveringsnavn string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_leveringsadresse1 string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_leveringsadresse2 string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_leveringspostnr integer optional Between: 0 and 9999
firma_leveringsby string optional Between: 0 and 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firma_manspaerdato numeric optional Must have an exact length of 14
firma_feriekode integer optional 0 or 1

Reset MO code (Super admin only)

Sets the MO code to zero on company and all employees

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/mocode/reset" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/mocode/reset",
    "method": "PATCH",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Company matrix version (Firma matrix version)

Get company matrix version list

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/companymatrixversion

HEAD api/company/{companyId}/companymatrixversion

get single company matrix version.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Crate company matrix version.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion" \
-H "Accept: application/json" \
    -d "firmamatrixversion_aktiv"="1" \
    -d "firmamatrixversion_navn"="nulla" \
    -d "firmamatrix_matrix"="nulla" \
    -d "firmamatrix_matrix.0"="74718135" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion",
    "method": "POST",
    "data": {
        "firmamatrixversion_aktiv": true,
        "firmamatrixversion_navn": "nulla",
        "firmamatrix_matrix": "nulla",
        "firmamatrix_matrix.0": 74718135
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/companymatrixversion

Parameters

Parameter Type Status Description
firmamatrixversion_aktiv boolean required
firmamatrixversion_navn string required Maximum: 50 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firmamatrix_matrix array optional
firmamatrix_matrix.0 integer optional

Update single company matrix version.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}" \
-H "Accept: application/json" \
    -d "firmamatrixversion_aktiv"="1" \
    -d "firmamatrixversion_navn"="repudiandae" \
    -d "firmamatrix_matrix"="repudiandae" \
    -d "firmamatrix_matrix.0"="387703674" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}",
    "method": "PATCH",
    "data": {
        "firmamatrixversion_aktiv": true,
        "firmamatrixversion_navn": "repudiandae",
        "firmamatrix_matrix": "repudiandae",
        "firmamatrix_matrix.0": 387703674
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
firmamatrixversion_aktiv boolean optional
firmamatrixversion_navn string optional Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firmamatrix_matrix array optional
firmamatrix_matrix.0 integer optional

delete a single company matrix version.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/companymatrixversion/{companyMatrixVersionId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Deadline (Terminer)

Current deadlines

Get the list of all deadlines for a given company ID

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salary/deadlines" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salary/deadlines",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Next deadline

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

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salary/employeetype/{employeeTypeId}/deadline" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salary/employeetype/{employeeTypeId}/deadline",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Department (Afdelinger)

Get department List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/department" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/department",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/department

HEAD api/company/{companyId}/department

Get single department

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/department/{departmentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/department/{departmentId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Create department

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/department" \
-H "Accept: application/json" \
    -d "afdeling_nr"="87684" \
    -d "afdeling_navn"="debitis" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/department",
    "method": "POST",
    "data": {
        "afdeling_nr": 87684,
        "afdeling_navn": "debitis"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/department

Parameters

Parameter Type Status Description
afdeling_nr integer required Between: 1 and 99999
afdeling_navn string required Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Update department

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/department/{departmentId}" \
-H "Accept: application/json" \
    -d "afdeling_nr"="89788" \
    -d "afdeling_navn"="eveniet" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/department/{departmentId}",
    "method": "PATCH",
    "data": {
        "afdeling_nr": 89788,
        "afdeling_navn": "eveniet"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
afdeling_nr integer optional Between: 1 and 99999
afdeling_navn string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Delete department

Requirements

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

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/department/{departmentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/department/{departmentId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Document description

Return list of document descriptions

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/documentdescription" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentdescription",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/documentdescription

HEAD api/company/{companyId}/documentdescription

Return single document description

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/documentdescription/{documentDescriptionId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentdescription/{documentDescriptionId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Store a document description

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/documentdescription" \
-H "Accept: application/json" \
    -d "dokukode_nr"="91256" \
    -d "dokukode_tekst"="repudiandae" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentdescription",
    "method": "POST",
    "data": {
        "dokukode_nr": 91256,
        "dokukode_tekst": "repudiandae"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/documentdescription

Parameters

Parameter Type Status Description
dokukode_nr integer required Between: 1 and 99999
dokukode_tekst string required Maximum: 2000

Update document description

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/documentdescription/{documentDescriptionId}" \
-H "Accept: application/json" \
    -d "dokukode_tekst"="voluptatem" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentdescription/{documentDescriptionId}",
    "method": "PATCH",
    "data": {
        "dokukode_tekst": "voluptatem"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
dokukode_tekst string required Maximum: 2000

Delete document description

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/documentdescription/{documentDescriptionId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentdescription/{documentDescriptionId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Document folder

Class DocumentFolderController

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

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/documentfolder" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentfolder",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/documentfolder

HEAD api/company/{companyId}/documentfolder

Get document (Company)

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/documentfolder/document/{documentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentfolder/document/{documentId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

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

Store document company

Requirements

Note, documents uploaded by Company is never private.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/documentfolder" \
-H "Accept: application/json" \
    -d "dokument"="voluptas" \
    -d "beskyttet"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentfolder",
    "method": "POST",
    "data": {
        "dokument": "voluptas",
        "beskyttet": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

POST api/company/{companyId}/documentfolder

Parameters

Parameter Type Status Description
dokument file required Must be a file upload
beskyttet boolean optional

Update document settings (Company)

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/documentfolder/document/{documentId}" \
-H "Accept: application/json" \
    -d "beskyttet"="1" \
    -d "privat"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentfolder/document/{documentId}",
    "method": "PATCH",
    "data": {
        "beskyttet": true,
        "privat": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
beskyttet boolean optional
privat boolean optional

Delete document (Company)

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/documentfolder/document/{documentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/documentfolder/document/{documentId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Get document list (User)

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

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/user/{userId}/documentfolder" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/documentfolder",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/user/{userId}/documentfolder

HEAD api/user/{userId}/documentfolder

Get document (User)

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/user/{userId}/documentfolder/document/{documentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/documentfolder/document/{documentId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

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

Store document (User)

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/user/{userId}/documentfolder" \
-H "Accept: application/json" \
    -d "dokument"="laborum" \
    -d "privat"="1" \
    -d "beskyttet"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/documentfolder",
    "method": "POST",
    "data": {
        "dokument": "laborum",
        "privat": true,
        "beskyttet": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

POST api/user/{userId}/documentfolder

Parameters

Parameter Type Status Description
dokument file required Must be a file upload
privat boolean required
beskyttet boolean optional

Update document settings (User)

Requirements

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

Example request:

curl -X PATCH "https://mit.proloen.dk/api/user/{userId}/documentfolder/document/{documentId}" \
-H "Accept: application/json" \
    -d "beskyttet"="1" \
    -d "privat"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/documentfolder/document/{documentId}",
    "method": "PATCH",
    "data": {
        "beskyttet": true,
        "privat": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
beskyttet boolean optional
privat boolean optional

Delete document (User)

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/user/{userId}/documentfolder/document/{documentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/documentfolder/document/{documentId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Employee (Medarbejder)

Get employee List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/employee

HEAD api/company/{companyId}/employee

Get employee list, CSV

Get employees as csv based on the selected matrix fields

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/csv" \
-H "Accept: application/json" \
    -d "matrix_felter"="autem" \
    -d "arbejder_slettet"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/csv",
    "method": "GET",
    "data": {
        "matrix_felter": "autem",
        "arbejder_slettet": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

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

Parameters

Parameter Type Status Description
matrix_felter string required
arbejder_slettet boolean optional

Get employee list, deleted

Get deleted employees list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/deleted" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/deleted",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

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

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

Get employee list, draft

Get draft employees list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/drafts" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/drafts",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

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

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

Get employees list, department marking

Get employees list with marking to show if employee has departments

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/withdepartmentmarking" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/withdepartmentmarking",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

Get employee

Get single employee

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

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

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

Get employee, as PDF

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/pdf" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/pdf",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

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

Create employee

Requirements

Some important business rules

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employee" \
-H "Accept: application/json" \
    -d "arbejder_nr"="17768" \
    -d "arbejder_arbejdertype"="0" \
    -d "arbejder_profil"="dolor" \
    -d "arbejder_fornavn"="dolor" \
    -d "arbejder_efternavn"="dolor" \
    -d "arbejder_adresse1"="dolor" \
    -d "arbejder_adresse2"="dolor" \
    -d "arbejder_postnr"="80" \
    -d "arbejder_by"="dolor" \
    -d "arbejder_cprnr"="dolor" \
    -d "arbejder_ansatdato"="2020-03-25" \
    -d "arbejder_rejstdato"="2020-03-25 || 0" \
    -d "arbejder_afdeling"="80" \
    -d "arbejder_skattefrd1dag"="80" \
    -d "arbejder_skattefrdperioden"="80" \
    -d "arbejder_traekprocent"="80" \
    -d "arbejder_restfrikort"="80" \
    -d "arbejder_bankregnr"="80" \
    -d "arbejder_bankkontonr"="dolor" \
    -d "arbejder_atpkode"="1" \
    -d "arbejder_feriekode"="2" \
    -d "arbejder_shkode"="2" \
    -d "arbejder_ampension"="80" \
    -d "arbejder_amstartdato"="2020-03-25 || 0" \
    -d "arbejder_ansaettelsestype"="2" \
    -d "arbejder_ansaettelsevilkaer"="2" \
    -d "arbejder_jobstatus"="2" \
    -d "arbejder_afloenningsform"="dolor" \
    -d "arbejder_loen"="0" \
    -d "arbejder_landekode"="dolor" \
    -d "arbejder_andetarbejdssted"="dolor" \
    -d "arbejder_personalegruppe"="dolor" \
    -d "arbejder_email"="dolor" \
    -d "arbejder_dabarsel"="1" \
    -d "arbejder_frivilligtraekprocent"="3" \
    -d "arbejder_beskaeftigelseskode"="80" \
    -d "arbejder_produktionsenhedsnr"="dolor" \
    -d "arbejder_groenlandskkommune"="80" \
    -d "arbejder_skattekort"="B" \
    -d "arbejder_dalouddannelsesbidrag"="80" \
    -d "arbejder_udlaertdato"="2020-03-25 || 0" \
    -d "arbejder_arbejdsfunktion2"="80" \
    -d "arbejder_sundhedsordning"="80" \
    -d "arbejder_mokode"="80" \
    -d "arbejder_eboks"="N" \
    -d "arbejder_loesarbejder"="J" \
    -d "arbejder_mailkode"="dolor" \
    -d "arbejder_fhkode"="dolor" \
    -d "arbejder_tilladnegativloen"="0" \
    -d "arbejder_kompetencefond"="80" \
    -d "arbejder_samarbuddannelsesfond"="80" \
    -d "arbejder_ansaettelsesforhold"="dolor" \
    -d "arbejder_anciennitetsdato"="2020-03-25 || 0" \
    -d "arbejder_tekst1"="dolor" \
    -d "arbejder_tekst2"="dolor" \
    -d "arbejder_tekst3"="dolor" \
    -d "arbejder_tekst4"="dolor" \
    -d "arbejder_tekst5"="dolor" \
    -d "arbejder_overenskomsttekst"="dolor" \
    -d "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id"="80" \
    -d "opgoerelsesperiodemedarbejder_valg"="5" \
    -d "opgoerelsesperiodebestilt_fra_dato"="2020-03-25 || 0" \
    -d "opgoerelsesperiodebestilt_til_dato"="2020-03-25 || 0" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee",
    "method": "POST",
    "data": {
        "arbejder_nr": 17768,
        "arbejder_arbejdertype": 0,
        "arbejder_profil": "dolor",
        "arbejder_fornavn": "dolor",
        "arbejder_efternavn": "dolor",
        "arbejder_adresse1": "dolor",
        "arbejder_adresse2": "dolor",
        "arbejder_postnr": 80,
        "arbejder_by": "dolor",
        "arbejder_cprnr": "dolor",
        "arbejder_ansatdato": "2020-03-25",
        "arbejder_rejstdato": "2020-03-25 || 0",
        "arbejder_afdeling": 80,
        "arbejder_skattefrd1dag": 80,
        "arbejder_skattefrdperioden": 80,
        "arbejder_traekprocent": 80,
        "arbejder_restfrikort": 80,
        "arbejder_bankregnr": 80,
        "arbejder_bankkontonr": "dolor",
        "arbejder_atpkode": "1",
        "arbejder_feriekode": 2,
        "arbejder_shkode": 2,
        "arbejder_ampension": 80,
        "arbejder_amstartdato": "2020-03-25 || 0",
        "arbejder_ansaettelsestype": 2,
        "arbejder_ansaettelsevilkaer": 2,
        "arbejder_jobstatus": 2,
        "arbejder_afloenningsform": "dolor",
        "arbejder_loen": "0",
        "arbejder_landekode": "dolor",
        "arbejder_andetarbejdssted": "dolor",
        "arbejder_personalegruppe": "dolor",
        "arbejder_email": "dolor",
        "arbejder_dabarsel": 1,
        "arbejder_frivilligtraekprocent": 3,
        "arbejder_beskaeftigelseskode": 80,
        "arbejder_produktionsenhedsnr": "dolor",
        "arbejder_groenlandskkommune": 80,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 80,
        "arbejder_udlaertdato": "2020-03-25 || 0",
        "arbejder_arbejdsfunktion2": 80,
        "arbejder_sundhedsordning": 80,
        "arbejder_mokode": 80,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "J",
        "arbejder_mailkode": "dolor",
        "arbejder_fhkode": "dolor",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 80,
        "arbejder_samarbuddannelsesfond": 80,
        "arbejder_ansaettelsesforhold": "dolor",
        "arbejder_anciennitetsdato": "2020-03-25 || 0",
        "arbejder_tekst1": "dolor",
        "arbejder_tekst2": "dolor",
        "arbejder_tekst3": "dolor",
        "arbejder_tekst4": "dolor",
        "arbejder_tekst5": "dolor",
        "arbejder_overenskomsttekst": "dolor",
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 80,
        "opgoerelsesperiodemedarbejder_valg": 5,
        "opgoerelsesperiodebestilt_fra_dato": "2020-03-25 || 0",
        "opgoerelsesperiodebestilt_til_dato": "2020-03-25 || 0"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

POST api/company/{companyId}/employee

Parameters

Parameter Type Status Description
arbejder_nr integer required Between: 0 and 99998
arbejder_arbejdertype integer required Between: 0 and 4
arbejder_profil string optional Maximum: 8 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fornavn string required Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_efternavn string required Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse1 string required Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse2 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_postnr integer required Must have a length between 1 and 4
arbejder_by string required Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_cprnr string required Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_ansatdato date required Date format: Y-m-d
arbejder_rejstdato date optional Date format: Y-m-d or 0
arbejder_afdeling integer optional Must have a length between 1 and 5
arbejder_skattefrd1dag integer optional Must have a length between 1 and 5
arbejder_skattefrdperioden integer optional Must have a length between 1 and 5
arbejder_traekprocent integer optional Must have a length between 1 and 3
arbejder_restfrikort integer optional Must have a length between 1 and 7
arbejder_bankregnr numeric required Must have a length between 1 and 4
arbejder_bankkontonr string required Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_atpkode integer required 0, 1, 2, 4, 5 or 6
arbejder_feriekode integer required Must have an exact length of 1
arbejder_shkode integer optional Must have an exact length of 1
arbejder_ampension integer optional Must have a length between 1 and 4
arbejder_amstartdato date optional Date format: Y-m-d or 0
arbejder_ansaettelsestype integer optional Must have an exact length of 1
arbejder_ansaettelsevilkaer integer optional Must have an exact length of 1
arbejder_jobstatus integer optional Must have an exact length of 1
arbejder_afloenningsform string optional Maximum: 2
arbejder_loen integer optional Must have an exact length of 1 0 or 1
arbejder_landekode string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_andetarbejdssted string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_personalegruppe string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_email string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_dabarsel integer optional Between: 0 and 9
arbejder_frivilligtraekprocent integer optional Between: 0 and 20
arbejder_beskaeftigelseskode integer optional Must have a length between 1 and 2
arbejder_produktionsenhedsnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_groenlandskkommune integer optional Must have a length between 1 and 3
arbejder_skattekort string required H, B, M, h, b or m
arbejder_dalouddannelsesbidrag integer optional Must have a length between 1 and 2
arbejder_udlaertdato date optional Date format: Y-m-d or 0
arbejder_arbejdsfunktion2 integer optional Must have a length between 1 and 6
arbejder_sundhedsordning integer optional Must have a length between 1 and 2
arbejder_mokode integer optional Must have a length between 1 and 5
arbejder_eboks string optional Maximum: 1 J, N, M, P, j, n, m or p
arbejder_loesarbejder string optional Maximum: 1 J, N, j or n
arbejder_mailkode string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fhkode string optional Maximum: 3 Can only contain A-Å 0-9
arbejder_tilladnegativloen integer optional Between: 0 and 1
arbejder_kompetencefond integer optional Must have a length between 1 and 5
arbejder_samarbuddannelsesfond integer optional Must have a length between 1 and 5
arbejder_ansaettelsesforhold string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_anciennitetsdato date optional Date format: Y-m-d or 0
arbejder_tekst1 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst2 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst3 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst4 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst5 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_overenskomsttekst string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id integer optional Valid opgoerelsesperiodetype opgoerelsesperiodetype_id
opgoerelsesperiodemedarbejder_valg integer optional Minimum: 1 Maximum: 31
opgoerelsesperiodebestilt_fra_dato date optional Date format: Y-m-d or 0
opgoerelsesperiodebestilt_til_dato date optional Date format: Y-m-d or 0

Create employee, draft

Create draft of employee

Some important business rules

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employee/draft" \
-H "Accept: application/json" \
    -d "arbejder_nr"="12731" \
    -d "arbejder_profil"="consequuntur" \
    -d "arbejder_fornavn"="consequuntur" \
    -d "arbejder_efternavn"="consequuntur" \
    -d "arbejder_adresse1"="consequuntur" \
    -d "arbejder_adresse2"="consequuntur" \
    -d "arbejder_postnr"="30" \
    -d "arbejder_by"="consequuntur" \
    -d "arbejder_cprnr"="consequuntur" \
    -d "arbejder_ansatdato"="2020-03-25" \
    -d "arbejder_rejstdato"="2020-03-25 || 0" \
    -d "arbejder_afdeling"="30" \
    -d "arbejder_skattefrd1dag"="30" \
    -d "arbejder_skattefrdperioden"="30" \
    -d "arbejder_traekprocent"="30" \
    -d "arbejder_restfrikort"="30" \
    -d "arbejder_bankregnr"="30" \
    -d "arbejder_bankkontonr"="consequuntur" \
    -d "arbejder_atpkode"="0" \
    -d "arbejder_feriekode"="2" \
    -d "arbejder_shkode"="2" \
    -d "arbejder_ampension"="30" \
    -d "arbejder_amstartdato"="2020-03-25 || 0" \
    -d "arbejder_ansaettelsestype"="2" \
    -d "arbejder_ansaettelsevilkaer"="2" \
    -d "arbejder_jobstatus"="2" \
    -d "arbejder_afloenningsform"="consequuntur" \
    -d "arbejder_loen"="0" \
    -d "arbejder_landekode"="consequuntur" \
    -d "arbejder_andetarbejdssted"="consequuntur" \
    -d "arbejder_personalegruppe"="consequuntur" \
    -d "arbejder_email"="consequuntur" \
    -d "arbejder_dabarsel"="1" \
    -d "arbejder_frivilligtraekprocent"="2" \
    -d "arbejder_beskaeftigelseskode"="30" \
    -d "arbejder_produktionsenhedsnr"="consequuntur" \
    -d "arbejder_groenlandskkommune"="30" \
    -d "arbejder_skattekort"="H" \
    -d "arbejder_dalouddannelsesbidrag"="30" \
    -d "arbejder_udlaertdato"="2020-03-25 || 0" \
    -d "arbejder_arbejdsfunktion2"="30" \
    -d "arbejder_sundhedsordning"="30" \
    -d "arbejder_mokode"="30" \
    -d "arbejder_eboks"="N" \
    -d "arbejder_loesarbejder"="J" \
    -d "arbejder_mailkode"="consequuntur" \
    -d "arbejder_fhkode"="consequuntur" \
    -d "arbejder_tilladnegativloen"="0" \
    -d "arbejder_kompetencefond"="30" \
    -d "arbejder_samarbuddannelsesfond"="30" \
    -d "arbejder_ansaettelsesforhold"="consequuntur" \
    -d "arbejder_anciennitetsdato"="2020-03-25 || 0" \
    -d "arbejder_tekst1"="consequuntur" \
    -d "arbejder_tekst2"="consequuntur" \
    -d "arbejder_tekst3"="consequuntur" \
    -d "arbejder_tekst4"="consequuntur" \
    -d "arbejder_tekst5"="consequuntur" \
    -d "arbejder_overenskomsttekst"="consequuntur" \
    -d "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id"="30" \
    -d "opgoerelsesperiodemedarbejder_valg"="4" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/draft",
    "method": "POST",
    "data": {
        "arbejder_nr": 12731,
        "arbejder_profil": "consequuntur",
        "arbejder_fornavn": "consequuntur",
        "arbejder_efternavn": "consequuntur",
        "arbejder_adresse1": "consequuntur",
        "arbejder_adresse2": "consequuntur",
        "arbejder_postnr": 30,
        "arbejder_by": "consequuntur",
        "arbejder_cprnr": "consequuntur",
        "arbejder_ansatdato": "2020-03-25",
        "arbejder_rejstdato": "2020-03-25 || 0",
        "arbejder_afdeling": 30,
        "arbejder_skattefrd1dag": 30,
        "arbejder_skattefrdperioden": 30,
        "arbejder_traekprocent": 30,
        "arbejder_restfrikort": 30,
        "arbejder_bankregnr": 30,
        "arbejder_bankkontonr": "consequuntur",
        "arbejder_atpkode": "0",
        "arbejder_feriekode": 2,
        "arbejder_shkode": 2,
        "arbejder_ampension": 30,
        "arbejder_amstartdato": "2020-03-25 || 0",
        "arbejder_ansaettelsestype": 2,
        "arbejder_ansaettelsevilkaer": 2,
        "arbejder_jobstatus": 2,
        "arbejder_afloenningsform": "consequuntur",
        "arbejder_loen": "0",
        "arbejder_landekode": "consequuntur",
        "arbejder_andetarbejdssted": "consequuntur",
        "arbejder_personalegruppe": "consequuntur",
        "arbejder_email": "consequuntur",
        "arbejder_dabarsel": 1,
        "arbejder_frivilligtraekprocent": 2,
        "arbejder_beskaeftigelseskode": 30,
        "arbejder_produktionsenhedsnr": "consequuntur",
        "arbejder_groenlandskkommune": 30,
        "arbejder_skattekort": "H",
        "arbejder_dalouddannelsesbidrag": 30,
        "arbejder_udlaertdato": "2020-03-25 || 0",
        "arbejder_arbejdsfunktion2": 30,
        "arbejder_sundhedsordning": 30,
        "arbejder_mokode": 30,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "J",
        "arbejder_mailkode": "consequuntur",
        "arbejder_fhkode": "consequuntur",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 30,
        "arbejder_samarbuddannelsesfond": 30,
        "arbejder_ansaettelsesforhold": "consequuntur",
        "arbejder_anciennitetsdato": "2020-03-25 || 0",
        "arbejder_tekst1": "consequuntur",
        "arbejder_tekst2": "consequuntur",
        "arbejder_tekst3": "consequuntur",
        "arbejder_tekst4": "consequuntur",
        "arbejder_tekst5": "consequuntur",
        "arbejder_overenskomsttekst": "consequuntur",
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 30,
        "opgoerelsesperiodemedarbejder_valg": 4
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

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

Parameters

Parameter Type Status Description
arbejder_nr integer required Between: 0 and 99998
arbejder_profil string optional Maximum: 8 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fornavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_efternavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse1 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse2 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_postnr integer optional Must have a length between 1 and 4
arbejder_by string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_cprnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_ansatdato date optional Date format: Y-m-d
arbejder_rejstdato date optional Date format: Y-m-d or 0
arbejder_afdeling integer optional Must have a length between 1 and 5
arbejder_skattefrd1dag integer optional Must have a length between 1 and 5
arbejder_skattefrdperioden integer optional Must have a length between 1 and 5
arbejder_traekprocent integer optional Must have a length between 1 and 3
arbejder_restfrikort integer optional Must have a length between 1 and 7
arbejder_bankregnr integer optional Must have a length between 1 and 4
arbejder_bankkontonr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_atpkode integer optional 0, 1, 2, 4, 5 or 6
arbejder_feriekode integer optional Must have an exact length of 1
arbejder_shkode integer optional Must have an exact length of 1
arbejder_ampension integer optional Must have a length between 1 and 4
arbejder_amstartdato date optional Date format: Y-m-d or 0
arbejder_ansaettelsestype integer optional Must have an exact length of 1
arbejder_ansaettelsevilkaer integer optional Must have an exact length of 1
arbejder_jobstatus integer optional Must have an exact length of 1
arbejder_afloenningsform string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_loen integer optional Must have an exact length of 1 0 or 1
arbejder_landekode string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_andetarbejdssted string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_personalegruppe string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_email string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_dabarsel integer optional Between: 0 and 9
arbejder_frivilligtraekprocent integer optional Between: 0 and 20
arbejder_beskaeftigelseskode integer optional Must have a length between 1 and 2
arbejder_produktionsenhedsnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_groenlandskkommune integer optional Must have a length between 1 and 3
arbejder_skattekort string optional H, B, M, h, b or m
arbejder_dalouddannelsesbidrag integer optional Must have a length between 1 and 2
arbejder_udlaertdato date optional Date format: Y-m-d or 0
arbejder_arbejdsfunktion2 integer optional Must have a length between 1 and 6
arbejder_sundhedsordning integer optional Must have a length between 1 and 2
arbejder_mokode integer optional Must have a length between 1 and 5
arbejder_eboks string optional Maximum: 1 J, N, M, P, j, n, m or p
arbejder_loesarbejder string optional Maximum: 1 J, N, j or n
arbejder_mailkode string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fhkode string optional Maximum: 3 Can only contain A-Å 0-9
arbejder_tilladnegativloen integer optional Between: 0 and 1
arbejder_kompetencefond integer optional Must have a length between 1 and 5
arbejder_samarbuddannelsesfond integer optional Must have a length between 1 and 5
arbejder_ansaettelsesforhold string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_anciennitetsdato date optional Date format: Y-m-d or 0
arbejder_tekst1 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst2 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst3 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst4 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst5 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_overenskomsttekst string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id integer optional Valid opgoerelsesperiodetype opgoerelsesperiodetype_id
opgoerelsesperiodemedarbejder_valg integer optional Minimum: 1 Maximum: 31

Create employee, text

Method for handling bulk creation of employees from a text (field)

Requirements

Some important business rules

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employee/bulk/field" \
-H "Accept: application/json" \
    -d "medarbejdere"="dignissimos" \
    -d "arbejder_kladde"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/bulk/field",
    "method": "POST",
    "data": {
        "medarbejdere": "dignissimos",
        "arbejder_kladde": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
medarbejdere string required
arbejder_kladde boolean optional

Create employee, file

Method for handling bulk creation of employees from a file

Requirements

Some important business rules

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employee/bulk/file" \
-H "Accept: application/json" \
    -d "medarbejderFil"="aut" \
    -d "arbejder_kladde"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/bulk/file",
    "method": "POST",
    "data": {
        "medarbejderFil": "aut",
        "arbejder_kladde": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
medarbejderFil file optional Must be a file upload Allowed mime types: text/csv, text/plain, application/csv, application/x-csv, text/comma-separated-values, text/x-comma-separated-values or text/tab-separated-values
arbejder_kladde boolean optional

Update employee

Requirements

Some important business rules

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}" \
-H "Accept: application/json" \
    -d "arbejder_arbejdertype"="1" \
    -d "arbejder_profil"="quaerat" \
    -d "arbejder_fornavn"="quaerat" \
    -d "arbejder_efternavn"="quaerat" \
    -d "arbejder_adresse1"="quaerat" \
    -d "arbejder_adresse2"="quaerat" \
    -d "arbejder_postnr"="66" \
    -d "arbejder_by"="quaerat" \
    -d "arbejder_cprnr"="quaerat" \
    -d "arbejder_ansatdato"="2020-03-25" \
    -d "arbejder_rejstdato"="2020-03-25 || 0" \
    -d "arbejder_afdeling"="66" \
    -d "arbejder_skattefrd1dag"="66" \
    -d "arbejder_skattefrdperioden"="66" \
    -d "arbejder_traekprocent"="66" \
    -d "arbejder_restfrikort"="66" \
    -d "arbejder_bankregnr"="66" \
    -d "arbejder_bankkontonr"="quaerat" \
    -d "arbejder_atpkode"="1" \
    -d "arbejder_feriekode"="3" \
    -d "arbejder_shkode"="3" \
    -d "arbejder_ampension"="66" \
    -d "arbejder_amstartdato"="2020-03-25 || 0" \
    -d "arbejder_ansaettelsestype"="3" \
    -d "arbejder_ansaettelsevilkaer"="3" \
    -d "arbejder_jobstatus"="3" \
    -d "arbejder_afloenningsform"="quaerat" \
    -d "arbejder_loen"="0" \
    -d "arbejder_landekode"="quaerat" \
    -d "arbejder_andetarbejdssted"="quaerat" \
    -d "arbejder_personalegruppe"="quaerat" \
    -d "arbejder_email"="quaerat" \
    -d "arbejder_dabarsel"="2" \
    -d "arbejder_frivilligtraekprocent"="5" \
    -d "arbejder_beskaeftigelseskode"="66" \
    -d "arbejder_produktionsenhedsnr"="quaerat" \
    -d "arbejder_groenlandskkommune"="66" \
    -d "arbejder_skattekort"="B" \
    -d "arbejder_dalouddannelsesbidrag"="66" \
    -d "arbejder_udlaertdato"="2020-03-25 || 0" \
    -d "arbejder_arbejdsfunktion2"="66" \
    -d "arbejder_sundhedsordning"="66" \
    -d "arbejder_mokode"="66" \
    -d "arbejder_eboks"="M" \
    -d "arbejder_loesarbejder"="N" \
    -d "arbejder_mailkode"="quaerat" \
    -d "arbejder_fhkode"="quaerat" \
    -d "arbejder_tilladnegativloen"="0" \
    -d "arbejder_kompetencefond"="66" \
    -d "arbejder_samarbuddannelsesfond"="66" \
    -d "arbejder_ansaettelsesforhold"="quaerat" \
    -d "arbejder_anciennitetsdato"="2020-03-25 || 0" \
    -d "arbejder_tekst1"="quaerat" \
    -d "arbejder_tekst2"="quaerat" \
    -d "arbejder_tekst3"="quaerat" \
    -d "arbejder_tekst4"="quaerat" \
    -d "arbejder_tekst5"="quaerat" \
    -d "arbejder_overenskomsttekst"="quaerat" \
    -d "arbejder_bemaerkning1"="quaerat" \
    -d "arbejder_bemaerkning2"="quaerat" \
    -d "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id"="66" \
    -d "opgoerelsesperiodemedarbejder_valg"="8" \
    -d "opgoerelsesperiodebestilt_fra_dato"="2020-03-25 || 0" \
    -d "opgoerelsesperiodebestilt_til_dato"="2020-03-25 || 0" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}",
    "method": "PATCH",
    "data": {
        "arbejder_arbejdertype": 1,
        "arbejder_profil": "quaerat",
        "arbejder_fornavn": "quaerat",
        "arbejder_efternavn": "quaerat",
        "arbejder_adresse1": "quaerat",
        "arbejder_adresse2": "quaerat",
        "arbejder_postnr": 66,
        "arbejder_by": "quaerat",
        "arbejder_cprnr": "quaerat",
        "arbejder_ansatdato": "2020-03-25",
        "arbejder_rejstdato": "2020-03-25 || 0",
        "arbejder_afdeling": 66,
        "arbejder_skattefrd1dag": 66,
        "arbejder_skattefrdperioden": 66,
        "arbejder_traekprocent": 66,
        "arbejder_restfrikort": 66,
        "arbejder_bankregnr": 66,
        "arbejder_bankkontonr": "quaerat",
        "arbejder_atpkode": "1",
        "arbejder_feriekode": 3,
        "arbejder_shkode": 3,
        "arbejder_ampension": 66,
        "arbejder_amstartdato": "2020-03-25 || 0",
        "arbejder_ansaettelsestype": 3,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 3,
        "arbejder_afloenningsform": "quaerat",
        "arbejder_loen": "0",
        "arbejder_landekode": "quaerat",
        "arbejder_andetarbejdssted": "quaerat",
        "arbejder_personalegruppe": "quaerat",
        "arbejder_email": "quaerat",
        "arbejder_dabarsel": 2,
        "arbejder_frivilligtraekprocent": 5,
        "arbejder_beskaeftigelseskode": 66,
        "arbejder_produktionsenhedsnr": "quaerat",
        "arbejder_groenlandskkommune": 66,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 66,
        "arbejder_udlaertdato": "2020-03-25 || 0",
        "arbejder_arbejdsfunktion2": 66,
        "arbejder_sundhedsordning": 66,
        "arbejder_mokode": 66,
        "arbejder_eboks": "M",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "quaerat",
        "arbejder_fhkode": "quaerat",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 66,
        "arbejder_samarbuddannelsesfond": 66,
        "arbejder_ansaettelsesforhold": "quaerat",
        "arbejder_anciennitetsdato": "2020-03-25 || 0",
        "arbejder_tekst1": "quaerat",
        "arbejder_tekst2": "quaerat",
        "arbejder_tekst3": "quaerat",
        "arbejder_tekst4": "quaerat",
        "arbejder_tekst5": "quaerat",
        "arbejder_overenskomsttekst": "quaerat",
        "arbejder_bemaerkning1": "quaerat",
        "arbejder_bemaerkning2": "quaerat",
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 66,
        "opgoerelsesperiodemedarbejder_valg": 8,
        "opgoerelsesperiodebestilt_fra_dato": "2020-03-25 || 0",
        "opgoerelsesperiodebestilt_til_dato": "2020-03-25 || 0"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
arbejder_arbejdertype integer optional Between: 0 and 4
arbejder_profil string optional Maximum: 8 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fornavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_efternavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse1 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse2 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_postnr integer optional Must have a length between 1 and 4
arbejder_by string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_cprnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_ansatdato date optional Date format: Y-m-d
arbejder_rejstdato date optional Date format: Y-m-d or 0
arbejder_afdeling integer optional Must have a length between 1 and 5
arbejder_skattefrd1dag integer optional Must have a length between 1 and 5
arbejder_skattefrdperioden integer optional Must have a length between 1 and 5
arbejder_traekprocent integer optional Must have a length between 1 and 3
arbejder_restfrikort integer optional Must have a length between 1 and 7
arbejder_bankregnr numeric optional Must have a length between 1 and 4
arbejder_bankkontonr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_atpkode integer optional 0, 1, 2, 4, 5 or 6
arbejder_feriekode integer optional Must have an exact length of 1
arbejder_shkode integer optional Must have an exact length of 1
arbejder_ampension integer optional Must have a length between 1 and 4
arbejder_amstartdato date optional Date format: Y-m-d or 0
arbejder_ansaettelsestype integer optional Must have an exact length of 1
arbejder_ansaettelsevilkaer integer optional Must have an exact length of 1
arbejder_jobstatus integer optional Must have an exact length of 1
arbejder_afloenningsform string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_loen integer optional Must have an exact length of 1 0 or 1
arbejder_landekode string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_andetarbejdssted string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_personalegruppe string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_email string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_dabarsel integer optional Between: 0 and 9
arbejder_frivilligtraekprocent integer optional Between: 0 and 20
arbejder_beskaeftigelseskode integer optional Must have a length between 1 and 2
arbejder_produktionsenhedsnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_groenlandskkommune integer optional Must have a length between 1 and 3
arbejder_skattekort string optional H, B, M, h, b or m
arbejder_dalouddannelsesbidrag integer optional Must have a length between 1 and 2
arbejder_udlaertdato date optional Date format: Y-m-d or 0
arbejder_arbejdsfunktion2 integer optional Must have a length between 1 and 6
arbejder_sundhedsordning integer optional Must have a length between 1 and 2
arbejder_mokode integer optional Must have a length between 1 and 5
arbejder_eboks string optional Maximum: 1 J, N, M, P, j, n, m or p
arbejder_loesarbejder string optional Maximum: 1 J, N, j or n
arbejder_mailkode string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fhkode string optional Maximum: 3 Can only contain A-Å 0-9
arbejder_tilladnegativloen integer optional Between: 0 and 1
arbejder_kompetencefond integer optional Must have a length between 1 and 5
arbejder_samarbuddannelsesfond integer optional Must have a length between 1 and 5
arbejder_ansaettelsesforhold string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_anciennitetsdato date optional Date format: Y-m-d or 0
arbejder_tekst1 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst2 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst3 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst4 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst5 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_overenskomsttekst string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_bemaerkning1 string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_bemaerkning2 string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id integer optional Valid opgoerelsesperiodetype opgoerelsesperiodetype_id
opgoerelsesperiodemedarbejder_valg integer optional Minimum: 1 Maximum: 31
opgoerelsesperiodebestilt_fra_dato date optional Date format: Y-m-d or 0
opgoerelsesperiodebestilt_til_dato date optional Date format: Y-m-d or 0

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.

Requirements

Some important business rules

Example request:

curl -X PUT "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}" \
-H "Accept: application/json" \
    -d "arbejder_arbejdertype"="1" \
    -d "arbejder_profil"="minima" \
    -d "arbejder_fornavn"="minima" \
    -d "arbejder_efternavn"="minima" \
    -d "arbejder_adresse1"="minima" \
    -d "arbejder_adresse2"="minima" \
    -d "arbejder_postnr"="493" \
    -d "arbejder_by"="minima" \
    -d "arbejder_cprnr"="minima" \
    -d "arbejder_ansatdato"="2020-03-25" \
    -d "arbejder_rejstdato"="2020-03-25 || 0" \
    -d "arbejder_afdeling"="493" \
    -d "arbejder_skattefrd1dag"="493" \
    -d "arbejder_skattefrdperioden"="493" \
    -d "arbejder_traekprocent"="493" \
    -d "arbejder_restfrikort"="493" \
    -d "arbejder_bankregnr"="493" \
    -d "arbejder_bankkontonr"="minima" \
    -d "arbejder_atpkode"="1" \
    -d "arbejder_feriekode"="3" \
    -d "arbejder_shkode"="3" \
    -d "arbejder_ampension"="493" \
    -d "arbejder_amstartdato"="2020-03-25 || 0" \
    -d "arbejder_ansaettelsestype"="3" \
    -d "arbejder_ansaettelsevilkaer"="3" \
    -d "arbejder_jobstatus"="3" \
    -d "arbejder_afloenningsform"="minima" \
    -d "arbejder_loen"="0" \
    -d "arbejder_landekode"="minima" \
    -d "arbejder_andetarbejdssted"="minima" \
    -d "arbejder_personalegruppe"="minima" \
    -d "arbejder_email"="minima" \
    -d "arbejder_dabarsel"="2" \
    -d "arbejder_frivilligtraekprocent"="5" \
    -d "arbejder_beskaeftigelseskode"="493" \
    -d "arbejder_produktionsenhedsnr"="minima" \
    -d "arbejder_groenlandskkommune"="493" \
    -d "arbejder_skattekort"="B" \
    -d "arbejder_dalouddannelsesbidrag"="493" \
    -d "arbejder_udlaertdato"="2020-03-25 || 0" \
    -d "arbejder_arbejdsfunktion2"="493" \
    -d "arbejder_sundhedsordning"="493" \
    -d "arbejder_mokode"="493" \
    -d "arbejder_eboks"="M" \
    -d "arbejder_loesarbejder"="N" \
    -d "arbejder_mailkode"="minima" \
    -d "arbejder_fhkode"="minima" \
    -d "arbejder_tilladnegativloen"="0" \
    -d "arbejder_kompetencefond"="493" \
    -d "arbejder_samarbuddannelsesfond"="493" \
    -d "arbejder_ansaettelsesforhold"="minima" \
    -d "arbejder_anciennitetsdato"="2020-03-25 || 0" \
    -d "arbejder_tekst1"="minima" \
    -d "arbejder_tekst2"="minima" \
    -d "arbejder_tekst3"="minima" \
    -d "arbejder_tekst4"="minima" \
    -d "arbejder_tekst5"="minima" \
    -d "arbejder_overenskomsttekst"="minima" \
    -d "arbejder_bemaerkning1"="minima" \
    -d "arbejder_bemaerkning2"="minima" \
    -d "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id"="493" \
    -d "opgoerelsesperiodemedarbejder_valg"="8" \
    -d "opgoerelsesperiodebestilt_fra_dato"="2020-03-25 || 0" \
    -d "opgoerelsesperiodebestilt_til_dato"="2020-03-25 || 0" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}",
    "method": "PUT",
    "data": {
        "arbejder_arbejdertype": 1,
        "arbejder_profil": "minima",
        "arbejder_fornavn": "minima",
        "arbejder_efternavn": "minima",
        "arbejder_adresse1": "minima",
        "arbejder_adresse2": "minima",
        "arbejder_postnr": 493,
        "arbejder_by": "minima",
        "arbejder_cprnr": "minima",
        "arbejder_ansatdato": "2020-03-25",
        "arbejder_rejstdato": "2020-03-25 || 0",
        "arbejder_afdeling": 493,
        "arbejder_skattefrd1dag": 493,
        "arbejder_skattefrdperioden": 493,
        "arbejder_traekprocent": 493,
        "arbejder_restfrikort": 493,
        "arbejder_bankregnr": 493,
        "arbejder_bankkontonr": "minima",
        "arbejder_atpkode": "1",
        "arbejder_feriekode": 3,
        "arbejder_shkode": 3,
        "arbejder_ampension": 493,
        "arbejder_amstartdato": "2020-03-25 || 0",
        "arbejder_ansaettelsestype": 3,
        "arbejder_ansaettelsevilkaer": 3,
        "arbejder_jobstatus": 3,
        "arbejder_afloenningsform": "minima",
        "arbejder_loen": "0",
        "arbejder_landekode": "minima",
        "arbejder_andetarbejdssted": "minima",
        "arbejder_personalegruppe": "minima",
        "arbejder_email": "minima",
        "arbejder_dabarsel": 2,
        "arbejder_frivilligtraekprocent": 5,
        "arbejder_beskaeftigelseskode": 493,
        "arbejder_produktionsenhedsnr": "minima",
        "arbejder_groenlandskkommune": 493,
        "arbejder_skattekort": "B",
        "arbejder_dalouddannelsesbidrag": 493,
        "arbejder_udlaertdato": "2020-03-25 || 0",
        "arbejder_arbejdsfunktion2": 493,
        "arbejder_sundhedsordning": 493,
        "arbejder_mokode": 493,
        "arbejder_eboks": "M",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "minima",
        "arbejder_fhkode": "minima",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 493,
        "arbejder_samarbuddannelsesfond": 493,
        "arbejder_ansaettelsesforhold": "minima",
        "arbejder_anciennitetsdato": "2020-03-25 || 0",
        "arbejder_tekst1": "minima",
        "arbejder_tekst2": "minima",
        "arbejder_tekst3": "minima",
        "arbejder_tekst4": "minima",
        "arbejder_tekst5": "minima",
        "arbejder_overenskomsttekst": "minima",
        "arbejder_bemaerkning1": "minima",
        "arbejder_bemaerkning2": "minima",
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 493,
        "opgoerelsesperiodemedarbejder_valg": 8,
        "opgoerelsesperiodebestilt_fra_dato": "2020-03-25 || 0",
        "opgoerelsesperiodebestilt_til_dato": "2020-03-25 || 0"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
arbejder_arbejdertype integer optional Between: 0 and 4
arbejder_profil string optional Maximum: 8 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fornavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_efternavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse1 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse2 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_postnr integer optional Must have a length between 1 and 4
arbejder_by string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_cprnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_ansatdato date optional Date format: Y-m-d
arbejder_rejstdato date optional Date format: Y-m-d or 0
arbejder_afdeling integer optional Must have a length between 1 and 5
arbejder_skattefrd1dag integer optional Must have a length between 1 and 5
arbejder_skattefrdperioden integer optional Must have a length between 1 and 5
arbejder_traekprocent integer optional Must have a length between 1 and 3
arbejder_restfrikort integer optional Must have a length between 1 and 7
arbejder_bankregnr numeric optional Must have a length between 1 and 4
arbejder_bankkontonr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_atpkode integer optional 0, 1, 2, 4, 5 or 6
arbejder_feriekode integer optional Must have an exact length of 1
arbejder_shkode integer optional Must have an exact length of 1
arbejder_ampension integer optional Must have a length between 1 and 4
arbejder_amstartdato date optional Date format: Y-m-d or 0
arbejder_ansaettelsestype integer optional Must have an exact length of 1
arbejder_ansaettelsevilkaer integer optional Must have an exact length of 1
arbejder_jobstatus integer optional Must have an exact length of 1
arbejder_afloenningsform string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_loen integer optional Must have an exact length of 1 0 or 1
arbejder_landekode string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_andetarbejdssted string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_personalegruppe string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_email string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_dabarsel integer optional Between: 0 and 9
arbejder_frivilligtraekprocent integer optional Between: 0 and 20
arbejder_beskaeftigelseskode integer optional Must have a length between 1 and 2
arbejder_produktionsenhedsnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_groenlandskkommune integer optional Must have a length between 1 and 3
arbejder_skattekort string optional H, B, M, h, b or m
arbejder_dalouddannelsesbidrag integer optional Must have a length between 1 and 2
arbejder_udlaertdato date optional Date format: Y-m-d or 0
arbejder_arbejdsfunktion2 integer optional Must have a length between 1 and 6
arbejder_sundhedsordning integer optional Must have a length between 1 and 2
arbejder_mokode integer optional Must have a length between 1 and 5
arbejder_eboks string optional Maximum: 1 J, N, M, P, j, n, m or p
arbejder_loesarbejder string optional Maximum: 1 J, N, j or n
arbejder_mailkode string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fhkode string optional Maximum: 3 Can only contain A-Å 0-9
arbejder_tilladnegativloen integer optional Between: 0 and 1
arbejder_kompetencefond integer optional Must have a length between 1 and 5
arbejder_samarbuddannelsesfond integer optional Must have a length between 1 and 5
arbejder_ansaettelsesforhold string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_anciennitetsdato date optional Date format: Y-m-d or 0
arbejder_tekst1 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst2 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst3 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst4 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst5 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_overenskomsttekst string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_bemaerkning1 string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_bemaerkning2 string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id integer optional Valid opgoerelsesperiodetype opgoerelsesperiodetype_id
opgoerelsesperiodemedarbejder_valg integer optional Minimum: 1 Maximum: 31
opgoerelsesperiodebestilt_fra_dato date optional Date format: Y-m-d or 0
opgoerelsesperiodebestilt_til_dato date optional Date format: Y-m-d or 0

Update employee, draft

Update draft of employee

Requirements

Some important business rules

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/draft" \
-H "Accept: application/json" \
    -d "arbejder_profil"="sequi" \
    -d "arbejder_fornavn"="sequi" \
    -d "arbejder_efternavn"="sequi" \
    -d "arbejder_adresse1"="sequi" \
    -d "arbejder_adresse2"="sequi" \
    -d "arbejder_postnr"="48" \
    -d "arbejder_by"="sequi" \
    -d "arbejder_cprnr"="sequi" \
    -d "arbejder_ansatdato"="2020-03-25" \
    -d "arbejder_rejstdato"="2020-03-25 || 0" \
    -d "arbejder_afdeling"="48" \
    -d "arbejder_skattefrd1dag"="48" \
    -d "arbejder_skattefrdperioden"="48" \
    -d "arbejder_traekprocent"="48" \
    -d "arbejder_restfrikort"="48" \
    -d "arbejder_bankregnr"="48" \
    -d "arbejder_bankkontonr"="sequi" \
    -d "arbejder_atpkode"="0" \
    -d "arbejder_feriekode"="2" \
    -d "arbejder_shkode"="2" \
    -d "arbejder_ampension"="48" \
    -d "arbejder_amstartdato"="2020-03-25 || 0" \
    -d "arbejder_ansaettelsestype"="2" \
    -d "arbejder_ansaettelsevilkaer"="2" \
    -d "arbejder_jobstatus"="2" \
    -d "arbejder_afloenningsform"="sequi" \
    -d "arbejder_loen"="0" \
    -d "arbejder_landekode"="sequi" \
    -d "arbejder_andetarbejdssted"="sequi" \
    -d "arbejder_personalegruppe"="sequi" \
    -d "arbejder_email"="sequi" \
    -d "arbejder_dabarsel"="1" \
    -d "arbejder_frivilligtraekprocent"="3" \
    -d "arbejder_beskaeftigelseskode"="48" \
    -d "arbejder_produktionsenhedsnr"="sequi" \
    -d "arbejder_groenlandskkommune"="48" \
    -d "arbejder_skattekort"="H" \
    -d "arbejder_dalouddannelsesbidrag"="48" \
    -d "arbejder_udlaertdato"="2020-03-25 || 0" \
    -d "arbejder_arbejdsfunktion2"="48" \
    -d "arbejder_sundhedsordning"="48" \
    -d "arbejder_mokode"="48" \
    -d "arbejder_eboks"="N" \
    -d "arbejder_loesarbejder"="J" \
    -d "arbejder_mailkode"="sequi" \
    -d "arbejder_fhkode"="sequi" \
    -d "arbejder_tilladnegativloen"="0" \
    -d "arbejder_kompetencefond"="48" \
    -d "arbejder_samarbuddannelsesfond"="48" \
    -d "arbejder_ansaettelsesforhold"="sequi" \
    -d "arbejder_anciennitetsdato"="2020-03-25 || 0" \
    -d "arbejder_tekst1"="sequi" \
    -d "arbejder_tekst2"="sequi" \
    -d "arbejder_tekst3"="sequi" \
    -d "arbejder_tekst4"="sequi" \
    -d "arbejder_tekst5"="sequi" \
    -d "arbejder_overenskomsttekst"="sequi" \
    -d "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id"="48" \
    -d "opgoerelsesperiodemedarbejder_valg"="4" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/draft",
    "method": "PATCH",
    "data": {
        "arbejder_profil": "sequi",
        "arbejder_fornavn": "sequi",
        "arbejder_efternavn": "sequi",
        "arbejder_adresse1": "sequi",
        "arbejder_adresse2": "sequi",
        "arbejder_postnr": 48,
        "arbejder_by": "sequi",
        "arbejder_cprnr": "sequi",
        "arbejder_ansatdato": "2020-03-25",
        "arbejder_rejstdato": "2020-03-25 || 0",
        "arbejder_afdeling": 48,
        "arbejder_skattefrd1dag": 48,
        "arbejder_skattefrdperioden": 48,
        "arbejder_traekprocent": 48,
        "arbejder_restfrikort": 48,
        "arbejder_bankregnr": 48,
        "arbejder_bankkontonr": "sequi",
        "arbejder_atpkode": "0",
        "arbejder_feriekode": 2,
        "arbejder_shkode": 2,
        "arbejder_ampension": 48,
        "arbejder_amstartdato": "2020-03-25 || 0",
        "arbejder_ansaettelsestype": 2,
        "arbejder_ansaettelsevilkaer": 2,
        "arbejder_jobstatus": 2,
        "arbejder_afloenningsform": "sequi",
        "arbejder_loen": "0",
        "arbejder_landekode": "sequi",
        "arbejder_andetarbejdssted": "sequi",
        "arbejder_personalegruppe": "sequi",
        "arbejder_email": "sequi",
        "arbejder_dabarsel": 1,
        "arbejder_frivilligtraekprocent": 3,
        "arbejder_beskaeftigelseskode": 48,
        "arbejder_produktionsenhedsnr": "sequi",
        "arbejder_groenlandskkommune": 48,
        "arbejder_skattekort": "H",
        "arbejder_dalouddannelsesbidrag": 48,
        "arbejder_udlaertdato": "2020-03-25 || 0",
        "arbejder_arbejdsfunktion2": 48,
        "arbejder_sundhedsordning": 48,
        "arbejder_mokode": 48,
        "arbejder_eboks": "N",
        "arbejder_loesarbejder": "J",
        "arbejder_mailkode": "sequi",
        "arbejder_fhkode": "sequi",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 48,
        "arbejder_samarbuddannelsesfond": 48,
        "arbejder_ansaettelsesforhold": "sequi",
        "arbejder_anciennitetsdato": "2020-03-25 || 0",
        "arbejder_tekst1": "sequi",
        "arbejder_tekst2": "sequi",
        "arbejder_tekst3": "sequi",
        "arbejder_tekst4": "sequi",
        "arbejder_tekst5": "sequi",
        "arbejder_overenskomsttekst": "sequi",
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 48,
        "opgoerelsesperiodemedarbejder_valg": 4
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
arbejder_profil string optional Maximum: 8 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fornavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_efternavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse1 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse2 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_postnr integer optional Must have a length between 1 and 4
arbejder_by string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_cprnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_ansatdato date optional Date format: Y-m-d
arbejder_rejstdato date optional Date format: Y-m-d or 0
arbejder_afdeling integer optional Must have a length between 1 and 5
arbejder_skattefrd1dag integer optional Must have a length between 1 and 5
arbejder_skattefrdperioden integer optional Must have a length between 1 and 5
arbejder_traekprocent integer optional Must have a length between 1 and 3
arbejder_restfrikort integer optional Must have a length between 1 and 7
arbejder_bankregnr integer optional Must have a length between 1 and 4
arbejder_bankkontonr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_atpkode integer optional 0, 1, 2, 4, 5 or 6
arbejder_feriekode integer optional Must have an exact length of 1
arbejder_shkode integer optional Must have an exact length of 1
arbejder_ampension integer optional Must have a length between 1 and 4
arbejder_amstartdato date optional Date format: Y-m-d or 0
arbejder_ansaettelsestype integer optional Must have an exact length of 1
arbejder_ansaettelsevilkaer integer optional Must have an exact length of 1
arbejder_jobstatus integer optional Must have an exact length of 1
arbejder_afloenningsform string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_loen integer optional Must have an exact length of 1 0 or 1
arbejder_landekode string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_andetarbejdssted string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_personalegruppe string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_email string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_dabarsel integer optional Between: 0 and 9
arbejder_frivilligtraekprocent integer optional Between: 0 and 20
arbejder_beskaeftigelseskode integer optional Must have a length between 1 and 2
arbejder_produktionsenhedsnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_groenlandskkommune integer optional Must have a length between 1 and 3
arbejder_skattekort string optional H, B, M, h, b or m
arbejder_dalouddannelsesbidrag integer optional Must have a length between 1 and 2
arbejder_udlaertdato date optional Date format: Y-m-d or 0
arbejder_arbejdsfunktion2 integer optional Must have a length between 1 and 6
arbejder_sundhedsordning integer optional Must have a length between 1 and 2
arbejder_mokode integer optional Must have a length between 1 and 5
arbejder_eboks string optional Maximum: 1 J, N, M, P, j, n, m or p
arbejder_loesarbejder string optional Maximum: 1 J, N, j or n
arbejder_mailkode string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fhkode string optional Maximum: 3 Can only contain A-Å 0-9
arbejder_tilladnegativloen integer optional Between: 0 and 1
arbejder_kompetencefond integer optional Must have a length between 1 and 5
arbejder_samarbuddannelsesfond integer optional Must have a length between 1 and 5
arbejder_ansaettelsesforhold string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_anciennitetsdato date optional Date format: Y-m-d or 0
arbejder_tekst1 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst2 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst3 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst4 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst5 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_overenskomsttekst string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id integer optional Valid opgoerelsesperiodetype opgoerelsesperiodetype_id
opgoerelsesperiodemedarbejder_valg integer optional Minimum: 1 Maximum: 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

Requirements

Some important business rules

Example request:

curl -X PUT "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/draft" \
-H "Accept: application/json" \
    -d "arbejder_profil"="qui" \
    -d "arbejder_fornavn"="qui" \
    -d "arbejder_efternavn"="qui" \
    -d "arbejder_adresse1"="qui" \
    -d "arbejder_adresse2"="qui" \
    -d "arbejder_postnr"="9297" \
    -d "arbejder_by"="qui" \
    -d "arbejder_cprnr"="qui" \
    -d "arbejder_ansatdato"="2020-03-25" \
    -d "arbejder_rejstdato"="2020-03-25 || 0" \
    -d "arbejder_afdeling"="9297" \
    -d "arbejder_skattefrd1dag"="9297" \
    -d "arbejder_skattefrdperioden"="9297" \
    -d "arbejder_traekprocent"="9297" \
    -d "arbejder_restfrikort"="9297" \
    -d "arbejder_bankregnr"="9297" \
    -d "arbejder_bankkontonr"="qui" \
    -d "arbejder_atpkode"="2" \
    -d "arbejder_feriekode"="4" \
    -d "arbejder_shkode"="4" \
    -d "arbejder_ampension"="9297" \
    -d "arbejder_amstartdato"="2020-03-25 || 0" \
    -d "arbejder_ansaettelsestype"="4" \
    -d "arbejder_ansaettelsevilkaer"="4" \
    -d "arbejder_jobstatus"="4" \
    -d "arbejder_afloenningsform"="qui" \
    -d "arbejder_loen"="0" \
    -d "arbejder_landekode"="qui" \
    -d "arbejder_andetarbejdssted"="qui" \
    -d "arbejder_personalegruppe"="qui" \
    -d "arbejder_email"="qui" \
    -d "arbejder_dabarsel"="3" \
    -d "arbejder_frivilligtraekprocent"="8" \
    -d "arbejder_beskaeftigelseskode"="9297" \
    -d "arbejder_produktionsenhedsnr"="qui" \
    -d "arbejder_groenlandskkommune"="9297" \
    -d "arbejder_skattekort"="M" \
    -d "arbejder_dalouddannelsesbidrag"="9297" \
    -d "arbejder_udlaertdato"="2020-03-25 || 0" \
    -d "arbejder_arbejdsfunktion2"="9297" \
    -d "arbejder_sundhedsordning"="9297" \
    -d "arbejder_mokode"="9297" \
    -d "arbejder_eboks"="P" \
    -d "arbejder_loesarbejder"="N" \
    -d "arbejder_mailkode"="qui" \
    -d "arbejder_fhkode"="qui" \
    -d "arbejder_tilladnegativloen"="0" \
    -d "arbejder_kompetencefond"="9297" \
    -d "arbejder_samarbuddannelsesfond"="9297" \
    -d "arbejder_ansaettelsesforhold"="qui" \
    -d "arbejder_anciennitetsdato"="2020-03-25 || 0" \
    -d "arbejder_tekst1"="qui" \
    -d "arbejder_tekst2"="qui" \
    -d "arbejder_tekst3"="qui" \
    -d "arbejder_tekst4"="qui" \
    -d "arbejder_tekst5"="qui" \
    -d "arbejder_overenskomsttekst"="qui" \
    -d "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id"="9297" \
    -d "opgoerelsesperiodemedarbejder_valg"="12" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/draft",
    "method": "PUT",
    "data": {
        "arbejder_profil": "qui",
        "arbejder_fornavn": "qui",
        "arbejder_efternavn": "qui",
        "arbejder_adresse1": "qui",
        "arbejder_adresse2": "qui",
        "arbejder_postnr": 9297,
        "arbejder_by": "qui",
        "arbejder_cprnr": "qui",
        "arbejder_ansatdato": "2020-03-25",
        "arbejder_rejstdato": "2020-03-25 || 0",
        "arbejder_afdeling": 9297,
        "arbejder_skattefrd1dag": 9297,
        "arbejder_skattefrdperioden": 9297,
        "arbejder_traekprocent": 9297,
        "arbejder_restfrikort": 9297,
        "arbejder_bankregnr": 9297,
        "arbejder_bankkontonr": "qui",
        "arbejder_atpkode": "2",
        "arbejder_feriekode": 4,
        "arbejder_shkode": 4,
        "arbejder_ampension": 9297,
        "arbejder_amstartdato": "2020-03-25 || 0",
        "arbejder_ansaettelsestype": 4,
        "arbejder_ansaettelsevilkaer": 4,
        "arbejder_jobstatus": 4,
        "arbejder_afloenningsform": "qui",
        "arbejder_loen": "0",
        "arbejder_landekode": "qui",
        "arbejder_andetarbejdssted": "qui",
        "arbejder_personalegruppe": "qui",
        "arbejder_email": "qui",
        "arbejder_dabarsel": 3,
        "arbejder_frivilligtraekprocent": 8,
        "arbejder_beskaeftigelseskode": 9297,
        "arbejder_produktionsenhedsnr": "qui",
        "arbejder_groenlandskkommune": 9297,
        "arbejder_skattekort": "M",
        "arbejder_dalouddannelsesbidrag": 9297,
        "arbejder_udlaertdato": "2020-03-25 || 0",
        "arbejder_arbejdsfunktion2": 9297,
        "arbejder_sundhedsordning": 9297,
        "arbejder_mokode": 9297,
        "arbejder_eboks": "P",
        "arbejder_loesarbejder": "N",
        "arbejder_mailkode": "qui",
        "arbejder_fhkode": "qui",
        "arbejder_tilladnegativloen": 0,
        "arbejder_kompetencefond": 9297,
        "arbejder_samarbuddannelsesfond": 9297,
        "arbejder_ansaettelsesforhold": "qui",
        "arbejder_anciennitetsdato": "2020-03-25 || 0",
        "arbejder_tekst1": "qui",
        "arbejder_tekst2": "qui",
        "arbejder_tekst3": "qui",
        "arbejder_tekst4": "qui",
        "arbejder_tekst5": "qui",
        "arbejder_overenskomsttekst": "qui",
        "opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id": 9297,
        "opgoerelsesperiodemedarbejder_valg": 12
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
arbejder_profil string optional Maximum: 8 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fornavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_efternavn string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse1 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_adresse2 string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_postnr integer optional Must have a length between 1 and 4
arbejder_by string optional Maximum: 22 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_cprnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_ansatdato date optional Date format: Y-m-d
arbejder_rejstdato date optional Date format: Y-m-d or 0
arbejder_afdeling integer optional Must have a length between 1 and 5
arbejder_skattefrd1dag integer optional Must have a length between 1 and 5
arbejder_skattefrdperioden integer optional Must have a length between 1 and 5
arbejder_traekprocent integer optional Must have a length between 1 and 3
arbejder_restfrikort integer optional Must have a length between 1 and 7
arbejder_bankregnr integer optional Must have a length between 1 and 4
arbejder_bankkontonr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_atpkode integer optional 0, 1, 2, 4, 5 or 6
arbejder_feriekode integer optional Must have an exact length of 1
arbejder_shkode integer optional Must have an exact length of 1
arbejder_ampension integer optional Must have a length between 1 and 4
arbejder_amstartdato date optional Date format: Y-m-d or 0
arbejder_ansaettelsestype integer optional Must have an exact length of 1
arbejder_ansaettelsevilkaer integer optional Must have an exact length of 1
arbejder_jobstatus integer optional Must have an exact length of 1
arbejder_afloenningsform string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_loen integer optional Must have an exact length of 1 0 or 1
arbejder_landekode string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_andetarbejdssted string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_personalegruppe string optional Maximum: 1 Can only contain A-Å 0-9
arbejder_email string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
arbejder_dabarsel integer optional Between: 0 and 9
arbejder_frivilligtraekprocent integer optional Between: 0 and 20
arbejder_beskaeftigelseskode integer optional Must have a length between 1 and 2
arbejder_produktionsenhedsnr string optional Maximum: 10 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_groenlandskkommune integer optional Must have a length between 1 and 3
arbejder_skattekort string optional H, B, M, h, b or m
arbejder_dalouddannelsesbidrag integer optional Must have a length between 1 and 2
arbejder_udlaertdato date optional Date format: Y-m-d or 0
arbejder_arbejdsfunktion2 integer optional Must have a length between 1 and 6
arbejder_sundhedsordning integer optional Must have a length between 1 and 2
arbejder_mokode integer optional Must have a length between 1 and 5
arbejder_eboks string optional Maximum: 1 J, N, M, P, j, n, m or p
arbejder_loesarbejder string optional Maximum: 1 J, N, j or n
arbejder_mailkode string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_fhkode string optional Maximum: 3 Can only contain A-Å 0-9
arbejder_tilladnegativloen integer optional Between: 0 and 1
arbejder_kompetencefond integer optional Must have a length between 1 and 5
arbejder_samarbuddannelsesfond integer optional Must have a length between 1 and 5
arbejder_ansaettelsesforhold string optional Maximum: 2 Can only contain A-Å 0-9
arbejder_anciennitetsdato date optional Date format: Y-m-d or 0
arbejder_tekst1 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst2 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst3 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst4 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_tekst5 string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejder_overenskomsttekst string optional Maximum: 25 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
opgoerelsesperiodemedarbejder_opgoerelsesperiodetype_id integer optional Valid opgoerelsesperiodetype opgoerelsesperiodetype_id
opgoerelsesperiodemedarbejder_valg integer optional Minimum: 1 Maximum: 31

Delete draft employee.

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/draft" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/draft",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

CPR number in use

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

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employee/cprinuse" \
-H "Accept: application/json" \
    -d "arbejder_cprnr"="ut" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/cprinuse",
    "method": "POST",
    "data": {
        "arbejder_cprnr": "ut"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "inUse": false
}

HTTP Request

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

Parameters

Parameter Type Status Description
arbejder_cprnr string required Must have the size of 10

Get department distribution

Get the department distribution for employee

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/departmentdistribution" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/departmentdistribution",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejderafdeling_id": 1,
        "arbejderafdeling_firma_nr": 123,
        "arbejderafdeling_arbejder_nr": 1234,
        "arbejderafdeling_afdeling_nr": 1,
        "arbejderafdeling_procent": 30
    }
]

HTTP Request

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

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

Update Department distribution

Requirements

Expect request to contain an array named departmentdistributionlist. Each entry (if any) has two properties 'arbejderafdeling_afdeling_nr' and 'arbejderafdeling_procent'.

Sum of procentages must be either 0 or 100.

Each individual procentage must be an integer between 0 and 100, both included.

A department can only be listed once and must be related to the company.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/departmentdistribution" \
-H "Accept: application/json" \
    -d "departmentdistributionlist"="dignissimos" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/departmentdistribution",
    "method": "PATCH",
    "data": {
        "departmentdistributionlist": "dignissimos"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
departmentdistributionlist array optional

Get time factor

Used when calculating batch on salary transactions

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/timefactor" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/timefactor",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

HEAD api/company/{companyId}/employee/{employeeId}/timefactor

Employee FH Code (FH koder)

Get FH Code List from mo

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/mocode/{moCodeId}/fhcode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/mocode/{moCodeId}/fhcode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "fhkoder_fhkode": "FH1",
        "fhkoder_ansat": 0,
        "fhkodebeskrivelse_tekst": "TOTALT DIGITALT EFERIEKORT I E-BOKS"
    }
]

HTTP Request

GET api/company/{companyId}/employment/mocode/{moCodeId}/fhcode

HEAD api/company/{companyId}/employment/mocode/{moCodeId}/fhcode

Get FH Code List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/fhcode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/fhcode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "fhkodebeskrivelse_nr": "FH1",
        "fhkodebeskrivelse_tekst": "TOTALT DIGITALT EFERIEKORT I E-BOKS"
    }
]

HTTP Request

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

HEAD api/company/{companyId}/employee/{employeeId}/fhcode

Get single FH Code

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/fhcode/{fhcodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/fhcode/{fhcodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "fhkodebeskrivelse_nr": "FH1",
    "fhkodebeskrivelse_tekst": "TOTALT DIGITALT EFERIEKORT I E-BOKS"
}

HTTP Request

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

HEAD api/company/{companyId}/employee/{employeeId}/fhcode/{fhcodeId}

Employee SH code (Sh kode)

Get SH code list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeeshcode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeeshcode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "shkode_firma": 123,
        "shkode_nr": 1,
        "shkode_tekst": "SH-OPSPARING"
    }
]

HTTP Request

GET api/company/{companyId}/employeeshcode

HEAD api/company/{companyId}/employeeshcode

Get single SH code

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeeshcode/{shcodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeeshcode/{shcodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "shkode_firma": 123,
    "shkode_nr": 1,
    "shkode_tekst": "SH-OPSPARING"
}

HTTP Request

GET api/company/{companyId}/employeeshcode/{shcodeId}

HEAD api/company/{companyId}/employeeshcode/{shcodeId}

Employee type (Arbejder type)

Employee type, list

Get employee type list

Requirements

Employee type contains

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeetype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/employeetype

HEAD api/company/{companyId}/employeetype

Error in transaction, employee list

Get list of employee with error in transactions for employee type

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/employeeswitherrors" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/employeeswitherrors",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejder_nr": 1234,
        "arbejder_fornavn": "Jens",
        "arbejder_efternavn": "Pedersen"
    }
]

HTTP Request

GET api/company/{companyId}/employeetype/{employeeTypeId}/employeeswitherrors

HEAD api/company/{companyId}/employeetype/{employeeTypeId}/employeeswitherrors

Get single employee type

Also known as 'last order'

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

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

HEAD api/company/{companyId}/employeetype/{employeeTypeId}

Get single employee type

Also known as 'last order'

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salary/employeetype/{employeeTypeId}/lastorder" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salary/employeetype/{employeeTypeId}/lastorder",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

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

HEAD api/company/{companyId}/salary/employeetype/{employeeTypeId}/lastorder

Description list

Get description list for company

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeetype/description" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype/description",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejdertypebeskrivelse_nr": 1,
        "arbejdertypebeskrivelse_navn": "14-dages-løn"
    }
]

HTTP Request

GET api/company/{companyId}/employeetype/description

HEAD api/company/{companyId}/employeetype/description

Description

Get single employee type description

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeetype/description/{employeeTypeDescriptionId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype/description/{employeeTypeDescriptionId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "arbejdertypebeskrivelse_nr": 1,
    "arbejdertypebeskrivelse_navn": "14-dages-løn"
}

HTTP Request

GET api/company/{companyId}/employeetype/description/{employeeTypeDescriptionId}

HEAD api/company/{companyId}/employeetype/description/{employeeTypeDescriptionId}

Update notes

Update employee type notes

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/notes" \
-H "Accept: application/json" \
    -d "arbejdertype_bemaerkning1"="unde" \
    -d "arbejdertype_bemaerkning2"="unde" \
    -d "arbejdertype_sletbemaerkning"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/notes",
    "method": "PATCH",
    "data": {
        "arbejdertype_bemaerkning1": "unde",
        "arbejdertype_bemaerkning2": "unde",
        "arbejdertype_sletbemaerkning": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
arbejdertype_bemaerkning1 string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejdertype_bemaerkning2 string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
arbejdertype_sletbemaerkning boolean optional

Reset (klargør)

Resets all salary transactions for employee type

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salary/employeetype/{employeeTypeId}/reset" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salary/employeetype/{employeeTypeId}/reset",
    "method": "POST",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Recalculate

Recalculate estimated salary for all employees in a company

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salary/recalculate" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salary/recalculate",
    "method": "POST",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Employment (Beskæftigelse)

Get AM pension list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/ampension" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/ampension",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "loenart_nr": 8910,
        "loenart_tekst": "PENSION\/BAGERI"
    }
]

HTTP Request

GET api/company/{companyId}/ampension

HEAD api/company/{companyId}/ampension

Get single AM pension

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/ampension/{amPensionId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/ampension/{amPensionId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "loenart_nr": 8910,
    "loenart_tekst": "PENSION\/BAGERI"
}

HTTP Request

GET api/company/{companyId}/ampension/{amPensionId}

HEAD api/company/{companyId}/ampension/{amPensionId}

Get MO code list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/mocode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/mocode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "mokode_nr": 1000,
        "mokode_tekst": "DI"
    }
]

HTTP Request

GET api/company/{companyId}/employment/mocode

HEAD api/company/{companyId}/employment/mocode

Get single MO code

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/mocode/{moCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/mocode/{moCodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "mokode_nr": 1101,
    "mokode_tekst": "Dansk Mode & Testil"
}

HTTP Request

GET api/company/{companyId}/employment/mocode/{moCodeId}

HEAD api/company/{companyId}/employment/mocode/{moCodeId}

Get employment type list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/type" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/type",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "ansaettelsestypekode_nr": 1,
        "ansaettelsestypekode_tekst": "Ikke tidsbegrænset"
    }
]

HTTP Request

GET api/company/{companyId}/employment/type

HEAD api/company/{companyId}/employment/type

Get single employment type

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/type/{employmentTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/type/{employmentTypeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "ansaettelsestypekode_nr": 2,
    "ansaettelsestypekode_tekst": "Tidsbegrænset"
}

HTTP Request

GET api/company/{companyId}/employment/type/{employmentTypeId}

HEAD api/company/{companyId}/employment/type/{employmentTypeId}

Get ATP code list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/atpcode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/atpcode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "atpkode_firma": 123,
        "atpkode_arbejdertype": 2,
        "atpkode_nr": 0,
        "atpkode_tekst": "INGEN ATP"
    }
]

HTTP Request

GET api/company/{companyId}/employeetype/{employeeTypeId}/atpcode

HEAD api/company/{companyId}/employeetype/{employeeTypeId}/atpcode

Get single ATP code

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/atpcode/{atpCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employeetype/{employeeTypeId}/atpcode/{atpCodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "atpkode_firma": 500,
    "atpkode_arbejdertype": 2,
    "atpkode_nr": 1,
    "atpkode_tekst": "PERIODEN TIMER FOR ATP-BEREGNING"
}

HTTP Request

GET api/company/{companyId}/employeetype/{employeeTypeId}/atpcode/{atpCodeId}

HEAD api/company/{companyId}/employeetype/{employeeTypeId}/atpcode/{atpCodeId}

Get terms of employment list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/termsofemployment" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/termsofemployment",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "ansaettelsesvilkaarkode_nr": 1,
        "ansaettelsesvilkaarkode_tekst": "Funktionær"
    }
]

HTTP Request

GET api/company/{companyId}/employment/termsofemployment

HEAD api/company/{companyId}/employment/termsofemployment

Get single terms of employment

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/termsofemployment/{termsOfEmploymentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/termsofemployment/{termsOfEmploymentId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "ansaettelsesvilkaarkode_nr": 2,
    "ansaettelsesvilkaarkode_tekst": "Arbejder, funktionærlignende"
}

HTTP Request

GET api/company/{companyId}/employment/termsofemployment/{termsOfEmploymentId}

HEAD api/company/{companyId}/employment/termsofemployment/{termsOfEmploymentId}

Get employment terms list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/terms" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/terms",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "ansaettelsesforhold_nr": "",
        "ansaettelsesforhold_tekst": "Lønmodtager"
    }
]

HTTP Request

GET api/company/{companyId}/employment/terms

HEAD api/company/{companyId}/employment/terms

Get some employment terms

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/terms/{employmentTermsId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/terms/{employmentTermsId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "ansaettelsesforhold_nr": "62",
    "ansaettelsesforhold_tekst": "Fleksjob"
}

HTTP Request

GET api/company/{companyId}/employment/terms/{employmentTermsId}

HEAD api/company/{companyId}/employment/terms/{employmentTermsId}

Get job status list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/jobstatus" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/jobstatus",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "jobstatuskode_nr": 1,
        "jobstatuskode_tekst": "Elev\/lærling"
    }
]

HTTP Request

GET api/company/{companyId}/employment/jobstatus

HEAD api/company/{companyId}/employment/jobstatus

Get single job status

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/jobstatus/{jobStatusId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/jobstatus/{jobStatusId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "jobstatuskode_nr": 3,
    "jobstatuskode_tekst": "Leder af en gruppe"
}

HTTP Request

GET api/company/{companyId}/employment/jobstatus/{jobStatusId}

HEAD api/company/{companyId}/employment/jobstatus/{jobStatusId}

Get remuneration List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/remuneration" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/remuneration",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "afloenningsformkode_nr": 1,
        "afloenningsformkode_tekst": "Tidløn"
    }
]

HTTP Request

GET api/company/{companyId}/employment/remuneration

HEAD api/company/{companyId}/employment/remuneration

Get single remuneration

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/remuneration/{remunerationId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/remuneration/{remunerationId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "afloenningsformkode_nr": 4,
    "afloenningsformkode_tekst": "Fast løn uden overtidsbetaling"
}

HTTP Request

GET api/company/{companyId}/employment/remuneration/{remunerationId}

HEAD api/company/{companyId}/employment/remuneration/{remunerationId}

Greenlandmunicipality list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/greenlandmunicipality" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/greenlandmunicipality",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "groenlandskkommune_nr": 901,
        "groenlandskkommune_tekst": "Qasigiannguit Kommune"
    }
]

HTTP Request

GET api/company/{companyId}/employment/greenlandmunicipality

HEAD api/company/{companyId}/employment/greenlandmunicipality

Get single Greenlandmunicipality

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/greenlandmunicipality/{greenlandmunicipalityId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/greenlandmunicipality/{greenlandmunicipalityId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "groenlandskkommune_nr": 901,
    "groenlandskkommune_tekst": "Qasigiannguit Kommune"
}

HTTP Request

GET api/company/{companyId}/employment/greenlandmunicipality/{greenlandmunicipalityId}

HEAD api/company/{companyId}/employment/greenlandmunicipality/{greenlandmunicipalityId}

Get vacation code list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/vacationcode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/vacationcode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "feriekode_firma": 123,
        "feriekode_nr": 0,
        "feriekode_tekst": "FERIE MED LØN"
    }
]

HTTP Request

GET api/company/{companyId}/vacationcode

HEAD api/company/{companyId}/vacationcode

Get single vacation code

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/vacationcode/{vacationCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/vacationcode/{vacationCodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "feriekode_firma": 500,
    "feriekode_nr": 1,
    "feriekode_tekst": "FERIEOPSPARING"
}

HTTP Request

GET api/company/{companyId}/vacationcode/{vacationCodeId}

HEAD api/company/{companyId}/vacationcode/{vacationCodeId}

Get Maternity list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/maternity" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/maternity",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "barsel_firma": 123,
        "barsel_nr": 0,
        "barsel_tekst": "INGEN BARSELSORDNING"
    }
]

HTTP Request

GET api/company/{companyId}/maternity

HEAD api/company/{companyId}/maternity

Get single maternity

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/maternity/{maternityId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/maternity/{maternityId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "barsel_firma": 123,
    "barsel_nr": 1,
    "barsel_tekst": "DA-BARSEL"
}

HTTP Request

GET api/company/{companyId}/maternity/{maternityId}

HEAD api/company/{companyId}/maternity/{maternityId}

Get employment code list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/code" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/code",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "beskaeftigelseskode_nr": 0,
        "beskaeftigelseskode_tekst": "Almindelige lønmodtagere"
    }
]

HTTP Request

GET api/company/{companyId}/employment/code

HEAD api/company/{companyId}/employment/code

Get single employment code

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/code/{employmentCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/code/{employmentCodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "beskaeftigelseskode_nr": 0,
    "beskaeftigelseskode_tekst": "Almindelige lønmodtagere"
}

HTTP Request

GET api/company/{companyId}/employment/code/{employmentCodeId}

HEAD api/company/{companyId}/employment/code/{employmentCodeId}

Get DA/LO list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/dalo" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/dalo",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "dalouddannelsesbidrag_nr": 0,
        "dalouddannelsesbidrag_tekst": "INGEN BIDRAG"
    }
]

HTTP Request

GET api/company/{companyId}/employment/dalo

HEAD api/company/{companyId}/employment/dalo

Get single DA/LO

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/dalo/{daloId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/dalo/{daloId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "dalouddannelsesbidrag_nr": 0,
    "dalouddannelsesbidrag_tekst": "INGEN BIDRAG"
}

HTTP Request

GET api/company/{companyId}/employment/dalo/{daloId}

HEAD api/company/{companyId}/employment/dalo/{daloId}

Get competence List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/competence" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/competence",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "kompetencefond_nr": 0,
        "kompetencefond_tekst": "INGEN"
    }
]

HTTP Request

GET api/company/{companyId}/employment/competence

HEAD api/company/{companyId}/employment/competence

Get single competence

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/competence/{competenceId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/competence/{competenceId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "kompetencefond_nr": 10013,
    "kompetencefond_tekst": "OVERENSKOMST FOR SERVICESTATIONER (BOA)"
}

HTTP Request

GET api/company/{companyId}/employment/competence/{competenceId}

HEAD api/company/{companyId}/employment/competence/{competenceId}

Get training List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/training" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/training",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "samarbuddannelsesfond_nr": 0,
        "samarbuddannelsesfond_tekst": "INGEN"
    }
]

HTTP Request

GET api/company/{companyId}/employment/training

HEAD api/company/{companyId}/employment/training

Get single training

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/training/{trainingId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/training/{trainingId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "samarbuddannelsesfond_nr": 10013,
    "samarbuddannelsesfond_tekst": "OVERENSKOMST FOR SERVICESTATIONER (BOA)"
}

HTTP Request

GET api/company/{companyId}/employment/training/{trainingId}

HEAD api/company/{companyId}/employment/training/{trainingId}

Get health care List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/healthcare" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/healthcare",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "sundhedsordning_nr": 0,
        "sundhedsordning_tekst": "NEJ"
    }
]

HTTP Request

GET api/company/{companyId}/employment/healthcare

HEAD api/company/{companyId}/employment/healthcare

Get single health care

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employment/healthcare/{healthCareId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employment/healthcare/{healthCareId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "sundhedsordning_nr": 1,
    "sundhedsordning_tekst": "119 MED PD-PENS. - SAMLET"
}

HTTP Request

GET api/company/{companyId}/employment/healthcare/{healthCareId}

HEAD api/company/{companyId}/employment/healthcare/{healthCareId}

Industry (branche)

Get a list of industries

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/industry" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/industry",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "brance_nr": 0,
        "brance_navn": "DIVERSE \/ STANDARD",
        "brance_haandboglink": ""
    }
]

HTTP Request

GET api/company/{companyId}/industry

HEAD api/company/{companyId}/industry

Get a single industry

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/industry/{industryId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/industry/{industryId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "brance_nr": 0,
    "brance_navn": "DIVERSE \/ STANDARD",
    "brance_haandboglink": ""
}

HTTP Request

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

HEAD api/company/{companyId}/industry/{industryId}

api/company/{companyId}/industry

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/industry" \
-H "Accept: application/json" \
    -d "brance_nr"="92118" \
    -d "brance_navn"="sint" \
    -d "brance_haandboglink"="sint" \
    -d "brance_feriekode"="1" \
    -d "brance_personalegruppe"="1" \
    -d "brance_profil"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/industry",
    "method": "POST",
    "data": {
        "brance_nr": 92118,
        "brance_navn": "sint",
        "brance_haandboglink": "sint",
        "brance_feriekode": "1",
        "brance_personalegruppe": "1",
        "brance_profil": "1"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/industry

Parameters

Parameter Type Status Description
brance_nr integer required
brance_navn string required Maximum: 100 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
brance_haandboglink string optional Maximum: 255
brance_feriekode integer required 0 or 1
brance_personalegruppe integer required 0 or 1
brance_profil integer required 0 or 1

Update a industry

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/industry/{industryId}" \
-H "Accept: application/json" \
    -d "brance_navn"="eveniet" \
    -d "brance_haandboglink"="eveniet" \
    -d "brance_feriekode"="1" \
    -d "brance_personalegruppe"="1" \
    -d "brance_profil"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/industry/{industryId}",
    "method": "PATCH",
    "data": {
        "brance_navn": "eveniet",
        "brance_haandboglink": "eveniet",
        "brance_feriekode": "1",
        "brance_personalegruppe": "1",
        "brance_profil": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/industry/{industryId}

Parameters

Parameter Type Status Description
brance_navn string optional Maximum: 100 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
brance_haandboglink string optional Maximum: 255
brance_feriekode integer optional 0 or 1
brance_personalegruppe integer optional 0 or 1
brance_profil boolean optional

Delete a industry

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/industry/{industryId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/industry/{industryId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/industry/{industryId}

Logon log (Super Admin only)

Locked users

Get a list of user the is locked out

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/logonlog" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/logonlog",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/logonlog

HEAD api/company/{companyId}/logonlog

Reset

Reset the logon log for the giving userId

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/resetlogonlock/{userOrCompanyId}" \
-H "Accept: application/json" \
    -d "ip"="dicta" \
    -d "type"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/resetlogonlock/{userOrCompanyId}",
    "method": "POST",
    "data": {
        "ip": "dicta",
        "type": 1
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/resetlogonlock/{userOrCompanyId}

Parameters

Parameter Type Status Description
ip string required Maximum: 15
type integer required Must have an exact length of 1

Matrix

Display a listing of all the matrices for companyId

[deprecated]

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/matrix" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/matrix",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/matrix

HEAD api/company/{companyId}/matrix

Display a listing of all the matrices

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/matrix/all" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/matrix/all",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/matrix/all

HEAD api/company/{companyId}/matrix/all

Display the specified resource.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/matrix/{matrixFieldId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/matrix/{matrixFieldId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/matrix/{matrixFieldId}

HEAD api/company/{companyId}/matrix/{matrixFieldId}

Message template (Besked skabelon)

Class MessageTemplateController

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/messagetemplate" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/messagetemplate",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/messagetemplate

HEAD api/company/{companyId}/messagetemplate

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/messagetemplate/{messagetemplateId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/messagetemplate/{messagetemplateId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/messagetemplate/{messagetemplateId}

HEAD api/company/{companyId}/messagetemplate/{messagetemplateId}

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/messagetemplate" \
-H "Accept: application/json" \
    -d "message"="in" \
    -d "title"="in" \
    -d "important"="1" \
    -d "all"="1" \
    -d "recipient_branches"="in" \
    -d "recipient_companies"="in" \
    -d "recipient_branches.0"="84609" \
    -d "recipient_companies.0"="84609" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/messagetemplate",
    "method": "POST",
    "data": {
        "message": "in",
        "title": "in",
        "important": "1",
        "all": "1",
        "recipient_branches": "in",
        "recipient_companies": "in",
        "recipient_branches.0": 84609,
        "recipient_companies.0": 84609
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/messagetemplate

Parameters

Parameter Type Status Description
message string required Maximum: 4000
title string required Maximum: 255
important integer required 0 or 1
all integer optional 0 or 1
recipient_branches array optional
recipient_companies array optional
recipient_branches.0 integer optional
recipient_companies.0 integer optional

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/messagetemplate/{messagetemplateId}" \
-H "Accept: application/json" \
    -d "message"="commodi" \
    -d "title"="commodi" \
    -d "important"="0" \
    -d "all"="0" \
    -d "recipient_branches"="commodi" \
    -d "recipient_companies"="commodi" \
    -d "recipient_branches.0"="7388" \
    -d "recipient_companies.0"="7388" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/messagetemplate/{messagetemplateId}",
    "method": "PATCH",
    "data": {
        "message": "commodi",
        "title": "commodi",
        "important": "0",
        "all": "0",
        "recipient_branches": "commodi",
        "recipient_companies": "commodi",
        "recipient_branches.0": 7388,
        "recipient_companies.0": 7388
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/messagetemplate/{messagetemplateId}

Parameters

Parameter Type Status Description
message string optional Maximum: 4000
title string optional Maximum: 255
important integer optional 0 or 1
all integer optional 0 or 1
recipient_branches array optional
recipient_companies array optional
recipient_branches.0 integer optional
recipient_companies.0 integer optional

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/messagetemplate/{messagetemplateId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/messagetemplate/{messagetemplateId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/messagetemplate/{messagetemplateId}

Notice (info)

Get info for proløn branch

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/branch/proloen" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/branch/proloen",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "info_id": 1,
        "info_titel": "Info titel",
        "info_tekst": "Info tekst",
        "info_tildato": "2017-12-12",
        "info_brance": -1
    }
]

HTTP Request

GET api/company/{companyId}/branch/proloen

HEAD api/company/{companyId}/branch/proloen

Get info for branch

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/branch/{infoBranchId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/branch/{infoBranchId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "info_id": 1,
        "info_titel": "Info titel",
        "info_tekst": "Info tekst",
        "info_tildato": "2017-12-12",
        "info_brance": 2
    }
]

HTTP Request

GET api/company/{companyId}/branch/{infoBranchId}

HEAD api/company/{companyId}/branch/{infoBranchId}

Get reminder list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/reminder" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reminder",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "kalender_id": 1,
        "kalender_firma": 123,
        "kalender_dato": "2017-12-26",
        "kalender_aktiv": "J",
        "kalender_tekst": "kalender tekst",
        "kalender_frabs2": "N"
    }
]

HTTP Request

GET api/company/{companyId}/reminder

HEAD api/company/{companyId}/reminder

Get reminder in iCS format. (content type "text/calendar")

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/reminder/{reminderId}/ics" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reminder/{reminderId}/ics",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/reminder/{reminderId}/ics

HEAD api/company/{companyId}/reminder/{reminderId}/ics

Create reminder

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/reminder" \
-H "Accept: application/json" \
    -d "kalender_tekst"="fugit" \
    -d "kalender_dato"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reminder",
    "method": "POST",
    "data": {
        "kalender_tekst": "fugit",
        "kalender_dato": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "kalender_id": 1,
        "kalender_firma": 123,
        "kalender_dato": "2017-12-26",
        "kalender_aktiv": "J",
        "kalender_tekst": "kalender tekst",
        "kalender_frabs2": "N"
    }
]

HTTP Request

POST api/company/{companyId}/reminder

Parameters

Parameter Type Status Description
kalender_tekst string required Maximum: 60 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
kalender_dato date required Date format: Y-m-d

Update reminder

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/reminder/{reminderId}" \
-H "Accept: application/json" \
    -d "kalender_tekst"="quia" \
    -d "kalender_dato"="2020-03-25" \
    -d "kalender_aktiv"="quia" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reminder/{reminderId}",
    "method": "PATCH",
    "data": {
        "kalender_tekst": "quia",
        "kalender_dato": "2020-03-25",
        "kalender_aktiv": "quia"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/reminder/{reminderId}

Parameters

Parameter Type Status Description
kalender_tekst string optional Required if the parameters kalender_dato are not present. Maximum: 60 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
kalender_dato date optional Required if the parameters kalender_tekst are not present. Date format: Y-m-d
kalender_aktiv string optional Maximum: 1

Delete reminder

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/reminder/{reminderId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reminder/{reminderId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/reminder/{reminderId}

Profile

Get profile list

Requirements

Includes salary types

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/profile" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/profile

HEAD api/company/{companyId}/profile

Get single profile

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "companyProfile": null,
    "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": 500,
                "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"
            }
        ]
    }
}

HTTP Request

GET api/company/{companyId}/profile/{profileId}

HEAD api/company/{companyId}/profile/{profileId}

Create profile

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/profile" \
-H "Accept: application/json" \
    -d "firmaprofil_nr"="omnis" \
    -d "firmaprofil_tekst"="omnis" \
    -d "firmaprofil_atpkode"="5" \
    -d "firmaprofil_feriekode"="7" \
    -d "firmaprofil_shkode"="7" \
    -d "firmaprofil_ampension"="9054412" \
    -d "firmaprofil_ansaettelsetype"="9054412" \
    -d "firmaprofil_ansaettelsevilkaar"="9054412" \
    -d "firmaprofil_arbejderfunktion"="9054412" \
    -d "firmaprofil_jobstatus"="9054412" \
    -d "firmaprofil_afloenningsform"="9054412" \
    -d "firmaprofil_dabarsel"="1" \
    -d "firmaprofil_dalouddannelsesbidrag"="9054412" \
    -d "firmaprofil_arbejdsfunktion2"="761479" \
    -d "firmaprofil_arbejdertype"="3" \
    -d "firmaprofil_afdeling"="9054412" \
    -d "firmaprofil_eboks"="omnis" \
    -d "firmaprofil_beskaeftigelseskode"="76" \
    -d "firmaprofil_kompetencefond"="9054412" \
    -d "firmaprofil_samarbuddannelsesfond"="9054412" \
    -d "firmaprofil_produktionsenhedsnr"="omnis" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile",
    "method": "POST",
    "data": {
        "firmaprofil_nr": "omnis",
        "firmaprofil_tekst": "omnis",
        "firmaprofil_atpkode": "5",
        "firmaprofil_feriekode": 7,
        "firmaprofil_shkode": 7,
        "firmaprofil_ampension": 9054412,
        "firmaprofil_ansaettelsetype": 9054412,
        "firmaprofil_ansaettelsevilkaar": 9054412,
        "firmaprofil_arbejderfunktion": 9054412,
        "firmaprofil_jobstatus": 9054412,
        "firmaprofil_afloenningsform": 9054412,
        "firmaprofil_dabarsel": 1,
        "firmaprofil_dalouddannelsesbidrag": 9054412,
        "firmaprofil_arbejdsfunktion2": 761479,
        "firmaprofil_arbejdertype": 3,
        "firmaprofil_afdeling": 9054412,
        "firmaprofil_eboks": "omnis",
        "firmaprofil_beskaeftigelseskode": 76,
        "firmaprofil_kompetencefond": 9054412,
        "firmaprofil_samarbuddannelsesfond": 9054412,
        "firmaprofil_produktionsenhedsnr": "omnis"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "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": ""
}

HTTP Request

POST api/company/{companyId}/profile

Parameters

Parameter Type Status Description
firmaprofil_nr string required Maximum: 7 Can only contain A-Å 0-9
firmaprofil_tekst string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firmaprofil_atpkode integer required 0, 1, 2, 4, 5 or 6
firmaprofil_feriekode integer required Between: 0 and 9
firmaprofil_shkode integer required Between: 0 and 9
firmaprofil_ampension integer required
firmaprofil_ansaettelsetype integer required
firmaprofil_ansaettelsevilkaar integer required
firmaprofil_arbejderfunktion integer required
firmaprofil_jobstatus integer required
firmaprofil_afloenningsform integer required
firmaprofil_dabarsel integer required Between: 0 and 1
firmaprofil_dalouddannelsesbidrag integer required
firmaprofil_arbejdsfunktion2 integer required Between: 0 and 999999
firmaprofil_arbejdertype integer required Between: 0 and 3
firmaprofil_afdeling integer required
firmaprofil_eboks string required Maximum: 1 Can only contain A-Å 0-9
firmaprofil_beskaeftigelseskode integer required Between: 0 and 99
firmaprofil_kompetencefond integer required
firmaprofil_samarbuddannelsesfond integer required
firmaprofil_produktionsenhedsnr string optional Maximum: 10

Update profile

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}" \
-H "Accept: application/json" \
    -d "firmaprofil_tekst"="rerum" \
    -d "firmaprofil_atpkode"="6" \
    -d "firmaprofil_feriekode"="9" \
    -d "firmaprofil_shkode"="9" \
    -d "firmaprofil_ampension"="91411101" \
    -d "firmaprofil_ansaettelsetype"="91411101" \
    -d "firmaprofil_ansaettelsevilkaar"="91411101" \
    -d "firmaprofil_arbejderfunktion"="91411101" \
    -d "firmaprofil_jobstatus"="91411101" \
    -d "firmaprofil_afloenningsform"="91411101" \
    -d "firmaprofil_dabarsel"="1" \
    -d "firmaprofil_dalouddannelsesbidrag"="91411101" \
    -d "firmaprofil_arbejdsfunktion2"="946946" \
    -d "firmaprofil_arbejdertype"="3" \
    -d "firmaprofil_afdeling"="91411101" \
    -d "firmaprofil_eboks"="rerum" \
    -d "firmaprofil_beskaeftigelseskode"="94" \
    -d "firmaprofil_kompetencefond"="91411101" \
    -d "firmaprofil_samarbuddannelsesfond"="91411101" \
    -d "firmaprofil_produktionsenhedsnr"="rerum" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}",
    "method": "PATCH",
    "data": {
        "firmaprofil_tekst": "rerum",
        "firmaprofil_atpkode": "6",
        "firmaprofil_feriekode": 9,
        "firmaprofil_shkode": 9,
        "firmaprofil_ampension": 91411101,
        "firmaprofil_ansaettelsetype": 91411101,
        "firmaprofil_ansaettelsevilkaar": 91411101,
        "firmaprofil_arbejderfunktion": 91411101,
        "firmaprofil_jobstatus": 91411101,
        "firmaprofil_afloenningsform": 91411101,
        "firmaprofil_dabarsel": 1,
        "firmaprofil_dalouddannelsesbidrag": 91411101,
        "firmaprofil_arbejdsfunktion2": 946946,
        "firmaprofil_arbejdertype": 3,
        "firmaprofil_afdeling": 91411101,
        "firmaprofil_eboks": "rerum",
        "firmaprofil_beskaeftigelseskode": 94,
        "firmaprofil_kompetencefond": 91411101,
        "firmaprofil_samarbuddannelsesfond": 91411101,
        "firmaprofil_produktionsenhedsnr": "rerum"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/profile/{profileId}

Parameters

Parameter Type Status Description
firmaprofil_tekst string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
firmaprofil_atpkode integer optional 0, 1, 2, 4, 5 or 6
firmaprofil_feriekode integer optional Between: 0 and 9
firmaprofil_shkode integer optional 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 Between: 0 and 1
firmaprofil_dalouddannelsesbidrag integer optional
firmaprofil_arbejdsfunktion2 integer optional Between: 0 and 999999
firmaprofil_arbejdertype integer optional Between: 0 and 3
firmaprofil_afdeling integer optional
firmaprofil_eboks string optional Maximum: 1 Can only contain A-Å 0-9
firmaprofil_beskaeftigelseskode integer optional Between: 0 and 99
firmaprofil_kompetencefond integer optional
firmaprofil_samarbuddannelsesfond integer optional
firmaprofil_produktionsenhedsnr string optional Maximum: 10

Delete profile

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/profile/{profileId}

Profile salary type

Get profile salary type list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}/salarytype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}/salarytype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "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": []
}

HTTP Request

GET api/company/{companyId}/profile/{profileId}/salarytype

HEAD api/company/{companyId}/profile/{profileId}/salarytype

Create profile salary type

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}/salarytype" \
-H "Accept: application/json" \
    -d "firmaprofilloenart_loenart"="350417" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}/salarytype",
    "method": "POST",
    "data": {
        "firmaprofilloenart_loenart": 350417
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "firmaprofilloenart_firma": 123,
    "firmaprofilloenart_firmaprofil": "Profil1",
    "firmaprofilloenart_loenart": 920
}

HTTP Request

POST api/company/{companyId}/profile/{profileId}/salarytype

Parameters

Parameter Type Status Description
firmaprofilloenart_loenart integer required Must have a length between 1 and 4

Delete profile salary type

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}/salarytype/{salaryTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/profile/{profileId}/salarytype/{salaryTypeId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/profile/{profileId}/salarytype/{salaryTypeId}

Project

Get project list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/project" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/project",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "projekt_firma": 123,
        "projekt_nr": "4100000",
        "projekt_tekst": ""
    }
]

HTTP Request

GET api/company/{companyId}/project

HEAD api/company/{companyId}/project

Get single project

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/project/{projectId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/project/{projectId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "projekt_firma": 123,
    "projekt_nr": "4100000",
    "projekt_tekst": ""
}

HTTP Request

GET api/company/{companyId}/project/{projectId}

HEAD api/company/{companyId}/project/{projectId}

Create project

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/project" \
-H "Accept: application/json" \
    -d "projekt_nr"="molestiae" \
    -d "projekt_tekst"="molestiae" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/project",
    "method": "POST",
    "data": {
        "projekt_nr": "molestiae",
        "projekt_tekst": "molestiae"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "projekt_firma": 123,
    "projekt_nr": "4100000",
    "projekt_tekst": ""
}

HTTP Request

POST api/company/{companyId}/project

Parameters

Parameter Type Status Description
projekt_nr string required Maximum: 20 Must match this regular expression: /^[0-9\-a-zA-ZæøåÆØÅ]{1,20}$/
projekt_tekst string required Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Update project

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/project/{projectId}" \
-H "Accept: application/json" \
    -d "projekt_tekst"="blanditiis" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/project/{projectId}",
    "method": "PATCH",
    "data": {
        "projekt_tekst": "blanditiis"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/project/{projectId}

Parameters

Parameter Type Status Description
projekt_tekst string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

delete project

To delete a project, there must be no reference between the project and any pay transaction

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/project/{projectId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/project/{projectId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/project/{projectId}

Salary category

api/company/{companyId}/salarycategory

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarycategory" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarycategory",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/salarycategory

HEAD api/company/{companyId}/salarycategory

api/company/{companyId}/salarycategory/{salarycategory}

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarycategory/{salarycategory}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarycategory/{salarycategory}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/salarycategory/{salarycategory}

HEAD api/company/{companyId}/salarycategory/{salarycategory}

api/company/{companyId}/salarycategory/{salarycategory}/subcategory/{salarysubcategory}/salarytypes

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarycategory/{salarycategory}/subcategory/{salarysubcategory}/salarytypes" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarycategory/{salarycategory}/subcategory/{salarysubcategory}/salarytypes",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/salarycategory/{salarycategory}/subcategory/{salarysubcategory}/salarytypes

HEAD api/company/{companyId}/salarycategory/{salarycategory}/subcategory/{salarysubcategory}/salarytypes

Salary order

check if it is possible to approve order

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salaryorder/canapprove" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder/canapprove",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "canApprove": true
}

HTTP Request

GET api/company/{companyId}/salaryorder/canapprove

HEAD api/company/{companyId}/salaryorder/canapprove

Overview

Get salary overview data

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salaryorder" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejdertype_nr": 1,
        "arbejdertype_bruttonloen": 1234.5,
        "arbejdertypebeskrivelse_navn": "14-dages-løn",
        "loentermin_dispdato": "2017-12-15",
        "loentermin_sidste": false,
        "arbejder_loen_ja": 3
    }
]

HTTP Request

GET api/company/{companyId}/salaryorder

HEAD api/company/{companyId}/salaryorder

Order status

Info regarding order status

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salaryorder/ordered" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder/ordered",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "firma_laast": 1,
    "firma_manglergodkendelse": 0
}

HTTP Request

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

HEAD api/company/{companyId}/salaryorder/ordered

List of approvals

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salaryorder/approval" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder/approval",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "godkendelser_firma": 4730,
        "godkendelser_brugernavn": "4730",
        "godkendelser_type": 1,
        "godkendelser_datetime": "2017-11-22 08:24:56.600"
    }
]

HTTP Request

GET api/company/{companyId}/salaryorder/approval

HEAD api/company/{companyId}/salaryorder/approval

Banking day list

List of banking days in the current year

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salaryorder/bankingdaylist" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder/bankingdaylist",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    "2018-01-02",
    "2018-01-03",
    "2018-01-04",
    "2018-01-05",
    "2018-01-08"
]

HTTP Request

GET api/company/{companyId}/salaryorder/bankingdaylist

HEAD api/company/{companyId}/salaryorder/bankingdaylist

Initials (Super Admin only)

Get list of ProLøn initials

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salaryorder/initiallist" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder/initiallist",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/salaryorder/initiallist

HEAD api/company/{companyId}/salaryorder/initiallist

Store approval

Requirements

It is not possible to do an approval without creating a salary order first

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salaryorder/approval" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder/approval",
    "method": "POST",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/salaryorder/approval

Create salary order

Requirements

Order of validation - Any error stops further processing and the error is returned in response

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salaryorder" \
-H "Accept: application/json" \
    -d "firma_bemaerkning"="autem" \
    -d "bestilling"="autem" \
    -d "bestilling.0.arbejdertype_nr"="3" \
    -d "bestilling.0.dispositions_dato"="2020-03-25" \
    -d "bestilling.0.ekstra_loenkoersel"="1" \
    -d "bestilling.0.kortfrist_bestilling"="1" \
    -d "bestilling.0.test_koersel"="1" \
    -d "bestilling.0.fremrykket_udbetaling"="1" \
    -d "bestilling.0.bestilt_for_sent"="1" \
    -d "bestilling.0.anden_aarsag_notat"="autem" \
    -d "bestilling.0.opgoerelsesperiode_fra"="2020-03-25 || 0" \
    -d "bestilling.0.opgoerelsesperiode_til"="2020-03-25 || 0" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder",
    "method": "POST",
    "data": {
        "firma_bemaerkning": "autem",
        "bestilling": "autem",
        "bestilling.0.arbejdertype_nr": "3",
        "bestilling.0.dispositions_dato": "2020-03-25",
        "bestilling.0.ekstra_loenkoersel": true,
        "bestilling.0.kortfrist_bestilling": true,
        "bestilling.0.test_koersel": true,
        "bestilling.0.fremrykket_udbetaling": true,
        "bestilling.0.bestilt_for_sent": true,
        "bestilling.0.anden_aarsag_notat": "autem",
        "bestilling.0.opgoerelsesperiode_fra": "2020-03-25 || 0",
        "bestilling.0.opgoerelsesperiode_til": "2020-03-25 || 0"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/salaryorder

Parameters

Parameter Type Status Description
firma_bemaerkning string optional Maximum: 180 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
bestilling array required
bestilling.0.arbejdertype_nr string required 1, 2 or 3
bestilling.0.dispositions_dato date required Date format: Y-m-d
bestilling.0.ekstra_loenkoersel boolean required
bestilling.0.kortfrist_bestilling boolean required
bestilling.0.test_koersel boolean required
bestilling.0.fremrykket_udbetaling boolean required
bestilling.0.bestilt_for_sent boolean required
bestilling.0.anden_aarsag_notat string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
bestilling.0.opgoerelsesperiode_fra date required Date format: Y-m-d or 0
bestilling.0.opgoerelsesperiode_til date required Date format: Y-m-d or 0

Cancel salary order

Cancels a salary order

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/salaryorder" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salaryorder",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/salaryorder

Salary transaction (Løn transaktioner)

Transaction list, employee

Get salary transaction list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

HTTP Request

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

HEAD api/company/{companyId}/employee/{employeeId}/salarytransaction

Transaction list, salary type

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/{salaryTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/{salaryTypeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

HTTP Request

GET api/company/{companyId}/salarytransaction/{salaryTypeId}

HEAD api/company/{companyId}/salarytransaction/{salaryTypeId}

Salary transaction

Get single salary transaction

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction/{salaryTypeId}/{serialNumber}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction/{salaryTypeId}/{serialNumber}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/employee/{employeeId}/salarytransaction/{salaryTypeId}/{serialNumber}

HEAD api/company/{companyId}/employee/{employeeId}/salarytransaction/{salaryTypeId}/{serialNumber}

Create multiple, employee list

Create salary transactions for more then one employee

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list" \
-H "Accept: application/json" \
    -d "loentransaktioner"="quas" \
    -d "loentransaktioner.0.loentransaktion_arbejder"="50275" \
    -d "loentransaktioner.0.loentransaktion_loenart"="5028" \
    -d "loentransaktioner.0.loentransaktion_antal"="550" \
    -d "loentransaktioner.0.loentransaktion_sats"="50275" \
    -d "loentransaktioner.0.loentransaktion_beloeb"="55009" \
    -d "loentransaktioner.0.loentransaktion_afdnr"="50275" \
    -d "loentransaktioner.0.loentransaktion_projekt"="quas" \
    -d "loentransaktioner.0.loentransaktion_tekst"="quas" \
    -d "loentransaktioner.0.loentransaktion_dato1feriedag"="2020-03-25 || 0" \
    -d "loentransaktioner.0.loentransaktion_udbkode"="quas" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list",
    "method": "POST",
    "data": {
        "loentransaktioner": "quas",
        "loentransaktioner.0.loentransaktion_arbejder": 50275,
        "loentransaktioner.0.loentransaktion_loenart": 5028,
        "loentransaktioner.0.loentransaktion_antal": 550,
        "loentransaktioner.0.loentransaktion_sats": 50275,
        "loentransaktioner.0.loentransaktion_beloeb": 55009,
        "loentransaktioner.0.loentransaktion_afdnr": 50275,
        "loentransaktioner.0.loentransaktion_projekt": "quas",
        "loentransaktioner.0.loentransaktion_tekst": "quas",
        "loentransaktioner.0.loentransaktion_dato1feriedag": "2020-03-25 || 0",
        "loentransaktioner.0.loentransaktion_udbkode": "quas"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or when there is errors

[
    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
]

HTTP Request

POST api/company/{companyId}/salarytransaction/list

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_arbejder integer required Between: 0 and 99999
loentransaktioner.0.loentransaktion_loenart integer required Between: 1 and 9999
loentransaktioner.0.loentransaktion_antal numeric required Between: -99999.99 and 99999.99
loentransaktioner.0.loentransaktion_sats numeric required Between: 0 and 99999.99
loentransaktioner.0.loentransaktion_beloeb numeric required Between: -9999999.99 and 9999999.99
loentransaktioner.0.loentransaktion_afdnr integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_projekt string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_dato1feriedag date optional Date format: Y-m-d or 0
loentransaktioner.0.loentransaktion_udbkode string optional Maximum: 4 Can only contain A-Å 0-9

Update multiple, employee list

Update salary transactions for multiple employees

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list" \
-H "Accept: application/json" \
    -d "loentransaktioner"="commodi" \
    -d "loentransaktioner.0.loentransaktion_loebenr"="5378" \
    -d "loentransaktioner.0.loentransaktion_arbejder"="36423" \
    -d "loentransaktioner.0.loentransaktion_loenart"="3642" \
    -d "loentransaktioner.0.loentransaktion_antal"="-27153" \
    -d "loentransaktioner.0.loentransaktion_sats"="36423" \
    -d "loentransaktioner.0.loentransaktion_beloeb"="-2715301" \
    -d "loentransaktioner.0.loentransaktion_afdnr"="36423" \
    -d "loentransaktioner.0.loentransaktion_projekt"="commodi" \
    -d "loentransaktioner.0.loentransaktion_tekst"="commodi" \
    -d "loentransaktioner.0.loentransaktion_dato1feriedag"="2020-03-25 || 0" \
    -d "loentransaktioner.0.loentransaktion_udbkode"="commodi" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list",
    "method": "PATCH",
    "data": {
        "loentransaktioner": "commodi",
        "loentransaktioner.0.loentransaktion_loebenr": 5378,
        "loentransaktioner.0.loentransaktion_arbejder": 36423,
        "loentransaktioner.0.loentransaktion_loenart": 3642,
        "loentransaktioner.0.loentransaktion_antal": -27153,
        "loentransaktioner.0.loentransaktion_sats": 36423,
        "loentransaktioner.0.loentransaktion_beloeb": -2715301,
        "loentransaktioner.0.loentransaktion_afdnr": 36423,
        "loentransaktioner.0.loentransaktion_projekt": "commodi",
        "loentransaktioner.0.loentransaktion_tekst": "commodi",
        "loentransaktioner.0.loentransaktion_dato1feriedag": "2020-03-25 || 0",
        "loentransaktioner.0.loentransaktion_udbkode": "commodi"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or when there is errors

[
    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
]

HTTP Request

PATCH api/company/{companyId}/salarytransaction/list

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_loebenr integer required
loentransaktioner.0.loentransaktion_arbejder integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_loenart integer optional Between: 1 and 9999
loentransaktioner.0.loentransaktion_antal numeric optional Between: -99999.99 and 99999.99
loentransaktioner.0.loentransaktion_sats numeric optional Between: 0 and 99999.99
loentransaktioner.0.loentransaktion_beloeb numeric optional Between: -9999999.99 and 9999999.99
loentransaktioner.0.loentransaktion_afdnr integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_projekt string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_dato1feriedag date optional Date format: Y-m-d or 0
loentransaktioner.0.loentransaktion_udbkode string optional Maximum: 4 Can only contain A-Å 0-9

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:

curl -X PUT "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list" \
-H "Accept: application/json" \
    -d "loentransaktioner"="nihil" \
    -d "loentransaktioner.0.loentransaktion_loebenr"="9187543" \
    -d "loentransaktioner.0.loentransaktion_arbejder"="70579" \
    -d "loentransaktioner.0.loentransaktion_loenart"="7058" \
    -d "loentransaktioner.0.loentransaktion_antal"="41159" \
    -d "loentransaktioner.0.loentransaktion_sats"="70579" \
    -d "loentransaktioner.0.loentransaktion_beloeb"="4115937" \
    -d "loentransaktioner.0.loentransaktion_afdnr"="70579" \
    -d "loentransaktioner.0.loentransaktion_projekt"="nihil" \
    -d "loentransaktioner.0.loentransaktion_tekst"="nihil" \
    -d "loentransaktioner.0.loentransaktion_dato1feriedag"="2020-03-25 || 0" \
    -d "loentransaktioner.0.loentransaktion_udbkode"="nihil" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list",
    "method": "PUT",
    "data": {
        "loentransaktioner": "nihil",
        "loentransaktioner.0.loentransaktion_loebenr": 9187543,
        "loentransaktioner.0.loentransaktion_arbejder": 70579,
        "loentransaktioner.0.loentransaktion_loenart": 7058,
        "loentransaktioner.0.loentransaktion_antal": 41159,
        "loentransaktioner.0.loentransaktion_sats": 70579,
        "loentransaktioner.0.loentransaktion_beloeb": 4115937,
        "loentransaktioner.0.loentransaktion_afdnr": 70579,
        "loentransaktioner.0.loentransaktion_projekt": "nihil",
        "loentransaktioner.0.loentransaktion_tekst": "nihil",
        "loentransaktioner.0.loentransaktion_dato1feriedag": "2020-03-25 || 0",
        "loentransaktioner.0.loentransaktion_udbkode": "nihil"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or when there is errors

[
    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
]

HTTP Request

PUT api/company/{companyId}/salarytransaction/list

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_loebenr integer required
loentransaktioner.0.loentransaktion_arbejder integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_loenart integer optional Between: 1 and 9999
loentransaktioner.0.loentransaktion_antal numeric optional Between: -99999.99 and 99999.99
loentransaktioner.0.loentransaktion_sats numeric optional Between: 0 and 99999.99
loentransaktioner.0.loentransaktion_beloeb numeric optional Between: -9999999.99 and 9999999.99
loentransaktioner.0.loentransaktion_afdnr integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_projekt string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_dato1feriedag date optional Date format: Y-m-d or 0
loentransaktioner.0.loentransaktion_udbkode string optional Maximum: 4 Can only contain A-Å 0-9

Delete transaction, employee list

Delete salary transactions for list of employees

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list" \
-H "Accept: application/json" \
    -d "loentransaktioner"="corrupti" \
    -d "loentransaktioner.0.loentransaktion_arbejder"="48919" \
    -d "loentransaktioner.0.loentransaktion_loebenr"="89945" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/list",
    "method": "DELETE",
    "data": {
        "loentransaktioner": "corrupti",
        "loentransaktioner.0.loentransaktion_arbejder": 48919,
        "loentransaktioner.0.loentransaktion_loebenr": 89945
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/salarytransaction/list

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_arbejder integer required Between: 0 and 99999
loentransaktioner.0.loentransaktion_loebenr integer required

Transaction list, company

Transaction list for company

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytransaction" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

HTTP Request

GET api/company/{companyId}/salarytransaction

HEAD api/company/{companyId}/salarytransaction

Active salary types

Get list of used salary types currently active / in use for company

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/usedsalarytypes" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/usedsalarytypes",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/salarytransaction/usedsalarytypes

HEAD api/company/{companyId}/salarytransaction/usedsalarytypes

Validate

Validates the salary transactions

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/validation" \
-H "Accept: application/json" \
    -d "loentransaktioner"="rerum" \
    -d "loentransaktioner.0.loentransaktion_arbejder"="88355" \
    -d "loentransaktioner.0.loentransaktion_loenart"="8835" \
    -d "loentransaktioner.0.loentransaktion_antal"="76710" \
    -d "loentransaktioner.0.loentransaktion_sats"="88355" \
    -d "loentransaktioner.0.loentransaktion_beloeb"="7671036" \
    -d "loentransaktioner.0.loentransaktion_afdnr"="88355" \
    -d "loentransaktioner.0.loentransaktion_projekt"="rerum" \
    -d "loentransaktioner.0.loentransaktion_tekst"="rerum" \
    -d "loentransaktioner.0.loentransaktion_date1feriedag"="2020-03-25 || 0" \
    -d "loentransaktioner.0.loentransaktion_udbkode"="rerum" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/validation",
    "method": "POST",
    "data": {
        "loentransaktioner": "rerum",
        "loentransaktioner.0.loentransaktion_arbejder": 88355,
        "loentransaktioner.0.loentransaktion_loenart": 8835,
        "loentransaktioner.0.loentransaktion_antal": 76710,
        "loentransaktioner.0.loentransaktion_sats": 88355,
        "loentransaktioner.0.loentransaktion_beloeb": 7671036,
        "loentransaktioner.0.loentransaktion_afdnr": 88355,
        "loentransaktioner.0.loentransaktion_projekt": "rerum",
        "loentransaktioner.0.loentransaktion_tekst": "rerum",
        "loentransaktioner.0.loentransaktion_date1feriedag": "2020-03-25 || 0",
        "loentransaktioner.0.loentransaktion_udbkode": "rerum"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response when there is errors:

[
    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
]

HTTP Request

POST api/company/{companyId}/salarytransaction/validation

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_arbejder integer required Between: 0 and 99999
loentransaktioner.0.loentransaktion_loenart integer required Between: 1 and 9999
loentransaktioner.0.loentransaktion_antal numeric required Between: -99999.99 and 99999.99
loentransaktioner.0.loentransaktion_sats numeric required Between: 0 and 99999.99
loentransaktioner.0.loentransaktion_beloeb numeric required Between: -9999999.99 and 9999999.99
loentransaktioner.0.loentransaktion_afdnr integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_projekt string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_date1feriedag date optional Date format: Y-m-d or 0
loentransaktioner.0.loentransaktion_udbkode string optional Maximum: 4 Can only contain A-Å 0-9

Create multiple, file

Upload salary transaction from file

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/fileupload" \
-H "Accept: application/json" \
    -d "loentransaktionFil"="facere" \
    -d "opdater_arbejder_loen"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/fileupload",
    "method": "POST",
    "data": {
        "loentransaktionFil": "facere",
        "opdater_arbejder_loen": 1
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or When there is errors and errors are not allowed

[
    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
]

HTTP Request

POST api/company/{companyId}/salarytransaction/fileupload

Parameters

Parameter Type Status Description
loentransaktionFil file required Must be a file upload Allowed mime types: text/csv, text/plain, application/csv, application/x-csv, text/comma-separated-values, text/x-comma-separated-values or text/tab-separated-values
opdater_arbejder_loen integer required Between: 0 and 1

Create multiple, text

Create salary transaction from text

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/field" \
-H "Accept: application/json" \
    -d "loentransaktioner"="quo" \
    -d "opdater_arbejder_loen"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/field",
    "method": "POST",
    "data": {
        "loentransaktioner": "quo",
        "opdater_arbejder_loen": 1
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or When there is errors and errors are not allowed

[
    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
]

HTTP Request

POST api/company/{companyId}/salarytransaction/field

Parameters

Parameter Type Status Description
loentransaktioner string required
opdater_arbejder_loen integer required Between: 0 and 1

Create multiple, employee

Create multiple salary transactions for one employee

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction" \
-H "Accept: application/json" \
    -d "loentransaktioner"="illo" \
    -d "loentransaktioner.0.loentransaktion_loenart"="543" \
    -d "loentransaktioner.0.loentransaktion_antal"="-89142" \
    -d "loentransaktioner.0.loentransaktion_sats"="5428" \
    -d "loentransaktioner.0.loentransaktion_beloeb"="-8914249" \
    -d "loentransaktioner.0.loentransaktion_afdnr"="5428" \
    -d "loentransaktioner.0.loentransaktion_projekt"="illo" \
    -d "loentransaktioner.0.loentransaktion_tekst"="illo" \
    -d "loentransaktioner.0.loentransaktion_dato1feriedag"="2020-03-25 || 0" \
    -d "loentransaktioner.0.loentransaktion_udbkode"="illo" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction",
    "method": "POST",
    "data": {
        "loentransaktioner": "illo",
        "loentransaktioner.0.loentransaktion_loenart": 543,
        "loentransaktioner.0.loentransaktion_antal": -89142,
        "loentransaktioner.0.loentransaktion_sats": 5428,
        "loentransaktioner.0.loentransaktion_beloeb": -8914249,
        "loentransaktioner.0.loentransaktion_afdnr": 5428,
        "loentransaktioner.0.loentransaktion_projekt": "illo",
        "loentransaktioner.0.loentransaktion_tekst": "illo",
        "loentransaktioner.0.loentransaktion_dato1feriedag": "2020-03-25 || 0",
        "loentransaktioner.0.loentransaktion_udbkode": "illo"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or when there is errors

[
    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
]

HTTP Request

POST api/company/{companyId}/employee/{employeeId}/salarytransaction

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_loenart integer required Between: 1 and 9999
loentransaktioner.0.loentransaktion_antal numeric required Between: -99999.99 and 99999.99
loentransaktioner.0.loentransaktion_sats numeric required Between: 0 and 99999.99
loentransaktioner.0.loentransaktion_beloeb numeric required Between: -9999999.99 and 9999999.99
loentransaktioner.0.loentransaktion_afdnr integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_projekt string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_dato1feriedag date optional Date format: Y-m-d or 0
loentransaktioner.0.loentransaktion_udbkode string optional Maximum: 4 Can only contain A-Å 0-9

Update multiple, employee

Update salary transactions for one employee

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction" \
-H "Accept: application/json" \
    -d "loentransaktioner"="debitis" \
    -d "loentransaktioner.0.loentransaktion_loenart"="8761" \
    -d "loentransaktioner.0.loentransaktion_loebenr"="97324022" \
    -d "loentransaktioner.0.loentransaktion_antal"="75234" \
    -d "loentransaktioner.0.loentransaktion_sats"="87617" \
    -d "loentransaktioner.0.loentransaktion_beloeb"="7523472" \
    -d "loentransaktioner.0.loentransaktion_afdnr"="87617" \
    -d "loentransaktioner.0.loentransaktion_projekt"="debitis" \
    -d "loentransaktioner.0.loentransaktion_tekst"="debitis" \
    -d "loentransaktioner.0.loentransaktion_dato1feriedag"="2020-03-25 || 0" \
    -d "loentransaktioner.0.loentransaktion_udbkode"="debitis" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction",
    "method": "PATCH",
    "data": {
        "loentransaktioner": "debitis",
        "loentransaktioner.0.loentransaktion_loenart": 8761,
        "loentransaktioner.0.loentransaktion_loebenr": 97324022,
        "loentransaktioner.0.loentransaktion_antal": 75234,
        "loentransaktioner.0.loentransaktion_sats": 87617,
        "loentransaktioner.0.loentransaktion_beloeb": 7523472,
        "loentransaktioner.0.loentransaktion_afdnr": 87617,
        "loentransaktioner.0.loentransaktion_projekt": "debitis",
        "loentransaktioner.0.loentransaktion_tekst": "debitis",
        "loentransaktioner.0.loentransaktion_dato1feriedag": "2020-03-25 || 0",
        "loentransaktioner.0.loentransaktion_udbkode": "debitis"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or when there is errors

[
    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
]

HTTP Request

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

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_loenart integer required Between: 1 and 9999
loentransaktioner.0.loentransaktion_loebenr integer required
loentransaktioner.0.loentransaktion_antal numeric optional Between: -99999.99 and 99999.99
loentransaktioner.0.loentransaktion_sats numeric optional Between: 0 and 99999.99
loentransaktioner.0.loentransaktion_beloeb numeric optional Between: -9999999.99 and 9999999.99
loentransaktioner.0.loentransaktion_afdnr integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_projekt string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_dato1feriedag date optional Date format: Y-m-d or 0
loentransaktioner.0.loentransaktion_udbkode string optional Maximum: 4 Can only contain A-Å 0-9

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

Requirements

Example request:

curl -X PUT "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction" \
-H "Accept: application/json" \
    -d "loentransaktioner"="quia" \
    -d "loentransaktioner.0.loentransaktion_loenart"="1731" \
    -d "loentransaktioner.0.loentransaktion_loebenr"="23" \
    -d "loentransaktioner.0.loentransaktion_antal"="-65393" \
    -d "loentransaktioner.0.loentransaktion_sats"="17303" \
    -d "loentransaktioner.0.loentransaktion_beloeb"="-6539314" \
    -d "loentransaktioner.0.loentransaktion_afdnr"="17303" \
    -d "loentransaktioner.0.loentransaktion_projekt"="quia" \
    -d "loentransaktioner.0.loentransaktion_tekst"="quia" \
    -d "loentransaktioner.0.loentransaktion_dato1feriedag"="2020-03-25 || 0" \
    -d "loentransaktioner.0.loentransaktion_udbkode"="quia" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction",
    "method": "PUT",
    "data": {
        "loentransaktioner": "quia",
        "loentransaktioner.0.loentransaktion_loenart": 1731,
        "loentransaktioner.0.loentransaktion_loebenr": 23,
        "loentransaktioner.0.loentransaktion_antal": -65393,
        "loentransaktioner.0.loentransaktion_sats": 17303,
        "loentransaktioner.0.loentransaktion_beloeb": -6539314,
        "loentransaktioner.0.loentransaktion_afdnr": 17303,
        "loentransaktioner.0.loentransaktion_projekt": "quia",
        "loentransaktioner.0.loentransaktion_tekst": "quia",
        "loentransaktioner.0.loentransaktion_dato1feriedag": "2020-03-25 || 0",
        "loentransaktioner.0.loentransaktion_udbkode": "quia"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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": ""
    }
]

or when there is errors

[
    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
]

HTTP Request

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

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0.loentransaktion_loenart integer required Between: 1 and 9999
loentransaktioner.0.loentransaktion_loebenr integer required
loentransaktioner.0.loentransaktion_antal numeric optional Between: -99999.99 and 99999.99
loentransaktioner.0.loentransaktion_sats numeric optional Between: 0 and 99999.99
loentransaktioner.0.loentransaktion_beloeb numeric optional Between: -9999999.99 and 9999999.99
loentransaktioner.0.loentransaktion_afdnr integer optional Between: 0 and 99999
loentransaktioner.0.loentransaktion_projekt string optional Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loentransaktioner.0.loentransaktion_dato1feriedag date optional Date format: Y-m-d or 0
loentransaktioner.0.loentransaktion_udbkode string optional Maximum: 4 Can only contain A-Å 0-9

Delete transaction, employee

Delete salary transaction for employee

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction" \
-H "Accept: application/json" \
    -d "loentransaktioner"="omnis" \
    -d "loentransaktioner.0"="22073" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytransaction",
    "method": "DELETE",
    "data": {
        "loentransaktioner": "omnis",
        "loentransaktioner.0": 22073
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

Parameters

Parameter Type Status Description
loentransaktioner array required
loentransaktioner.0 integer required

Vacation payment codes

Return list of vacation payment codes

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/vacationpaymentcodelist" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/vacationpaymentcodelist",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/salarytransaction/vacationpaymentcodelist

HEAD api/company/{companyId}/salarytransaction/vacationpaymentcodelist

Update payment status

Update payment status for employees, activating or disabling salary

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/paymentstatus" \
-H "Accept: application/json" \
    -d "arbejder_loen"="1" \
    -d "medarbejdere"="maxime" \
    -d "medarbejdere.0"="8108490" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytransaction/paymentstatus",
    "method": "PATCH",
    "data": {
        "arbejder_loen": 1,
        "medarbejdere": "maxime",
        "medarbejdere.0": 8108490
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/salarytransaction/paymentstatus

Parameters

Parameter Type Status Description
arbejder_loen integer required Between: 0 and 1
medarbejdere array required
medarbejdere.0 integer required

Salary type (lønarter)

Get salary type list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/salarytype

HEAD api/company/{companyId}/salarytype

Salary type list with department markings

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytype/withdepartmentmarking" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/withdepartmentmarking",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "loenart_nr": 1234,
        "loenart_tekst": "lønart tekst",
        "loenart_afdelinger": false
    }
]

HTTP Request

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

HEAD api/company/{companyId}/salarytype/withdepartmentmarking

Get single salary type

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/salarytype/{salaryTypeId}

HEAD api/company/{companyId}/salarytype/{salaryTypeId}

Update salary type

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}" \
-H "Accept: application/json" \
    -d "loenart_nr"="6729" \
    -d "loenart_tf"="tempore" \
    -d "loenart_tekst"="tempore" \
    -d "loenart_sats"="34598" \
    -d "loenart_minantal"="34598" \
    -d "loenart_maxantal"="34598" \
    -d "loenart_minsats"="34598" \
    -d "loenart_maxsats"="34598" \
    -d "loenart_minbeloeb"="3459845" \
    -d "loenart_maxbeloeb"="3459845" \
    -d "loenart_nulstil"="6" \
    -d "loenart_beregningskode"="672" \
    -d "loenart_changed"="6" \
    -d "loenart_bruttoskat"="6" \
    -d "loenart_aindkomst"="6" \
    -d "loenart_ferieberettetloen"="6" \
    -d "loenart_pensiongloen"="6" \
    -d "loenart_atp"="6" \
    -d "loenart_tidkode"="6" \
    -d "loenart_tidfaktor"="8396067" \
    -d "loenart_feriepengeudb"="1" \
    -d "loenart_haandteringskode"="67" \
    -d "loenart_type"="6" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}",
    "method": "PATCH",
    "data": {
        "loenart_nr": 6729,
        "loenart_tf": "tempore",
        "loenart_tekst": "tempore",
        "loenart_sats": 34598,
        "loenart_minantal": 34598,
        "loenart_maxantal": 34598,
        "loenart_minsats": 34598,
        "loenart_maxsats": 34598,
        "loenart_minbeloeb": 3459845,
        "loenart_maxbeloeb": 3459845,
        "loenart_nulstil": 6,
        "loenart_beregningskode": 672,
        "loenart_changed": 6,
        "loenart_bruttoskat": 6,
        "loenart_aindkomst": 6,
        "loenart_ferieberettetloen": 6,
        "loenart_pensiongloen": 6,
        "loenart_atp": 6,
        "loenart_tidkode": 6,
        "loenart_tidfaktor": 8396067,
        "loenart_feriepengeudb": 1,
        "loenart_haandteringskode": 67,
        "loenart_type": 6
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/salarytype/{salaryTypeId}

Parameters

Parameter Type Status Description
loenart_nr integer optional Between: 0 and 9999
loenart_tf string optional Maximum: 1
loenart_tekst string optional Maximum: 21 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loenart_sats numeric optional Between: -99999.99 and 99999.99
loenart_minantal numeric optional Between: -99999.99 and 99999.99
loenart_maxantal numeric optional Between: -99999.99 and 99999.99
loenart_minsats numeric optional Between: -99999.99 and 99999.99
loenart_maxsats numeric optional Between: -99999.99 and 99999.99
loenart_minbeloeb numeric optional Between: -9999999.99 and 9999999.99
loenart_maxbeloeb numeric optional Between: -9999999.99 and 9999999.99
loenart_nulstil string optional Between: 0 and 8
loenart_beregningskode integer optional Between: 0 and 999
loenart_changed integer optional Between: 0 and 9
loenart_bruttoskat integer optional Between: 0 and 9
loenart_aindkomst integer optional Between: 0 and 9
loenart_ferieberettetloen integer optional Between: 0 and 9
loenart_pensiongloen integer optional Between: 0 and 9
loenart_atp integer optional Between: 0 and 9
loenart_tidkode integer optional Between: 0 and 9
loenart_tidfaktor numeric optional
loenart_feriepengeudb integer optional Between: 0 and 1
loenart_haandteringskode integer optional Between: 0 and 99
loenart_type integer optional Between: 0 and 9

Get single department distribution

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution

HEAD api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution

Update department distribution

Requirements

Expect request to contain an array named departmentdistributionlist. Each entry (if any) has two properties 'loenartafdeling_afdeling_nr' and 'loenartafdeling_procent'.

Sum of procentages must be either 0 or 100.

Each individual procentage must be an integer between 0 and 100, both included.

A department can only be listed once and must be related to the company.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution" \
-H "Accept: application/json" \
    -d "departmentdistributionlist"="molestiae" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution",
    "method": "PATCH",
    "data": {
        "departmentdistributionlist": "molestiae"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/salarytype/{salaryTypeId}/departmentdistribution

Parameters

Parameter Type Status Description
departmentdistributionlist array optional

Salary type relation list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytype/relation" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/relation",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "loenartsrelation_id": 1,
        "loenartsrelation_firma": 123,
        "tilloenart": {
            "loenartsrelation_tilloenart": 1234,
            "loenart_tekst": "TILLÆG MODR.ADGANG"
        },
        "fraloenart": {
            "loenartsrelation_fraloenart": 1258,
            "loenart_tekst": "SV NORMALTIMER"
        }
    }
]

HTTP Request

GET api/company/{companyId}/salarytype/relation

HEAD api/company/{companyId}/salarytype/relation

Create salary type relation

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salarytype/relation" \
-H "Accept: application/json" \
    -d "loenartsrelation_fraloenart"="2099" \
    -d "loenartsrelation_tilloenart"="2099" \
    -d "loenartsrelation_beregningsfaktor"="20991" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/relation",
    "method": "POST",
    "data": {
        "loenartsrelation_fraloenart": 2099,
        "loenartsrelation_tilloenart": 2099,
        "loenartsrelation_beregningsfaktor": 20991
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "loenartsrelation_id": 1,
        "loenartsrelation_firma": 123,
        "tilloenart": {
            "loenartsrelation_tilloenart": 1234,
            "loenart_tekst": "TILLÆG MODR.ADGANG"
        },
        "fraloenart": {
            "loenartsrelation_fraloenart": 1258,
            "loenart_tekst": "SV NORMALTIMER"
        }
    }
]

HTTP Request

POST api/company/{companyId}/salarytype/relation

Parameters

Parameter Type Status Description
loenartsrelation_fraloenart integer required Between: 0 and 9999
loenartsrelation_tilloenart integer required Between: 0 and 9999
loenartsrelation_beregningsfaktor numeric optional Between: -10.00000 and 99999.99999

Delete salary type relation

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/salarytype/relation/{relationId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytype/relation/{relationId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/salarytype/relation/{relationId}

Salary type handling code

Display a listing of the resource.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/salarytypehandlingcode

HEAD api/company/{companyId}/salarytypehandlingcode

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}

HEAD api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode" \
-H "Accept: application/json" \
    -d "loenarthaandtering_kode"="3930" \
    -d "loenarthaandtering_tekst"="ex" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode",
    "method": "POST",
    "data": {
        "loenarthaandtering_kode": 3930,
        "loenarthaandtering_tekst": "ex"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "loenarthaandtering_kode": 0,
        "loenarthaandtering_tekst": "Ingen kode"
    }
]

HTTP Request

POST api/company/{companyId}/salarytypehandlingcode

Parameters

Parameter Type Status Description
loenarthaandtering_kode integer required Must have a length between 1 and 2
loenarthaandtering_tekst string required Maximum: 50

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}" \
-H "Accept: application/json" \
    -d "loenarthaandtering_tekst"="corrupti" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}",
    "method": "PATCH",
    "data": {
        "loenarthaandtering_tekst": "corrupti"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}

Parameters

Parameter Type Status Description
loenarthaandtering_tekst string required Maximum: 50

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/salarytypehandlingcode/{salaryTypeHandlingCodeId}

Server time

Get the server time

@response { "time" : "2018-07-26T11:04:29+02:00" }

Example request:

curl -X GET "https://mit.proloen.dk/api/servertime" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/servertime",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "time": "2020-03-25T13:43:03+01:00"
}

HTTP Request

GET api/servertime

HEAD api/servertime

Short term fee (Kortfrist gebyr)

display short term fee.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/shorttermfee" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/shorttermfee",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/shorttermfee

HEAD api/company/{companyId}/shorttermfee

Update short term fee.

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/shorttermfee" \
-H "Accept: application/json" \
    -d "kortfristgebyr_gebyr"="2" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/shorttermfee",
    "method": "PATCH",
    "data": {
        "kortfristgebyr_gebyr": 2
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/shorttermfee

Parameters

Parameter Type Status Description
kortfristgebyr_gebyr numeric required

Staff group (personalegruppe)

List of staff groups

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/staffgroups" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/staffgroups",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "personalegruppe_nr": 1,
        "personalegruppe_tekst": "Faglært\/ufaglært"
    }
]

HTTP Request

GET api/company/{companyId}/staffgroups

HEAD api/company/{companyId}/staffgroups

Statistics code (Statistik kode)

Get statistics code list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/statisticscode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/statisticscode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "statistikkoder_nr": "0",
        "statistikkoder_tekst": "NEJ"
    }
]

HTTP Request

GET api/company/{companyId}/statisticscode

HEAD api/company/{companyId}/statisticscode

StatisticsController

List statistics for company

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/statistics" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/statistics",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "firmagraf_firma": 123,
        "firmagraf_maaned": 201611,
        "firmagraf_antalloensedler": 21,
        "firmagraf_bruttoskattegrundlag": 123456.78,
        "firmagraf_opdateringsdato": "2017-06-22"
    }
]

HTTP Request

GET api/company/{companyId}/statistics

HEAD api/company/{companyId}/statistics

Sympa

Get single sympa connection

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/sympa" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/sympa",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "sympa_firma_nr": 123,
    "sympa_status": 3,
    "sympa_key": "key",
    "sympa_secret": "secret",
    "sympa_internal_milage": 1,
    "sympa_customer_milage": 2
}

HTTP Request

GET api/company/{companyId}/sympa

HEAD api/company/{companyId}/sympa

Updates sympa connection.

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/sympa" \
-H "Accept: application/json" \
    -d "sympa_key"="fugiat" \
    -d "sympa_secret"="fugiat" \
    -d "sympa_internal_milage"="9484708" \
    -d "sympa_customer_milage"="9484708" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/sympa",
    "method": "PATCH",
    "data": {
        "sympa_key": "fugiat",
        "sympa_secret": "fugiat",
        "sympa_internal_milage": 9484708,
        "sympa_customer_milage": 9484708
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/sympa

Parameters

Parameter Type Status Description
sympa_key string optional
sympa_secret string optional
sympa_internal_milage integer optional
sympa_customer_milage integer optional

Create single sympa connection

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/sympa" \
-H "Accept: application/json" \
    -d "sympa_key"="et" \
    -d "sympa_secret"="et" \
    -d "sympa_internal_milage"="439625" \
    -d "sympa_customer_milage"="439625" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/sympa",
    "method": "POST",
    "data": {
        "sympa_key": "et",
        "sympa_secret": "et",
        "sympa_internal_milage": 439625,
        "sympa_customer_milage": 439625
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "sympa_firma_nr": 123,
    "sympa_status": 2,
    "sympa_key": "key",
    "sympa_secret": "secret",
    "sympa_internal_milage": 1,
    "sympa_customer_milage": 2
}

HTTP Request

POST api/company/{companyId}/sympa

Parameters

Parameter Type Status Description
sympa_key string required
sympa_secret string required
sympa_internal_milage integer required
sympa_customer_milage integer required

Delete sympa connection

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/sympa" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/sympa",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/sympa

System message (System besked)

Get a list of current system messages

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/systemmessage" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/systemmessage",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/systemmessage

HEAD api/company/{companyId}/systemmessage

Create system message.

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/systemmessage" \
-H "Accept: application/json" \
    -d "starttime"="54" \
    -d "endtime"="54" \
    -d "title"="dolores" \
    -d "message"="dolores" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/systemmessage",
    "method": "POST",
    "data": {
        "starttime": 54,
        "endtime": 54,
        "title": "dolores",
        "message": "dolores"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/systemmessage

Parameters

Parameter Type Status Description
starttime numeric required
endtime numeric required
title string required Maximum: 255
message string required Maximum: 500

Get a list of all system messages

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/systemmessage/all" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/systemmessage/all",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/systemmessage/all

HEAD api/company/{companyId}/systemmessage/all

Get a single system message.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/systemmessage/{systemMessageId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/systemmessage/{systemMessageId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/systemmessage/{systemMessageId}

HEAD api/company/{companyId}/systemmessage/{systemMessageId}

Update a system message.

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/systemmessage/{systemMessageId}" \
-H "Accept: application/json" \
    -d "starttime"="911" \
    -d "endtime"="911" \
    -d "title"="ut" \
    -d "message"="ut" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/systemmessage/{systemMessageId}",
    "method": "PATCH",
    "data": {
        "starttime": 911,
        "endtime": 911,
        "title": "ut",
        "message": "ut"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/systemmessage/{systemMessageId}

Parameters

Parameter Type Status Description
starttime numeric optional
endtime numeric optional
title string optional Maximum: 255
message string optional Maximum: 500

Remove the specified system message.

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/systemmessage/{systemMessageId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/systemmessage/{systemMessageId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/systemmessage/{systemMessageId}

Tax payment (Skattebetaling)

Get tax payment list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/taxpayment" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/taxpayment",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "skattebetaling_nr": 1,
        "skattebetaling_tekst": "Normal skat"
    }
]

HTTP Request

GET api/company/{companyId}/taxpayment

HEAD api/company/{companyId}/taxpayment

Translation (Info I)

Get translations as json.

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/translation/{language}.json" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/translation/{language}.json",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "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."
}

HTTP Request

GET api/translation/{language}.json

HEAD api/translation/{language}.json

Get a list of translation

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/translation/{language}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/translation/{language}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "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."
    }
]

HTTP Request

GET api/company/{companyId}/translation/{language}

HEAD api/company/{companyId}/translation/{language}

Get a translation

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/translation/{language}/{languageKey}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/translation/{language}/{languageKey}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "key": "INFO.ACCESS.CREATE.USERNAME_INFO",
    "value": "Brugernavnet skal starte med firmanummer plus '-'"
}

HTTP Request

GET api/company/{companyId}/translation/{language}/{languageKey}

HEAD api/company/{companyId}/translation/{language}/{languageKey}

Update translation

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/translation/{language}/{languageKey}" \
-H "Accept: application/json" \
    -d "value"="et" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/translation/{language}/{languageKey}",
    "method": "PATCH",
    "data": {
        "value": "et"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/translation/{language}/{languageKey}

Parameters

Parameter Type Status Description
value string required

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

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/externaluser/{userId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/externaluser/{userId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/externaluser/{userId}

Create and store an external user

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/externaluser" \
-H "Accept: application/json" \
    -d "brugeradgang_brugernavn"="repudiandae" \
    -d "loenlaes"="9" \
    -d "loenskriv"="9" \
    -d "loenbestil"="9" \
    -d "loengodkend"="9" \
    -d "arkiv"="9" \
    -d "adganglaes"="9" \
    -d "adgangskriv"="9" \
    -d "loen_bestil_laes"="9" \
    -d "loen_godkend_laes"="9" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/externaluser",
    "method": "POST",
    "data": {
        "brugeradgang_brugernavn": "repudiandae",
        "loenlaes": 9,
        "loenskriv": 9,
        "loenbestil": 9,
        "loengodkend": 9,
        "arkiv": 9,
        "adganglaes": 9,
        "adgangskriv": 9,
        "loen_bestil_laes": 9,
        "loen_godkend_laes": 9
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/externaluser

Parameters

Parameter Type Status Description
brugeradgang_brugernavn string required Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
loenlaes integer required Must have an exact length of 1
loenskriv integer required Must have an exact length of 1
loenbestil integer required Must have an exact length of 1
loengodkend integer required Must have an exact length of 1
arkiv integer required Must have an exact length of 1
adganglaes integer required Must have an exact length of 1
adgangskriv integer required Must have an exact length of 1
loen_bestil_laes integer required Must have an exact length of 1
loen_godkend_laes integer required Must have an exact length of 1

Updates an existing external user.

It is only the access rights that can be changed

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/externaluser/{userId}" \
-H "Accept: application/json" \
    -d "loenlaes"="8" \
    -d "loenskriv"="8" \
    -d "loenbestil"="8" \
    -d "loengodkend"="8" \
    -d "arkiv"="8" \
    -d "adganglaes"="8" \
    -d "adgangskriv"="8" \
    -d "loen_bestil_laes"="8" \
    -d "loen_godkend_laes"="8" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/externaluser/{userId}",
    "method": "PATCH",
    "data": {
        "loenlaes": 8,
        "loenskriv": 8,
        "loenbestil": 8,
        "loengodkend": 8,
        "arkiv": 8,
        "adganglaes": 8,
        "adgangskriv": 8,
        "loen_bestil_laes": 8,
        "loen_godkend_laes": 8
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/externaluser/{userId}

Parameters

Parameter Type Status Description
loenlaes integer optional Must have an exact length of 1
loenskriv integer optional Must have an exact length of 1
loenbestil integer optional Must have an exact length of 1
loengodkend integer optional Must have an exact length of 1
arkiv integer optional Must have an exact length of 1
adganglaes integer optional Must have an exact length of 1
adgangskriv integer optional Must have an exact length of 1
loen_bestil_laes integer optional Must have an exact length of 1
loen_godkend_laes integer optional Must have an exact length of 1

Return a list of all users

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/user" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/user",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "User": {
            "bruger_firma": 123,
            "bruger_brugernavn": "123-abc",
            "bruger_navn": "bruger",
            "bruger_email": "[email protected]",
            "bruger_mobil": "12345678"
        },
        "Access": {
            "superadmin": false,
            "read": true,
            "write": false,
            "archive": false,
            "salary": {
                "read": false,
                "write": false,
                "order": {
                    "read": false,
                    "write": false
                },
                "approve": {
                    "read": false,
                    "write": false
                }
            }
        }
    }
]

HTTP Request

GET api/company/{companyId}/user

HEAD api/company/{companyId}/user

Returns a list of all companies a companies users has access to

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/user/admin" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/user/admin",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/user/admin

HEAD api/company/{companyId}/user/admin

Returns a single user based on company and user id

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/user/{userId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/user/{userId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "User": {
        "bruger_firma": 123,
        "bruger_brugernavn": "123-abc",
        "bruger_navn": "bruger",
        "bruger_email": "[email protected]",
        "bruger_mobil": "12345678"
    },
    "Access": {
        "superadmin": false,
        "read": true,
        "write": false,
        "archive": false,
        "salary": {
            "read": false,
            "write": false,
            "order": {
                "read": false,
                "write": false
            },
            "approve": {
                "read": false,
                "write": false
            }
        }
    }
}

HTTP Request

GET api/company/{companyId}/user/{userId}

HEAD api/company/{companyId}/user/{userId}

Update User

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/user/{userId}" \
-H "Accept: application/json" \
    -d "bruger_navn"="ipsa" \
    -d "bruger_kodeord"="ipsa" \
    -d "bruger_kodeord_confirm"="ipsa" \
    -d "bruger_email"="[email protected]" \
    -d "bruger_mobil"="ipsa" \
    -d "loenlaes"="1" \
    -d "loenskriv"="1" \
    -d "loenbestil"="1" \
    -d "loengodkend"="1" \
    -d "arkiv"="1" \
    -d "adganglaes"="1" \
    -d "adgangskriv"="1" \
    -d "loen_bestil_laes"="1" \
    -d "loen_godkend_laes"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/user/{userId}",
    "method": "PATCH",
    "data": {
        "bruger_navn": "ipsa",
        "bruger_kodeord": "ipsa",
        "bruger_kodeord_confirm": "ipsa",
        "bruger_email": "[email protected]",
        "bruger_mobil": "ipsa",
        "loenlaes": 1,
        "loenskriv": 1,
        "loenbestil": 1,
        "loengodkend": 1,
        "arkiv": 1,
        "adganglaes": 1,
        "adgangskriv": 1,
        "loen_bestil_laes": 1,
        "loen_godkend_laes": 1
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/user/{userId}

Parameters

Parameter Type Status Description
bruger_navn string optional Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
bruger_kodeord string optional Minimum: 8 Maximum: 20 Must contain characters from 2 of the groups: Letters, Numbers and Symbols ( , . + - ' / % ( ) : @ _ & ? = )
bruger_kodeord_confirm string optional Required if the parameters bruger_kodeord are present. Must be the same as bruger_kodeord Minimum: 8 Maximum: 20 Must contain characters from 2 of the groups: Letters, Numbers and Symbols ( , . + - ' / % ( ) : @ _ & ? = )
bruger_email string optional Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
bruger_mobil string optional Maximum: 8
loenlaes integer optional Must have an exact length of 1
loenskriv integer optional Must have an exact length of 1
loenbestil integer optional Must have an exact length of 1
loengodkend integer optional Must have an exact length of 1
arkiv integer optional Must have an exact length of 1
adganglaes integer optional Must have an exact length of 1
adgangskriv integer optional Must have an exact length of 1
loen_bestil_laes integer optional Must have an exact length of 1
loen_godkend_laes integer optional Must have an exact length of 1

Create user

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/user" \
-H "Accept: application/json" \
    -d "bruger_brugernavn"="nihil" \
    -d "bruger_navn"="nihil" \
    -d "bruger_kodeord"="nihil" \
    -d "bruger_kodeord_confirm"="nihil" \
    -d "bruger_email"="[email protected]" \
    -d "bruger_mobil"="nihil" \
    -d "loenlaes"="4" \
    -d "loenskriv"="4" \
    -d "loenbestil"="4" \
    -d "loengodkend"="4" \
    -d "arkiv"="4" \
    -d "adganglaes"="4" \
    -d "adgangskriv"="4" \
    -d "loen_bestil_laes"="4" \
    -d "loen_godkend_laes"="4" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/user",
    "method": "POST",
    "data": {
        "bruger_brugernavn": "nihil",
        "bruger_navn": "nihil",
        "bruger_kodeord": "nihil",
        "bruger_kodeord_confirm": "nihil",
        "bruger_email": "[email protected]",
        "bruger_mobil": "nihil",
        "loenlaes": 4,
        "loenskriv": 4,
        "loenbestil": 4,
        "loengodkend": 4,
        "arkiv": 4,
        "adganglaes": 4,
        "adgangskriv": 4,
        "loen_bestil_laes": 4,
        "loen_godkend_laes": 4
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/user

Parameters

Parameter Type Status Description
bruger_brugernavn string required Maximum: 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
bruger_navn string required Maximum: 30 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
bruger_kodeord string required Minimum: 8 Maximum: 20 Must contain characters from 2 of the groups: Letters, Numbers and Symbols ( , . + - ' / % ( ) : @ _ & ? = )
bruger_kodeord_confirm string required Must be the same as bruger_kodeord Minimum: 8 Maximum: 20 Must contain characters from 2 of the groups: Letters, Numbers and Symbols ( , . + - ' / % ( ) : @ _ & ? = )
bruger_email string required Maximum: 70 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
bruger_mobil string optional Maximum: 8
loenlaes integer required Must have an exact length of 1
loenskriv integer required Must have an exact length of 1
loenbestil integer required Must have an exact length of 1
loengodkend integer required Must have an exact length of 1
arkiv integer required Must have an exact length of 1
adganglaes integer required Must have an exact length of 1
adgangskriv integer required Must have an exact length of 1
loen_bestil_laes integer required Must have an exact length of 1
loen_godkend_laes integer required Must have an exact length of 1

Delete User

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/user/{userId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/user/{userId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/user/{userId}

Returns a list of all external users

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/externaluser" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/externaluser",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/externaluser

HEAD api/company/{companyId}/externaluser

Returns an external user based on company and user id

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/externaluser/{userId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/externaluser/{userId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/externaluser/{userId}

HEAD api/company/{companyId}/externaluser/{userId}

get external user information

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/externalinformation/{userId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/externalinformation/{userId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/externalinformation/{userId}

HEAD api/company/{companyId}/externalinformation/{userId}

e-conomic

e-conomic integration callBack

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/economicsCallback" \
-H "Accept: application/json" \
    -d "callbackid"="17" \
    -d "token"="17" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/economicsCallback",
    "method": "PATCH",
    "data": {
        "callbackid": 17,
        "token": 17
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/economicsCallback

Parameters

Parameter Type Status Description
callbackid string required Between: 0 and 50 can only be a valid uuid
token string required Between: 0 and 50 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =

api/economic/marketplace

Example request:

curl -X GET "https://mit.proloen.dk/api/economic/marketplace" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/economic/marketplace",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/economic/marketplace

HEAD api/economic/marketplace

Get e-conomic integration for company

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/economics" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/economics",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/economics

HEAD api/company/{companyId}/economics

api/company/{companyId}/economics/error

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/economics/error" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/economics/error",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/economics/error

HEAD api/company/{companyId}/economics/error

Create e-conomic integration for company

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/economics" \
-H "Accept: application/json" \
    -d "economic_accessid"="36" \
    -d "economic_status"="2233582" \
    -d "economic_lastcheck"="quisquam" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/economics",
    "method": "POST",
    "data": {
        "economic_accessid": 36,
        "economic_status": 2233582,
        "economic_lastcheck": "quisquam"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/economics

Parameters

Parameter Type Status Description
economic_accessid string optional Between: 0 and 50 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? =
economic_status integer optional
economic_lastcheck string optional

api/company/{companyId}/economics/marketplace

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/economics/marketplace" \
-H "Accept: application/json" \
    -d "token"="et" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/economics/marketplace",
    "method": "POST",
    "data": {
        "token": "et"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/economics/marketplace

Parameters

Parameter Type Status Description
token string required

api/company/{companyId}/economics/error/{economicsFileId}

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/economics/error/{economicsFileId}" \
-H "Accept: application/json" \
    -d "economickonteringsbilagfil_opdater"="1" \
    -d "economickonteringsbilagfil_gensend"="1" \
    -d "economickonteringsbilagfil_slet"="1" \
    -d "economickonteringsbilagfilcsv"="aut" \
    -d "economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_id"="6" \
    -d "economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_konto"="6" \
    -d "economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_afdeling"="6" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/economics/error/{economicsFileId}",
    "method": "PATCH",
    "data": {
        "economickonteringsbilagfil_opdater": true,
        "economickonteringsbilagfil_gensend": true,
        "economickonteringsbilagfil_slet": true,
        "economickonteringsbilagfilcsv": "aut",
        "economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_id": 6,
        "economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_konto": 6,
        "economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_afdeling": 6
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/economics/error/{economicsFileId}

Parameters

Parameter Type Status Description
economickonteringsbilagfil_opdater boolean optional Required if the parameters economickonteringsbilagfil_gensend and economickonteringsbilagfil_slet are not present.
economickonteringsbilagfil_gensend boolean optional Required if the parameters economickonteringsbilagfil_opdater and economickonteringsbilagfil_slet are not present.
economickonteringsbilagfil_slet boolean optional Required if the parameters economickonteringsbilagfil_gensend and economickonteringsbilagfil_opdater are not present.
economickonteringsbilagfilcsv array optional Required if economickonteringsbilagfil_opdater is 1
economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_id integer optional
economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_konto integer optional
economickonteringsbilagfilcsv.0.economickonteringsbilagfilcsv_afdeling integer optional

Delete e-conomic integration for company

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/economics" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/economics",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/economics

eTaxCard (eSkattekort)

Get eTaxCard list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/etaxcard" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/etaxcard",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

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

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

employee salary type

Class EmployeeSalaryTypeController

Get employee salary type List

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejderloenart_firma": 123,
        "arbejderloenart_arbejder": 1234,
        "arbejderloenart_loenart": 110,
        "arbejderloenart_sats": 1234
    }
]

HTTP Request

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

HEAD api/company/{companyId}/employee/{employeeId}/salarytype

replace employee salary types

Requirements

Example request:

curl -X PUT "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytype" \
-H "Accept: application/json" \
    -d "arbejderloenarter"="tempora" \
    -d "arbejderloenarter.0.arbejderloenart_loenart"="218" \
    -d "arbejderloenarter.0.arbejderloenart_sats"="218" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytype",
    "method": "PUT",
    "data": {
        "arbejderloenarter": "tempora",
        "arbejderloenarter.0.arbejderloenart_loenart": 218,
        "arbejderloenarter.0.arbejderloenart_sats": 218
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "arbejderloenart_firma": 123,
        "arbejderloenart_arbejder": 1234,
        "arbejderloenart_loenart": 110,
        "arbejderloenart_sats": 1234
    }
]

or when there is errors

[
    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
]

HTTP Request

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

Parameters

Parameter Type Status Description
arbejderloenarter array optional Maximum: 7
arbejderloenarter.0.arbejderloenart_loenart integer required
arbejderloenarter.0.arbejderloenart_sats numeric required

Validate employee salary types

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytype/validate" \
-H "Accept: application/json" \
    -d "arbejderloenarter"="aperiam" \
    -d "arbejderloenarter.0.arbejderloenart_loenart"="339" \
    -d "arbejderloenarter.0.arbejderloenart_sats"="339551" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employee/{employeeId}/salarytype/validate",
    "method": "POST",
    "data": {
        "arbejderloenarter": "aperiam",
        "arbejderloenarter.0.arbejderloenart_loenart": 339,
        "arbejderloenarter.0.arbejderloenart_sats": 339551
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/employee/{employeeId}/salarytype/validate

Parameters

Parameter Type Status Description
arbejderloenarter array optional Maximum: 7
arbejderloenarter.0.arbejderloenart_loenart integer required Between: 0 and 9999
arbejderloenarter.0.arbejderloenart_sats numeric required Between: 1 and 9999999

general

api/emailverification

Example request:

curl -X POST "https://mit.proloen.dk/api/emailverification" \
-H "Accept: application/json" \
    -d "email"="[email protected]" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/emailverification",
    "method": "POST",
    "data": {
        "email": "[email protected]"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/emailverification

Parameters

Parameter Type Status Description
email email required Maximum: 255

api/emailverification/fromtoken

Example request:

curl -X PATCH "https://mit.proloen.dk/api/emailverification/fromtoken" \
-H "Accept: application/json" \
    -d "token"="est" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/emailverification/fromtoken",
    "method": "PATCH",
    "data": {
        "token": "est"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/emailverification/fromtoken

Parameters

Parameter Type Status Description
token string required Must have the size of 20 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/reportingperiodtype

HEAD api/company/{companyId}/reportingperiodtype

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype" \
-H "Accept: application/json" \
    -d "opgoerelsesperiodetype_titel"="minima" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype",
    "method": "POST",
    "data": {
        "opgoerelsesperiodetype_titel": "minima"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/reportingperiodtype

Parameters

Parameter Type Status Description
opgoerelsesperiodetype_titel string required Minimum: 1 Maximum: 32

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}

HEAD api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}" \
-H "Accept: application/json" \
    -d "opgoerelsesperiodetype_titel"="ducimus" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}",
    "method": "PATCH",
    "data": {
        "opgoerelsesperiodetype_titel": "ducimus"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}

Parameters

Parameter Type Status Description
opgoerelsesperiodetype_titel string required Minimum: 1 Maximum: 32

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/reportingperiodtype/{reportingPeriodTypeId}

api/company/{companyId}/netpromoterscore/active

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/active" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/active",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/netpromoterscore/active

HEAD api/company/{companyId}/netpromoterscore/active

api/company/{companyId}/netpromoterscore/{netPromoterScoreId}

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/{netPromoterScoreId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/{netPromoterScoreId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/netpromoterscore/{netPromoterScoreId}

HEAD api/company/{companyId}/netpromoterscore/{netPromoterScoreId}

api/company/{companyId}/netpromoterscore/{netPromoterScoreId}

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/{netPromoterScoreId}" \
-H "Accept: application/json" \
    -d "responded_positive"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/{netPromoterScoreId}",
    "method": "PATCH",
    "data": {
        "responded_positive": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/netpromoterscore/{netPromoterScoreId}

Parameters

Parameter Type Status Description
responded_positive boolean optional

api/company/{companyId}/netpromoterscore/{netPromoterScoreId}

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/{netPromoterScoreId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/netpromoterscore/{netPromoterScoreId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/netpromoterscore/{netPromoterScoreId}

api/company/{companyId}/archive/balence/accounttype

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/balence/accounttype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/balence/accounttype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/balence/accounttype

HEAD api/company/{companyId}/archive/balence/accounttype

api/company/{companyId}/archive/balence/accounttype/{accountTypeId}/salarytype

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/balence/accounttype/{accountTypeId}/salarytype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/balence/accounttype/{accountTypeId}/salarytype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/balence/accounttype/{accountTypeId}/salarytype

HEAD api/company/{companyId}/archive/balence/accounttype/{accountTypeId}/salarytype

api/company/{companyId}/archive/balence/year

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/balence/year

HEAD api/company/{companyId}/archive/balence/year

api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees

HEAD api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees

api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/all

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/all" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/all",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/all

HEAD api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/all

api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/{employeeId}

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/{employeeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/{employeeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/{employeeId}

HEAD api/company/{companyId}/archive/balence/year/{year}/{accountTypeId}/employees/{employeeId}

get archive salary transactions

Requirements

Optional filter parameters

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction" \
-H "Accept: application/json" \
    -d "employeetype"="491661401" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
    -d "employees"="earum" \
    -d "department"="491661401" \
    -d "salarytypes"="earum" \
    -d "project"="earum" \
    -d "employees.0"="491661401" \
    -d "salarytypes.0"="491661401" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction",
    "method": "POST",
    "data": {
        "employeetype": 491661401,
        "from": "2020-03-25",
        "to": "2020-03-25",
        "employees": "earum",
        "department": 491661401,
        "salarytypes": "earum",
        "project": "earum",
        "employees.0": 491661401,
        "salarytypes.0": 491661401
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/archive/salarytransaction

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d
employees array optional
department integer optional
salarytypes array optional
project string optional
employees.0 integer required
salarytypes.0 integer optional

get archive salary transaction employee types

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/employeetype" \
-H "Accept: application/json" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/employeetype",
    "method": "GET",
    "data": {
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/employeetype

HEAD api/company/{companyId}/archive/salarytransaction/employeetype

Parameters

Parameter Type Status Description
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction employees

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/employee" \
-H "Accept: application/json" \
    -d "employeetype"="160708115" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/employee",
    "method": "GET",
    "data": {
        "employeetype": 160708115,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/employee

HEAD api/company/{companyId}/archive/salarytransaction/employee

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction periods

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/period" \
-H "Accept: application/json" \
    -d "employeetype"="214" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/period",
    "method": "GET",
    "data": {
        "employeetype": 214,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/period

HEAD api/company/{companyId}/archive/salarytransaction/period

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get latest period

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/period/latest" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/period/latest",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

null

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/period/latest

HEAD api/company/{companyId}/archive/salarytransaction/period/latest

get archive salary transaction salary types

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/salarytype" \
-H "Accept: application/json" \
    -d "employeetype"="9375" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/salarytype",
    "method": "GET",
    "data": {
        "employeetype": 9375,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/salarytype

HEAD api/company/{companyId}/archive/salarytransaction/salarytype

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction departments

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/department" \
-H "Accept: application/json" \
    -d "employeetype"="731899620" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/department",
    "method": "GET",
    "data": {
        "employeetype": 731899620,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/department

HEAD api/company/{companyId}/archive/salarytransaction/department

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction projects

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/projects" \
-H "Accept: application/json" \
    -d "employeetype"="51352846" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/projects",
    "method": "GET",
    "data": {
        "employeetype": 51352846,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/projects

HEAD api/company/{companyId}/archive/salarytransaction/projects

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transactions as a csv file

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv" \
-H "Accept: application/json" \
    -d "employeetype"="0" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
    -d "employees"="inventore" \
    -d "department"="0" \
    -d "salarytypes"="inventore" \
    -d "project"="inventore" \
    -d "employees.0"="0" \
    -d "salarytypes.0"="0" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv",
    "method": "GET",
    "data": {
        "employeetype": 0,
        "from": "2020-03-25",
        "to": "2020-03-25",
        "employees": "inventore",
        "department": 0,
        "salarytypes": "inventore",
        "project": "inventore",
        "employees.0": 0,
        "salarytypes.0": 0
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/csv

HEAD api/company/{companyId}/archive/salarytransaction/csv

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d
employees array optional
department integer optional
salarytypes array optional
project string optional
employees.0 integer required
salarytypes.0 integer required

get archive salary transaction employee types as a csv file

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/employeetype" \
-H "Accept: application/json" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/employeetype",
    "method": "GET",
    "data": {
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/csv/employeetype

HEAD api/company/{companyId}/archive/salarytransaction/csv/employeetype

Parameters

Parameter Type Status Description
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction employees as a csv file

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/employee" \
-H "Accept: application/json" \
    -d "employeetype"="5894" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/employee",
    "method": "GET",
    "data": {
        "employeetype": 5894,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

HEAD api/company/{companyId}/archive/salarytransaction/csv/employee

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction periods as a csv file

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/period" \
-H "Accept: application/json" \
    -d "employeetype"="723" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/period",
    "method": "GET",
    "data": {
        "employeetype": 723,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/csv/period

HEAD api/company/{companyId}/archive/salarytransaction/csv/period

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction salary types as a csv file

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/salarytype" \
-H "Accept: application/json" \
    -d "employeetype"="32770126" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/salarytype",
    "method": "GET",
    "data": {
        "employeetype": 32770126,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/csv/salarytype

HEAD api/company/{companyId}/archive/salarytransaction/csv/salarytype

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction projects as a csv file

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/department" \
-H "Accept: application/json" \
    -d "employeetype"="716" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/department",
    "method": "GET",
    "data": {
        "employeetype": 716,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/csv/department

HEAD api/company/{companyId}/archive/salarytransaction/csv/department

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

get archive salary transaction projects as a csv file

Requirements

Optional filter parameters

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/project" \
-H "Accept: application/json" \
    -d "employeetype"="3" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/salarytransaction/csv/project",
    "method": "GET",
    "data": {
        "employeetype": 3,
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/salarytransaction/csv/project

HEAD api/company/{companyId}/archive/salarytransaction/csv/project

Parameters

Parameter Type Status Description
employeetype integer optional
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/search" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/search",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/search

HEAD api/company/{companyId}/archive/search

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/archive/search" \
-H "Accept: application/json" \
    -d "soegning_navn"="nam" \
    -d "soegning_indstillinger"="nam" \
    -d "soegning_standard"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/search",
    "method": "POST",
    "data": {
        "soegning_navn": "nam",
        "soegning_indstillinger": "nam",
        "soegning_standard": "1"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/archive/search

Parameters

Parameter Type Status Description
soegning_navn string required Maximum: 255
soegning_indstillinger string required
soegning_standard string optional 0 or 1

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/search/{searchId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/search/{searchId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/search/{searchId}

HEAD api/company/{companyId}/archive/search/{searchId}

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/archive/search/{searchId}" \
-H "Accept: application/json" \
    -d "soegning_navn"="praesentium" \
    -d "soegning_indstillinger"="praesentium" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/search/{searchId}",
    "method": "PATCH",
    "data": {
        "soegning_navn": "praesentium",
        "soegning_indstillinger": "praesentium"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/archive/search/{searchId}

Parameters

Parameter Type Status Description
soegning_navn string optional Maximum: 255
soegning_indstillinger string optional

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/archive/search/{searchId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/search/{searchId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/archive/search/{searchId}

api/company/{companyId}/archive/document

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document" \
-H "Accept: application/json" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
    -d "employeetype"="incidunt" \
    -d "documenttype"="incidunt" \
    -d "employee"="603" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document",
    "method": "GET",
    "data": {
        "from": "2020-03-25",
        "to": "2020-03-25",
        "employeetype": "incidunt",
        "documenttype": "incidunt",
        "employee": 603
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document

HEAD api/company/{companyId}/archive/document

Parameters

Parameter Type Status Description
from date required Date format: Y-m-d
to date required Date format: Y-m-d
employeetype string optional
documenttype string optional
employee integer optional

api/company/{companyId}/archive/document/{archiveDocumentId}

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/{archiveDocumentId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/{archiveDocumentId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/{archiveDocumentId}

HEAD api/company/{companyId}/archive/document/{archiveDocumentId}

api/company/{companyId}/archive/document/employee

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/employee" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/employee",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/employee

HEAD api/company/{companyId}/archive/document/employee

api/company/{companyId}/archive/document/documenttype

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/documenttype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/documenttype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/documenttype

HEAD api/company/{companyId}/archive/document/documenttype

api/company/{companyId}/archive/document/employeetype

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/employeetype" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/employeetype",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/employeetype

HEAD api/company/{companyId}/archive/document/employeetype

api/company/{companyId}/archive/document/latestedidbysalarytype

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/latestedidbysalarytype" \
-H "Accept: application/json" \
    -d "salarytype"="1289" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/latestedidbysalarytype",
    "method": "GET",
    "data": {
        "salarytype": 1289
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/latestedidbysalarytype

HEAD api/company/{companyId}/archive/document/latestedidbysalarytype

Parameters

Parameter Type Status Description
salarytype integer required

api/company/{companyId}/archive/document/latestedidbyemployee

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/latestedidbyemployee" \
-H "Accept: application/json" \
    -d "employee"="55171" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/latestedidbyemployee",
    "method": "GET",
    "data": {
        "employee": 55171
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/latestedidbyemployee

HEAD api/company/{companyId}/archive/document/latestedidbyemployee

Parameters

Parameter Type Status Description
employee integer required

api/company/{companyId}/archive/document/period

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/period" \
-H "Accept: application/json" \
    -d "from"="2020-03-25" \
    -d "to"="2020-03-25" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/period",
    "method": "GET",
    "data": {
        "from": "2020-03-25",
        "to": "2020-03-25"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/period

HEAD api/company/{companyId}/archive/document/period

Parameters

Parameter Type Status Description
from date optional Date format: Y-m-d
to date optional Date format: Y-m-d

api/company/{companyId}/archive/document/period/latest

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/archive/document/period/latest" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/period/latest",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/archive/document/period/latest

HEAD api/company/{companyId}/archive/document/period/latest

api/company/{companyId}/archive/document/tozip

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/archive/document/tozip" \
-H "Accept: application/json" \
    -d "zipname"="veniam" \
    -d "document_id_list"="veniam" \
    -d "document_id_list.0"="769" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/archive/document/tozip",
    "method": "POST",
    "data": {
        "zipname": "veniam",
        "document_id_list": "veniam",
        "document_id_list.0": 769
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/archive/document/tozip

Parameters

Parameter Type Status Description
zipname string required Maximum: 100 Must match this regular expression: /^([0-9a-zæøåA-ZÆØÅüÜ()\-_ ])+$/
document_id_list array required Maximum: 10000
document_id_list.0 integer required

uploads bl data from csv

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/bl" \
-H "Accept: application/json" \
    -d "BLFil"="eos" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/bl",
    "method": "POST",
    "data": {
        "BLFil": "eos"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/bl

Parameters

Parameter Type Status Description
BLFil file required Must be a file upload Allowed mime types: text/csv, text/plain, application/csv, application/x-csv, text/comma-separated-values, text/x-comma-separated-values or text/tab-separated-values

Get bl data for company

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/bl" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/bl",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/bl

HEAD api/company/{companyId}/bl

Get bl data for company as csv

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/bl/csv" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/bl/csv",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

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

HEAD api/company/{companyId}/bl/csv

Get Message folder list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/folder" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/folder",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": null,
        "title": "Indbakke"
    },
    {
        "id": 1,
        "title": "Ferie"
    }
]

HTTP Request

GET api/company/{companyId}/message/folder

HEAD api/company/{companyId}/message/folder

Store a new Message folder

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/message/folder" \
-H "Accept: application/json" \
    -d "title"="eum" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/folder",
    "method": "POST",
    "data": {
        "title": "eum"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 1,
        "title": "Ferie"
    }
]

HTTP Request

POST api/company/{companyId}/message/folder

Parameters

Parameter Type Status Description
title string required Maximum: 32 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Get Message folder list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/folder/{messagefolderId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/folder/{messagefolderId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 1,
        "title": "Ferie"
    }
]

HTTP Request

GET api/company/{companyId}/message/folder/{messagefolderId}

HEAD api/company/{companyId}/message/folder/{messagefolderId}

Update a Message folder

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/message/folder/{messagefolderId}" \
-H "Accept: application/json" \
    -d "title"="harum" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/folder/{messagefolderId}",
    "method": "PATCH",
    "data": {
        "title": "harum"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 1,
        "title": "Ferie"
    }
]

HTTP Request

PATCH api/company/{companyId}/message/folder/{messagefolderId}

Parameters

Parameter Type Status Description
title string required Maximum: 32 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space

Remove a Message folder

Requirements

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/message/folder/{messagefolderId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/folder/{messagefolderId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/message/folder/{messagefolderId}

Get message list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message

HEAD api/company/{companyId}/message

Get unread message list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/unread" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/unread",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message/unread

HEAD api/company/{companyId}/message/unread

Get inbox message list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/inbox" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/inbox",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message/inbox

HEAD api/company/{companyId}/message/inbox

Get archived message list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/archived" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/archived",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message/archived

HEAD api/company/{companyId}/message/archived

Get starred message list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/starred" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/starred",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message/starred

HEAD api/company/{companyId}/message/starred

Get important message list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/important" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/important",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message/important

HEAD api/company/{companyId}/message/important

Get sent message list

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/sent" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/sent",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message/sent

HEAD api/company/{companyId}/message/sent

Store a new Message

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/message" \
-H "Accept: application/json" \
    -d "title"="sed" \
    -d "important"="1" \
    -d "starred"="1" \
    -d "messagefolder_id"="53211" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message",
    "method": "POST",
    "data": {
        "title": "sed",
        "important": "1",
        "starred": "1",
        "messagefolder_id": 53211
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/message

Parameters

Parameter Type Status Description
title string required Maximum: 200 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
important integer required 0 or 1
starred integer required 0 or 1
messagefolder_id integer optional

Restore a list of messages

Requirements

Messages vil be restored

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/message/restore" \
-H "Accept: application/json" \
    -d "messageids"="ullam" \
    -d "messageids.0"="765" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/restore",
    "method": "POST",
    "data": {
        "messageids": "ullam",
        "messageids.0": 765
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/message/restore

Parameters

Parameter Type Status Description
messageids array required
messageids.0 integer required

Store a new Message and sent it to all/industries/companies

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/message/superadmin" \
-H "Accept: application/json" \
    -d "title"="animi" \
    -d "important"="1" \
    -d "starred"="1" \
    -d "messagefolder_id"="16579" \
    -d "all"="1" \
    -d "recipient_industries"="animi" \
    -d "recipient_companies"="animi" \
    -d "recipient_industries.0"="16579" \
    -d "recipient_companies.0"="16579" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/superadmin",
    "method": "POST",
    "data": {
        "title": "animi",
        "important": "1",
        "starred": "1",
        "messagefolder_id": 16579,
        "all": "1",
        "recipient_industries": "animi",
        "recipient_companies": "animi",
        "recipient_industries.0": 16579,
        "recipient_companies.0": 16579
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

POST api/company/{companyId}/message/superadmin

Parameters

Parameter Type Status Description
title string required Maximum: 200 Can only contain A-Å 0-9, . + - ' / % ( ) : @ _ & ? = and space
important integer required 0 or 1
starred integer required 0 or 1
messagefolder_id integer optional
all integer optional 0 or 1
recipient_industries array optional
recipient_companies array optional
recipient_industries.0 integer required Must have a length between 1 and 3
recipient_companies.0 integer required Must have a length between 1 and 5

Get a Message

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

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

HTTP Request

GET api/company/{companyId}/message/{messageId}

HEAD api/company/{companyId}/message/{messageId}

Update a Message

Requirements

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}" \
-H "Accept: application/json" \
    -d "title"="voluptatem" \
    -d "important"="0" \
    -d "reply_enabled"="0" \
    -d "starred"="0" \
    -d "messagefolder_id"="8" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}",
    "method": "PATCH",
    "data": {
        "title": "voluptatem",
        "important": "0",
        "reply_enabled": "0",
        "starred": "0",
        "messagefolder_id": 8
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/message/{messageId}

Parameters

Parameter Type Status Description
title string required Maximum: 200
important integer optional 0 or 1
reply_enabled integer optional 0 or 1
starred integer optional 0 or 1
messagefolder_id integer optional

Remove a list message

Requirements

Messages vil be marked delete, but can be restored later by '/restore' command

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/message/list" \
-H "Accept: application/json" \
    -d "messageids"="occaecati" \
    -d "messageids.0"="82863" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/list",
    "method": "DELETE",
    "data": {
        "messageids": "occaecati",
        "messageids.0": 82863
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/message/list

Parameters

Parameter Type Status Description
messageids array required
messageids.0 integer required

Remove a message

Requirements

Message vil be marked delete, but can be restored later by '/restore' command

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/message/{messageId}

Restore a Message

Requirements

Message vil be restored

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/markread" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/markread",
    "method": "POST",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/message/{messageId}/markread

Restore a Message

Requirements

Message vil be restored

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/restore" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/restore",
    "method": "POST",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/message/{messageId}/restore

Get Message commentslist

Requirements

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/comment" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/comment",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 1,
        "comment": "Husk at der er kursus i dag.",
        "sender": "123-user",
        "created_at": "2018-05-01T09:28:18+01:00"
    }
]

HTTP Request

GET api/company/{companyId}/message/{messageId}/comment

HEAD api/company/{companyId}/message/{messageId}/comment

Get Message commentslist

Requirements

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/comment" \
-H "Accept: application/json" \
    -d "comment"="sed" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/message/{messageId}/comment",
    "method": "POST",
    "data": {
        "comment": "sed"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "id": 2,
    "comment": "Husk at der er kursus i dag.",
    "sender": "123-user",
    "created_at": "2018-05-01T09:28:18+01:00"
}

HTTP Request

POST api/company/{companyId}/message/{messageId}/comment

Parameters

Parameter Type Status Description
comment string required Maximum: 4000

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/absencecode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencecode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/absencecode

HEAD api/company/{companyId}/absencecode

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/absencecode/{absenceCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencecode/{absenceCodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/absencecode/{absenceCodeId}

HEAD api/company/{companyId}/absencecode/{absenceCodeId}

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/absencecode" \
-H "Accept: application/json" \
    -d "fravaerskode_nr"="326426" \
    -d "fravaerskode_tekst"="distinctio" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencecode",
    "method": "POST",
    "data": {
        "fravaerskode_nr": 326426,
        "fravaerskode_tekst": "distinctio"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/absencecode

Parameters

Parameter Type Status Description
fravaerskode_nr integer required Must have a length between 1 and 4
fravaerskode_tekst string required Maximum: 50

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/absencecode/{absenceCodeId}" \
-H "Accept: application/json" \
    -d "fravaerskode_tekst"="reiciendis" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencecode/{absenceCodeId}",
    "method": "PATCH",
    "data": {
        "fravaerskode_tekst": "reiciendis"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/absencecode/{absenceCodeId}

Parameters

Parameter Type Status Description
fravaerskode_tekst string required Maximum: 50

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/absencecode/{absenceCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/absencecode/{absenceCodeId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/absencecode/{absenceCodeId}

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employmentcode" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentcode",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/employmentcode

HEAD api/company/{companyId}/employmentcode

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employmentcode/{employmentCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentcode/{employmentCodeId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/employmentcode/{employmentCodeId}

HEAD api/company/{companyId}/employmentcode/{employmentCodeId}

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employmentcode" \
-H "Accept: application/json" \
    -d "beskaeftigelseskode_nr"="370654255" \
    -d "beskaeftigelseskode_tekst"="ut" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentcode",
    "method": "POST",
    "data": {
        "beskaeftigelseskode_nr": 370654255,
        "beskaeftigelseskode_tekst": "ut"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/employmentcode

Parameters

Parameter Type Status Description
beskaeftigelseskode_nr integer required Must have a length between 1 and 2
beskaeftigelseskode_tekst string required Maximum: 100

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/employmentcode/{employmentCodeId}" \
-H "Accept: application/json" \
    -d "beskaeftigelseskode_tekst"="ipsum" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentcode/{employmentCodeId}",
    "method": "PATCH",
    "data": {
        "beskaeftigelseskode_tekst": "ipsum"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/employmentcode/{employmentCodeId}

Parameters

Parameter Type Status Description
beskaeftigelseskode_tekst string required Maximum: 100

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/employmentcode/{employmentCodeId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentcode/{employmentCodeId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/employmentcode/{employmentCodeId}

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employmentterms" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentterms",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/employmentterms

HEAD api/company/{companyId}/employmentterms

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/employmentterms/{employmentTermsId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentterms/{employmentTermsId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/employmentterms/{employmentTermsId}

HEAD api/company/{companyId}/employmentterms/{employmentTermsId}

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/employmentterms" \
-H "Accept: application/json" \
    -d "ansaettelsesforhold_nr"="ut" \
    -d "ansaettelsesforhold_tekst"="ut" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentterms",
    "method": "POST",
    "data": {
        "ansaettelsesforhold_nr": "ut",
        "ansaettelsesforhold_tekst": "ut"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/employmentterms

Parameters

Parameter Type Status Description
ansaettelsesforhold_nr string optional Maximum: 2
ansaettelsesforhold_tekst string required Maximum: 50

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/employmentterms/{employmentTermsId}" \
-H "Accept: application/json" \
    -d "ansaettelsesforhold_tekst"="illum" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentterms/{employmentTermsId}",
    "method": "PATCH",
    "data": {
        "ansaettelsesforhold_tekst": "illum"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/employmentterms/{employmentTermsId}

Parameters

Parameter Type Status Description
ansaettelsesforhold_tekst string required Maximum: 50

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/employmentterms/{employmentTermsId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/employmentterms/{employmentTermsId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/employmentterms/{employmentTermsId}

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/greenlandmunicipality

HEAD api/company/{companyId}/greenlandmunicipality

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}

HEAD api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality" \
-H "Accept: application/json" \
    -d "groenlandskkommune_nr"="1062" \
    -d "groenlandskkommune_tekst"="ex" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality",
    "method": "POST",
    "data": {
        "groenlandskkommune_nr": 1062,
        "groenlandskkommune_tekst": "ex"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/greenlandmunicipality

Parameters

Parameter Type Status Description
groenlandskkommune_nr integer required Must have a length between 1 and 3
groenlandskkommune_tekst string required Maximum: 100

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}" \
-H "Accept: application/json" \
    -d "groenlandskkommune_tekst"="enim" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}",
    "method": "PATCH",
    "data": {
        "groenlandskkommune_tekst": "enim"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}

Parameters

Parameter Type Status Description
groenlandskkommune_tekst string required Maximum: 100

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/greenlandmunicipality/{greenlandMunicipalityId}

Display a listing of the resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/maternityda" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/maternityda",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/maternityda

HEAD api/company/{companyId}/maternityda

Display the specified resource.

Example request:

curl -X GET "https://mit.proloen.dk/api/company/{companyId}/maternityda/{maternityDAId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/maternityda/{maternityDAId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/company/{companyId}/maternityda/{maternityDAId}

HEAD api/company/{companyId}/maternityda/{maternityDAId}

Store a newly created resource in storage.

Example request:

curl -X POST "https://mit.proloen.dk/api/company/{companyId}/maternityda" \
-H "Accept: application/json" \
    -d "dabarsel_nr"="4" \
    -d "dabarsel_tekst"="aliquid" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/maternityda",
    "method": "POST",
    "data": {
        "dabarsel_nr": 4,
        "dabarsel_tekst": "aliquid"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/company/{companyId}/maternityda

Parameters

Parameter Type Status Description
dabarsel_nr integer required Must have an exact length of 1
dabarsel_tekst string required Maximum: 50

Update the specified resource in storage.

Example request:

curl -X PATCH "https://mit.proloen.dk/api/company/{companyId}/maternityda/{maternityDAId}" \
-H "Accept: application/json" \
    -d "dabarsel_tekst"="ea" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/maternityda/{maternityDAId}",
    "method": "PATCH",
    "data": {
        "dabarsel_tekst": "ea"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/company/{companyId}/maternityda/{maternityDAId}

Parameters

Parameter Type Status Description
dabarsel_tekst string required Maximum: 50

Remove the specified resource from storage.

Example request:

curl -X DELETE "https://mit.proloen.dk/api/company/{companyId}/maternityda/{maternityDAId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/company/{companyId}/maternityda/{maternityDAId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/company/{companyId}/maternityda/{maternityDAId}

api/user/{userId}/netpromoterscore/active

Example request:

curl -X GET "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/active" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/active",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/user/{userId}/netpromoterscore/active

HEAD api/user/{userId}/netpromoterscore/active

api/user/{userId}/netpromoterscore

Example request:

curl -X GET "https://mit.proloen.dk/api/user/{userId}/netpromoterscore" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/netpromoterscore",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/user/{userId}/netpromoterscore

HEAD api/user/{userId}/netpromoterscore

api/user/{userId}/netpromoterscore

Example request:

curl -X POST "https://mit.proloen.dk/api/user/{userId}/netpromoterscore" \
-H "Accept: application/json" \
    -d "firma_nr"="rem" \
    -d "bruger_brugernavn"="rem" \
    -d "active_from"="2020-03-25T13:43:04+01:00" \
    -d "active_until"="2020-03-25T13:43:04+01:00" \
    -d "url"="rem" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/netpromoterscore",
    "method": "POST",
    "data": {
        "firma_nr": "rem",
        "bruger_brugernavn": "rem",
        "active_from": "2020-03-25T13:43:04+01:00",
        "active_until": "2020-03-25T13:43:04+01:00",
        "url": "rem"
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

POST api/user/{userId}/netpromoterscore

Parameters

Parameter Type Status Description
firma_nr string optional Required if the parameters bruger_brugernavn are not present.
bruger_brugernavn string optional Required if the parameters firma_nr are not present.
active_from date required Date format: Y-m-d\TH:i:sP
active_until date required Date format: Y-m-d\TH:i:sP
url string required Maximum: 500 Must match this regular expression: /^(((http:|https:)+(\/\/|\))|)+([\w+]+\.+[a-zA-Z+]{2,15})/

api/user/{userId}/netpromoterscore/{netPromoterScoreId}

Example request:

curl -X GET "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/{netPromoterScoreId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/{netPromoterScoreId}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

GET api/user/{userId}/netpromoterscore/{netPromoterScoreId}

HEAD api/user/{userId}/netpromoterscore/{netPromoterScoreId}

api/user/{userId}/netpromoterscore/{netPromoterScoreId}

Example request:

curl -X PATCH "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/{netPromoterScoreId}" \
-H "Accept: application/json" \
    -d "responded_positive"="1" \
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/{netPromoterScoreId}",
    "method": "PATCH",
    "data": {
        "responded_positive": true
},
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

PATCH api/user/{userId}/netpromoterscore/{netPromoterScoreId}

Parameters

Parameter Type Status Description
responded_positive boolean optional

api/user/{userId}/netpromoterscore/{netPromoterScoreId}

Example request:

curl -X DELETE "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/{netPromoterScoreId}" \
-H "Accept: application/json"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://mit.proloen.dk/api/user/{userId}/netpromoterscore/{netPromoterScoreId}",
    "method": "DELETE",
    "headers": {
        "accept": "application/json",
        "api-key" "{APIKEY}"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

HTTP Request

DELETE api/user/{userId}/netpromoterscore/{netPromoterScoreId}