{"info":{"_postman_id":"21166337-c0a1-4d33-8cd2-5c5542fb3802","name":"Kjarni External API documentation","description":"<html><head></head><body><p>\"{{ xyz }}\" means a variable, that will need to be changed with an url/user credentials/etc</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13869984","collectionId":"21166337-c0a1-4d33-8cd2-5c5542fb3802","publishedId":"UV5deEwW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-05T17:49:58.000Z"},"item":[{"name":"Authentication - before","item":[{"name":"Login","event":[{"listen":"test","script":{"id":"3ad57f25-fb38-4a90-a276-6505f9aa9f8d","exec":["// Checking if request ran successfully\r","pm.test(\"Token, login - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"f925e4de-c4d9-4b80-a31f-306051417624","exec":["//Set todays date as currentDate environment variable\r","var moment = require('moment');\r","pm.environment.set('currentDate', moment().format((\"YYYY-MM-DD\")));\r","pm.environment.set('monthAgo', moment().subtract(1, 'month').format((\"YYYY-MM-DD\")));\r","pm.environment.set('monthInFuture', moment().add(1, 'month').format((\"YYYY-MM-DD\")));\r","pm.environment.set('yearAgo', moment().subtract(1, 'year').format((\"YYYY-MM-DD\")));\r","pm.environment.set('yearInFuture', moment().add(1, 'year').format((\"YYYY-MM-DD\")));\r","pm.environment.set('currentDateTime',moment().format((\"YYYY-MM-DDTHH:mm\")));\r","pm.environment.set('eightHoursInFuture', moment().add(8, 'hours').format((\"YYYY-MM-DDTHH:mm\")));"],"type":"text/javascript"}}],"id":"350f5b9d-31d2-4928-8610-09586ffb8077","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text"},{"key":"username","value":"{{userName}}","type":"text"},{"key":"password","value":"{{passWord}}","type":"text"}],"options":{"urlencoded":{"language":"text"}}},"url":"{{baseUrl}}/Token","description":"<p>Login, where username and password are Kjarni credentials</p>\n","urlObject":{"path":["Token"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"350f5b9d-31d2-4928-8610-09586ffb8077"}],"id":"38ce3c38-11ca-4876-8512-03b8ab805e66","_postman_id":"38ce3c38-11ca-4876-8512-03b8ab805e66","description":""},{"name":"v2","item":[{"name":"List","event":[{"listen":"test","script":{"id":"462f265f-d4ec-4b78-a9a6-620f3ba69365","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"21a38629-582f-4886-ad41-3261cce02a38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/{{EntityName}}","description":"<p>(ísl. Sækja lista)</p>\n","urlObject":{"path":["kjarni","api","v2","{{EntityName}}"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"21a38629-582f-4886-ad41-3261cce02a38"},{"name":"Read","event":[{"listen":"test","script":{"id":"a3af41e0-9d45-471a-a3df-81de12c07894","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"5273ce66-b519-4ca7-be7e-b03c76a73039","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/{{EntityName}}/{{EntityID}}","description":"<p>(ísl. Sækja færslu)</p>\n","urlObject":{"path":["kjarni","api","v2","{{EntityName}}","{{EntityID}}"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5273ce66-b519-4ca7-be7e-b03c76a73039"}],"id":"0a99839f-83ad-48c9-99d9-d677e26eb285","description":"<p>\"EntityName\" is information from a Kjarni consultant.</p>\n","_postman_id":"0a99839f-83ad-48c9-99d9-d677e26eb285"},{"name":"HR","item":[{"name":"CompanyUnitsAll","event":[{"listen":"test","script":{"id":"d492292c-332e-47f3-b199-4813f4e855b3","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"485738b5-8d11-4b58-abaa-c4b1f0e9482f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/OrgData/CompanyUnitsAll","description":"<p>(ísl. Skipuritsvefþjónusta, skipulagseiningar)</p>\n","urlObject":{"path":["api","OrgData","CompanyUnitsAll"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"485738b5-8d11-4b58-abaa-c4b1f0e9482f"},{"name":"CompanyUnitsAll filtered by OrgCompanyUnitName and selecting specific properties","event":[{"listen":"test","script":{"id":"a4be849d-5a4f-4108-8862-c49f7d084099","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"c1785680-8309-474d-8dbe-968c3844cee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/OrgData/CompanyUnitsAll?$filter=endswith(OrgCompanyUnitName, 'svið') eq true&$select=OrgCompanyUnitName,PositionHeadName,OrgCompanyName&$orderby=OrgCompanyID","description":"<p>(ísl. Skipuritsvefþjónusta, skipulagseiningar)</p>\n","urlObject":{"path":["api","OrgData","CompanyUnitsAll"],"host":["{{baseUrl}}"],"query":[{"key":"$filter","value":"endswith(OrgCompanyUnitName, 'svið') eq true"},{"key":"$select","value":"OrgCompanyUnitName,PositionHeadName,OrgCompanyName"},{"key":"$orderby","value":"OrgCompanyID"}],"variable":[]}},"response":[],"_postman_id":"c1785680-8309-474d-8dbe-968c3844cee1"},{"name":"Organizational Chart","event":[{"listen":"test","script":{"id":"a1e9bbe1-f4fe-486a-9141-79a9a4f1c55c","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"55c9456f-9472-4820-9e37-081d9d1fa54f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/HrData/EmployeeOrgTree","description":"<p>(ísl. Skipuritsvefþjónusta, starfsmenn)</p>\n","urlObject":{"path":["api","HrData","EmployeeOrgTree"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"55c9456f-9472-4820-9e37-081d9d1fa54f"},{"name":"Employee Search","event":[{"listen":"test","script":{"id":"5bacb640-5697-42c1-8ee2-56129ef9a6ba","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"fa641bb4-6ed6-4b56-a3d7-86fd90e01eeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/HrData/EmployeesSearch","description":"<p>(ísl. Starfsmannaleit)</p>\n","urlObject":{"path":["api","HrData","EmployeesSearch"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa641bb4-6ed6-4b56-a3d7-86fd90e01eeb"},{"name":"Employees","event":[{"listen":"test","script":{"id":"ee7fe3a9-bcdb-46dd-ba31-6ac1bff3df78","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"eaac015b-e960-4f00-97ef-548becdb35d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/HrData/Employees?$filter=startswith(Name, '{{name}}')","description":"<p>(ísl. Starfsmannavefsþjónusta)</p>\n","urlObject":{"path":["api","HrData","Employees"],"host":["{{baseUrl}}"],"query":[{"key":"$filter","value":"startswith(Name, '{{name}}')"}],"variable":[]}},"response":[],"_postman_id":"eaac015b-e960-4f00-97ef-548becdb35d2"},{"name":"EmployeesAll","event":[{"listen":"test","script":{"id":"2cac168f-686c-414a-a7a4-9502c1712305","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"fcaa4380-0d8f-4334-b156-a4c43e1d91f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/HrData/EmployeesAll","description":"<p>(ísl. Starfsmannavefsþjónusta)</p>\n","urlObject":{"path":["api","HrData","EmployeesAll"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fcaa4380-0d8f-4334-b156-a4c43e1d91f4"},{"name":"EmployeesAllOrg with history","event":[{"listen":"test","script":{"id":"32cf3ce6-f7f6-44b4-8bc2-6be612ebd181","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"557a58cb-1785-48f7-9b3b-e8b1823cb925","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/HrData/EmployeesAllOrg?$filter=startswith(Name, '{{name}}')","description":"<p>(ísl. Starfsmannavefsþjónusta með sögu)</p>\n","urlObject":{"path":["api","HrData","EmployeesAllOrg"],"host":["{{baseUrl}}"],"query":[{"key":"$filter","value":"startswith(Name, '{{name}}')"}],"variable":[]}},"response":[],"_postman_id":"557a58cb-1785-48f7-9b3b-e8b1823cb925"},{"name":"Emplyoees with Fixed PayWage","event":[{"listen":"test","script":{"id":"fb03edfa-2492-4986-a2c1-5d099b23d2d9","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"2681d055-44e4-49ab-9454-d897efc6d671","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/HrData/PayWageEmployees?paywage={{payWageId}}","description":"<p>(ísl. Starfsmenn með fastan launalið)</p>\n","urlObject":{"path":["api","HrData","PayWageEmployees"],"host":["{{baseUrl}}"],"query":[{"key":"paywage","value":"{{payWageId}}"}],"variable":[]}},"response":[],"_postman_id":"2681d055-44e4-49ab-9454-d897efc6d671"},{"name":"Information about Employee","event":[{"listen":"test","script":{"id":"6f889ea2-c771-48fc-af0d-5af22fc59d70","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"d330a59d-32bd-4870-91b7-dd7fd353244c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/EmployeeMasters({{employeeMasterID}})","description":"<p>(ísl. Starfsmannavefsupplýsingar)</p>\n","urlObject":{"path":["kjarni","api","v2","EmployeeMasters({{employeeMasterID}})"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d330a59d-32bd-4870-91b7-dd7fd353244c"},{"name":"Patch Employee information","event":[{"listen":"test","script":{"id":"50f7cf6e-eec9-4fb8-95a1-35ffdc8e97e8","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript","packages":{}}}],"id":"62598d77-690a-4046-b9a9-2c05523ea7d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{ \"EmployeeMasterID\": {{employeeMasterID2}}, \"EmployeeName\": \"{{name}}\", \"Email\": \"{{currentDate}}@gmail.com\", \"EmailWork\": \"{{currentDate}}@origo.is\" }\r\n\r\n/*\r\n{\r\n    \"EmployeeName\": \"Abela Vilbrandsdóttir\",\r\n    \"EmployeeMasterID\": 100181,\r\n    \"Address\": \"mk prófar\"\r\n}\r\n*/\r\n    \r\n","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/kjarni/api/v2/EmployeeMasters({{employeeMasterID}})","description":"<p>(ísl. Starfsmannaupplýsingar uppfæra)</p>\n","urlObject":{"path":["kjarni","api","v2","EmployeeMasters({{employeeMasterID}})"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"62598d77-690a-4046-b9a9-2c05523ea7d6"},{"name":"Rehire Employee","event":[{"listen":"test","script":{"id":"83ccf1e1-9030-4836-bbc3-718f7e8291b0","exec":["// Checking if request ran successfully\r","pm.test(\"EmployeeDetailOrgs(ID)/Rehire - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"2986d86a-dd25-434b-ae1b-99b4d30cde6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"OrgCompanyUnitPositionID\": 551,\r\n    \"Begda\": \"{{currentDate}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/kjarni/api/v2/EmployeeDetailOrgs({{employeeMasterID}})/Rehire","description":"<p>(ísl. Endurráðning starfsmanns)</p>\n<p>Endpoint to rehire an employee that was previously employed at the company.\nOrgCompanyUnitPositionID is the Position the employee is going to start\n\"currentDate\" is a date in the format YYYY-MM-DD, eg 2021-01-01</p>\n","urlObject":{"path":["kjarni","api","v2","EmployeeDetailOrgs({{employeeMasterID}})","Rehire"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2986d86a-dd25-434b-ae1b-99b4d30cde6b"},{"name":"EmployeeData","event":[{"listen":"test","script":{"id":"e41e09d5-d763-4fd8-902b-548c2de6ee68","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"d0debb71-7c13-4921-8fec-c5b81dd8be7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/HrServices/EmployeeData","description":"<p>(ísl. Starfsmannavefsþjónusta)</p>\n<p>See examples below to see how this endpoint can be used.</p>\n","urlObject":{"path":["kjarni","api","v2","HrServices","EmployeeData"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0debb71-7c13-4921-8fec-c5b81dd8be7c"},{"name":"EmployeeData filtered by ManagerName","event":[{"listen":"test","script":{"id":"501d02cc-ecae-4872-9d55-6cb9d3fb93d7","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"28670cdb-4471-43e4-baeb-1943a60d6942","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/HrServices/EmployeeData","urlObject":{"path":["kjarni","api","v2","HrServices","EmployeeData"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28670cdb-4471-43e4-baeb-1943a60d6942"},{"name":"EmployeeData excluding employees that have left the company, using ID of status - petter performance than using name of status","event":[{"listen":"test","script":{"id":"282b4c47-85ad-45fc-9a0a-5b11e370ada0","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"4995121b-f7ca-40fb-bc84-3baec287aca1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/HrServices/EmployeeData?$filter=EmploymentStatus ne 3","urlObject":{"path":["kjarni","api","v2","HrServices","EmployeeData"],"host":["{{baseUrl}}"],"query":[{"key":"$filter","value":"EmploymentStatus ne 3"}],"variable":[]}},"response":[],"_postman_id":"4995121b-f7ca-40fb-bc84-3baec287aca1"},{"name":"EmployeeData excluding employees that have left the company, using name of status","event":[{"listen":"test","script":{"id":"14339513-ed02-44aa-af50-7dd7f6517e07","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"680a2866-37f9-455c-b0ec-881ef75ac9c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/HrServices/EmployeeData?$filter=EmploymentStatusName ne 'Hættur'","urlObject":{"path":["kjarni","api","v2","HrServices","EmployeeData"],"host":["{{baseUrl}}"],"query":[{"key":"$filter","value":"EmploymentStatusName ne 'Hættur'"}],"variable":[]}},"response":[],"_postman_id":"680a2866-37f9-455c-b0ec-881ef75ac9c3"},{"name":"EmployeeData Count","event":[{"listen":"test","script":{"id":"6cd272e9-492e-476d-ad43-0914a8bd5731","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"bee105e4-5cef-41fe-80a5-3fc17a69daea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/HrServices/EmployeeData?$count=true","urlObject":{"path":["kjarni","api","v2","HrServices","EmployeeData"],"host":["{{baseUrl}}"],"query":[{"key":"$count","value":"true"}],"variable":[]}},"response":[],"_postman_id":"bee105e4-5cef-41fe-80a5-3fc17a69daea"},{"name":"EmployeeData selecting only specific properties","event":[{"listen":"test","script":{"id":"654d62ef-eed4-49bd-840d-2efa824d8763","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"46393f29-3fc9-4c04-ab2a-be779ddaf7dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/HrServices/EmployeeData?$select=Name, WorkEmail","urlObject":{"path":["kjarni","api","v2","HrServices","EmployeeData"],"host":["{{baseUrl}}"],"query":[{"key":"$select","value":"Name, WorkEmail"}],"variable":[]}},"response":[],"_postman_id":"46393f29-3fc9-4c04-ab2a-be779ddaf7dd"},{"name":"EmployeeData multiple query options","event":[{"listen":"test","script":{"id":"1708cbe9-0c66-48ba-a560-5e62b17e9385","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"b0624528-9142-452e-b6c0-3cbc3c2006ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/HrServices/EmployeeData?$count=true&$filter=Department eq 'Reikningshald' and EmploymentStatusName ne 'Hættur'&$select=Name, WorkEmail, EmploymentStatusName","urlObject":{"path":["kjarni","api","v2","HrServices","EmployeeData"],"host":["{{baseUrl}}"],"query":[{"key":"$count","value":"true"},{"key":"$filter","value":"Department eq 'Reikningshald' and EmploymentStatusName ne 'Hættur'"},{"key":"$select","value":"Name, WorkEmail, EmploymentStatusName"}],"variable":[]}},"response":[],"_postman_id":"b0624528-9142-452e-b6c0-3cbc3c2006ce"}],"id":"8b8dae61-3f7e-4d80-82bd-c2796fca8bf1","_postman_id":"8b8dae61-3f7e-4d80-82bd-c2796fca8bf1","description":""},{"name":"Payroll","item":[{"name":"Payroll Data","event":[{"listen":"test","script":{"id":"58d9e9a7-7cfd-40b8-b877-4449b26faa7b","exec":["// Checking if request ran successfully\r","pm.test(\"PayrollData/PayRecord - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"e649077f-4592-41e4-bb97-ea4d3c9579f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/PayrollData/PayRecord/{{payRecordValue}}","description":"<p>(ísl. Vefþjónusta fyrir launaupplýsingar)</p>\n<p>payRecordValue can be PayID (útborgunarvísir), booking date (bókunardagsetningin) or recent months.</p>\n<p>Examples of this is:\n/PayrollData/PayRecord/XXXX, where XXXX is PayID</p>\n<p>/PayrollData/PayRecord/2018-01-01, where 2018-01-01 is the booking date</p>\n<p>/PayrollData/PayRecord/-12, where all closed pay entries are fetched from the past 12 months</p>\n","urlObject":{"path":["api","PayrollData","PayRecord","{{payRecordValue}}"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e649077f-4592-41e4-bb97-ea4d3c9579f4"},{"name":"Pay Records","event":[{"listen":"test","script":{"id":"6af4243e-fc6a-47bd-b3f3-71dcd3daf3f8","exec":["// Checking if request ran successfully\r","pm.test(\"PayrollData/PayRecord9700 - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"b8237314-5ef9-4cd7-9718-497ebe339745","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/PayrollData/PayRecord9700/{{months}}","description":"<p>(ísl. Greidd stöðugildi)</p>\n","urlObject":{"path":["api","PayrollData","PayRecord9700","{{months}}"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8237314-5ef9-4cd7-9718-497ebe339745"},{"name":"Post PayBatch","event":[{"listen":"test","script":{"id":"d188f8a7-34cc-4e4e-a8f4-9b1a8447b775","exec":["// Checking if request ran successfully\r","pm.test(\"PayrollData/PostPayBatch - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Saving the ID in the response as an environment variable\r","pm.test(\"PayrollData/PostPayBatch - Batch ID found and saved to environment.\", function () {\r","    var jsonData = pm.response.json();\r","    const id = jsonData ? jsonData : 'not found';\r","    pm.environment.set(\"batchID\", id);\r","});"],"type":"text/javascript"}}],"id":"2a7b3edd-ee39-4ddb-88c2-4cf0fff891e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"PayBatchName\": \"{{payBatchName}}\",\r\n    \"PayBatchLines\": [\r\n    {\r\n        \"EmployeeSSN\": \"{{payrollDataSsn}}\",\r\n        \"PayWageID\": \"{{payWageID}}\",\r\n        \"PayRecordBaseUnit\": \"1\"\r\n    },\r\n    {\r\n        \"EmployeeDetailID\": \"{{employeeDetailID}}\",\r\n        \"PayWageID\": \"{{payWageID2}}\",\r\n        \"PayRecordBaseUnit\": \"2\",\r\n        \"PayRecordAmount\": \"100\"\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/PayrollData/PostPayBatch","description":"<p>(ísl. Bunkainnlestur)</p>\n<p>Body shows examples of entries that can be a part of the batch.\nIn reality all of the entries of a batch will probably all look the same.</p>\n","urlObject":{"path":["api","PayrollData","PostPayBatch"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a7b3edd-ee39-4ddb-88c2-4cf0fff891e5"},{"name":"Status of PayBatch","event":[{"listen":"test","script":{"id":"21bcb29f-392f-4684-8adc-58728d112029","exec":["// Checking if request ran successfully\r","pm.test(\"PayrollData/PayBatchStatus - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"3aaaef4e-034a-47e8-b6fc-e243ce799a45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/PayrollData/PayBatchStatus?PayBatchID={{batchID}}","description":"<p>(isl. Bunkastatus)</p>\n","urlObject":{"path":["api","PayrollData","PayBatchStatus"],"host":["{{baseUrl}}"],"query":[{"key":"PayBatchID","value":"{{batchID}}"}],"variable":[]}},"response":[],"_postman_id":"3aaaef4e-034a-47e8-b6fc-e243ce799a45"},{"name":"Status of PayHoliday","event":[{"listen":"test","script":{"id":"6f46b7d5-9b32-42e2-8a76-de928386b80d","exec":["// Checking if request ran successfully\r","pm.test(\"Orlofsþjónustur, status - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"bd72bbe2-18ff-438b-931b-094577f770f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/kjarni/api/v2/PayHolidays/Status(paywagecollectyear={{payWageCollectValue}})","description":"<p>(ísl. Orlofsþjónusta, staða)</p>\n<p>\"payWageCollectValue\" is a year</p>\n","urlObject":{"path":["kjarni","api","v2","PayHolidays","Status(paywagecollectyear={{payWageCollectValue}})"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd72bbe2-18ff-438b-931b-094577f770f6"},{"name":"Collect PayHolidays","event":[{"listen":"test","script":{"id":"ad4c85f1-11a2-46ef-81d2-006acfed1ab3","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"32096223-388f-42b5-9efa-f8e5b4634446","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/kjarni/api/v2/PayHolidays/OverviewCollect(paywagecollectyear={{payWageCollectValue}})","description":"<p>(ísl. Orlofsþjónustur, Collect)</p>\n<p>\"payWageCollectValue\" is a year</p>\n","urlObject":{"path":["kjarni","api","v2","PayHolidays","OverviewCollect(paywagecollectyear={{payWageCollectValue}})"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"32096223-388f-42b5-9efa-f8e5b4634446"},{"name":"Collect PayHolidays for specific employee","event":[{"listen":"test","script":{"id":"1770d299-b882-4a95-b0e4-9fd521e3fa63","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"d2415d39-84c4-4269-a531-bafd3e08b83b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/kjarni/api/v2/PayHolidays/OverviewCollect(paywagecollectyear={{payWageCollectValue}},employeemasterid={{employeeMasterID}})","description":"<p>(ísl. Orlofsþjónustur, Collect)</p>\n<p>\"payWageCollectValue\" is a year<br />\"employeemasterid\" is a number</p>\n","urlObject":{"path":["kjarni","api","v2","PayHolidays","OverviewCollect(paywagecollectyear={{payWageCollectValue}},employeemasterid={{employeeMasterID}})"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2415d39-84c4-4269-a531-bafd3e08b83b"},{"name":"Payroll Data pr CostCenter","event":[{"listen":"test","script":{"id":"a9497886-da49-4bec-9fcf-0bacbdc9c58b","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"cae9cc8d-7960-4fbd-89f5-e02461d95661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/PayrollServices/CostCenterSummary(months={{months}})","description":"<p>(ísl. Launaupplýsingar pr. kostnaðarstöð)</p>\n","urlObject":{"path":["kjarni","api","v2","PayrollServices","CostCenterSummary(months={{months}})"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cae9cc8d-7960-4fbd-89f5-e02461d95661"},{"name":"Pay Budget","event":[{"listen":"test","script":{"id":"0b897bef-90e3-4f5d-9b88-5b165b5fcdbc","exec":["// Checking if request ran successfully\r","pm.test(\"Successful request\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"9ddf5f0c-9285-433f-8cc4-5636244662bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/kjarni/api/v2/PayBudgets/GetBudgetDetail(companyId={{companyID}})","description":"<p>(ísl. Launaáætlun vefþjónusta)</p>\n","urlObject":{"path":["kjarni","api","v2","PayBudgets","GetBudgetDetail(companyId={{companyID}})"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ddf5f0c-9285-433f-8cc4-5636244662bc"}],"id":"77dca0c7-7aa2-418a-8652-a583fa322942","_postman_id":"77dca0c7-7aa2-418a-8652-a583fa322942","description":""},{"name":"Learning","item":[{"name":"Courses - NEEDS UPDATING","event":[{"listen":"test","script":{"id":"1c63ab4d-c1a8-4a65-9d8c-0ec2ca5e4f68","exec":["// Checking if request ran successfully\r","pm.test(\"learning/onlinecourses - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"6ab1840e-2f4d-4009-a174-14221b2bbeb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/learning/onlinecourses","description":"<p>(ísl. Næstu námskeið) ATH. bara online námskeði? öll námskeið?</p>\n","urlObject":{"path":["api","learning","onlinecourses"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ab1840e-2f4d-4009-a174-14221b2bbeb7"}],"id":"f69b251c-69d1-4316-a578-75a01e5251bb","_postman_id":"f69b251c-69d1-4316-a578-75a01e5251bb","description":""},{"name":"Recruiting","item":[{"name":"Ráðningavefþjónusta","event":[{"listen":"test","script":{"id":"fff667ec-ced3-4905-8545-55f4cae03c65","exec":["// Checking if request ran successfully\r","pm.test(\"RecruitingData/RCApplicantApplication - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"28ba9cae-d83f-4fe1-b3cb-48a959719cfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/api/RecruitingData/RCApplicantApplication","description":"<p>(ísl. Ráðningarvefsþjónusta)</p>\n<p>ATH! What does this do?</p>\n","urlObject":{"path":["api","RecruitingData","RCApplicantApplication"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28ba9cae-d83f-4fe1-b3cb-48a959719cfb"}],"id":"6a7e5377-904b-4015-9d8a-52bec5827ff1","_postman_id":"6a7e5377-904b-4015-9d8a-52bec5827ff1","description":""},{"name":"Trace","item":[{"name":"Trace for PoetContext","event":[{"listen":"test","script":{"id":"6bde9f75-12e7-462c-aee2-1ad69d5f839f","exec":["// Checking if request ran successfully\r","pm.test(\"SysTraceAction/GetActions - Successful request.\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"06d0e3a9-4a80-4a21-a963-6824ea41a460","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"{{yearAgo}}\"}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/SysTraceAction/GetActions/PoetContext","description":"<p>(ísl. Breytingarsaga)</p>\n<p>\"yearAgo\" is the date one year ago today\nExample of body is: {\"2020-01-01\"}</p>\n","urlObject":{"path":["api","SysTraceAction","GetActions","PoetContext"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"06d0e3a9-4a80-4a21-a963-6824ea41a460"}],"id":"92c12245-28b6-414d-9b2e-5c21f5fc2eaf","_postman_id":"92c12245-28b6-414d-9b2e-5c21f5fc2eaf","description":""},{"name":"Authentication - after","item":[{"name":"Logout","event":[{"listen":"test","script":{"id":"c17a2eb6-dbed-4fee-822f-b8a59a1d38cd","exec":["// Checking if request ran successfully\r","pm.test(\"Logout - Token, logout - Successful logout.\", function () {\r","    pm.response.to.have.status(400);\r","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"6bc36d2a-d910-4edf-8e68-d53c5d372fad","exec":["// Clear saved environment variables\r","pm.test(\"Logout - Token, logout - Variables reset\", function () {\r","    pm.environment.set(\"loggedInEmployeeDetailID\", \"\");\r","});"],"type":"text/javascript"}}],"id":"d06a71c7-c1a4-4733-9f42-6eb4a0c63803","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"grant_type=refresh_token&refresh_token=","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/Token","urlObject":{"path":["Token"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d06a71c7-c1a4-4733-9f42-6eb4a0c63803"}],"id":"c968f9d9-4592-49a9-961c-2fbd726a63f9","_postman_id":"c968f9d9-4592-49a9-961c-2fbd726a63f9","description":""}]}