{"info":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<p>The ZenHR API, short for Application Programming Interface, is built around REST. This API lets external applications integrate with ZenHR on various levels to achieve different integration objectives.</p>\n<p>The ZenHR API responds in JSON format and follows standard HTTP response codes and authentication protocols. Each endpoint comes with a detailed description and sample responses.</p>\n<p>Using the ZenHR API, you can connect ZenHR with your own software. This API allows you to build applications, automate interactions with ZenHR, or create other integrations. This documentation covers the REST resources available in ZenHR, including HTTP response codes and sample requests and responses.</p>\n<p>This guide provides a detailed overview of the OAuth 2.0 authorization process, a crucial step in securing access to ZenHR’s APIs. Understanding and implementing this process is essential for developers aiming to establish a secure connection between their apps and ZenHR’s services. The guide also covers the key parameters and path variables needed in API requests, offering examples and formats for better understanding.</p>\n<p>Important Note Our limitations:<br>- on production , the limit is: 15 requests every 4 seconds.<br>- on sandbox link, max is: 10 requests every 5 seconds.</p>\n<h2 id=\"authorization\">Authorization</h2>\n<p>Before initiating the utilization of ZenHR APIs for your integration, it is imperative to be well-versed in the following authorization details:</p>\n<ul>\n<li><p><strong>Type:</strong> OAuth 2.0</p>\n</li>\n<li><p><strong>Add auth data to:</strong> Request Headers</p>\n</li>\n<li><p><strong>Header Prefix:</strong> Bearer</p>\n</li>\n<li><p><strong>Token Name:</strong> Your Application Name</p>\n</li>\n<li><p><strong>Grant Type:</strong> Authorization Code</p>\n</li>\n<li><p><strong>Callback URL:</strong> <a href=\"https://oauth.pstmn.io/v1/callback\">https://oauth.pstmn.io/v1/callback</a></p>\n</li>\n<li><p><strong>Auth URL:</strong> https://app.zenhr.com/oauth/authorize?app={your application name}</p>\n</li>\n<li><p><strong>Access Token URL:</strong> https://app.zenhr.com/oauth/token</p>\n</li>\n<li><p><strong>Client ID:</strong> client-id</p>\n</li>\n<li><p><strong>Client Secret:</strong> client-secret</p>\n</li>\n<li><p><strong>Scope:</strong> Specifies the scopes accessible to the application</p>\n</li>\n</ul>\n<p><strong>Example</strong></p>\n<ul>\n<li><strong>Scope:</strong> read.branch, read.employee, read.financial_info, read.professional_info, read.timeoff, read.financial_transaction, read.attendance_record</li>\n</ul>\n<h2 id=\"how-to-create-your-application-on-zenhr\">How To Create Your Application On ZenHR?</h2>\n<p>A new page has been added to ZenHR that enables Global Super Admin users to create integration apps with the ability to grant permissions based on required authorities.</p>\n<h4 id=\"prerequisites\">Prerequisites</h4>\n<ul>\n<li>A ZenHR account with <strong>global admin permissions</strong> to create OAuth applications.</li>\n</ul>\n<h2 id=\"part-1-your-apps-page-on-zenhr\">Part 1: Your Apps Page On ZenHR</h2>\n<h4 id=\"1access-the-application-creation-page\"><strong>1.Access the Application Creation Page:</strong></h4>\n<ul>\n<li>Append <strong>/en/oauth/applications</strong> to your ZenHR instance URL (e.g., <a href=\"https://app.zenhr.com/en/oauth/applications\">https://app.zenhr.com/en/oauth/applications</a>).</li>\n</ul>\n<img src=\"https://content.pstmn.io/190b4501-1c7d-4845-88e0-8b375acdf00a/aW1hZ2UucG5n\" width=\"566\" height=\"196\">\n\n<h4 id=\"2-configure-the-application\">2. Configure the Application</h4>\n<ul>\n<li><p>Click on the button \"<strong>New Application</strong>\" to display the new application form.</p>\n</li>\n<li><p><strong>Redirect URL:</strong> For testing with Postman, use <a href=\"https://oauth.pstmn.io/v1/callback\">https://oauth.pstmn.io/v1/callback</a>. For production, use your application's callback URL.</p>\n</li>\n<li><p><strong>Company Level:</strong> Select the appropriate company level for your application ( Preferred <strong>Company</strong> )</p>\n</li>\n<li><p><strong>Scope:</strong> Select the scopes corresponding to the API endpoints you intend to access.</p>\n</li>\n</ul>\n<img src=\"https://content.pstmn.io/875d406d-7823-40a8-8339-30c3f7d0a555/c2NyZWVuY2FwdHVyZS1hcHAtemVuaHItZW4tb2F1dGgtYXBwbGljYXRpb25zLW5ldy0yMDI1LTA3LTE0LTEwXzA2XzI4LnBuZw==\">\n\n<p>&gt; <strong>Note:</strong> For the data access level, select \"Company\" and make sure that you are the <strong>Global Admin</strong></p>\n<h4 id=\"3save-application-credentials\"><strong>3.Save Application Credentials</strong></h4>\n<ul>\n<li>After submitting, note down the <strong>UID</strong> and <strong>Secret</strong> provided. These are essential for authentication.</li>\n</ul>\n<img src=\"https://content.pstmn.io/179c2f3b-078d-4c54-bf0e-e8fce531d7e1/aW1hZ2UucG5n\" width=\"524\" height=\"672\">\n\n<h4 id=\"4authorize-the-application\"><strong>4.Authorize the Application</strong></h4>\n<ul>\n<li>Click the \"Authorize\" button to finalize the setup. (Which is shown at the end of the above picture)</li>\n</ul>\n<img src=\"https://content.pstmn.io/09a87eb3-2610-4251-86b0-368b47cfd49e/aW1hZ2UucG5n\" width=\"428\" height=\"819\">\n\n<p>By clicking the \"Authorize\" button, you will be redirected to the redirect URL that you added during setup. Subsequently, the app credentials (UID &amp; secret) will be prepared for immediate utilization.</p>\n<h2 id=\"part-2-obtain-an-access-token-using-postman\">Part 2: Obtain an Access Token Using Postman</h2>\n<h4 id=\"1import-the-zenhr-api-collection\"><strong>1.Import the ZenHR API Collection:</strong></h4>\n<ul>\n<li>Click the \"<strong>Run in Postman</strong>\" button in this documentation to load the collection into Postman.</li>\n</ul>\n<img src=\"https://content.pstmn.io/7e17b1c0-6a46-40de-8408-5674f9ab2aaf/aW1hZ2UucG5n\" width=\"348\" height=\"103\">\n\n<h4 id=\"2configure-authorization\"><strong>2.Configure Authorization:</strong></h4>\n<ol>\n<li><p>In Postman, select the <strong>ZenHR collection</strong> and go to the \"Authorization\" tab.</p>\n</li>\n<li><p>Set the <strong>Callback URL</strong> to <a href=\"https://oauth.pstmn.io/v1/callback\">https://oauth.pstmn.io/v1/callback</a>.</p>\n</li>\n</ol>\n<img src=\"https://content.pstmn.io/3fdf3902-f52b-41b6-a5d5-79bd6d04706e/aW1hZ2UucG5n\" width=\"326\" height=\"285\">\n\n<h4 id=\"3set-environment-variables\"><strong>3.Set Environment Variables:</strong></h4>\n<ul>\n<li><p>In the collection's variables, set:</p>\n<ul>\n<li><p><strong>Protocol</strong>: https</p>\n</li>\n<li><p><strong>Baseurl</strong>: Your ZenHR instance URL (e.g., <a href=\"https://app.zenhr.com\">app.zenhr.com</a> or <a href=\"https://sa.zenhr.com\">sa.zenhr.com</a>)</p>\n</li>\n</ul>\n</li>\n</ul>\n<img src=\"https://content.pstmn.io/082c5387-790a-427b-a669-b719c2739188/aW1hZ2UucG5n\" width=\"386\" height=\"98\">\n\n<h4 id=\"4enter-client-credentials\"><strong>4.Enter Client Credentials:</strong></h4>\n<ul>\n<li>Input the <strong>UID</strong> and <strong>Secret</strong> from your ZenHR application into the corresponding fields.</li>\n</ul>\n<img src=\"https://content.pstmn.io/ec01642d-bdbf-4d7f-a4fd-39208bd0031b/aW1hZ2UucG5n\" width=\"410\" height=\"93\">\n\n<h4 id=\"5-insert-right-scopes\"><strong>5. Insert Right Scopes:</strong></h4>\n<ul>\n<li>Based ont the scopes you choosed on your application insert them in the below field:</li>\n</ul>\n<img src=\"https://content.pstmn.io/21e798c3-0772-4ee2-9763-50114b695c80/aW1hZ2UucG5n\" width=\"444\" height=\"68\">\n\n<ul>\n<li>Below you will find all the scopes which you can choose from:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>read:attendance_record currencies:exchange_rate conversion_details:exchange_rate create:attendance_detail bulk_insert:attendance_detail qr_clocking:attendance_detail destroy:provision_history read:integration_map create:integration_map update:integration_map read:work_location read:branch create:branch update:branch destroy:branch read:termination_setup create:termination_setup update:termination_setup destroy:termination_setup read:termination create:termination destroy:termination read:employee create:employee update:employee accessed_employees_branches:employee read_company_employees:employee read:financial_info create:financial_info update:financial_info destroy:financial_info read:overtime_request create:overtime_request read:overtime create:overtime update:overtime destroy:overtime read:financial_transaction_request create:financial_transaction_request read:governmental_information read:loan create:loan update:loan destroy:loan read:loan_request create:loan_request read:country read:family create:family update:family destroy:family read:timeoff_transaction_request create:timeoff_transaction_request read:timeoff_transaction create:timeoff_transaction read:vacation_resumption_transaction create:vacation_resumption_transaction update:vacation_resumption_transaction read:financial_transaction create:financial_transaction update:financial_transaction destroy:financial_transaction grouped_financial_transaction_types_options:financial_transaction read:hr_letter read:professional_info create:professional_info update:professional_info destroy:professional_info read:timeoff grouped_timeoffs_options:timeoff read:employee_shift create:employee_shift update:employee_shift destroy:employee_shift read:work_shift create:work_shift update:work_shift destroy:work_shift read:overtime_type create:overtime_type update:overtime_type destroy:overtime_type read:overtime create:overtime update:overtime destroy:overtime read:loan_type create:loan_type update:loan_type destroy:loan_type read:loan create:loan update:loan destroy:loan read:miscellaneous_request read:bank_account create:bank_account read:bank read:bank_branch read:branch_bank_account read:miscellaneous_type create:miscellaneous_type update:miscellaneous_type destroy:miscellaneous_type read:missing_punch create:missing_punch update:missing_punch destroy:missing_punch read:recurring_transaction create:recurring_transaction update:recurring_transaction destroy:recurring_transaction read:request_event read:competencies create:competencies update:competencies destroy:competencies read:airticket_policy read:employee_airticket_balance read:airticket_transaction create:airticket_transaction update:airticket_transaction destroy:airticket_transaction read:document create:document update:document destroy:document read:document_type create:document_type update:document_type destroy:document_type read:asset_type create:asset_type update:asset_type destroy:asset_type read:asset create:asset update:asset destroy:asset read:self_onboarding read:attendance_transaction read:asset_assignment create:asset_assignment update:asset_assignment destroy:asset_assignment take_asset:asset_assignment read:approval_template create:approval_template update:approval_template destroy:approval_template read:employee_airtickets read:asset_activity read:organization_level read:task create:task update:task destroy:task task_across_branches:task read:boarding_template create:boarding_template update:boarding_template destroy:boarding_template read:boarding create:boarding update:boarding read:password_setup read:position read:encashment create:encashment destroy:encashment read:business_travel_setup update:business_travel_setup read:business_travel_policy create:business_travel_policy update:business_travel_policy destroy:business_travel_policy read:employee_airtickets read:business_trip create:business_trip update:business_trip destroy:business_trip read:stb read:time_sheet create:time_sheet update:time_sheet destroy:time_sheet read:approval read:salary_slip_template\n\n</code></pre><h4 id=\"6request-an-access-token\"><strong>6.Request an Access Token:</strong></h4>\n<ol>\n<li><p>Click \"<strong>Get New Access Token</strong>\"</p>\n</li>\n<li><p>You will be redirected to ZenHR's login page. Enter the <strong>credentials</strong> of the <strong>Global Admin</strong> on ZenHR and <strong>authorize</strong> the application.</p>\n</li>\n<li><p>Upon successful authorization, Postman will receive and store the access token.</p>\n</li>\n</ol>\n<blockquote>\n<p><strong>Note:</strong> Make sure to fill the <strong>Branch ID</strong> variable when wanting to use any of API's (In Zenhr go to <strong>System Prefrences</strong> &gt; <strong>Branch Setup</strong> &gt; <strong>Edit the Preferred Branch</strong> &gt; you will find the <strong>ID</strong> in the <strong>URL</strong>. </p>\n</blockquote>\n<h4 id=\"1--guide-to-sharing-zenhr-access-token-in-postman\">1- Guide to Sharing ZenHR Access Token in Postman</h4>\n<ul>\n<li>To <strong>Share</strong> your access token on postman, activate the below:</li>\n</ul>\n<img src=\"https://content.pstmn.io/a5655bc1-d31a-418b-beba-58dc49789b1c/aW1hZ2UucG5n\" width=\"392\" height=\"127\">\n\n<h4 id=\"2--guide-to-renewing-zenhr-access-token-without-global-admin-credentials\">2- Guide to Renewing ZenHR Access Token (Without Global Admin Credentials)</h4>\n<p><strong>Step 1: Locate the Refresh Token and URL</strong></p>\n<ul>\n<li><strong>Via Manage Tokens:</strong> Navigate to the \"Manage Tokens\" section in ZenHR to retrieve the Refresh Token and Refresh Token URL.</li>\n</ul>\n<img src=\"https://content.pstmn.io/6beba8c6-eb24-490c-b935-2069ff9ab564/aW1hZ2UucG5n\" width=\"424\" height=\"116\">\n\n<ul>\n<li><strong>Via Console:</strong> Access the Console from the bottom-left corner of the ZenHR page to locate these details.</li>\n</ul>\n<img src=\"https://content.pstmn.io/30084bf5-10be-4b25-85dc-f490a5a5dd5f/aW1hZ2UucG5n\" width=\"360\" height=\"54\">\n\n<p><strong>Step 2: Obtain Authorization Header</strong></p>\n<ul>\n<li><p>Log in to ZenHR using Global Admin Credentials to acquire a new Access Token.</p>\n</li>\n<li><p>Open the Console and click the \"Refresh Token\" button.</p>\n</li>\n</ul>\n<img src=\"https://content.pstmn.io/c91d40dc-27bc-46c2-aae8-4d072bb436ad/aW1hZ2UucG5n\" width=\"366\" height=\"146\">\n\n<ul>\n<li><p>A request for \"POST <a href=\"https://app.zenhr.com/oauth/token\">https://app.zenhr.com/oauth/token\"</a> will appear in the Console.</p>\n</li>\n<li><p>Go to the \"Request Header\" section, copy the \"Authorization\" header and its value, and save it for the next step.</p>\n</li>\n</ul>\n<img src=\"https://content.pstmn.io/0316b09c-f89a-4ab5-88b4-0657d38ce4e6/aW1hZ2UucG5n\" width=\"472\" height=\"147\">\n\n<h5 id=\"step-3-use-the-refresh-token-in-postman-or-code-level-integration\"><strong>Step 3: Use the Refresh Token in Postman or Code-Level Integration</strong></h5>\n<ul>\n<li><p>In Postman (or your code-level environment), set up a new request using the Refresh Token URL: \"POST <a href=\"https://app.zenhr.com/oauth/token\">https://app.zenhr.com/oauth/token\"</a>.</p>\n</li>\n<li><p>Add the \"Authorization\" header copied from Step 2 to the request headers.</p>\n</li>\n<li><p>In the request body, use the raw format and include:</p>\n<ul>\n<li><p><strong>Grant Type:</strong> Specify the grant type (e.g., refresh_token).</p>\n</li>\n<li><p><strong>Refresh Token:</strong> Input the Refresh Token obtained from \"Manage Tokens\" or the Console’s \"Response Body.\"</p>\n</li>\n</ul>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"refresh_token\": \"a7b9c3d2e8f1g4h6j9k2m5n8p0q3r7s9\",\n    \"grant_type\": \"refresh_token\"\n}\n\n</code></pre><blockquote>\n<p>Upon successful execution, you will receive a new Access Token, which can be used for authentication. Repeat this process as needed to maintain continuous access.</p>\n</blockquote>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"34627729","collectionId":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","publishedId":"2sA3dxDWwR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"008483"},"publishDate":"2024-07-24T14:37:41.000Z"},"item":[{"name":"General","item":[{"name":"company","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": \"string\"},","                    \"en\": {\"type\": \"string\"}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"logo_file_name\": {\"type\": \"string\"},","            \"logo_content_type\": {\"type\": \"string\"},","            \"logo_file_size\": {\"type\": \"number\"},","            \"logo_updated_at\": {\"type\": \"string\"},","            \"country_id\": {\"type\": \"number\"},","            \"owner_email\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"},","            \"active\": {\"type\": \"boolean\"}","        },","        \"required\": [\"id\", \"name\", \"logo_file_name\", \"logo_content_type\", \"logo_file_size\", \"logo_updated_at\", \"country_id\", \"owner_email\", \"created_at\", \"updated_at\", \"active\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"1589ff1c-756a-43f6-bca9-6a74f5f8d777"}}],"id":"cc4e7484-2435-4f5c-8fba-77fee0e3b106","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/company","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","company"],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"1d6ff06e-e2a9-4a87-86c9-06e277e53562","name":"company","originalRequest":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/company"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"9e984a5c551777070b39d322d69e1032\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ac97dbeb-991f-414d-8bbc-0dd13810b6c5"},{"key":"X-Runtime","value":"0.015529"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"361"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 72,\n    \"name\": {\n        \"ar\": \"ZenHR Test \",\n        \"en\": \"ZenHR Test\"\n    },\n    \"logo_file_name\": \"careerconnect_11895_logo_1608025375_fclfb.png\",\n    \"logo_content_type\": \"image/png\",\n    \"logo_file_size\": 3560,\n    \"logo_updated_at\": \"2023-11-19T12:34:30.302Z\",\n    \"country_id\": 111,\n    \"owner_email\": \"ryan@zenhr.com\",\n    \"created_at\": \"2017-09-26T07:01:51.361Z\",\n    \"updated_at\": \"2023-11-20T08:09:30.098Z\",\n    \"active\": true\n}"}],"_postman_id":"cc4e7484-2435-4f5c-8fba-77fee0e3b106"},{"name":"who am i","event":[{"listen":"test","script":{"exec":["var responseBody = pm.response.json();","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the JSON schema\", function () {","    var schema = {","        type: 'object',","        properties: {","            token_info: {","                type: 'object',","                properties: {","                    iss: { type: 'string' },","                    iat: { type: 'number' },","                    aud: { type: 'string' },","                    jti: { type: 'string' },","                    sub: { type: 'number' },","                    scopes: { type: 'array' },","                    resource: {","                        type: 'object',","                        properties: {","                            type: { type: 'string' },","                            id: { type: 'number' }","                        }","                    },","                    props: {","                        type: 'object',","                        properties: {","                            company_id: { type: ['number', 'null'] },","                            branch_id: { type: ['number', 'null'] },","                            user_id: { type: ['number', 'null'] },","                            employee_id: { type: ['number', 'null'] },","                            name: { type: ['string', 'null'] },","                            email: { type: ['string', 'null'] },","                            confirmed_at: { type: ['string', 'null'] },","                            unlock_token: { type: ['string', 'null'] },","                            active: { type: 'boolean' }","                        }","                    },","                    exp: { type: 'number' }","                },","                required: ['iss', 'iat', 'aud', 'jti', 'sub', 'scopes', 'resource', 'props', 'exp']","            },","            expires_at: { type: 'string' }","        },","        required: ['token_info', 'expires_at']","    };","","    pm.expect(responseBody).to.have.jsonSchema(schema);","});","","// Set environment variables for employee_id and branch_id","var responseBody = pm.response.json();","var employeeId = responseBody.token_info.props.employee_id;","var branchId = responseBody.token_info.props.branch_id;","","if (employeeId !== null) {","    pm.environment.set(\"employee_id\", employeeId.toString());","}","","if (branchId !== null) {","    pm.environment.set(\"branch_id\", branchId.toString());","}"],"type":"text/javascript","id":"2ce583fa-e427-4d1d-af95-22f4768003c9"}}],"id":"ed66e463-b519-45cf-93c3-25674d7a761b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/who_am_i","description":"<p>This API end-point will show authorized company information</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","who_am_i"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"employee.financial_datum, employee.professional_datum"}],"variable":[]}},"response":[{"id":"6589fcc2-5cbc-4c8c-bfa4-0a979a3b7397","name":"who am i","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/who_am_i","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","who_am_i"],"query":[{"key":"include","value":"employee.financial_datum, employee.professional_datum","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae094c0248bad93804cd2811b82bfee1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82e37f77-3c11-4491-baa4-96159b24062c"},{"key":"X-Runtime","value":"0.074907"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_info\": {\n        \"iss\": \"http://zenhr.local:3000\",\n        \"app\": \"hashed token app\",\n        \"iat\": 1700859739,\n        \"aud\": \"UvcUCcRhD8q0LvkePBWvLCyyrtQc_m_Icmyhvvu_jKA\",\n        \"jti\": \"4b235fb2-e5c5-4cc0-92ab-8e8264db3d7c\",\n        \"sub\": 1273,\n        \"scopes\": [\n            \"read.branch\",\n            \"read.employee\",\n            \"read.professional_info\",\n            \"read.timeoff\",\n            \"read.financial_transaction\",\n            \"read.attendance_record\"\n        ],\n        \"resource\": {\n            \"type\": \"User\",\n            \"id\": 1273\n        },\n        \"props\": {\n            \"company_id\": 72,\n            \"branch_id\": 104,\n            \"user_id\": 1273,\n            \"employee_id\": 1159,\n            \"name\": \"Mazen Ziad\",\n            \"email\": \"qatesting@zenhr.com\",\n            \"confirmed_at\": null,\n            \"unlock_token\": \"4d9c6f3afb3810f931c9e09f06764c00c958aa929fa8fc200d652c598c9a210e\",\n            \"active\": true\n        },\n        \"exp\": 1700863344\n    },\n    \"expires_at\": \"2023-11-24T22:02:24.000Z\"\n}"}],"_postman_id":"ed66e463-b519-45cf-93c3-25674d7a761b"}],"id":"58409bbc-1943-4447-ab73-8301845ebe3a","_postman_id":"58409bbc-1943-4447-ab73-8301845ebe3a","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Branches","item":[{"name":"List Branches","event":[{"listen":"test","script":{"id":"aba78706-bfac-4d20-a9f4-684bd16134e7","exec":["// Status code is 200","pm.test(\"Status code is 200\", function () {","  pm.response.to.have.status(200);","});","","// Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","  pm.response.to.have.jsonBody();","});","","// Stores the branch_id in the collection variable","var responseBody = pm.response.json();","var branch_id = responseBody.data[0].id;","pm.collectionVariables.set(\"branch_id\", branch_id);","","// Define the JSON schema","const schema = {","  \"$schema\": \"http://json-schema.org/draft-04/schema#\",","  \"type\": \"object\",","  \"properties\": {","    \"pagination\": {","      \"type\": \"object\",","      \"properties\": {","        \"current_page\": { \"type\": \"integer\" },","        \"per_page\": { \"type\": \"integer\" },","        \"total_entries\": { \"type\": \"integer\" },","        \"total_pages\": { \"type\": \"integer\" }","      },","      \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","    },","    \"data\": {","      \"type\": \"array\",","      \"items\": {","        \"type\": \"object\",","        \"properties\": {","          \"id\": { \"type\": \"integer\" },","          \"name\": {","            \"type\": \"object\",","            \"properties\": {","              \"ar\": { \"type\": \"string\" },","              \"en\": { \"type\": \"string\" }","            },","            \"required\": [\"en\"]","          },","          \"probation_period\": {","            \"type\": \"object\",","            \"properties\": {","              \"type\": { \"type\": \"string\" },","              \"period\": { \"type\": \"string\" }","            },","            \"required\": [\"type\", \"period\"]","          },","          \"working_hours\": { \"type\": \"number\" },","          \"cut_off_date\": { \"type\": \"integer\" },","          \"working_days\": { \"type\": \"integer\" },","          \"days_off\": { \"type\": \"array\" },","          \"timezone\": { \"type\": \"string\" },","          \"currency_currency\": { \"type\": \"string\" },","          \"country\": {","            \"type\": \"object\",","            \"properties\": {","              \"name\": {","                \"type\": \"object\",","                \"properties\": {","                  \"ar\": { \"type\": \"string\" },","                  \"en\": { \"type\": \"string\" }","                },","                \"required\": [\"en\"]","              },","              \"country_code\": { \"type\": \"string\" }","            },","            \"required\": [\"name\", \"country_code\"]","          },","          \"establishment_number\": { \"type\": [\"string\", \"null\"] },","          \"governance_location\": { \"type\": [\"string\", \"null\"] },","          \"social_security_governance_location\": { \"type\": [\"string\", \"null\"] },","          \"social_security_number\": { \"type\": [\"string\", \"null\"] },","          \"tax_number\": { \"type\": [\"string\", \"null\"] },","          \"address\": { \"type\": [\"string\", \"null\"] },","          \"po_box\": { \"type\": [\"string\", \"null\"] },","          \"zip_code\": { \"type\": [\"string\", \"null\"] },","          \"mol_number\": { \"type\": [\"string\", \"null\"] },","          \"date_format\": { \"type\": [\"string\", \"null\"] },","          \"time_format\": { \"type\": [\"string\", \"null\"] },","          \"show_who_is_off_type\": { \"type\": \"boolean\" },","          \"week_start_day\": { \"type\": \"integer\" },","          \"fiscal_day\": { \"type\": \"integer\" },","          \"fiscal_month\": { \"type\": \"integer\" },","          \"whos_off_type\": { \"type\": \"integer\" },","          \"whos_off_interval\": { \"type\": \"integer\" },","          \"subsidiary_id\": { \"type\": [\"string\", \"null\"] },","          \"created_at\": { \"type\": \"string\" },","          \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"probation_period\", \"working_hours\", \"cut_off_date\", \"working_days\", \"timezone\", \"currency_currency\", \"country\", \"date_format\", \"time_format\", \"show_who_is_off_type\", \"week_start_day\", \"fiscal_day\", \"fiscal_month\", \"whos_off_type\", \"whos_off_interval\"]","      }","    }","  },","  \"required\": [\"pagination\", \"data\"]","};","","","// Validate the response against the schema","const isValid = tv4.validate(pm.response.json(), schema);","","// Test for schema validity","pm.test(\"Response has a valid schema\", function () {","    pm.expect(isValid).to.be.true;","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"82d6050b-5b67-4f85-8433-535c60d01b44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches","description":"<p>This end-point will list all branches under the company</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id]","value":"106"},{"disabled":true,"key":"filter[working_hours][]","value":"7.5"},{"disabled":true,"key":"filter[cut_off_date][]","value":"15"},{"disabled":true,"key":"filter[working_days][]","value":"30"},{"disabled":true,"key":"filter[timezone][]","value":"Amman"},{"disabled":true,"key":"filter[currency_currency][]","value":"JOD"},{"disabled":true,"key":"filter[country_id][]","value":"111"},{"disabled":true,"key":"filter[week_start_day][]","value":"1"},{"disabled":true,"key":"filter[fiscal_day][]","value":"1"},{"disabled":true,"key":"filter[fiscal_month][]","value":"1"},{"disabled":true,"key":"filter[whos_off_type][]","value":"1"},{"disabled":true,"key":"filter[whos_off_interval][]","value":"30"},{"disabled":true,"key":"filter[subsidiary_id][]","value":"Yi123"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2021-01-01"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2024-01-01"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2021-01-01"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2021-01-01"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: country_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: branches.name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: branches.name->ar, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: working_hours, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: cut_off_date, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: working_days, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: days_off, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: created_at, dir: asc}"}],"variable":[]}},"response":[{"id":"6b32c635-f5f6-4423-acdd-60b1dd9c4937","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches"],"query":[{"key":"page","value":"2","disabled":true},{"key":"limit","value":"3","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"7d6d9eeabd76769d4a40e37564a49c6a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a2f723e0-8ece-4a4b-993d-f0f7378d3bf9"},{"key":"X-Runtime","value":"0.021970"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"588"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 1,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 104,\n            \"name\": {\n                \"ar\": \"فرع الأردن\",\n                \"en\": \"Jordan Branch\"\n            },\n            \"probation_period\": {\n                \"type\": \"Month\",\n                \"period\": \"3\"\n            },\n            \"working_hours\": 8,\n            \"cut_off_date\": 25,\n            \"working_days\": 30,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"location\": \"\",\n            \"timezone\": \"Amman\",\n            \"currency_currency\": \"JOD\",\n            \"country\": {\n                \"name\": {\n                    \"ar\": \"الأردن\",\n                    \"en\": \"Jordan\"\n                },\n                \"country_code!\": \"JO\"\n            },\n            \"date_format\": \"%Y-%m-%d\",\n            \"time_format\": \"%I:%M %P\",\n            \"show_who_is_off_type\": true,\n            \"week_start_day\": 1,\n            \"fiscal_day\": 1,\n            \"fiscal_month\": 3,\n            \"whos_off_type\": 1,\n            \"whos_off_interval\": 0\n        }\n    ]\n}"},{"id":"badebd0f-cd2b-4cd2-bc7c-16072aced6b7","name":"failed","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches"],"query":[{"key":"page","value":"2","disabled":true},{"key":"limit","value":"3","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"e86ed634-a197-4f63-8caa-fb55f992f629"},{"key":"X-Runtime","value":"2.418204"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized\"\n}"}],"_postman_id":"82d6050b-5b67-4f85-8433-535c60d01b44"},{"name":"Get Branch","event":[{"listen":"test","script":{"id":"f9d174f7-f585-4966-b89c-9dfe60139035","exec":["// Test to check the status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test to check the response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test to check if the response is a valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Define the JSON schema","const schema = {","    \"$schema\": \"http://json-schema.org/draft-04/schema#\",","    \"type\": \"object\",","            \"properties\": {","              \"id\": { \"type\": \"integer\" },","              \"name\": {","                \"type\": \"object\",","                \"properties\": {","                  \"ar\": { \"type\": \"string\" },","                  \"en\": { \"type\": \"string\" }","                },","                \"required\": [\"en\"]","              },","              \"probation_period\": {","                \"type\": \"object\",","                \"properties\": {","                  \"type\": { \"type\": \"string\" },","                  \"period\": { \"type\": \"string\" }","                },","                \"required\": [\"type\", \"period\"]","              },","              \"working_hours\": { \"type\": \"number\" },","              \"cut_off_date\": { \"type\": \"integer\" },","              \"working_days\": { \"type\": \"integer\" },","              \"days_off\": { \"type\": \"array\" },","              \"timezone\": { \"type\": \"string\" },","              \"currency_currency\": { \"type\": \"string\" },","              \"country\": {","                \"type\": \"object\",","                \"properties\": {","                  \"name\": {","                    \"type\": \"object\",","                    \"properties\": {","                      \"ar\": { \"type\": \"string\" },","                      \"en\": { \"type\": \"string\" }","                    },","                    \"required\": [\"en\"]","                  },","                  \"country_code\": { \"type\": \"string\" }","                },","                \"required\": [\"name\", \"country_code\"]","              },","              \"establishment_number\": { \"type\": [\"string\", \"null\"] },","              \"governance_location\": { \"type\": [\"string\", \"null\"] },","              \"social_security_governance_location\": { \"type\": [\"string\", \"null\"] },","              \"social_security_number\": { \"type\": [\"string\", \"null\"] },","              \"tax_number\": { \"type\": [\"string\", \"null\"] },","              \"address\": { \"type\": [\"string\", \"null\"] },","              \"po_box\": { \"type\": [\"string\", \"null\"] },","              \"zip_code\": { \"type\": [\"string\", \"null\"] },","              \"mol_number\": { \"type\": [\"string\", \"null\"] },","              \"date_format\": { \"type\": [\"string\", \"null\"] },","              \"time_format\": { \"type\": [\"string\", \"null\"] },","              \"show_who_is_off_type\": { \"type\": \"boolean\" },","              \"week_start_day\": { \"type\": \"integer\" },","              \"fiscal_day\": { \"type\": \"integer\" },","              \"fiscal_month\": { \"type\": \"integer\" },","              \"whos_off_type\": { \"type\": \"integer\" },","              \"whos_off_interval\": { \"type\": \"integer\" },","              \"subsidiary_id\": { \"type\": [\"string\", \"null\"] },","              \"created_at\": { \"type\": \"string\" },","              \"updated_at\": { \"type\": \"string\" }","            },","            \"required\": [\"id\", \"name\", \"probation_period\", \"working_hours\", \"cut_off_date\", \"working_days\", \"timezone\", \"currency_currency\", \"country\", \"date_format\", \"time_format\", \"show_who_is_off_type\", \"week_start_day\", \"fiscal_day\", \"fiscal_month\", \"whos_off_type\", \"whos_off_interval\"]","      };","","","// Validate the response against the schema","const isValid = tv4.validate(pm.response.json(), schema);","","// Test for schema validity","pm.test(\"Response has a valid schema\", function () {","    pm.expect(isValid).to.be.true;","});"],"type":"text/javascript","packages":{}}}],"id":"7ad4d7e7-b0dd-4b0c-b100-a0e540b57248","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/","description":"<p>This will show branch details by it's ID</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"fb34b6a8-06c3-468f-b54e-e8ec5107c095","name":"success","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"3137f14278136a7e614e78b08570f2a6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"41682edc-6814-4d89-af60-962192dac6f4"},{"key":"X-Runtime","value":"0.024825"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"497"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 104,\n    \"name\": {\n        \"ar\": \"فرع الأردن\",\n        \"en\": \"Jordan Branch\"\n    },\n    \"probation_period\": {\n        \"type\": \"Month\",\n        \"period\": \"3\"\n    },\n    \"working_hours\": 8,\n    \"cut_off_date\": 25,\n    \"working_days\": 30,\n    \"days_off\": [\n        \"5\",\n        \"6\"\n    ],\n    \"location\": \"\",\n    \"timezone\": \"Amman\",\n    \"currency_currency\": \"JOD\",\n    \"country\": {\n        \"name\": {\n            \"ar\": \"الأردن\",\n            \"en\": \"Jordan\"\n        },\n        \"country_code!\": \"JO\"\n    },\n    \"date_format\": \"%Y-%m-%d\",\n    \"time_format\": \"%I:%M %P\",\n    \"show_who_is_off_type\": true,\n    \"week_start_day\": 1,\n    \"fiscal_day\": 1,\n    \"fiscal_month\": 3,\n    \"whos_off_type\": 1,\n    \"whos_off_interval\": 0\n}"}],"_postman_id":"7ad4d7e7-b0dd-4b0c-b100-a0e540b57248"},{"name":"List Branch Salaries","event":[{"listen":"test","script":{"id":"2079bbdd-e4bf-4695-976c-41b9608dd39c","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 400ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(400);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee\": { \"type\": \"object\" },","                        \"professional_datum\": { \"type\": \"object\" },","                        \"financial_datum\": { \"type\": \"object\" },","                        \"days_worked\": { \"type\": \"number\" },","                        \"month\": { \"type\": \"number\" },","                        \"year\": { \"type\": \"number\" },","                        \"from_date\": { \"type\": \"string\" },","                        \"to_date\": { \"type\": \"string\" },","                        \"status\": { \"type\": \"string\" },","                        \"incomes_and_deductions\": { \"type\": [\"object\", \"null\"] },","                        \"company_contributions\": { \"type\": [\"object\", \"null\"] },","                        \"part_time_transactions\": { \"type\": [\"object\", \"null\"] },","                        \"professional_datum_id\": { \"type\": [\"number\", \"null\"] },","                        \"out_of_payroll\": { \"type\": [\"object\", \"null\"] },","                        \"absence\": { \"type\": \"number\" },","                        \"financial_datum_id\": { \"type\": \"number\" },","                        \"timeoff_balance\": { \"type\": [\"string\", \"null\"] },","                        \"overtime_duration\": { \"type\": [\"number\", \"null\"] },","                        \"basic_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"ss_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"worth_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"total_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"net_income\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"net_deduction\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"absence_amount\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"part_time_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        }","                    },","                    \"required\": [\"id\", \"employee\", \"professional_datum\", \"financial_datum\", \"days_worked\", \"month\", \"year\", \"from_date\", \"to_date\", \"status\", \"incomes_and_deductions\", \"company_contributions\", \"part_time_transactions\", \"professional_datum_id\", \"out_of_payroll\", \"absence\", \"financial_datum_id\", \"timeoff_balance\", \"overtime_duration\", \"basic_salary\", \"ss_salary\", \"worth_salary\", \"total_salary\", \"net_income\", \"net_deduction\", \"absence_amount\", \"part_time_salary\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"83019046-ba32-4205-a5e5-bba582c315af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//salaries","description":"<p>this API end-point will list all of the employee salaries by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","salaries"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"1000"},{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"key":"include[]","value":"salary.employee"},{"disabled":true,"key":"include[]","value":"salary.financial_data"},{"disabled":true,"key":"include[]","value":"salary.professional_data"},{"disabled":true,"key":"filter[id][]","value":"3088"},{"disabled":true,"key":"filter[employee_id][]","value":"1159"},{"disabled":true,"key":"filter[month][]","value":"9"},{"disabled":true,"key":"filter[year][]","value":"2018"},{"disabled":true,"key":"filter[salary_batch_id][]","value":"5135"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2023-01-23"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2023-12-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2023-01-23"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2023-12-25"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: month, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: year, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: salary_batch_id, dir: asc}"}],"variable":[]}},"response":[{"id":"62a1de94-4798-41e0-a063-cc755969da97","name":"List Employee Salaries","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/salaries","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","salaries"],"query":[{"key":"year","value":"2022","disabled":true},{"key":"month","value":"1","disabled":true},{"key":"include","value":"salary.employee,salary.financial_data","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f079e63819544f7c408bfae50c5cc704\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f23efdd8-b42a-4f86-bc21-e81a5559821b"},{"key":"X-Runtime","value":"0.044498"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"8454"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 40,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 3088,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 9,\n            \"year\": 2017,\n            \"from_date\": \"2017-09-01\",\n            \"to_date\": \"2017-09-30\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2241.881,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 143.958,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 202.077,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 3263,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 10,\n            \"year\": 2017,\n            \"from_date\": \"2017-10-01\",\n            \"to_date\": \"2017-10-31\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2166,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 184,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 3272,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 11,\n            \"year\": 2017,\n            \"from_date\": \"2017-11-01\",\n            \"to_date\": \"2017-11-30\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2166,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 184,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 15080,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 1,\n            \"year\": 2018,\n            \"from_date\": \"2018-01-01\",\n            \"to_date\": \"2018-01-31\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2166,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 184,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 19072,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 3,\n            \"year\": 2018,\n            \"from_date\": \"2018-03-01\",\n            \"to_date\": \"2018-03-31\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2307.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 192.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 35140,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 4,\n            \"year\": 2018,\n            \"from_date\": \"2018-03-21\",\n            \"to_date\": \"2018-04-20\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2287.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 212.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 36713,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 19,\n            \"month\": 6,\n            \"year\": 2018,\n            \"from_date\": \"2018-05-21\",\n            \"to_date\": \"2018-06-20\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 12,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 1500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 1442.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 157.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 1000,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 51235,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 7,\n            \"year\": 2018,\n            \"from_date\": \"2018-07-01\",\n            \"to_date\": \"2018-07-31\",\n            \"status\": \"approved\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 240,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2448.939,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 152.085,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 203.146,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 71956,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 30,\n            \"month\": 9,\n            \"year\": 2018,\n            \"from_date\": \"2018-08-26\",\n            \"to_date\": \"2018-09-25\",\n            \"status\": \"approved\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2307.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 192.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 91789,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 10,\n            \"year\": 2018,\n            \"from_date\": \"2018-10-01\",\n            \"to_date\": \"2018-10-31\",\n            \"status\": \"approved\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2307.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 192.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        }\n    ]\n}"}],"_postman_id":"83019046-ba32-4205-a5e5-bba582c315af"}],"id":"e97e8093-bfca-4347-aadb-da5d9c442dfb","_postman_id":"e97e8093-bfca-4347-aadb-da5d9c442dfb","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Organization Levels","item":[{"name":"Main Projects","item":[{"name":"List Main Projects","event":[{"listen":"test","script":{"id":"fd2d1a0d-acf2-49ca-8940-31ba632ff8db","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"en\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","// Store the main project id from the first response in a variable","var responseData = pm.response.json();","var mainProjectId = responseData.data[0].id;","","// Save the main project id as a global variable","pm.environment.set(\"main_project_id\", mainProjectId);"],"type":"text/javascript","packages":{}}}],"id":"a8c643cf-87c5-44ba-82c4-9904d0124ffe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//main_projects","description":"<p>This API end-point will list all main projects under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","main_projects"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"90323"},{"disabled":true,"key":"filter[subsidiary_id][]","value":"1234"},{"disabled":true,"key":"filter[gl_identifier][]","value":"r342"},{"disabled":true,"key":"filter[integration_id][]","value":"2345"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[]}},"response":[{"id":"baecfc01-51a3-445a-b171-efc6fb025570","name":"List Main Projects","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/main_projects","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","main_projects"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"1a9aad3a1612447d21b04ff6dae0f545\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"75ce3c47-1474-43fe-a9a2-7bdcf86e6bbb"},{"key":"X-Runtime","value":"0.044208"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1390"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 10,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1492,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Project 1\"\n            },\n            \"created_at\": \"2018-01-29T10:22:38.124Z\",\n            \"updated_at\": \"2022-10-17T14:16:59.027Z\"\n        },\n        {\n            \"id\": 10808,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestProject \"\n            },\n            \"created_at\": \"2019-11-19T15:11:27.222Z\",\n            \"updated_at\": \"2019-11-19T15:11:27.222Z\"\n        },\n        {\n            \"id\": 11102,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Karam Department\"\n            },\n            \"created_at\": \"2019-12-05T12:50:23.186Z\",\n            \"updated_at\": \"2019-12-05T12:50:23.186Z\"\n        },\n        {\n            \"id\": 23050,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Project\"\n            },\n            \"created_at\": \"2021-10-26T11:57:08.475Z\",\n            \"updated_at\": \"2021-10-26T11:57:08.475Z\"\n        },\n        {\n            \"id\": 25846,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"NEW LOGO BY Project \"\n            },\n            \"created_at\": \"2022-02-06T13:14:06.428Z\",\n            \"updated_at\": \"2022-02-06T13:14:06.428Z\"\n        },\n        {\n            \"id\": 26247,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Socialtst\"\n            },\n            \"created_at\": \"2022-02-14T13:52:09.749Z\",\n            \"updated_at\": \"2022-02-14T13:52:09.749Z\"\n        },\n        {\n            \"id\": 42197,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestProject\"\n            },\n            \"created_at\": \"2022-11-22T07:00:59.247Z\",\n            \"updated_at\": \"2022-11-22T07:00:59.247Z\"\n        },\n        {\n            \"id\": 42207,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"NEW LOGO BY Project\"\n            },\n            \"created_at\": \"2022-11-22T07:50:58.027Z\",\n            \"updated_at\": \"2022-11-22T07:50:58.027Z\"\n        },\n        {\n            \"id\": 44891,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"UX Test\"\n            },\n            \"created_at\": \"2022-12-19T13:43:31.283Z\",\n            \"updated_at\": \"2022-12-19T13:43:31.283Z\"\n        },\n        {\n            \"id\": 80422,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"titi\"\n            },\n            \"created_at\": \"2023-08-17T07:38:45.391Z\",\n            \"updated_at\": \"2023-08-17T07:38:45.391Z\"\n        }\n    ]\n}"}],"_postman_id":"a8c643cf-87c5-44ba-82c4-9904d0124ffe"},{"name":"Get Main Project","event":[{"listen":"test","script":{"id":"a858e902-df8f-4bd3-880d-4ec75cd12f88","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"5860057f-68a7-4e6b-af77-dd4ab6693ff6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//main_projects/","description":"<p>This API end-point will show a main project by branch_id and main_project_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","main_projects",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"c01dfc7f-c55c-49ce-9704-ef4b59f496c0","name":"Get Main Project","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/main_projects/:main_project_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","main_projects",":main_project_id"],"variable":[{"key":"branch_id","value":"104"},{"key":"main_project_id","value":"11102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ceefe612a2dfc3891cc4d48ce22f9447\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f0652685-a083-450f-bcc4-bacae26405d3"},{"key":"X-Runtime","value":"0.014801"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"133"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11102,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Karam Department\"\n    },\n    \"created_at\": \"2019-12-05T12:50:23.186Z\",\n    \"updated_at\": \"2019-12-05T12:50:23.186Z\"\n}"}],"_postman_id":"5860057f-68a7-4e6b-af77-dd4ab6693ff6"},{"name":"Delete Main Project","event":[{"listen":"test","script":{"id":"63c8ec60-1a44-4967-9658-a1878b5eca72","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"862b27c8-af6a-492a-9b45-3842a50e177a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches//main_projects/","description":"<p>This API end-point will show a main project by branch_id and main_project_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","main_projects",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"51ba5f84-9a92-4aad-9284-77510a6b40f1","name":"Get Main Project","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/main_projects/:main_project_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","main_projects",":main_project_id"],"variable":[{"key":"branch_id","value":"104"},{"key":"main_project_id","value":"11102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ceefe612a2dfc3891cc4d48ce22f9447\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f0652685-a083-450f-bcc4-bacae26405d3"},{"key":"X-Runtime","value":"0.014801"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"133"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11102,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Karam Department\"\n    },\n    \"created_at\": \"2019-12-05T12:50:23.186Z\",\n    \"updated_at\": \"2019-12-05T12:50:23.186Z\"\n}"}],"_postman_id":"862b27c8-af6a-492a-9b45-3842a50e177a"},{"name":"Create Main Project","event":[{"listen":"test","script":{"id":"06b0c6ad-20c6-40b9-a73e-4c6699060bf9","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"ba5095d6-2386-4d27-8d79-a21c8a467e17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text","disabled":true},{"key":"name[ar]","value":"test","type":"text","disabled":true},{"key":"subsidiary_id","value":"1234","type":"text","disabled":true},{"key":"integration_id","value":"2345","type":"text","disabled":true},{"key":"gl_identifier","value":"r342","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches//main_projects/","description":"<p>This API end-point will show a main project by branch_id and main_project_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","main_projects",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"baa0c2a3-64fd-44dd-83db-f93a216b386c","name":"Get Main Project","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/main_projects/:main_project_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","main_projects",":main_project_id"],"variable":[{"key":"branch_id","value":"104"},{"key":"main_project_id","value":"11102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ceefe612a2dfc3891cc4d48ce22f9447\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f0652685-a083-450f-bcc4-bacae26405d3"},{"key":"X-Runtime","value":"0.014801"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"133"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11102,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Karam Department\"\n    },\n    \"created_at\": \"2019-12-05T12:50:23.186Z\",\n    \"updated_at\": \"2019-12-05T12:50:23.186Z\"\n}"}],"_postman_id":"ba5095d6-2386-4d27-8d79-a21c8a467e17"}],"id":"e4bb6a03-6ba0-480b-8e2b-65a01da7b67f","_postman_id":"e4bb6a03-6ba0-480b-8e2b-65a01da7b67f","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Hirearchy Groups","item":[{"name":"List Hirearchy Groups","event":[{"listen":"test","script":{"id":"0dc5beea-c9eb-4be8-a18c-b76b1dcdfe89","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function() {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function() {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function() {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","// Store the hierarchy group from the first response in an environment variable","var responseBody = pm.response.json();","var hierarchyGroupId = responseBody.data[0].id;","pm.environment.set(\"hierarchy_group_id\", hierarchyGroupId);"],"type":"text/javascript","packages":{}}}],"id":"2ee253b1-14ed-4799-b3d4-ee24a777f4db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//hierarchy_groups","description":"<p>This API end-point will list all hierarchy groups in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","hierarchy_groups"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"5207"},{"disabled":true,"key":"filter[subsidiary_id][]","value":"1234"},{"disabled":true,"key":"filter[integration_id][]","value":"r123"},{"disabled":true,"key":"filter[gl_identifier][]","value":"432"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[]}},"response":[{"id":"73a89fb4-186b-469d-959c-e7f176f114ac","name":"List Hirearchy Groups","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hierarchy_groups","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hierarchy_groups"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"107d019f5e6858cc9443e7f48f73a849\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"017f993f-7823-431c-abc8-63288a94c0d0"},{"key":"X-Runtime","value":"0.018427"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1372"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 10,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 4500,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test\"\n            },\n            \"created_at\": \"2018-10-15T07:11:34.904Z\",\n            \"updated_at\": \"2018-10-15T07:11:34.904Z\"\n        },\n        {\n            \"id\": 4618,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Managers\"\n            },\n            \"created_at\": \"2018-10-22T13:26:05.901Z\",\n            \"updated_at\": \"2022-10-17T14:16:58.581Z\"\n        },\n        {\n            \"id\": 5207,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Juniors\"\n            },\n            \"created_at\": \"2018-11-29T07:59:49.731Z\",\n            \"updated_at\": \"2018-11-29T07:59:49.731Z\"\n        },\n        {\n            \"id\": 10807,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestHierarchyGroup\"\n            },\n            \"created_at\": \"2019-11-19T15:10:57.476Z\",\n            \"updated_at\": \"2019-11-19T15:10:57.476Z\"\n        },\n        {\n            \"id\": 22549,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"manager\"\n            },\n            \"created_at\": \"2021-10-04T10:02:12.428Z\",\n            \"updated_at\": \"2021-10-04T10:02:12.428Z\"\n        },\n        {\n            \"id\": 25845,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"NEW LOGO BY Hierarchy group  \"\n            },\n            \"created_at\": \"2022-02-06T13:13:50.178Z\",\n            \"updated_at\": \"2022-02-06T13:13:50.178Z\"\n        },\n        {\n            \"id\": 26248,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"socialltest\"\n            },\n            \"created_at\": \"2022-02-14T13:52:38.946Z\",\n            \"updated_at\": \"2022-02-14T13:52:38.946Z\"\n        },\n        {\n            \"id\": 37564,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"bbb\"\n            },\n            \"created_at\": \"2022-09-20T11:41:15.748Z\",\n            \"updated_at\": \"2022-09-20T11:41:15.748Z\"\n        },\n        {\n            \"id\": 42202,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Manager\"\n            },\n            \"created_at\": \"2022-11-22T07:39:14.889Z\",\n            \"updated_at\": \"2022-11-22T07:39:14.889Z\"\n        },\n        {\n            \"id\": 44756,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"1 year\"\n            },\n            \"created_at\": \"2022-12-18T11:55:35.692Z\",\n            \"updated_at\": \"2022-12-18T11:55:35.692Z\"\n        }\n    ]\n}"}],"_postman_id":"2ee253b1-14ed-4799-b3d4-ee24a777f4db"},{"name":"Get Hirearchy Group","event":[{"listen":"test","script":{"id":"191bee41-71af-454f-99b9-c51ec195da77","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    ","    // Define the JSON schema","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    // Validate the response against the schema","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"28562a85-95e7-4729-b811-8c0af846ee6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//hierarchy_groups/","description":"<p>This API end-point will show a hierarchy group by branch_id and hierarchy_group_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","hierarchy_groups",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"b2dc59ac-872e-4742-837a-9b08045b0aa1","name":"Get Hirearchy Group","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hierarchy_groups/:hierarchy_group_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hierarchy_groups",":hierarchy_group_id"],"variable":[{"key":"branch_id","value":""},{"key":"hierarchy_group_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6eb7571c79519b2207aa696c7c218bcc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9f97532c-7e97-4572-b5e9-70a2f6681ad6"},{"key":"X-Runtime","value":"0.015519"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"120"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4500,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Test\"\n    },\n    \"created_at\": \"2018-10-15T07:11:34.904Z\",\n    \"updated_at\": \"2018-10-15T07:11:34.904Z\"\n}"}],"_postman_id":"28562a85-95e7-4729-b811-8c0af846ee6e"},{"name":"Delete Hirearchy Group","event":[{"listen":"test","script":{"id":"faca0c6a-f621-4355-b2d7-e4e5eae9daf8","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    ","    // Define the JSON schema","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    // Validate the response against the schema","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"b1dc7ce5-b615-441c-adb0-adcce45c14e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches//hierarchy_groups/","description":"<p>This API end-point will show a hierarchy group by branch_id and hierarchy_group_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","hierarchy_groups",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"031fa77a-08b4-4cbb-9b1d-e65aaccff755","name":"Get Hirearchy Group","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hierarchy_groups/:hierarchy_group_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hierarchy_groups",":hierarchy_group_id"],"variable":[{"key":"branch_id","value":""},{"key":"hierarchy_group_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6eb7571c79519b2207aa696c7c218bcc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9f97532c-7e97-4572-b5e9-70a2f6681ad6"},{"key":"X-Runtime","value":"0.015519"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"120"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4500,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Test\"\n    },\n    \"created_at\": \"2018-10-15T07:11:34.904Z\",\n    \"updated_at\": \"2018-10-15T07:11:34.904Z\"\n}"}],"_postman_id":"b1dc7ce5-b615-441c-adb0-adcce45c14e8"},{"name":"Create Hierarchy Group","event":[{"listen":"test","script":{"id":"023b474b-9fa4-43b8-b5fc-ab6854f808ef","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"fab57f2b-862b-4695-9fef-b012f4eaf095","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text","disabled":true},{"key":"name[ar]","value":"test","type":"text","disabled":true},{"key":"subsidiary_id","value":"3245","type":"text","disabled":true},{"key":"integration_id","value":"321","type":"text","disabled":true},{"key":"gl_identifier","value":"r2356","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches//hierarchy_groups/","description":"<p>This API end-point will show a main project by branch_id and main_project_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","hierarchy_groups",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"ea62ca83-e7bf-4e26-a738-f53188034f4b","name":"Get Main Project","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/main_projects/:main_project_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","main_projects",":main_project_id"],"variable":[{"key":"branch_id","value":"104"},{"key":"main_project_id","value":"11102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ceefe612a2dfc3891cc4d48ce22f9447\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f0652685-a083-450f-bcc4-bacae26405d3"},{"key":"X-Runtime","value":"0.014801"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"133"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11102,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Karam Department\"\n    },\n    \"created_at\": \"2019-12-05T12:50:23.186Z\",\n    \"updated_at\": \"2019-12-05T12:50:23.186Z\"\n}"}],"_postman_id":"fab57f2b-862b-4695-9fef-b012f4eaf095"}],"id":"e8577875-1a36-4412-99c2-db13b14658d1","_postman_id":"e8577875-1a36-4412-99c2-db13b14658d1","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Departments","item":[{"name":"List Departments","event":[{"listen":"test","script":{"id":"a9ce6e33-86ce-49bc-96b8-bb720e503b1a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first department_id from the response data","pm.test(\"Set department_id env var from first data\", function() {","    var jsonData = pm.response.json();","    var departmentId = jsonData.data[0].id;","    ","    pm.environment.set(\"department_id\", departmentId);","});"],"type":"text/javascript","packages":{}}}],"id":"14fb2f96-4099-497f-b60c-12369c67cd1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//departments","description":"<p>This API end-point will list all departments in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","departments"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"3"},{"disabled":true,"key":"filter[subsidiary_id][]","value":"145"},{"disabled":true,"key":"filter[gl_identifier][]","value":"43"},{"disabled":true,"key":"filter[integration_id][]","value":"432"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[]}},"response":[{"id":"0a9231dc-7537-4f7b-b106-50c9eb60d74c","name":"List Departments","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/departments","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","departments"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"fa841d1fda9ebd04a1f8124c5c96ed91\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8e9ade7e-c069-4e5c-ade1-127adc33d1ae"},{"key":"X-Runtime","value":"0.061737"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1367"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 37,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 581,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Management12\"\n            },\n            \"created_at\": \"2017-09-26T07:27:59.980Z\",\n            \"updated_at\": \"2022-10-17T14:16:58.344Z\"\n        },\n        {\n            \"id\": 582,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Accounting\"\n            },\n            \"created_at\": \"2017-09-26T07:28:00.531Z\",\n            \"updated_at\": \"2017-09-26T07:28:00.531Z\"\n        },\n        {\n            \"id\": 583,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Department\"\n            },\n            \"created_at\": \"2017-09-26T07:28:01.953Z\",\n            \"updated_at\": \"2017-09-26T07:28:01.953Z\"\n        },\n        {\n            \"id\": 584,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"HR Department\"\n            },\n            \"created_at\": \"2017-09-26T07:28:02.670Z\",\n            \"updated_at\": \"2022-10-17T14:16:52.380Z\"\n        },\n        {\n            \"id\": 2635,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"HR\"\n            },\n            \"created_at\": \"2018-04-15T12:15:47.567Z\",\n            \"updated_at\": \"2018-04-15T12:15:47.567Z\"\n        },\n        {\n            \"id\": 2636,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Finance\"\n            },\n            \"created_at\": \"2018-04-15T12:16:07.520Z\",\n            \"updated_at\": \"2018-04-15T12:16:07.520Z\"\n        },\n        {\n            \"id\": 2690,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Management\"\n            },\n            \"created_at\": \"2018-04-19T07:28:42.637Z\",\n            \"updated_at\": \"2018-04-19T07:28:42.637Z\"\n        },\n        {\n            \"id\": 4911,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Department\"\n            },\n            \"created_at\": \"2018-11-07T12:37:29.279Z\",\n            \"updated_at\": \"2018-11-07T12:37:29.279Z\"\n        },\n        {\n            \"id\": 4913,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Dep\"\n            },\n            \"created_at\": \"2018-11-07T12:38:25.795Z\",\n            \"updated_at\": \"2018-11-07T12:38:25.795Z\"\n        },\n        {\n            \"id\": 4915,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Dep\"\n            },\n            \"created_at\": \"2018-11-07T12:47:07.579Z\",\n            \"updated_at\": \"2018-11-07T12:47:07.579Z\"\n        }\n    ]\n}"}],"_postman_id":"14fb2f96-4099-497f-b60c-12369c67cd1b"},{"name":"Get Department","event":[{"listen":"test","script":{"id":"3a590497-fdcd-4674-bdf9-52eb8bc85609","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"17bd2d55-cfb8-4146-9781-b851a30afb02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//departments/:department_id","description":"<p>This API end-point will show a department by branch_id and department_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","departments",":department_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"department_id"}]}},"response":[{"id":"ff467e46-fb12-4a58-9c35-7fcc76407815","name":"Get Department","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/departments/:department_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","departments",":department_id"],"variable":[{"key":"branch_id","value":""},{"key":"department_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"13e1d97a8de6b1005c1def6a96aa88bd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"92c161c8-5b70-4925-ae6f-e99fa1a916ee"},{"key":"X-Runtime","value":"0.017796"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"127"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 581,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Management12\"\n    },\n    \"created_at\": \"2017-09-26T07:27:59.980Z\",\n    \"updated_at\": \"2022-10-17T14:16:58.344Z\"\n}"}],"_postman_id":"17bd2d55-cfb8-4146-9781-b851a30afb02"},{"name":"Delete Department","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"e1c4d3c1-35ad-4082-b299-3f23f476ce64"}}],"id":"dd548285-add1-45d2-a7b5-6d515b7ad028","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/departments/:department_id","description":"<p>This API end-point will show a department by branch_id and department_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","departments",":department_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"0a246698-6ef7-4396-adf5-7ba2615367ce","type":"any","value":"","key":"branch_id"},{"id":"d13471f9-e8bd-4afc-ab6c-47e79034f36d","type":"any","value":"","key":"department_id"}]}},"response":[{"id":"1a520c62-72bb-4d4e-880e-647e5d53d670","name":"Get Department","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/departments/:department_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","departments",":department_id"],"variable":[{"key":"branch_id","value":""},{"key":"department_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"13e1d97a8de6b1005c1def6a96aa88bd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"92c161c8-5b70-4925-ae6f-e99fa1a916ee"},{"key":"X-Runtime","value":"0.017796"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"127"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 581,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Management12\"\n    },\n    \"created_at\": \"2017-09-26T07:27:59.980Z\",\n    \"updated_at\": \"2022-10-17T14:16:58.344Z\"\n}"}],"_postman_id":"dd548285-add1-45d2-a7b5-6d515b7ad028"},{"name":"Create Department","event":[{"listen":"test","script":{"id":"d20d9ede-9ed4-41d8-9eba-ef9de17e3358","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"ce8a6c58-ec77-4b3e-9543-8295bb77056f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text","disabled":true},{"key":"name[ar]","value":"test","type":"text","disabled":true},{"key":"subsidiary_id","value":"123","type":"text","disabled":true},{"key":"integration_id","value":"123","type":"text","disabled":true},{"key":"gl_identifier","value":"233","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches//departments/","description":"<p>This API end-point will show a main project by branch_id and main_project_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","departments",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"252fb464-ed80-426e-a148-6ad0e29ccd8d","name":"Get Main Project","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/main_projects/:main_project_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","main_projects",":main_project_id"],"variable":[{"key":"branch_id","value":"104"},{"key":"main_project_id","value":"11102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ceefe612a2dfc3891cc4d48ce22f9447\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f0652685-a083-450f-bcc4-bacae26405d3"},{"key":"X-Runtime","value":"0.014801"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"133"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11102,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Karam Department\"\n    },\n    \"created_at\": \"2019-12-05T12:50:23.186Z\",\n    \"updated_at\": \"2019-12-05T12:50:23.186Z\"\n}"}],"_postman_id":"ce8a6c58-ec77-4b3e-9543-8295bb77056f"}],"id":"8c0fae46-3d32-4768-aced-860656ebcb6a","_postman_id":"8c0fae46-3d32-4768-aced-860656ebcb6a","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Sections","item":[{"name":"List Sections","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","","    // Define the JSON schema","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"]},","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    // Test for schema validity","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the section_id from the first response","pm.test(\"Set section_id from the first response\", function() {","    var jsonData = pm.response.json();","    var sectionId = jsonData.data[0].id;","    ","    pm.environment.set(\"section_id\", sectionId);","});"],"type":"text/javascript","id":"91c57ada-e159-4126-882f-6678f9cb2b4b"}}],"id":"b9b4bf8c-362c-46ac-b5b6-1a20b79e2b39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sections","description":"<p>This API end-point will list all sections by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sections"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"3"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"90347"},{"disabled":true,"key":"filter[integration_id][]","value":"1234"},{"disabled":true,"key":"filter[subsidiary_id]","value":"123"},{"disabled":true,"key":"filter[gl_identifier]","value":"123"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[{"id":"da4b4fae-ef2d-4234-92c2-005435d0940e","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"293864ae-ca54-441c-b6a9-18f1dbd3719d","name":"List Sections","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sections","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sections"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"52d55315d701ccad08ae804c67345a4c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"251a73c3-0b22-495a-8d70-aaee0bd366cd"},{"key":"X-Runtime","value":"0.063990"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1418"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 30,\n        \"total_pages\": 3\n    },\n    \"data\": [\n        {\n            \"id\": 585,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Recruitment\"\n            },\n            \"created_at\": \"2017-09-26T07:28:02.747Z\",\n            \"updated_at\": \"2022-10-17T14:16:52.575Z\"\n        },\n        {\n            \"id\": 586,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Training\"\n            },\n            \"created_at\": \"2017-09-26T07:28:04.962Z\",\n            \"updated_at\": \"2017-09-26T07:28:04.962Z\"\n        },\n        {\n            \"id\": 2637,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Recruitment\"\n            },\n            \"created_at\": \"2018-04-15T12:16:16.257Z\",\n            \"updated_at\": \"2018-04-15T12:16:16.257Z\"\n        },\n        {\n            \"id\": 4754,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Payroll\"\n            },\n            \"created_at\": \"2018-11-03T11:05:48.313Z\",\n            \"updated_at\": \"2018-11-03T11:05:48.313Z\"\n        },\n        {\n            \"id\": 4912,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"333333333333333333333333333333333333333 gqefbewb bwegwqetbqerg\"\n            },\n            \"created_at\": \"2018-11-07T12:38:10.651Z\",\n            \"updated_at\": \"2021-08-18T12:31:28.108Z\"\n        },\n        {\n            \"id\": 5182,\n            \"name\": {\n                \"ar\": \"IT\",\n                \"en\": null\n            },\n            \"created_at\": \"2018-11-28T07:43:26.670Z\",\n            \"updated_at\": \"2018-11-28T07:43:26.670Z\"\n        },\n        {\n            \"id\": 5491,\n            \"name\": {\n                \"ar\": \"تيست فادي \",\n                \"en\": \"IT\"\n            },\n            \"created_at\": \"2018-12-20T08:58:22.601Z\",\n            \"updated_at\": \"2022-10-17T14:16:58.520Z\"\n        },\n        {\n            \"id\": 10804,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestSection\"\n            },\n            \"created_at\": \"2019-11-19T15:10:22.805Z\",\n            \"updated_at\": \"2019-11-19T15:10:22.805Z\"\n        },\n        {\n            \"id\": 23011,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"19!\"\n            },\n            \"created_at\": \"2021-10-24T11:57:12.862Z\",\n            \"updated_at\": \"2022-03-21T12:18:30.303Z\"\n        },\n        {\n            \"id\": 14552,\n            \"name\": {\n                \"ar\": \"ليث\",\n                \"en\": \"laith\"\n            },\n            \"created_at\": \"2020-07-06T07:40:56.080Z\",\n            \"updated_at\": \"2020-07-06T07:40:56.080Z\"\n        }\n    ]\n}"}],"_postman_id":"b9b4bf8c-362c-46ac-b5b6-1a20b79e2b39"},{"name":"Get Section","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function() {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function() {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response schema is valid\", function() {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": { ","                \"type\": \"object\",","                 \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"] ","                            },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"7e0eeda0-2496-4c76-961f-01ace8de21b3"}}],"id":"9a164272-e337-408e-a50c-d582c2d91351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sections/:section_id","description":"<p>This API end-point will show a section by branch_id and section_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sections",":section_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"91e83231-9aa8-46a2-a4af-e5ce6b59ba83","type":"any","value":"","key":"branch_id"},{"id":"c0f29cad-249c-4665-a58c-908ef77a2f78","type":"any","value":"{{section_id}}","key":"section_id"}]}},"response":[{"id":"803aefbd-c34b-43fb-8854-17f74a2d61f8","name":"Get Section","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sections/:section_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sections",":section_id"],"variable":[{"key":"branch_id","value":""},{"key":"section_id","value":"{{section_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"edbae388cf397035c10fc9b22b5c26b6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"54877950-9cde-4bce-99e2-4805169f1bba"},{"key":"X-Runtime","value":"0.012721"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"128"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 585,\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"Recruitment\"\n    },\n    \"created_at\": \"2017-09-26T07:28:02.747Z\",\n    \"updated_at\": \"2022-10-17T14:16:52.575Z\"\n}"}],"_postman_id":"9a164272-e337-408e-a50c-d582c2d91351"},{"name":"Create Section","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function() {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function() {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response schema is valid\", function() {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": { ","                \"type\": \"object\",","                 \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"] ","                            },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"0ad6eefd-c8c8-4320-b44a-feb0020fc3cd"}}],"id":"58fe5219-8135-4d94-968b-2bc16274acd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text","disabled":true},{"key":"name[ar]","value":"test","type":"text","disabled":true},{"key":"integration_id","value":"123","type":"text","disabled":true},{"key":"subsidiary_id","value":"123","type":"text","disabled":true},{"key":"gl_identifier","value":"123","type":"text","disabled":true},{"key":"organization_level_id","value":"90340","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sections","description":"<p>This API end-point will show a section by branch_id and section_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sections"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"f39cca62-608e-4fc9-bbc5-43d838b0a20a","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"b227fb24-8cb2-4e78-8362-9ebc34709e36","name":"Create Section","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sections/:section_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sections",":section_id"],"variable":[{"key":"branch_id","value":""},{"key":"section_id","value":"{{section_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"edbae388cf397035c10fc9b22b5c26b6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"54877950-9cde-4bce-99e2-4805169f1bba"},{"key":"X-Runtime","value":"0.012721"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"128"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 585,\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"Recruitment\"\n    },\n    \"created_at\": \"2017-09-26T07:28:02.747Z\",\n    \"updated_at\": \"2022-10-17T14:16:52.575Z\"\n}"}],"_postman_id":"58fe5219-8135-4d94-968b-2bc16274acd9"},{"name":"Update Section","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function() {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function() {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response schema is valid\", function() {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": { ","                \"type\": \"object\",","                 \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"] ","                            },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"daa5036e-3a22-4009-82c0-0e3bbf838984"}}],"id":"c2cb2e6f-7622-499f-928a-c478e4231fe8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test2","type":"text","disabled":true},{"key":"name[ar]","value":"test2","type":"text","disabled":true},{"key":"integration_id","value":"777","type":"text","disabled":true},{"key":"subsidiary_id","value":"777","type":"text","disabled":true},{"key":"organization_level_id","value":"777","type":"text","disabled":true},{"key":"gl_identifier","value":"777","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sections/:section_id","description":"<p>This API end-point will show a section by branch_id and section_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sections",":section_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"2369fc5e-d3d2-41f2-a047-c36884a62562","type":"any","value":"","key":"branch_id"},{"id":"e70c80f4-71d4-473b-bbed-2decf7367356","type":"any","value":"{{section_id}}","key":"section_id"}]}},"response":[{"id":"67f98915-82e7-48fa-a91f-20f56b3e8e80","name":"Update Section","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sections/:section_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sections",":section_id"],"variable":[{"key":"branch_id","value":""},{"key":"section_id","value":"{{section_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"edbae388cf397035c10fc9b22b5c26b6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"54877950-9cde-4bce-99e2-4805169f1bba"},{"key":"X-Runtime","value":"0.012721"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"128"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 585,\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"Recruitment\"\n    },\n    \"created_at\": \"2017-09-26T07:28:02.747Z\",\n    \"updated_at\": \"2022-10-17T14:16:52.575Z\"\n}"}],"_postman_id":"c2cb2e6f-7622-499f-928a-c478e4231fe8"},{"name":"Delete Section","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function() {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function() {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function() {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response schema is valid\", function() {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": { ","                \"type\": \"object\",","                 \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"] ","                            },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"f7c23487-efb8-4f1e-8ecb-6860a9344f78"}}],"id":"1ffdb593-cd07-4158-8622-71d2c1062c84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sections/:section_id","description":"<p>This API end-point will show a section by branch_id and section_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sections",":section_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"409497f2-ecff-4ada-a8a4-3e238bcf7faf","type":"any","value":"","key":"branch_id"},{"id":"81994af3-74b5-46d6-bff9-e3ba43e176db","type":"any","value":"{{section_id}}","key":"section_id"}]}},"response":[{"id":"3b32725d-e050-4268-8d61-6f8354ca2c16","name":"Get Section","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sections/:section_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sections",":section_id"],"variable":[{"key":"branch_id","value":""},{"key":"section_id","value":"{{section_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"edbae388cf397035c10fc9b22b5c26b6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"54877950-9cde-4bce-99e2-4805169f1bba"},{"key":"X-Runtime","value":"0.012721"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"128"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 585,\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"Recruitment\"\n    },\n    \"created_at\": \"2017-09-26T07:28:02.747Z\",\n    \"updated_at\": \"2022-10-17T14:16:52.575Z\"\n}"}],"_postman_id":"1ffdb593-cd07-4158-8622-71d2c1062c84"}],"id":"dcc75ac3-b91a-4734-84ba-ddc9c5c69864","_postman_id":"dcc75ac3-b91a-4734-84ba-ddc9c5c69864","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Work Location","item":[{"name":"List Work Locations","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"]  }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the site_id from the response and store it in an environment variable","var jsonData = pm.response.json();","var siteId = jsonData.data[0].id;","pm.environment.set(\"site_id\", siteId);"],"type":"text/javascript","id":"e0962e38-1f3b-40b8-9384-36217d235a71"}}],"id":"fb0b9d32-86fc-487d-8e36-ccfc7c327e9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sites","description":"<p>This API end-point will list all sites in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sites"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"580"},{"disabled":true,"key":"filter[integration_id][]","value":"123"},{"disabled":true,"key":"filter[subsidiary_id][]","value":"123"},{"disabled":true,"key":"filter[gl_identifier][]","value":"123"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[{"id":"ee20b075-2bae-4888-9c81-e7cf13027cfd","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"d66e2182-6e6f-484f-bf3a-d91a732ef1eb","name":"List Sites","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sites","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sites"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"dfebd21278f17d2d220d9ed971c46884\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dc62b1b7-a7d1-4fc4-83b7-936671656b43"},{"key":"X-Runtime","value":"0.018528"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1405"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 34,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 580,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Amman123\"\n            },\n            \"created_at\": \"2017-09-26T07:27:59.947Z\",\n            \"updated_at\": \"2023-07-23T07:22:58.626Z\"\n        },\n        {\n            \"id\": 980,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"irbid\"\n            },\n            \"created_at\": \"2017-11-21T13:58:11.209Z\",\n            \"updated_at\": \"2017-11-21T13:58:11.209Z\"\n        },\n        {\n            \"id\": 2634,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Aqabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa dead sea hotel \"\n            },\n            \"created_at\": \"2018-04-15T12:15:35.190Z\",\n            \"updated_at\": \"2021-08-18T11:35:36.156Z\"\n        },\n        {\n            \"id\": 2689,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Main Office\"\n            },\n            \"created_at\": \"2018-04-19T07:28:42.624Z\",\n            \"updated_at\": \"2018-04-19T07:28:42.624Z\"\n        },\n        {\n            \"id\": 3872,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"jhagfs\"\n            },\n            \"created_at\": \"2018-08-28T12:59:19.667Z\",\n            \"updated_at\": \"2018-08-28T12:59:19.667Z\"\n        },\n        {\n            \"id\": 5789,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Irbid\"\n            },\n            \"created_at\": \"2019-01-21T12:36:12.734Z\",\n            \"updated_at\": \"2019-01-21T12:36:12.734Z\"\n        },\n        {\n            \"id\": 10805,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestWorkLocation\"\n            },\n            \"created_at\": \"2019-11-19T15:10:31.234Z\",\n            \"updated_at\": \"2022-01-13T14:58:51.804Z\"\n        },\n        {\n            \"id\": 14516,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"zarqa2\"\n            },\n            \"created_at\": \"2020-07-05T09:26:01.268Z\",\n            \"updated_at\": \"2020-07-05T09:26:01.268Z\"\n        },\n        {\n            \"id\": 14533,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"test\"\n            },\n            \"created_at\": \"2020-07-05T10:43:29.408Z\",\n            \"updated_at\": \"2020-07-05T10:43:29.408Z\"\n        },\n        {\n            \"id\": 23009,\n            \"name\": {\n                \"ar\": \"0 2\",\n                \"en\": \"2 01\"\n            },\n            \"created_at\": \"2021-10-24T11:57:12.505Z\",\n            \"updated_at\": \"2023-09-28T08:06:29.004Z\"\n        }\n    ]\n}"}],"_postman_id":"fb0b9d32-86fc-487d-8e36-ccfc7c327e9e"},{"name":"Get Work Location","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"197cc123-c830-4532-bf45-9fd10c5a9d86"}}],"id":"3328f643-3439-4f48-b729-2560857f69ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sites/:site_id","description":"<p>This API end-point will show a site by branch_id and site_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sites",":site_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"05a433e2-bc5a-4326-96f0-f6e49f32bbb4","type":"any","value":"","key":"branch_id"},{"id":"d26e4287-9dc6-44b4-905e-946c6676d808","type":"any","value":"{{site_id}}","key":"site_id"}]}},"response":[{"id":"eb9af8e9-daa1-4dbb-8a28-f4f37628ef65","name":"Get Site","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sites/:site_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sites",":site_id"],"variable":[{"key":"branch_id","value":""},{"key":"site_id","value":"{{site_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"756926cc2a6f46c203e08583a3068053\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"06093e02-501d-4abb-a0ad-3930ccc220d4"},{"key":"X-Runtime","value":"0.017113"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"123"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 580,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Amman123\"\n    },\n    \"created_at\": \"2017-09-26T07:27:59.947Z\",\n    \"updated_at\": \"2023-07-23T07:22:58.626Z\"\n}"}],"_postman_id":"3328f643-3439-4f48-b729-2560857f69ce"},{"name":"Delete Work Location","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"409f2a73-52d3-4fc9-b040-328a685be2d1"}}],"id":"8875e9aa-4187-4dad-a719-59e41d666a8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/sites/:site_id","description":"<p>This API end-point will show a site by branch_id and site_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","sites",":site_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"9a8d4d0b-c87e-4a27-b2bb-d5ce4ab4d0bb","type":"any","value":"","key":"branch_id"},{"id":"13ecf09d-31e2-4b86-abc7-8d7812a52c74","type":"any","value":"{{site_id}}","key":"site_id"}]}},"response":[{"id":"6c56c4a7-8eb4-43b1-8516-1d40761aeb04","name":"Get Site","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/sites/:site_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","sites",":site_id"],"variable":[{"key":"branch_id","value":""},{"key":"site_id","value":"{{site_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"756926cc2a6f46c203e08583a3068053\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"06093e02-501d-4abb-a0ad-3930ccc220d4"},{"key":"X-Runtime","value":"0.017113"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"123"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 580,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Amman123\"\n    },\n    \"created_at\": \"2017-09-26T07:27:59.947Z\",\n    \"updated_at\": \"2023-07-23T07:22:58.626Z\"\n}"}],"_postman_id":"8875e9aa-4187-4dad-a719-59e41d666a8f"},{"name":"Create Work Location","event":[{"listen":"test","script":{"id":"70ab3d2d-5b7f-4fd9-9982-4763f809a666","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"]},","                    \"en\": {\"type\": [\"string\", \"null\"]}","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","    };","    ","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"99587a3b-07a4-4dbb-9485-940d6331a0cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text","disabled":true},{"key":"name[ar]","value":"test","type":"text","disabled":true},{"key":"gl_identifier","value":"123","type":"text","disabled":true},{"key":"integration_id","value":"123","type":"text","disabled":true},{"key":"subsidiary_id","value":"123","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches//sites/","description":"<p>This API end-point will show a main project by branch_id and main_project_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","sites",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"cbc77f3c-f24f-40d6-8fee-9d8e0c4eb030","name":"Get Main Project","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/main_projects/:main_project_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","main_projects",":main_project_id"],"variable":[{"key":"branch_id","value":"104"},{"key":"main_project_id","value":"11102"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ceefe612a2dfc3891cc4d48ce22f9447\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f0652685-a083-450f-bcc4-bacae26405d3"},{"key":"X-Runtime","value":"0.014801"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"133"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11102,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Karam Department\"\n    },\n    \"created_at\": \"2019-12-05T12:50:23.186Z\",\n    \"updated_at\": \"2019-12-05T12:50:23.186Z\"\n}"}],"_postman_id":"99587a3b-07a4-4dbb-9485-940d6331a0cd"}],"id":"662774bd-44f0-403f-b961-ef36907ee9b4","_postman_id":"662774bd-44f0-403f-b961-ef36907ee9b4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Business Units","item":[{"name":"List Business Units","event":[{"listen":"test","script":{"id":"a9ce6e33-86ce-49bc-96b8-bb720e503b1a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first department_id from the response data","pm.test(\"Set department_id env var from first data\", function() {","    var jsonData = pm.response.json();","    var departmentId = jsonData.data[0].id;","    ","    pm.environment.set(\"department_id\", departmentId);","});"],"type":"text/javascript","packages":{}}}],"id":"59aecc9f-fc3f-4e7f-a019-64f83f9b63f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_units","description":"<p>This API end-point will list all departments in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_units"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"3"},{"disabled":true,"key":"filter[subsidiary_id][]","value":"145"},{"disabled":true,"key":"filter[gl_identifier][]","value":"43"},{"disabled":true,"key":"filter[integration_id][]","value":"432"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"2c444453-304b-47f2-bc2a-c5a57c4461fe","name":"List Departments","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/departments","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","departments"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"fa841d1fda9ebd04a1f8124c5c96ed91\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8e9ade7e-c069-4e5c-ade1-127adc33d1ae"},{"key":"X-Runtime","value":"0.061737"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1367"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 37,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 581,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Management12\"\n            },\n            \"created_at\": \"2017-09-26T07:27:59.980Z\",\n            \"updated_at\": \"2022-10-17T14:16:58.344Z\"\n        },\n        {\n            \"id\": 582,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Accounting\"\n            },\n            \"created_at\": \"2017-09-26T07:28:00.531Z\",\n            \"updated_at\": \"2017-09-26T07:28:00.531Z\"\n        },\n        {\n            \"id\": 583,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Department\"\n            },\n            \"created_at\": \"2017-09-26T07:28:01.953Z\",\n            \"updated_at\": \"2017-09-26T07:28:01.953Z\"\n        },\n        {\n            \"id\": 584,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"HR Department\"\n            },\n            \"created_at\": \"2017-09-26T07:28:02.670Z\",\n            \"updated_at\": \"2022-10-17T14:16:52.380Z\"\n        },\n        {\n            \"id\": 2635,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"HR\"\n            },\n            \"created_at\": \"2018-04-15T12:15:47.567Z\",\n            \"updated_at\": \"2018-04-15T12:15:47.567Z\"\n        },\n        {\n            \"id\": 2636,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Finance\"\n            },\n            \"created_at\": \"2018-04-15T12:16:07.520Z\",\n            \"updated_at\": \"2018-04-15T12:16:07.520Z\"\n        },\n        {\n            \"id\": 2690,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Management\"\n            },\n            \"created_at\": \"2018-04-19T07:28:42.637Z\",\n            \"updated_at\": \"2018-04-19T07:28:42.637Z\"\n        },\n        {\n            \"id\": 4911,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Department\"\n            },\n            \"created_at\": \"2018-11-07T12:37:29.279Z\",\n            \"updated_at\": \"2018-11-07T12:37:29.279Z\"\n        },\n        {\n            \"id\": 4913,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Dep\"\n            },\n            \"created_at\": \"2018-11-07T12:38:25.795Z\",\n            \"updated_at\": \"2018-11-07T12:38:25.795Z\"\n        },\n        {\n            \"id\": 4915,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Dep\"\n            },\n            \"created_at\": \"2018-11-07T12:47:07.579Z\",\n            \"updated_at\": \"2018-11-07T12:47:07.579Z\"\n        }\n    ]\n}"}],"_postman_id":"59aecc9f-fc3f-4e7f-a019-64f83f9b63f7"},{"name":"Get Business Unit","event":[{"listen":"test","script":{"id":"a9ce6e33-86ce-49bc-96b8-bb720e503b1a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first department_id from the response data","pm.test(\"Set department_id env var from first data\", function() {","    var jsonData = pm.response.json();","    var departmentId = jsonData.data[0].id;","    ","    pm.environment.set(\"department_id\", departmentId);","});"],"type":"text/javascript","packages":{}}}],"id":"97c982ae-3fe0-462e-be7a-0203da674bdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_units/:business_unit_id","description":"<p>This API end-point will list all departments in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_units",":business_unit_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"business_unit_id"}]}},"response":[{"id":"76da730e-4c32-4617-a83e-b524bf717821","name":"Get Business Unit","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/business_units/109616"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"335"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-wlwu4NZiXOGoGImzNPr+DQ=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"f18aa2c01b3883cbae4513ee82a6cc72\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"3910bda3-f3fb-49d8-bbae-2c4b72bcd528"},{"key":"X-Runtime","value":"0.126186"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:26:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109616,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"business unit1\"\n    },\n    \"gl_identifier\": \"\",\n    \"subsidiary_id\": \"\",\n    \"establishment_number\": null,\n    \"integration_id\": \"\",\n    \"establishment_name\": null,\n    \"governance_location\": null,\n    \"ss_number\": null,\n    \"tax_number\": null,\n    \"address\": null,\n    \"po_box\": null,\n    \"created_at\": \"2023-12-06T14:56:30.798Z\",\n    \"updated_at\": \"2023-12-06T14:56:30.798Z\"\n}"}],"_postman_id":"97c982ae-3fe0-462e-be7a-0203da674bdc"},{"name":"Delete Business Unit","event":[{"listen":"test","script":{"id":"a9ce6e33-86ce-49bc-96b8-bb720e503b1a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first department_id from the response data","pm.test(\"Set department_id env var from first data\", function() {","    var jsonData = pm.response.json();","    var departmentId = jsonData.data[0].id;","    ","    pm.environment.set(\"department_id\", departmentId);","});"],"type":"text/javascript","packages":{}}}],"id":"b1536a4c-236e-4fed-920f-ab4bb81e389e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_units/:business_unit_id","description":"<p>This API end-point will list all departments in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_units",":business_unit_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"business_unit_id"}]}},"response":[{"id":"d7f71b2c-eee9-4f60-809a-0958006b2111","name":"List Departments","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/departments","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","departments"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"fa841d1fda9ebd04a1f8124c5c96ed91\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8e9ade7e-c069-4e5c-ade1-127adc33d1ae"},{"key":"X-Runtime","value":"0.061737"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1367"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 37,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 581,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Management12\"\n            },\n            \"created_at\": \"2017-09-26T07:27:59.980Z\",\n            \"updated_at\": \"2022-10-17T14:16:58.344Z\"\n        },\n        {\n            \"id\": 582,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Accounting\"\n            },\n            \"created_at\": \"2017-09-26T07:28:00.531Z\",\n            \"updated_at\": \"2017-09-26T07:28:00.531Z\"\n        },\n        {\n            \"id\": 583,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Department\"\n            },\n            \"created_at\": \"2017-09-26T07:28:01.953Z\",\n            \"updated_at\": \"2017-09-26T07:28:01.953Z\"\n        },\n        {\n            \"id\": 584,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"HR Department\"\n            },\n            \"created_at\": \"2017-09-26T07:28:02.670Z\",\n            \"updated_at\": \"2022-10-17T14:16:52.380Z\"\n        },\n        {\n            \"id\": 2635,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"HR\"\n            },\n            \"created_at\": \"2018-04-15T12:15:47.567Z\",\n            \"updated_at\": \"2018-04-15T12:15:47.567Z\"\n        },\n        {\n            \"id\": 2636,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Finance\"\n            },\n            \"created_at\": \"2018-04-15T12:16:07.520Z\",\n            \"updated_at\": \"2018-04-15T12:16:07.520Z\"\n        },\n        {\n            \"id\": 2690,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Management\"\n            },\n            \"created_at\": \"2018-04-19T07:28:42.637Z\",\n            \"updated_at\": \"2018-04-19T07:28:42.637Z\"\n        },\n        {\n            \"id\": 4911,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Department\"\n            },\n            \"created_at\": \"2018-11-07T12:37:29.279Z\",\n            \"updated_at\": \"2018-11-07T12:37:29.279Z\"\n        },\n        {\n            \"id\": 4913,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Dep\"\n            },\n            \"created_at\": \"2018-11-07T12:38:25.795Z\",\n            \"updated_at\": \"2018-11-07T12:38:25.795Z\"\n        },\n        {\n            \"id\": 4915,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Dep\"\n            },\n            \"created_at\": \"2018-11-07T12:47:07.579Z\",\n            \"updated_at\": \"2018-11-07T12:47:07.579Z\"\n        }\n    ]\n}"}],"_postman_id":"b1536a4c-236e-4fed-920f-ab4bb81e389e"},{"name":"Create Business Unit","id":"80485933-8d41-416b-b681-e5bdc6430bdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_units","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_units"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"name[en]","value":"test"},{"disabled":true,"key":"name[ar]","value":"test"},{"disabled":true,"key":"subsidiary_id","value":"1234"},{"disabled":true,"key":"integration_id","value":"2345"},{"disabled":true,"key":"gl_identifier","value":"r342"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"3a11d171-835c-4ed2-a709-7803e6020677","name":"Get Business Unit Copy","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/business_units/109616"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"335"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-wlwu4NZiXOGoGImzNPr+DQ=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"f18aa2c01b3883cbae4513ee82a6cc72\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"3910bda3-f3fb-49d8-bbae-2c4b72bcd528"},{"key":"X-Runtime","value":"0.126186"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:26:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109616,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"business unit1\"\n    },\n    \"gl_identifier\": \"\",\n    \"subsidiary_id\": \"\",\n    \"establishment_number\": null,\n    \"integration_id\": \"\",\n    \"establishment_name\": null,\n    \"governance_location\": null,\n    \"ss_number\": null,\n    \"tax_number\": null,\n    \"address\": null,\n    \"po_box\": null,\n    \"created_at\": \"2023-12-06T14:56:30.798Z\",\n    \"updated_at\": \"2023-12-06T14:56:30.798Z\"\n}"}],"_postman_id":"80485933-8d41-416b-b681-e5bdc6430bdc"}],"id":"80759858-2c31-41e7-9947-0f991484476e","_postman_id":"80759858-2c31-41e7-9947-0f991484476e","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Segments","item":[{"name":"List Segments","id":"0781a1ce-f7fc-4c74-ba4a-e90ac6fadd2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/segments","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","segments"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"90323"},{"disabled":true,"key":"filter[subsidiary_id][]","value":"1234"},{"disabled":true,"key":"filter[gl_identifier][]","value":"r342"},{"disabled":true,"key":"filter[integration_id][]","value":"2345"},{"disabled":true,"key":"filter[created_at][from]","value":"2022-01-20"},{"disabled":true,"key":"filter[created_at][to]","value":"2022-01-20"},{"disabled":true,"key":"filter[updated_at][from]","value":"2022-01-20"},{"disabled":true,"key":"filter[updated_at][to]","value":"2022-01-20"},{"disabled":true,"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"56a61351-385e-491e-90f1-ff7a47b073f8","name":"List Segments","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/segments","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","segments"],"query":[{"key":"page","value":"2","type":"text","disabled":true},{"key":"limit","value":"3","type":"text","disabled":true},{"key":"filter[id][]","value":"90323","type":"text","disabled":true},{"key":"filter[subsidiary_id][]","value":"1234","type":"text","disabled":true},{"key":"filter[gl_identifier][]","value":"r342","type":"text","disabled":true},{"key":"filter[integration_id][]","value":"2345","type":"text","disabled":true},{"key":"filter[created_at][from]","value":"2022-01-20","type":"text","disabled":true},{"key":"filter[created_at][to]","value":"2022-01-20","type":"text","disabled":true},{"key":"filter[updated_at][from]","value":"2022-01-20","type":"text","disabled":true},{"key":"filter[updated_at][to]","value":"2022-01-20","type":"text","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","type":"text","disabled":true},{"key":"order[]","value":"{column: name->en, dir: asc}","type":"text","disabled":true},{"key":"order[]","value":"{column: name->ar, dir: asc}","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"1500"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-a7PYqc7bp3hH4ahui8vlEA=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"d76803377220d3a51c240aa782c484a3\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"3bde44c7-60e3-4062-8a60-7beb4513a535"},{"key":"X-Runtime","value":"0.033518"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:25:02 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 4,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 109617,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Segment\"\n            },\n            \"gl_identifier\": \"\",\n            \"subsidiary_id\": \"\",\n            \"establishment_number\": null,\n            \"integration_id\": \"\",\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2023-12-06T14:56:48.747Z\",\n            \"updated_at\": \"2023-12-06T14:56:48.747Z\"\n        },\n        {\n            \"id\": 150234,\n            \"name\": {\n                \"ar\": \"12345\",\n                \"en\": \"12345\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"integration_id\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-03-25T14:15:18.679Z\",\n            \"updated_at\": \"2024-03-25T14:15:18.679Z\"\n        },\n        {\n            \"id\": 152438,\n            \"name\": {\n                \"ar\": \"العملاء التجزئة\",\n                \"en\": \"Retail Customers\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"integration_id\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-04-19T18:27:48.274Z\",\n            \"updated_at\": \"2024-04-19T18:27:48.274Z\"\n        },\n        {\n            \"id\": 172271,\n            \"name\": {\n                \"ar\": \"تطوير المنتج\",\n                \"en\": \"Product Development\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"integration_id\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-09-05T17:07:05.439Z\",\n            \"updated_at\": \"2024-09-05T17:07:05.439Z\"\n        }\n    ]\n}"}],"_postman_id":"0781a1ce-f7fc-4c74-ba4a-e90ac6fadd2a"},{"name":"Show Segments","id":"1a4099e5-8582-48e2-90a9-596f05e9b40e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/segments/:segment_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","segments",":segment_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"segment_id"}]}},"response":[{"id":"f67a30c6-ef58-457d-9d8e-e1273520bfb9","name":"Show Segments","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com//api/v3/branches/104/segments/109617"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"328"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-txtk1Fdf9uuLIcdUnppeCw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"a75283bc83c193e7ec9198647ce9245d\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"07b60a89-70b9-4755-988e-2640f0f591bf"},{"key":"X-Runtime","value":"0.061115"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:25:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109617,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Segment\"\n    },\n    \"gl_identifier\": \"\",\n    \"subsidiary_id\": \"\",\n    \"establishment_number\": null,\n    \"integration_id\": \"\",\n    \"establishment_name\": null,\n    \"governance_location\": null,\n    \"ss_number\": null,\n    \"tax_number\": null,\n    \"address\": null,\n    \"po_box\": null,\n    \"created_at\": \"2023-12-06T14:56:48.747Z\",\n    \"updated_at\": \"2023-12-06T14:56:48.747Z\"\n}"}],"_postman_id":"1a4099e5-8582-48e2-90a9-596f05e9b40e"},{"name":"Create Segments","id":"1e149163-4aa8-4112-b029-f4eebbbfc2bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text","disabled":true},{"key":"name[ar]","value":"test","type":"text","disabled":true},{"key":"subsidiary_id","value":"1234","type":"text","disabled":true},{"key":"integration_id","value":"2345","type":"text","disabled":true},{"key":"gl_identifier","value":"r342","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/segments/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","segments",""],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"03117396-e5d4-4295-8caf-2c124c8d5278","name":"Create Segments","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com//api/v3/branches/104/segments/109617"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"328"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-txtk1Fdf9uuLIcdUnppeCw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"a75283bc83c193e7ec9198647ce9245d\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"07b60a89-70b9-4755-988e-2640f0f591bf"},{"key":"X-Runtime","value":"0.061115"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:25:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109617,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Segment\"\n    },\n    \"gl_identifier\": \"\",\n    \"subsidiary_id\": \"\",\n    \"establishment_number\": null,\n    \"integration_id\": \"\",\n    \"establishment_name\": null,\n    \"governance_location\": null,\n    \"ss_number\": null,\n    \"tax_number\": null,\n    \"address\": null,\n    \"po_box\": null,\n    \"created_at\": \"2023-12-06T14:56:48.747Z\",\n    \"updated_at\": \"2023-12-06T14:56:48.747Z\"\n}"}],"_postman_id":"1e149163-4aa8-4112-b029-f4eebbbfc2bb"},{"name":"Delete Segments","id":"40ff4c6c-3c46-4682-9b3a-c9a8a4102a63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/segments/:segment_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","segments",":segment_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"segment_id"}]}},"response":[],"_postman_id":"40ff4c6c-3c46-4682-9b3a-c9a8a4102a63"}],"id":"81a2c687-e04e-4e75-8065-bed787b4ef49","_postman_id":"81a2c687-e04e-4e75-8065-bed787b4ef49","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Divisions","item":[{"name":"List Divisions","id":"a96404b1-e2e1-4d71-b4a3-b6fbb52757e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/divisions","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","divisions"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"3"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"90347"},{"disabled":true,"key":"filter[integration_id][]","value":"1234"},{"disabled":true,"key":"filter[subsidiary_id]","value":"123"},{"disabled":true,"key":"filter[gl_identifier]","value":"123"},{"disabled":true,"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"efcf0901-45ba-4eb9-8bec-ae5e28d65c09","name":"List Divisions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/divisions","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","divisions"],"query":[{"key":"page","value":"3","type":"text","disabled":true},{"key":"limit","value":"3","type":"text","disabled":true},{"key":"filter[id][]","value":"90347","type":"text","disabled":true},{"key":"filter[integration_id][]","value":"1234","type":"text","disabled":true},{"key":"filter[subsidiary_id]","value":"123","type":"text","disabled":true},{"key":"filter[gl_identifier]","value":"123","type":"text","disabled":true},{"key":"filter[created_at][from]","value":"2022-10-20","type":"text","disabled":true},{"key":"filter[created_at][to]","value":"2022-10-20","type":"text","disabled":true},{"key":"filter[updated_at][from]","value":"2022-10-20","type":"text","disabled":true},{"key":"filter[updated_at][to]","value":"2022-10-20","type":"text","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","type":"text","disabled":true},{"key":"order[]","value":"{column: name->en, dir: asc}","type":"text","disabled":true},{"key":"order[]","value":"{column: name->ar, dir: asc}","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"2373"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-MpMOoFxXEkG67YgYMPrjew=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"d57647954c49f2e433bfddf1f2be321f\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"60189a9f-7f80-4245-a1f3-3052bf38a8cb"},{"key":"X-Runtime","value":"0.022809"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:24:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 7,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 109618,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Division1\"\n            },\n            \"gl_identifier\": \"\",\n            \"subsidiary_id\": \"\",\n            \"establishment_number\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2023-12-06T14:57:03.469Z\",\n            \"updated_at\": \"2023-12-06T14:57:03.469Z\"\n        },\n        {\n            \"id\": 127628,\n            \"name\": {\n                \"ar\": \"سوسو\",\n                \"en\": \"saaaa\"\n            },\n            \"gl_identifier\": \"\",\n            \"subsidiary_id\": \"\",\n            \"establishment_number\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2023-12-14T06:18:49.886Z\",\n            \"updated_at\": \"2024-03-09T08:39:18.810Z\"\n        },\n        {\n            \"id\": 146054,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"delme\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-03-07T08:41:17.144Z\",\n            \"updated_at\": \"2024-03-07T08:41:17.144Z\"\n        },\n        {\n            \"id\": 150233,\n            \"name\": {\n                \"ar\": \"12345\",\n                \"en\": \"12345\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-03-25T14:15:18.646Z\",\n            \"updated_at\": \"2024-03-25T14:15:18.646Z\"\n        },\n        {\n            \"id\": 150235,\n            \"name\": {\n                \"ar\": \"nil\",\n                \"en\": \"Delme\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-03-25T15:19:35.763Z\",\n            \"updated_at\": \"2024-03-25T15:19:35.763Z\"\n        },\n        {\n            \"id\": 152437,\n            \"name\": {\n                \"ar\": \"الشرق الأوسط وشمال أفريقيا\",\n                \"en\": \"Middle East and North Africa\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-04-19T18:27:48.223Z\",\n            \"updated_at\": \"2024-04-19T18:27:48.223Z\"\n        },\n        {\n            \"id\": 172270,\n            \"name\": {\n                \"ar\": \"الهندسة\",\n                \"en\": \"Engineering\"\n            },\n            \"gl_identifier\": null,\n            \"subsidiary_id\": null,\n            \"establishment_number\": null,\n            \"establishment_name\": null,\n            \"governance_location\": null,\n            \"ss_number\": null,\n            \"tax_number\": null,\n            \"address\": null,\n            \"po_box\": null,\n            \"created_at\": \"2024-09-05T17:07:05.378Z\",\n            \"updated_at\": \"2024-09-05T17:07:05.378Z\"\n        }\n    ]\n}"}],"_postman_id":"a96404b1-e2e1-4d71-b4a3-b6fbb52757e7"},{"name":"Create Division","id":"440ab161-3145-4ee7-bf3d-a3bbaa03a152","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text","disabled":true},{"key":"name[ar]","value":"test","type":"text","disabled":true},{"key":"integration_id","value":"123","type":"text","disabled":true},{"key":"subsidiary_id","value":"123","type":"text","disabled":true},{"key":"gl_identifier","value":"123","type":"text","disabled":true},{"key":"organization_level_id","value":"90340","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/divisions","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","divisions"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"41977f89-ba6b-4831-900f-c15ffabae0e5","name":"Create Division","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/divisions/109618"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"310"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-OzD7j5ZYjmQdslNdRTnfBg=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"9c17b7cf056d1abacb5f9189f48102a7\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"6128cad2-db8f-434e-a571-456a054f51cb"},{"key":"X-Runtime","value":"0.041805"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:24:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109618,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Division1\"\n    },\n    \"gl_identifier\": \"\",\n    \"subsidiary_id\": \"\",\n    \"establishment_number\": null,\n    \"establishment_name\": null,\n    \"governance_location\": null,\n    \"ss_number\": null,\n    \"tax_number\": null,\n    \"address\": null,\n    \"po_box\": null,\n    \"created_at\": \"2023-12-06T14:57:03.469Z\",\n    \"updated_at\": \"2023-12-06T14:57:03.469Z\"\n}"}],"_postman_id":"440ab161-3145-4ee7-bf3d-a3bbaa03a152"},{"name":"Show Division","id":"49f22d8e-ee70-41ad-be83-593df3c917de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/divisions/:division_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","divisions",":division_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"division_id"}]}},"response":[{"id":"cd50fc5c-33f4-4597-ad76-ca1d1e61500b","name":"Show Division","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/divisions/109618"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"310"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-OzD7j5ZYjmQdslNdRTnfBg=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"9c17b7cf056d1abacb5f9189f48102a7\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"6128cad2-db8f-434e-a571-456a054f51cb"},{"key":"X-Runtime","value":"0.041805"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:24:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109618,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Division1\"\n    },\n    \"gl_identifier\": \"\",\n    \"subsidiary_id\": \"\",\n    \"establishment_number\": null,\n    \"establishment_name\": null,\n    \"governance_location\": null,\n    \"ss_number\": null,\n    \"tax_number\": null,\n    \"address\": null,\n    \"po_box\": null,\n    \"created_at\": \"2023-12-06T14:57:03.469Z\",\n    \"updated_at\": \"2023-12-06T14:57:03.469Z\"\n}"}],"_postman_id":"49f22d8e-ee70-41ad-be83-593df3c917de"},{"name":"Delete Division","id":"e36a34f6-3f01-41e9-b160-cb3388a1a03a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/divisions/:division_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","divisions",":division_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"division_id"}]}},"response":[],"_postman_id":"e36a34f6-3f01-41e9-b160-cb3388a1a03a"}],"id":"548a6e1c-0dcf-40e1-bacc-4685f9db1ae2","_postman_id":"548a6e1c-0dcf-40e1-bacc-4685f9db1ae2","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}}],"id":"a048d75d-51dc-4a86-aefb-a2cefbe22d68","_postman_id":"a048d75d-51dc-4a86-aefb-a2cefbe22d68","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Positions","item":[{"name":"List Positions","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","id":"ea0b2187-37fe-4e14-9e01-67669f174975"}}],"id":"0e7b4031-0014-4ef2-b2f6-be5b87700649","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/positions","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","positions"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"filter[id][]","value":"106927"},{"disabled":true,"description":{"content":"<p>Position types [regular, hazardous]</p>\n","type":"text/plain"},"key":"filter[position_type][]","value":"hazardous"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2010-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2010-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2010-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2010-10-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: position_type, dir: asc}"}],"variable":[{"id":"6fbbbdb0-d513-4408-808b-3c7652b372ff","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"4445ed0e-2df9-434b-b4e8-355d242fedec","name":"List Positions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/positions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","positions"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"2d63fffcc8f3e205226d495d374dc09b\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6c1b9198-eee6-45e9-9252-1f74d144af36"},{"key":"X-Runtime","value":"0.047998"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1924"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 71,\n        \"total_pages\": 8\n    },\n    \"data\": [\n        {\n            \"id\": 2006,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Senior Quality Analyst\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2018-02-12T15:25:25.739Z\",\n            \"updated_at\": \"2018-02-12T15:25:25.739Z\"\n        },\n        {\n            \"id\": 804,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Co-Founder - CEO\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:27:59.912Z\",\n            \"updated_at\": \"2017-09-26T07:27:59.912Z\"\n        },\n        {\n            \"id\": 805,\n            \"name\": {\n                \"ar\": \"محاسب أول\",\n                \"en\": \"Senior Accountant\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:28:00.493Z\",\n            \"updated_at\": \"2022-10-05T08:39:00.341Z\"\n        },\n        {\n            \"id\": 806,\n            \"name\": {\n                \"ar\": \"محاسب ثاني\",\n                \"en\": \"Junior Accountant\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:28:01.136Z\",\n            \"updated_at\": \"2022-10-05T08:39:42.290Z\"\n        },\n        {\n            \"id\": 807,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"IT Manager\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:28:01.915Z\",\n            \"updated_at\": \"2017-09-26T07:28:01.915Z\"\n        },\n        {\n            \"id\": 808,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Recruitment Officer\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:28:02.598Z\",\n            \"updated_at\": \"2017-09-26T07:28:02.598Z\"\n        },\n        {\n            \"id\": 809,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Software Developer\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:28:04.097Z\",\n            \"updated_at\": \"2017-09-26T07:28:04.097Z\"\n        },\n        {\n            \"id\": 810,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"Training Manager\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:28:04.877Z\",\n            \"updated_at\": \"2017-09-26T07:28:04.877Z\"\n        },\n        {\n            \"id\": 811,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"HR Manager\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:38:27.792Z\",\n            \"updated_at\": \"2018-11-18T14:54:35.416Z\"\n        },\n        {\n            \"id\": 2012,\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"driver\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2018-02-13T08:51:39.285Z\",\n            \"updated_at\": \"2018-02-13T08:51:39.285Z\"\n        }\n    ]\n}"}],"_postman_id":"0e7b4031-0014-4ef2-b2f6-be5b87700649"},{"name":"Get Position","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"job_description\": {\"type\": \"string\"},","            \"position_type\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"d6e2057b-d3b1-4187-b052-156b87423454"}}],"id":"c89cd6ab-de54-4c11-ad9c-4d5b70bdcd65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/positions/:position_id","description":"<p>This API end-point will show a position in a branch by branch_id and position_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","positions",":position_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"b9f2fd56-a4e5-49d0-b6a5-b0bf8bf33103","type":"any","value":"","key":"branch_id"},{"id":"9d38f5ff-7522-4c9f-9158-645d237db72d","type":"any","value":"{{position_id}}","key":"position_id"}]}},"response":[{"id":"e949ef0d-af9b-4f4e-9526-e1c153439b9e","name":"Get Position","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/positions/:position_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","positions",":position_id"],"variable":[{"key":"branch_id","value":""},{"key":"position_id","value":"{{position_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"c25637b7b265a3f45ff184bb9e2a5e3f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dc3824a3-647c-4162-92d4-8091e2a73a92"},{"key":"X-Runtime","value":"0.013346"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"187"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2006,\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"Senior Quality Analyst\"\n    },\n    \"job_description\": \"\",\n    \"position_type\": \"regular\",\n    \"created_at\": \"2018-02-12T15:25:25.739Z\",\n    \"updated_at\": \"2018-02-12T15:25:25.739Z\"\n}"}],"_postman_id":"c89cd6ab-de54-4c11-ad9c-4d5b70bdcd65"},{"name":"Create Position","id":"65a0827f-00fa-4e8d-bae4-aeb61eb39772","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asdasd","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdg","type":"text"},{"key":"job_description","value":"sdfsdfsdfsdfsdfds","type":"text"},{"key":"position_type","value":"regular","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/positions","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","positions"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"a9a4179a-0c2e-4300-bdf6-3857c4555d55","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"c0155867-535b-465f-a048-abf94a79c987","name":"Create Position","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asdasd","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdg","type":"text"},{"key":"job_description","value":"sdfsdfsdfsdfsdfds","type":"text"},{"key":"position_type","value":"regular","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/positions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","positions"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"c1a982516259ba38aacc7df6d0901f1d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8795e7ca-e228-4aff-888f-816797186733"},{"key":"X-Runtime","value":"0.045611"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"203"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 111400,\n    \"name\": {\n        \"ar\": \"asdasd\",\n        \"en\": \"asdasdasfdsgfdg\"\n    },\n    \"job_description\": \"sdfsdfsdfsdfsdfds\",\n    \"position_type\": \"regular\",\n    \"created_at\": \"2023-11-25T16:22:16.390Z\",\n    \"updated_at\": \"2023-11-25T16:22:16.390Z\"\n}"}],"_postman_id":"65a0827f-00fa-4e8d-bae4-aeb61eb39772"},{"name":"Edit Position","id":"faba9ce1-0d35-4af2-b239-65a8afb4f3ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asd","type":"text"},{"key":"name[en]","value":"asd","type":"text"},{"key":"job_description","value":"sdfsdfsdfsdfsdfdsasd ","type":"text"},{"key":"position_type","value":"regular","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/positions/:position_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","positions",":position_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"position_id"}]}},"response":[{"id":"cb9917f3-dd2a-4e48-b204-2c792d6ce133","name":"Create Position","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"ssdfsdfsdfsdfdsfsdfdsf","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdgasdasd","type":"text"},{"key":"job_description","value":"sdfsdfsdfsdfsdfds","type":"text"},{"key":"position_type","value":"regular","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/positions/:position_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","positions",":position_id"],"variable":[{"key":"branch_id","value":""},{"key":"position_id","value":"111374"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"8d0e8373a038aeadfefe40e9ebc21bfd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bb76c324-5058-4fa8-b091-8a4991730445"},{"key":"X-Runtime","value":"3.681983"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"203"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 111374,\n    \"name\": {\n        \"ar\": \"asdasd\",\n        \"en\": \"asdasdasfdsgfdg\"\n    },\n    \"job_description\": \"sdfsdfsdfsdfsdfds\",\n    \"position_type\": \"regular\",\n    \"created_at\": \"2023-11-24T23:02:01.629Z\",\n    \"updated_at\": \"2023-11-24T23:02:01.629Z\"\n}"}],"_postman_id":"faba9ce1-0d35-4af2-b239-65a8afb4f3ba"}],"id":"90a1a168-8206-4e50-aef1-7a1cb4b8943d","_postman_id":"90a1a168-8206-4e50-aef1-7a1cb4b8943d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Users","item":[{"name":"List users","event":[{"listen":"test","script":{"exec":["var responseBody = pm.response.json();","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the JSON schema\", function () {","    var schema = {","        type: 'object',","        properties: {","            token_info: {","                type: 'object',","                properties: {","                    iss: { type: 'string' },","                    iat: { type: 'number' },","                    aud: { type: 'string' },","                    jti: { type: 'string' },","                    sub: { type: 'number' },","                    scopes: { type: 'array' },","                    resource: {","                        type: 'object',","                        properties: {","                            type: { type: 'string' },","                            id: { type: 'number' }","                        }","                    },","                    props: {","                        type: 'object',","                        properties: {","                            company_id: { type: ['number', 'null'] },","                            branch_id: { type: ['number', 'null'] },","                            user_id: { type: ['number', 'null'] },","                            employee_id: { type: ['number', 'null'] },","                            name: { type: ['string', 'null'] },","                            email: { type: ['string', 'null'] },","                            confirmed_at: { type: ['string', 'null'] },","                            unlock_token: { type: ['string', 'null'] },","                            active: { type: 'boolean' }","                        }","                    },","                    exp: { type: 'number' }","                },","                required: ['iss', 'iat', 'aud', 'jti', 'sub', 'scopes', 'resource', 'props', 'exp']","            },","            expires_at: { type: 'string' }","        },","        required: ['token_info', 'expires_at']","    };","","    pm.expect(responseBody).to.have.jsonSchema(schema);","});","","// Set environment variables for employee_id and branch_id","var responseBody = pm.response.json();","var employeeId = responseBody.token_info.props.employee_id;","var branchId = responseBody.token_info.props.branch_id;","","if (employeeId !== null) {","    pm.environment.set(\"employee_id\", employeeId.toString());","}","","if (branchId !== null) {","    pm.environment.set(\"branch_id\", branchId.toString());","}"],"type":"text/javascript","id":"f1b74c29-460e-4a2a-ab27-686bc41419cc"}}],"id":"6e4c5b3b-ced8-42ae-99c7-2685723caade","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/users/","description":"<p>This API end-point will show authorized company information</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","users",""],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"employee.financial_datum"},{"disabled":true,"key":"include[]","value":"employee.professional_datum"},{"disabled":true,"key":"filter[id][]","value":"305278"},{"disabled":true,"key":"filter[employees.branch_id][]","value":"104"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[]}},"response":[{"id":"52fa282b-067a-45c6-8261-6ce926446f70","name":"who am i","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/who_am_i","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","who_am_i"],"query":[{"key":"include","value":"employee.financial_datum, employee.professional_datum","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae094c0248bad93804cd2811b82bfee1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82e37f77-3c11-4491-baa4-96159b24062c"},{"key":"X-Runtime","value":"0.074907"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_info\": {\n        \"iss\": \"http://zenhr.local:3000\",\n        \"app\": \"hashed token app\",\n        \"iat\": 1700859739,\n        \"aud\": \"UvcUCcRhD8q0LvkePBWvLCyyrtQc_m_Icmyhvvu_jKA\",\n        \"jti\": \"4b235fb2-e5c5-4cc0-92ab-8e8264db3d7c\",\n        \"sub\": 1273,\n        \"scopes\": [\n            \"read.branch\",\n            \"read.employee\",\n            \"read.professional_info\",\n            \"read.timeoff\",\n            \"read.financial_transaction\",\n            \"read.attendance_record\"\n        ],\n        \"resource\": {\n            \"type\": \"User\",\n            \"id\": 1273\n        },\n        \"props\": {\n            \"company_id\": 72,\n            \"branch_id\": 104,\n            \"user_id\": 1273,\n            \"employee_id\": 1159,\n            \"name\": \"Mazen Ziad\",\n            \"email\": \"qatesting@zenhr.com\",\n            \"confirmed_at\": null,\n            \"unlock_token\": \"4d9c6f3afb3810f931c9e09f06764c00c958aa929fa8fc200d652c598c9a210e\",\n            \"active\": true\n        },\n        \"exp\": 1700863344\n    },\n    \"expires_at\": \"2023-11-24T22:02:24.000Z\"\n}"}],"_postman_id":"6e4c5b3b-ced8-42ae-99c7-2685723caade"},{"name":"Get User","event":[{"listen":"test","script":{"id":"860a0e1d-5d7b-447e-bbea-e685d39f4ebd","exec":["var responseBody = pm.response.json();","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the JSON schema\", function () {","    var schema = {","        type: 'object',","        properties: {","            token_info: {","                type: 'object',","                properties: {","                    iss: { type: 'string' },","                    iat: { type: 'number' },","                    aud: { type: 'string' },","                    jti: { type: 'string' },","                    sub: { type: 'number' },","                    scopes: { type: 'array' },","                    resource: {","                        type: 'object',","                        properties: {","                            type: { type: 'string' },","                            id: { type: 'number' }","                        }","                    },","                    props: {","                        type: 'object',","                        properties: {","                            company_id: { type: ['number', 'null'] },","                            branch_id: { type: ['number', 'null'] },","                            user_id: { type: ['number', 'null'] },","                            employee_id: { type: ['number', 'null'] },","                            name: { type: ['string', 'null'] },","                            email: { type: ['string', 'null'] },","                            confirmed_at: { type: ['string', 'null'] },","                            unlock_token: { type: ['string', 'null'] },","                            active: { type: 'boolean' }","                        }","                    },","                    exp: { type: 'number' }","                },","                required: ['iss', 'iat', 'aud', 'jti', 'sub', 'scopes', 'resource', 'props', 'exp']","            },","            expires_at: { type: 'string' }","        },","        required: ['token_info', 'expires_at']","    };","","    pm.expect(responseBody).to.have.jsonSchema(schema);","});","","// Set environment variables for employee_id and branch_id","var responseBody = pm.response.json();","var employeeId = responseBody.token_info.props.employee_id;","var branchId = responseBody.token_info.props.branch_id;","","if (employeeId !== null) {","    pm.environment.set(\"employee_id\", employeeId.toString());","}","","if (branchId !== null) {","    pm.environment.set(\"branch_id\", branchId.toString());","}"],"type":"text/javascript","packages":{}}}],"id":"8b13b6d1-dde3-4fc1-9955-169d824a8ada","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/users/:user_id","description":"<p>This API end-point will show authorized company information</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","users",":user_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"employee.financial_datum"},{"disabled":true,"key":"include[]","value":"employee.professional_datum"}],"variable":[{"type":"any","value":"","key":"user_id"}]}},"response":[{"id":"7cc2dd19-75ad-4924-8391-3c6e5fa19925","name":"who am i","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/who_am_i","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","who_am_i"],"query":[{"key":"include","value":"employee.financial_datum, employee.professional_datum","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae094c0248bad93804cd2811b82bfee1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82e37f77-3c11-4491-baa4-96159b24062c"},{"key":"X-Runtime","value":"0.074907"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_info\": {\n        \"iss\": \"http://zenhr.local:3000\",\n        \"app\": \"hashed token app\",\n        \"iat\": 1700859739,\n        \"aud\": \"UvcUCcRhD8q0LvkePBWvLCyyrtQc_m_Icmyhvvu_jKA\",\n        \"jti\": \"4b235fb2-e5c5-4cc0-92ab-8e8264db3d7c\",\n        \"sub\": 1273,\n        \"scopes\": [\n            \"read.branch\",\n            \"read.employee\",\n            \"read.professional_info\",\n            \"read.timeoff\",\n            \"read.financial_transaction\",\n            \"read.attendance_record\"\n        ],\n        \"resource\": {\n            \"type\": \"User\",\n            \"id\": 1273\n        },\n        \"props\": {\n            \"company_id\": 72,\n            \"branch_id\": 104,\n            \"user_id\": 1273,\n            \"employee_id\": 1159,\n            \"name\": \"Mazen Ziad\",\n            \"email\": \"qatesting@zenhr.com\",\n            \"confirmed_at\": null,\n            \"unlock_token\": \"4d9c6f3afb3810f931c9e09f06764c00c958aa929fa8fc200d652c598c9a210e\",\n            \"active\": true\n        },\n        \"exp\": 1700863344\n    },\n    \"expires_at\": \"2023-11-24T22:02:24.000Z\"\n}"}],"_postman_id":"8b13b6d1-dde3-4fc1-9955-169d824a8ada"},{"name":"Delete User","event":[{"listen":"test","script":{"exec":["var responseBody = pm.response.json();","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the JSON schema\", function () {","    var schema = {","        type: 'object',","        properties: {","            token_info: {","                type: 'object',","                properties: {","                    iss: { type: 'string' },","                    iat: { type: 'number' },","                    aud: { type: 'string' },","                    jti: { type: 'string' },","                    sub: { type: 'number' },","                    scopes: { type: 'array' },","                    resource: {","                        type: 'object',","                        properties: {","                            type: { type: 'string' },","                            id: { type: 'number' }","                        }","                    },","                    props: {","                        type: 'object',","                        properties: {","                            company_id: { type: ['number', 'null'] },","                            branch_id: { type: ['number', 'null'] },","                            user_id: { type: ['number', 'null'] },","                            employee_id: { type: ['number', 'null'] },","                            name: { type: ['string', 'null'] },","                            email: { type: ['string', 'null'] },","                            confirmed_at: { type: ['string', 'null'] },","                            unlock_token: { type: ['string', 'null'] },","                            active: { type: 'boolean' }","                        }","                    },","                    exp: { type: 'number' }","                },","                required: ['iss', 'iat', 'aud', 'jti', 'sub', 'scopes', 'resource', 'props', 'exp']","            },","            expires_at: { type: 'string' }","        },","        required: ['token_info', 'expires_at']","    };","","    pm.expect(responseBody).to.have.jsonSchema(schema);","});","","// Set environment variables for employee_id and branch_id","var responseBody = pm.response.json();","var employeeId = responseBody.token_info.props.employee_id;","var branchId = responseBody.token_info.props.branch_id;","","if (employeeId !== null) {","    pm.environment.set(\"employee_id\", employeeId.toString());","}","","if (branchId !== null) {","    pm.environment.set(\"branch_id\", branchId.toString());","}"],"type":"text/javascript","packages":{},"id":"7889044d-18c0-4aee-8dd0-6a50b81ada35"}}],"id":"c89bd780-72ae-4eb0-bb33-a66c9d00ad79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/users/:user_id","description":"<p>This API end-point will show authorized company information</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","users",":user_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"employee.financial_datum, employee.professional_datum"}],"variable":[{"id":"d5d6cf11-e8cd-46c3-942a-0841072d15fe","type":"any","value":"","key":"user_id"}]}},"response":[{"id":"8e94eee0-8318-4a85-b044-75f8a2b3aee7","name":"who am i","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/who_am_i","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","who_am_i"],"query":[{"key":"include","value":"employee.financial_datum, employee.professional_datum","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae094c0248bad93804cd2811b82bfee1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82e37f77-3c11-4491-baa4-96159b24062c"},{"key":"X-Runtime","value":"0.074907"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_info\": {\n        \"iss\": \"http://zenhr.local:3000\",\n        \"app\": \"hashed token app\",\n        \"iat\": 1700859739,\n        \"aud\": \"UvcUCcRhD8q0LvkePBWvLCyyrtQc_m_Icmyhvvu_jKA\",\n        \"jti\": \"4b235fb2-e5c5-4cc0-92ab-8e8264db3d7c\",\n        \"sub\": 1273,\n        \"scopes\": [\n            \"read.branch\",\n            \"read.employee\",\n            \"read.professional_info\",\n            \"read.timeoff\",\n            \"read.financial_transaction\",\n            \"read.attendance_record\"\n        ],\n        \"resource\": {\n            \"type\": \"User\",\n            \"id\": 1273\n        },\n        \"props\": {\n            \"company_id\": 72,\n            \"branch_id\": 104,\n            \"user_id\": 1273,\n            \"employee_id\": 1159,\n            \"name\": \"Mazen Ziad\",\n            \"email\": \"qatesting@zenhr.com\",\n            \"confirmed_at\": null,\n            \"unlock_token\": \"4d9c6f3afb3810f931c9e09f06764c00c958aa929fa8fc200d652c598c9a210e\",\n            \"active\": true\n        },\n        \"exp\": 1700863344\n    },\n    \"expires_at\": \"2023-11-24T22:02:24.000Z\"\n}"}],"_postman_id":"c89bd780-72ae-4eb0-bb33-a66c9d00ad79"},{"name":"Create User","event":[{"listen":"test","script":{"id":"21a7dbf9-e908-4a39-915e-c9cc8531c0b4","exec":["var responseBody = pm.response.json();","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the JSON schema\", function () {","    var schema = {","        type: 'object',","        properties: {","            token_info: {","                type: 'object',","                properties: {","                    iss: { type: 'string' },","                    iat: { type: 'number' },","                    aud: { type: 'string' },","                    jti: { type: 'string' },","                    sub: { type: 'number' },","                    scopes: { type: 'array' },","                    resource: {","                        type: 'object',","                        properties: {","                            type: { type: 'string' },","                            id: { type: 'number' }","                        }","                    },","                    props: {","                        type: 'object',","                        properties: {","                            company_id: { type: ['number', 'null'] },","                            branch_id: { type: ['number', 'null'] },","                            user_id: { type: ['number', 'null'] },","                            employee_id: { type: ['number', 'null'] },","                            name: { type: ['string', 'null'] },","                            email: { type: ['string', 'null'] },","                            confirmed_at: { type: ['string', 'null'] },","                            unlock_token: { type: ['string', 'null'] },","                            active: { type: 'boolean' }","                        }","                    },","                    exp: { type: 'number' }","                },","                required: ['iss', 'iat', 'aud', 'jti', 'sub', 'scopes', 'resource', 'props', 'exp']","            },","            expires_at: { type: 'string' }","        },","        required: ['token_info', 'expires_at']","    };","","    pm.expect(responseBody).to.have.jsonSchema(schema);","});","","// Set environment variables for employee_id and branch_id","var responseBody = pm.response.json();","var employeeId = responseBody.token_info.props.employee_id;","var branchId = responseBody.token_info.props.branch_id;","","if (employeeId !== null) {","    pm.environment.set(\"employee_id\", employeeId.toString());","}","","if (branchId !== null) {","    pm.environment.set(\"branch_id\", branchId.toString());","}"],"type":"text/javascript","packages":{}}}],"id":"4461f076-4aa2-448f-ac96-bff4adc3d335","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"sdddssfdgaaasff3fs@test.com","type":"text"},{"key":"username","value":"dsf@test.com","type":"text"},{"key":"provider","value":"email","type":"text"},{"key":"name[en][first_name]","value":"3eesas","type":"text"},{"key":"name_en[second_name]","value":"3essas","type":"text"},{"key":"name_en[third_name]","value":"3essas","type":"text"},{"key":"name_en[last_name]","value":"3essas","type":"text"},{"key":"name_ar[first_name]","value":"3essa","type":"text"},{"key":"name_ar[second_name]","value":"3essa","type":"text"},{"key":"name_ar[third_name]","value":"3essa","type":"text"},{"key":"name_ar[last_name]","value":"3essa","type":"text"},{"key":"is_support","value":"false","type":"text"},{"key":"uid","value":"issa@zen.com","type":"text"},{"key":"impersonation","value":"true","description":"<p>boolean</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/users/","description":"<p>This API end-point will show authorized company information</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","users",""],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"employee.financial_datum, employee.professional_datum"}],"variable":[]}},"response":[{"id":"7f72b6c0-3667-4206-b144-5c22213a9a93","name":"who am i","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/who_am_i","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","who_am_i"],"query":[{"key":"include","value":"employee.financial_datum, employee.professional_datum","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae094c0248bad93804cd2811b82bfee1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82e37f77-3c11-4491-baa4-96159b24062c"},{"key":"X-Runtime","value":"0.074907"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_info\": {\n        \"iss\": \"http://zenhr.local:3000\",\n        \"app\": \"hashed token app\",\n        \"iat\": 1700859739,\n        \"aud\": \"UvcUCcRhD8q0LvkePBWvLCyyrtQc_m_Icmyhvvu_jKA\",\n        \"jti\": \"4b235fb2-e5c5-4cc0-92ab-8e8264db3d7c\",\n        \"sub\": 1273,\n        \"scopes\": [\n            \"read.branch\",\n            \"read.employee\",\n            \"read.professional_info\",\n            \"read.timeoff\",\n            \"read.financial_transaction\",\n            \"read.attendance_record\"\n        ],\n        \"resource\": {\n            \"type\": \"User\",\n            \"id\": 1273\n        },\n        \"props\": {\n            \"company_id\": 72,\n            \"branch_id\": 104,\n            \"user_id\": 1273,\n            \"employee_id\": 1159,\n            \"name\": \"Mazen Ziad\",\n            \"email\": \"qatesting@zenhr.com\",\n            \"confirmed_at\": null,\n            \"unlock_token\": \"4d9c6f3afb3810f931c9e09f06764c00c958aa929fa8fc200d652c598c9a210e\",\n            \"active\": true\n        },\n        \"exp\": 1700863344\n    },\n    \"expires_at\": \"2023-11-24T22:02:24.000Z\"\n}"}],"_postman_id":"4461f076-4aa2-448f-ac96-bff4adc3d335"},{"name":"Update User","event":[{"listen":"test","script":{"id":"42d2a39c-c9a4-48bb-b385-c769c454a8e3","exec":["var responseBody = pm.response.json();","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the JSON schema\", function () {","    var schema = {","        type: 'object',","        properties: {","            token_info: {","                type: 'object',","                properties: {","                    iss: { type: 'string' },","                    iat: { type: 'number' },","                    aud: { type: 'string' },","                    jti: { type: 'string' },","                    sub: { type: 'number' },","                    scopes: { type: 'array' },","                    resource: {","                        type: 'object',","                        properties: {","                            type: { type: 'string' },","                            id: { type: 'number' }","                        }","                    },","                    props: {","                        type: 'object',","                        properties: {","                            company_id: { type: ['number', 'null'] },","                            branch_id: { type: ['number', 'null'] },","                            user_id: { type: ['number', 'null'] },","                            employee_id: { type: ['number', 'null'] },","                            name: { type: ['string', 'null'] },","                            email: { type: ['string', 'null'] },","                            confirmed_at: { type: ['string', 'null'] },","                            unlock_token: { type: ['string', 'null'] },","                            active: { type: 'boolean' }","                        }","                    },","                    exp: { type: 'number' }","                },","                required: ['iss', 'iat', 'aud', 'jti', 'sub', 'scopes', 'resource', 'props', 'exp']","            },","            expires_at: { type: 'string' }","        },","        required: ['token_info', 'expires_at']","    };","","    pm.expect(responseBody).to.have.jsonSchema(schema);","});","","// Set environment variables for employee_id and branch_id","var responseBody = pm.response.json();","var employeeId = responseBody.token_info.props.employee_id;","var branchId = responseBody.token_info.props.branch_id;","","if (employeeId !== null) {","    pm.environment.set(\"employee_id\", employeeId.toString());","}","","if (branchId !== null) {","    pm.environment.set(\"branch_id\", branchId.toString());","}"],"type":"text/javascript","packages":{}}}],"id":"d0be81d8-84b6-4a9a-8f70-02a15bb9fe66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"sdddgaaasff3fs@test.com","type":"text"},{"key":"username","value":"safaddeffsm@test.com","type":"text"},{"key":"provider","value":"email","type":"text"},{"key":"name_en[first_name]","value":"3eesas","type":"text"},{"key":"name_en[second_name]","value":"3essas","type":"text"},{"key":"name_en[third_name]","value":"3essas","type":"text"},{"key":"name_en[last_name]","value":"3essas","type":"text"},{"key":"name_ar[first_name]","value":"3essa","type":"text"},{"key":"name_ar[second_name]","value":"3essa","type":"text"},{"key":"name_ar[third_name]","value":"3essa","type":"text"},{"key":"name_ar[last_name]","value":"3essa","type":"text"},{"key":"is_support","value":"false","type":"text"},{"key":"impersonation","value":"false","description":"<p>boolean</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/users/","description":"<p>This API end-point will show authorized company information</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","users",""],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"employee.financial_datum, employee.professional_datum"}],"variable":[]}},"response":[{"id":"d06cb1f2-7f81-404b-a99f-5d36e570c97a","name":"who am i","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/who_am_i","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","who_am_i"],"query":[{"key":"include","value":"employee.financial_datum, employee.professional_datum","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae094c0248bad93804cd2811b82bfee1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82e37f77-3c11-4491-baa4-96159b24062c"},{"key":"X-Runtime","value":"0.074907"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"669"}],"cookie":[],"responseTime":null,"body":"{\n    \"token_info\": {\n        \"iss\": \"http://zenhr.local:3000\",\n        \"app\": \"hashed token app\",\n        \"iat\": 1700859739,\n        \"aud\": \"UvcUCcRhD8q0LvkePBWvLCyyrtQc_m_Icmyhvvu_jKA\",\n        \"jti\": \"4b235fb2-e5c5-4cc0-92ab-8e8264db3d7c\",\n        \"sub\": 1273,\n        \"scopes\": [\n            \"read.branch\",\n            \"read.employee\",\n            \"read.professional_info\",\n            \"read.timeoff\",\n            \"read.financial_transaction\",\n            \"read.attendance_record\"\n        ],\n        \"resource\": {\n            \"type\": \"User\",\n            \"id\": 1273\n        },\n        \"props\": {\n            \"company_id\": 72,\n            \"branch_id\": 104,\n            \"user_id\": 1273,\n            \"employee_id\": 1159,\n            \"name\": \"Mazen Ziad\",\n            \"email\": \"qatesting@zenhr.com\",\n            \"confirmed_at\": null,\n            \"unlock_token\": \"4d9c6f3afb3810f931c9e09f06764c00c958aa929fa8fc200d652c598c9a210e\",\n            \"active\": true\n        },\n        \"exp\": 1700863344\n    },\n    \"expires_at\": \"2023-11-24T22:02:24.000Z\"\n}"}],"_postman_id":"d0be81d8-84b6-4a9a-8f70-02a15bb9fe66"}],"id":"6640d90a-568c-41c1-8521-8ddcebce0d6e","_postman_id":"6640d90a-568c-41c1-8521-8ddcebce0d6e","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Employees","item":[{"name":"Employee Master Data","item":[{"name":"List Employees","event":[{"listen":"test","script":{"id":"ebd58b09-18b8-4e0d-8fb9-7d0ec9fcced1","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"branch_id\": { \"type\": \"number\" },","                        \"employment_number\": { \"type\": \"string\" },","                        \"email\": { \"type\": \"string\", \"format\": \"email\" },","                        \"username\": { \"type\": \"string\" },","                        \"user\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"short_name\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"en\": { \"type\": \"string\" },","                                        \"ar\": { \"type\": \"string\" }","                                    },","                                    \"required\": [\"en\", \"ar\"]","                                },","                                \"name\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"en\": {","                                            \"type\": \"object\",","                                            \"properties\": {","                                                \"last_name\": { \"type\": \"string\" },","                                                \"first_name\": { \"type\": \"string\" },","                                                \"third_name\": { \"type\": \"string\" },","                                                \"second_name\": { \"type\": \"string\" }","                                            },","                                            \"required\": [\"last_name\", \"first_name\", \"third_name\", \"second_name\"]","                                        },","                                        \"ar\": {","                                            \"type\": \"object\",","                                            \"properties\": {","                                                \"last_name\": { \"type\": \"string\" },","                                                \"first_name\": { \"type\": \"string\" },","                                                \"third_name\": { \"type\": \"string\" },","                                                \"second_name\": { \"type\": \"string\" }","                                            },","                                            \"required\": [\"last_name\", \"first_name\", \"third_name\", \"second_name\"]","                                        }","                                    },","                                    \"required\": [\"en\", \"ar\"]","                                },","                                \"picture\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"url\": { \"type\": \"string\" }","                                    },","                                    \"required\": [\"url\"]","                                }","                            },","                            \"required\": [\"id\", \"short_name\", \"name\", \"picture\"]","                        },","                        \"birthdate\": { \"type\": \"string\" },","                        \"hiring_date\": { \"type\": \"string\" },","                        \"fixing_date\": { \"type\": \"string\" },","                        \"termination_date\": { \"type\": [\"string\", \"null\"] },","                        \"fixed\": { \"type\": [\"boolean\", \"null\"] },","                        \"gender\": { \"type\": \"string\" },","                        \"marital_status\": { \"type\": \"string\" },","                        \"mobile_number\": { \"type\": \"string\" },","                        \"number\": { \"type\": \"string\" },","                        \"ext_number\": { \"type\": \"string\" },","                        \"personal_email\": { \"type\": \"string\" },","                        \"religion\": { \"type\": \"string\" },","                        \"citizen\": { \"type\": \"boolean\" },","                        \"labour_card\": { \"type\": \"string\" },","                        \"end_of_contract\": { \"type\": [\"string\", \"null\"] },","                        \"mol_number\": { \"type\": \"string\" },","                        \"resident_id\": { \"type\": \"string\" },","                        \"labour_card_expiry\": { \"type\": \"string\" },","                        \"passport_number\": { \"type\": \"string\" },","                        \"passport_issue_date\": { \"type\": \"string\" },","                        \"address\": { \"type\": \"string\" },","                        \"contract_type\": { \"type\": \"string\" },","                        \"contract_end_date\": { \"type\": [\"string\", \"null\"] },","                        \"nationalities\": {","                            \"type\": \"array\",","                            \"items\": { \"type\": \"string\" }","                        },","                        \"national_id\": { \"type\": \"string\" },","                        \"active\": { \"type\": \"boolean\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"branch_id\", \"employment_number\", \"email\", \"username\", \"user\", \"birthdate\", \"hiring_date\", \"fixing_date\", \"gender\", \"marital_status\", \"mobile_number\", \"number\", \"ext_number\", \"personal_email\", \"religion\", \"citizen\", \"labour_card\", \"mol_number\", \"resident_id\", \"labour_card_expiry\", \"passport_number\", \"passport_issue_date\", \"address\", \"contract_type\", \"nationalities\", \"national_id\", \"active\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"69ae83c8-75b9-431f-9650-4728e630001c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees","description":"<p>This API end-point wil llist all employees of a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"4"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"include[]","value":"employee.financial_datum"},{"disabled":true,"key":"include[]","value":"employee.professional_datum"},{"disabled":true,"key":"filter[id]","value":"138499"},{"disabled":true,"description":{"content":"<p>global id</p>\n","type":"text/plain"},"key":"filter[integration_maps][global_id]","value":"test1"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[birthdate][from]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[birthdate][to]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[hiring_date][from]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[hiring_date][to]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[fixing_date][from]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[fixing_date][to]","value":"2022-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[terminations.termination_date][from]","value":"2014-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[terminations.termination_date][to]","value":"2022-10-17"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: id, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: employment_number, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: users.email, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: users.username, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: birthdate, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: hiring_date, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: fixing_date, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: terminations.termination_date, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: gender, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: marital_status, dir: asc }"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{ column: users.active, dir: asc}"},{"disabled":true,"key":"filter[national_id]","value":"2567890"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"cf63e27c-db81-47ed-963f-a84f415e611b","name":"List Employees","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees"],"query":[{"key":"page","value":"4","description":"page number","disabled":true},{"key":"limit","value":"10","description":"records limit per page","disabled":true},{"key":"include[]","value":"employee.financial_datum","disabled":true},{"key":"include[]","value":"employee.professional_datum","disabled":true},{"key":"filter[id][]","value":"138499","disabled":true},{"key":"filter[integration_maps][global_id]","value":"test1","description":"global id","disabled":true},{"key":"filter[created_at][from]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[created_at][to]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][from]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][to]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[birthdate][from]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[birthdate][to]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[hiring_date][from]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[hiring_date][to]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[fixing_date][from]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[fixing_date][to]","value":"2022-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[terminations.termination_date][from]","value":"2014-10-29","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[terminations.termination_date][to]","value":"2022-10-17","description":"format YYYY-MM-DD","disabled":true},{"key":"order[]","value":"{ column: id, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: employment_number, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: users.email, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: users.username, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: birthdate, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: hiring_date, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: fixing_date, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: terminations.termination_date, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: gender, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: marital_status, dir: asc }","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{ column: users.active, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"c58f90db9963edd00ccaf383f465a91f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c369a02d-3072-4e33-b3e2-49b228a26ad2"},{"key":"X-Runtime","value":"0.444326"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"28230"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1275,\n        \"total_pages\": 51\n    },\n    \"data\": [\n        {\n            \"id\": 129738,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871308\",\n            \"email\": \"jamoka+97841230@zenhr.com\",\n            \"username\": \"jamoka+97841230@zenhr.com\",\n            \"user\": {\n                \"id\": 145330,\n                \"short_name\": {\n                    \"en\": \"Smokeeee Testttt\",\n                    \"ar\": \"Smokeeee Testttt\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Testttt\",\n                        \"first_name\": \"Smokeeee\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Testttt\",\n                        \"first_name\": \"Smokeeee\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1995-06-08\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"0772129372234\",\n            \"number\": \"07721293720\",\n            \"ext_number\": \"123\",\n            \"personal_email\": \"hussein@zenhr.com\",\n            \"religion\": \"Muslim\",\n            \"citizen\": true,\n            \"labour_card\": \"12345\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"12345678\",\n            \"resident_id\": \"12345345\",\n            \"labour_card_expiry\": \"2022-08-23\",\n            \"passport_number\": \"123456\",\n            \"passport_issue_date\": \"2021-01-01\",\n            \"address\": \"Khalda\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Jordanian\"\n            ],\n            \"national_id\": \"9981018323\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-09-27T10:21:58.929Z\",\n            \"updated_at\": \"2023-06-14T12:42:44.136Z\"\n        },\n        {\n            \"id\": 129810,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871309\",\n            \"email\": \"a.alahwal+35@zenhr.com\",\n            \"username\": \"a.alahwal+35@zenhr.com\",\n            \"user\": {\n                \"id\": 145404,\n                \"short_name\": {\n                    \"en\": \"Hana Hana\",\n                    \"ar\": \"Hana Hana\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Hana\",\n                        \"first_name\": \"Hana\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Hana\",\n                        \"first_name\": \"Hana\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-09-14\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-09-27\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-09-27T14:41:51.593Z\",\n            \"updated_at\": \"2023-06-14T15:25:56.237Z\"\n        },\n        {\n            \"id\": 130075,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871310\",\n            \"email\": \"titiana+2992022@zenhr.com\",\n            \"username\": \"titiana+2992022@zenhr.com\",\n            \"user\": {\n                \"id\": 145760,\n                \"short_name\": {\n                    \"en\": \"Titiana K Houry 55555\",\n                    \"ar\": \"Titiana K Houry 55555\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"KHoury 55555\",\n                        \"first_name\": \"Titiana\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"KHoury 55555\",\n                        \"first_name\": \"Titiana\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1990-02-01\",\n            \"hiring_date\": \"2019-01-01\",\n            \"fixing_date\": \"2019-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-09-29T08:46:22.988Z\",\n            \"updated_at\": \"2023-06-14T15:25:56.907Z\"\n        },\n        {\n            \"id\": 130558,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871311\",\n            \"email\": \"jamoka+65135@zenhr.com\",\n            \"username\": \"jamoka+65135@zenhr.com\",\n            \"user\": {\n                \"id\": 146357,\n                \"short_name\": {\n                    \"en\": \"Test Testtt\",\n                    \"ar\": \"Test Testtt\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Testtt\",\n                        \"first_name\": \"Test\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Testtt\",\n                        \"first_name\": \"Test\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1995-10-04\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-02T13:46:38.248Z\",\n            \"updated_at\": \"2023-06-14T15:25:57.936Z\"\n        },\n        {\n            \"id\": 130862,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871312\",\n            \"email\": \"adsasd@adasd.com\",\n            \"username\": \"adsasd@adasd.com\",\n            \"user\": {\n                \"id\": 146669,\n                \"short_name\": {\n                    \"en\": \"Asdasdads Asdasdasdasd\",\n                    \"ar\": \"Asdasdads Asdasdasdasd\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Asdasdasdasd\",\n                        \"first_name\": \"Asdasdads\",\n                        \"third_name\": \"Adasdads2\",\n                        \"second_name\": \"Adasdad\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Asdasdasdasd\",\n                        \"first_name\": \"Asdasdads\",\n                        \"third_name\": \"Adasdads2\",\n                        \"second_name\": \"Adasdad\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-10-04\",\n            \"hiring_date\": \"2022-10-04\",\n            \"fixing_date\": \"2023-01-03\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-04T07:22:58.466Z\",\n            \"updated_at\": \"2023-06-14T15:25:58.756Z\"\n        },\n        {\n            \"id\": 131196,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871313\",\n            \"email\": \"titiana+5102022@zenhr.com\",\n            \"username\": \"titiana+5102022@zenhr.com\",\n            \"user\": {\n                \"id\": 147021,\n                \"short_name\": {\n                    \"en\": \"Hussam Ahmad\",\n                    \"ar\": \"حسام أحمد\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Ahmad\",\n                        \"first_name\": \"Hussam\",\n                        \"third_name\": \"Saeed\",\n                        \"second_name\": \"Mohammad\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"أحمد\",\n                        \"first_name\": \"حسام\",\n                        \"third_name\": \"سعيد\",\n                        \"second_name\": \"محمد\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1980-02-06\",\n            \"hiring_date\": \"2019-01-01\",\n            \"fixing_date\": \"2019-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"07973979877\",\n            \"number\": \"065527877\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"titiana.khoury@gmail.com\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"86435834\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"456456345345\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-05T09:52:36.145Z\",\n            \"updated_at\": \"2023-06-14T15:25:59.409Z\"\n        },\n        {\n            \"id\": 131206,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871314\",\n            \"email\": \"a.alahwal+47@zenhr.com\",\n            \"username\": \"a.alahwal+47@zenhr.com\",\n            \"user\": {\n                \"id\": 147032,\n                \"short_name\": {\n                    \"en\": \"Zaina Net\",\n                    \"ar\": \"Zaina Net\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Net\",\n                        \"first_name\": \"Zaina\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Net\",\n                        \"first_name\": \"Zaina\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2000-07-12\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-01-01\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-05T10:41:04.737Z\",\n            \"updated_at\": \"2023-06-14T15:26:00.476Z\"\n        },\n        {\n            \"id\": 131216,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871315\",\n            \"email\": \"asdasd@asdasdasd.com\",\n            \"username\": \"asdasd@asdasdasd.com\",\n            \"user\": {\n                \"id\": 147040,\n                \"short_name\": {\n                    \"en\": \"Hasan Zoubi\",\n                    \"ar\": \"Hasan Zoubi\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Zoubi\",\n                        \"first_name\": \"Hasan\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Zoubi\",\n                        \"first_name\": \"Hasan\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-10-05\",\n            \"hiring_date\": \"2022-10-05\",\n            \"fixing_date\": \"2023-01-04\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"+962796578675\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"abdallah@zenhr.com\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-05T11:08:02.733Z\",\n            \"updated_at\": \"2023-06-14T15:26:01.362Z\"\n        },\n        {\n            \"id\": 131233,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871316\",\n            \"email\": \"a@adsasda.com\",\n            \"username\": \"a@adsasda.com\",\n            \"user\": {\n                \"id\": 147058,\n                \"short_name\": {\n                    \"en\": \"First Name Last Name Test Test\",\n                    \"ar\": \"First Name Last Name Test Test\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Last name test test\",\n                        \"first_name\": \"First name\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"Last name test\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Last name test test\",\n                        \"first_name\": \"First name\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"Last name test\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-10-05\",\n            \"hiring_date\": \"2022-10-05\",\n            \"fixing_date\": \"2023-01-04\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"+9621234675765545\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"testemail@test.com\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-05T12:25:49.840Z\",\n            \"updated_at\": \"2023-06-14T15:26:01.944Z\"\n        },\n        {\n            \"id\": 131465,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871317\",\n            \"email\": \"a.alahwal+53@zenhr.com\",\n            \"username\": \"a.alahwal+53@zenhr.com\",\n            \"user\": {\n                \"id\": 147308,\n                \"short_name\": {\n                    \"en\": \"Aziz Aziz\",\n                    \"ar\": \"Aziz Aziz\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Aziz\",\n                        \"first_name\": \"Aziz\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Aziz\",\n                        \"first_name\": \"Aziz\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-10-07\",\n            \"hiring_date\": \"2022-10-06\",\n            \"fixing_date\": \"2023-01-05\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-06T09:16:47.757Z\",\n            \"updated_at\": \"2023-06-14T15:26:02.574Z\"\n        },\n        {\n            \"id\": 131544,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871318\",\n            \"email\": \"adasd@adadsasd.com\",\n            \"username\": \"adasd@adadsasd.com\",\n            \"user\": {\n                \"id\": 147387,\n                \"short_name\": {\n                    \"en\": \"First Name Last Name Test Test\",\n                    \"ar\": \"First Name Last Name Test Test\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Last name test test\",\n                        \"first_name\": \"First name\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"Last name test\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Last name test test\",\n                        \"first_name\": \"First name\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"Last name test\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-10-04\",\n            \"hiring_date\": \"2022-10-04\",\n            \"fixing_date\": \"2023-01-03\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"+9621234675765545\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"testemail@test.com\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-08T14:38:28.321Z\",\n            \"updated_at\": \"2023-06-14T15:26:03.136Z\"\n        },\n        {\n            \"id\": 131839,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871319\",\n            \"email\": \"october@month.com\",\n            \"username\": \"october@month.com\",\n            \"user\": {\n                \"id\": 147693,\n                \"short_name\": {\n                    \"en\": \"October Month\",\n                    \"ar\": \"October Month\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Month\",\n                        \"first_name\": \"October\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Month\",\n                        \"first_name\": \"October\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1991-02-28\",\n            \"hiring_date\": \"2022-05-01\",\n            \"fixing_date\": \"2022-07-31\",\n            \"termination_date\": \"2022-12-30\",\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": true,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Albanian\"\n            ],\n            \"national_id\": \"\",\n            \"active\": false,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-10T06:21:46.315Z\",\n            \"updated_at\": \"2023-05-12T16:36:17.591Z\"\n        },\n        {\n            \"id\": 131846,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871320\",\n            \"email\": \"rtdragon275@gmail.com\",\n            \"username\": \"rtdragon275@gmail.com\",\n            \"user\": {\n                \"id\": 147700,\n                \"short_name\": {\n                    \"en\": \"Renhera Targ\",\n                    \"ar\": \"Renhera Targ\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Targ\",\n                        \"first_name\": \"Renhera\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Targ\",\n                        \"first_name\": \"Renhera\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1995-07-05\",\n            \"hiring_date\": \"2022-06-01\",\n            \"fixing_date\": \"2022-08-31\",\n            \"termination_date\": \"2022-12-30\",\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": true,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Dutch\"\n            ],\n            \"national_id\": \"\",\n            \"active\": false,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-10T06:40:19.408Z\",\n            \"updated_at\": \"2023-05-12T16:36:17.725Z\"\n        },\n        {\n            \"id\": 132011,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871321\",\n            \"email\": \"ad@adas.com\",\n            \"username\": \"ad@adas.com\",\n            \"user\": {\n                \"id\": 147885,\n                \"short_name\": {\n                    \"en\": \"First Name Last Name Test Test\",\n                    \"ar\": \"First Name Last Name Test Test\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Last name test test\",\n                        \"first_name\": \"First name\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"Last name test\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Last name test test\",\n                        \"first_name\": \"First name\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"Last name test\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-10-11\",\n            \"hiring_date\": \"2022-10-11\",\n            \"fixing_date\": \"2023-01-10\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"+9621234675765545\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"testemail@test.com\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-11T07:24:29.744Z\",\n            \"updated_at\": \"2023-06-14T15:26:03.745Z\"\n        },\n        {\n            \"id\": 132387,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871322\",\n            \"email\": \"naheel+23456789034567@zenhr.com\",\n            \"username\": \"naheel+23456789034567@zenhr.com\",\n            \"user\": {\n                \"id\": 148303,\n                \"short_name\": {\n                    \"en\": \"Smoke Naheel Testttt\",\n                    \"ar\": \"Smoke Naheel Testttt\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"TESTTTT\",\n                        \"first_name\": \"SmokeNaheel\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"TESTTTT\",\n                        \"first_name\": \"SmokeNaheel\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-07-01\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": \"2022-10-11\",\n            \"fixed\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"0799433544\",\n            \"number\": \"0799999999\",\n            \"ext_number\": \"0799\",\n            \"personal_email\": \"\",\n            \"religion\": \"Muslim\",\n            \"citizen\": true,\n            \"labour_card\": \"1232\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"7485\",\n            \"resident_id\": \"8525989\",\n            \"labour_card_expiry\": \"2022-10-11\",\n            \"passport_number\": \"10114\",\n            \"passport_issue_date\": \"2022-10-01\",\n            \"address\": \"Jubaiha \",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Jordanian\"\n            ],\n            \"national_id\": \"99820336588\",\n            \"active\": false,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-11T11:20:39.961Z\",\n            \"updated_at\": \"2023-05-12T16:36:19.303Z\"\n        },\n        {\n            \"id\": 132435,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871323\",\n            \"email\": \"a.alahwal+60@zenhr.com\",\n            \"username\": \"a.alahwal+60@zenhr.com\",\n            \"user\": {\n                \"id\": 148369,\n                \"short_name\": {\n                    \"en\": \"Maha Test\",\n                    \"ar\": \"Maha Test\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Test\",\n                        \"first_name\": \"Maha\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Test\",\n                        \"first_name\": \"Maha\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2000-10-21\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-12T07:47:11.409Z\",\n            \"updated_at\": \"2023-06-14T15:26:04.472Z\"\n        },\n        {\n            \"id\": 132450,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871324\",\n            \"email\": \"saed+22@zenhr.com\",\n            \"username\": \"saed+22@zenhr.com\",\n            \"user\": {\n                \"id\": 148394,\n                \"short_name\": {\n                    \"en\": \"Saed Yaha\",\n                    \"ar\": \"Saed Yaha\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Yaha\",\n                        \"first_name\": \"Saed\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Yaha\",\n                        \"first_name\": \"Saed\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1997-07-11\",\n            \"hiring_date\": \"2021-01-01\",\n            \"fixing_date\": \"2021-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Jordanian\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-12T09:11:42.504Z\",\n            \"updated_at\": \"2024-01-24T10:37:59.863Z\"\n        },\n        {\n            \"id\": 132452,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871325\",\n            \"email\": \"nassar+8575@zenhr.com\",\n            \"username\": \"nassar+8575@zenhr.com\",\n            \"user\": {\n                \"id\": 148396,\n                \"short_name\": {\n                    \"en\": \"Salem Mmmaa\",\n                    \"ar\": \"Salem Mmmaa\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"MMMAA\",\n                        \"first_name\": \"Salem\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"MMMAA\",\n                        \"first_name\": \"Salem\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1995-09-27\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-12T09:23:17.060Z\",\n            \"updated_at\": \"2023-06-14T15:26:05.204Z\"\n        },\n        {\n            \"id\": 132550,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871326\",\n            \"email\": \"a.alahwal+66@zenhr.com\",\n            \"username\": \"a.alahwal+66@zenhr.com\",\n            \"user\": {\n                \"id\": 148503,\n                \"short_name\": {\n                    \"en\": \"Abeer Test Test\",\n                    \"ar\": \"Abeer Test Test\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Test Test\",\n                        \"first_name\": \"Abeer\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Test Test\",\n                        \"first_name\": \"Abeer\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-07-06\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": true,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-12T09:56:50.376Z\",\n            \"updated_at\": \"2023-06-14T12:43:01.905Z\"\n        },\n        {\n            \"id\": 132648,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871327\",\n            \"email\": \"r.abuyousef+1210223@zenhr.com\",\n            \"username\": \"r.abuyousef+1210223@zenhr.com\",\n            \"user\": {\n                \"id\": 148604,\n                \"short_name\": {\n                    \"en\": \"Tax P0\",\n                    \"ar\": \"Tax P0\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"P0\",\n                        \"first_name\": \"Tax\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"P0\",\n                        \"first_name\": \"Tax\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1999-03-31\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": true,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-12T13:18:51.818Z\",\n            \"updated_at\": \"2023-06-14T12:36:00.533Z\"\n        },\n        {\n            \"id\": 134915,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871328\",\n            \"email\": \"nassar+652@zenhr.com\",\n            \"username\": \"nassar+652@zenhr.com\",\n            \"user\": {\n                \"id\": 150926,\n                \"short_name\": {\n                    \"en\": \"Hala Fe Hala Fe\",\n                    \"ar\": \"Hala Fe Hala Fe\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"HalaFe\",\n                        \"first_name\": \"HalaFe\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"HalaFe\",\n                        \"first_name\": \"HalaFe\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"2022-08-09\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"222\",\n            \"passport_issue_date\": \"2022-01-01\",\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"111\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-17T08:13:15.480Z\",\n            \"updated_at\": \"2023-06-14T15:26:06.401Z\"\n        },\n        {\n            \"id\": 136150,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871329\",\n            \"email\": \"naheel+23456789023456789@zenhr.com\",\n            \"username\": \"naheel+23456789023456789@zenhr.com\",\n            \"user\": {\n                \"id\": 152352,\n                \"short_name\": {\n                    \"en\": \"Smokee Employee\",\n                    \"ar\": \"Smokee Employee\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Employee\",\n                        \"first_name\": \"smokee\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Employee\",\n                        \"first_name\": \"smokee\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1994-09-02\",\n            \"hiring_date\": \"2022-01-01\",\n            \"fixing_date\": \"2022-03-31\",\n            \"termination_date\": \"2022-10-19\",\n            \"fixed\": null,\n            \"gender\": \"\",\n            \"marital_status\": \"\",\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"naheel123@zenhr.com\",\n            \"religion\": \"Muslim\",\n            \"citizen\": true,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"1212121\",\n            \"passport_issue_date\": \"2022-05-01\",\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Aland Islands\",\n                \"Albanian\",\n                \"Algerian\"\n            ],\n            \"national_id\": \"99820336588\",\n            \"active\": false,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-19T13:39:41.797Z\",\n            \"updated_at\": \"2023-05-12T16:36:17.424Z\"\n        },\n        {\n            \"id\": 136252,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871330\",\n            \"email\": \"titiana+2010221@zenhr.com\",\n            \"username\": \"titiana+2010221@zenhr.com\",\n            \"user\": {\n                \"id\": 152531,\n                \"short_name\": {\n                    \"en\": \"Test 1 Mandatory1 Test 1 Mandatory1\",\n                    \"ar\": \"Test 1 Mandatory1 Test 1 Mandatory1\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Test 1 Mandatory1\",\n                        \"first_name\": \"Test 1 Mandatory1\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Test 1 Mandatory1\",\n                        \"first_name\": \"Test 1 Mandatory1\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1996-08-19\",\n            \"hiring_date\": \"2022-10-10\",\n            \"fixing_date\": \"2023-01-10\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": null,\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-20T07:04:30.623Z\",\n            \"updated_at\": \"2023-06-14T15:26:07.951Z\"\n        },\n        {\n            \"id\": 136253,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871331a\",\n            \"email\": \"titiana+201023@zenhr.com\",\n            \"username\": \"titiana+201023@zenhr.com\",\n            \"user\": {\n                \"id\": 152532,\n                \"short_name\": {\n                    \"en\": \"Test 1 Mandatory2 Test 1 Mandatory\",\n                    \"ar\": \"Test 1 Mandatory2 Test 1 Mandatory\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Test 1 Mandatory\",\n                        \"first_name\": \"Test 1 Mandatory2\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Test 1 Mandatory\",\n                        \"first_name\": \"Test 1 Mandatory2\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1996-08-19\",\n            \"hiring_date\": \"2022-10-10\",\n            \"fixing_date\": \"2023-01-10\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": null,\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-20T07:08:07.997Z\",\n            \"updated_at\": \"2023-06-14T15:26:08.832Z\"\n        },\n        {\n            \"id\": 136254,\n            \"branch_id\": 104,\n            \"employment_number\": \"500134871332a\",\n            \"email\": \"titiana+2010224@zenhr.com\",\n            \"username\": \"titiana+2010224@zenhr.com\",\n            \"user\": {\n                \"id\": 152533,\n                \"short_name\": {\n                    \"en\": \"Test 1 Mandatory3 Test 1 Mandatory1\",\n                    \"ar\": \"Test 1 Mandatory3 Test 1 Mandatory1\"\n                },\n                \"name\": {\n                    \"en\": {\n                        \"last_name\": \"Test 1 Mandatory1\",\n                        \"first_name\": \"Test 1 Mandatory3\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    },\n                    \"ar\": {\n                        \"last_name\": \"Test 1 Mandatory1\",\n                        \"first_name\": \"Test 1 Mandatory3\",\n                        \"third_name\": \"\",\n                        \"second_name\": \"\"\n                    }\n                },\n                \"picture\": {\n                    \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                }\n            },\n            \"birthdate\": \"1996-08-19\",\n            \"hiring_date\": \"2022-10-10\",\n            \"fixing_date\": \"2023-01-10\",\n            \"termination_date\": null,\n            \"fixed\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": null,\n            \"mobile_number\": \"\",\n            \"number\": \"\",\n            \"ext_number\": \"\",\n            \"personal_email\": \"\",\n            \"religion\": \"Other\",\n            \"citizen\": false,\n            \"labour_card\": \"\",\n            \"end_of_contract\": null,\n            \"mol_number\": \"\",\n            \"resident_id\": \"\",\n            \"labour_card_expiry\": null,\n            \"passport_number\": \"\",\n            \"passport_issue_date\": null,\n            \"address\": \"\",\n            \"contract_type\": \"unlimited\",\n            \"contract_end_date\": null,\n            \"nationalities\": [\n                \"Afghan\"\n            ],\n            \"national_id\": \"\",\n            \"active\": true,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-10-20T07:08:13.517Z\",\n            \"updated_at\": \"2023-06-14T15:26:09.436Z\"\n        }\n    ]\n}"}],"_postman_id":"69ae83c8-75b9-431f-9650-4728e630001c"},{"name":"Get Employee","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response schema is valid\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch_id\": {\"type\": \"number\"},","            \"employment_number\": {\"type\": \"string\"},","            \"email\": {\"type\": \"string\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"last_name\": {\"type\": \"string\"},","                            \"first_name\": {\"type\": \"string\"},","                            \"third_name\": {\"type\": \"string\"},","                            \"second_name\": {\"type\": \"string\"}","                        }","                    },","                    \"ar\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"last_name\": {\"type\": \"string\"},","                            \"first_name\": {\"type\": \"string\"},","                            \"third_name\": {\"type\": \"string\"},","                            \"second_name\": {\"type\": \"string\"}","                        }","                    }","                }","            },","            \"birthdate\": {\"type\": \"string\"},","            \"hiring_date\": {\"type\": \"string\"},","            \"fixing_date\": {\"type\": \"string\"},","            \"termination_date\": {\"type\": [\"string\", \"null\"]},","            \"fixed\": {\"type\": [\"boolean\", \"null\"]},","            \"gender\": {\"type\": \"string\"},","            \"marital_status\": {\"type\": \"string\"},","            \"mobile_number\": {\"type\": \"string\"},","            \"number\": {\"type\": \"string\"},","            \"ext_number\": {\"type\": \"string\"},","            \"personal_email\": {\"type\": \"string\"},","            \"religion\": {\"type\": \"string\"},","            \"citizen\": {\"type\": \"boolean\"},","            \"labour_card\": {\"type\": \"string\"},","            \"end_of_contract\": {\"type\": [\"string\", \"null\"]},","            \"mol_number\": {\"type\": \"string\"},","            \"resident_id\": {\"type\": \"string\"},","            \"labour_card_expiry\": {\"type\": [\"string\", \"null\"]},","            \"passport_number\": {\"type\": \"string\"},","            \"address\": {\"type\": \"string\"},","            \"contract_type\": {\"type\": \"number\"},","            \"nationalities\": {\"type\": \"array\"},","            \"active\": {\"type\": \"boolean\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        }","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"a0253243-881f-4bd0-944d-62e965769a3b"}}],"id":"5178a7b1-e0ca-4e1e-a704-c9361d141944","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id","description":"<p>This API end-point will show employee by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"employee.financial_datum"},{"disabled":true,"key":"include[]","value":"employee.professional_datum"}],"variable":[{"id":"855c3dee-4c5a-44ea-bdad-35e8cf1baa76","type":"any","value":"","key":"branch_id"},{"id":"cce2fd22-10c1-4327-b61d-c04de87cdc14","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"00702a72-1c37-4a36-a1c0-7e7bb85f761f","name":"Get Employee","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/1159","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees","1159"],"query":[{"key":"include[]","value":"employee.financial_datum","disabled":true},{"key":"include[]","value":"employee.professional_datum","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"51579af838dcf7544e4db9802a488d06\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5297dfc0-1a58-4b8d-80dd-3165f4aa9933"},{"key":"X-Runtime","value":"0.100599"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1275"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1159,\n    \"branch_id\": 104,\n    \"employment_number\": \"23412111111111\",\n    \"email\": \"qatesting@zenhr.com\",\n    \"username\": \"a5\",\n    \"user\": {\n        \"id\": 1273,\n        \"short_name\": {\n            \"en\": \"Mazen Ziad\",\n            \"ar\": \"مازن زيد\"\n        },\n        \"name\": {\n            \"en\": {\n                \"last_name\": \"Ziad\",\n                \"first_name\": \"Mazen\",\n                \"third_name\": \"Atta\",\n                \"second_name\": \"Mohammad\"\n            },\n            \"ar\": {\n                \"last_name\": \"زيد\",\n                \"first_name\": \"مازن\",\n                \"third_name\": \"عطا\",\n                \"second_name\": \"محمد\"\n            }\n        },\n        \"picture\": {\n            \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/h0K9AFxoii-no-background.png\"\n        }\n    },\n    \"birthdate\": \"1998-01-10\",\n    \"hiring_date\": \"2022-01-10\",\n    \"fixing_date\": \"2022-10-10\",\n    \"termination_date\": null,\n    \"fixed\": true,\n    \"gender\": \"Male\",\n    \"marital_status\": \"Married\",\n    \"mobile_number\": \"778953440\",\n    \"number\": \"07 9121 2122\",\n    \"ext_number\": \"JO\",\n    \"personal_email\": \"issa@zen.comaaaaaaa\",\n    \"religion\": \"Muslim\",\n    \"citizen\": true,\n    \"labour_card\": \"23423142\",\n    \"end_of_contract\": \"2026-01-01\",\n    \"mol_number\": \"21431432\",\n    \"resident_id\": \"100321\",\n    \"labour_card_expiry\": \"2026-01-01\",\n    \"passport_number\": \"234511\",\n    \"passport_issue_date\": \"2019-01-01\",\n    \"address\": \"WASedkowqer, ewqrkop\",\n    \"contract_type\": \"unlimited\",\n    \"contract_end_date\": \"2026-01-01\",\n    \"nationalities\": [],\n    \"national_id\": \"9912304521\",\n    \"active\": true,\n    \"integration_maps\": [],\n    \"created_at\": \"2017-09-26T07:38:19.976Z\",\n    \"updated_at\": \"2024-05-29T13:36:46.260Z\"\n}"}],"_postman_id":"5178a7b1-e0ca-4e1e-a704-c9361d141944"},{"name":"Create Employee","event":[{"listen":"test","script":{"id":"642b966d-3348-4631-a480-1a217082479f","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"branch_id\": { \"type\": \"number\" },","                        \"employment_number\": { \"type\": \"string\" },","                        \"email\": { \"type\": \"string\", \"format\": \"email\" },","                        \"username\": { \"type\": \"string\" },","                        \"user\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"short_name\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"en\": { \"type\": \"string\" },","                                        \"ar\": { \"type\": \"string\" }","                                    },","                                    \"required\": [\"en\", \"ar\"]","                                },","                                \"name\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"en\": {","                                            \"type\": \"object\",","                                            \"properties\": {","                                                \"last_name\": { \"type\": \"string\" },","                                                \"first_name\": { \"type\": \"string\" },","                                                \"third_name\": { \"type\": \"string\" },","                                                \"second_name\": { \"type\": \"string\" }","                                            },","                                            \"required\": [\"last_name\", \"first_name\", \"third_name\", \"second_name\"]","                                        },","                                        \"ar\": {","                                            \"type\": \"object\",","                                            \"properties\": {","                                                \"last_name\": { \"type\": \"string\" },","                                                \"first_name\": { \"type\": \"string\" },","                                                \"third_name\": { \"type\": \"string\" },","                                                \"second_name\": { \"type\": \"string\" }","                                            },","                                            \"required\": [\"last_name\", \"first_name\", \"third_name\", \"second_name\"]","                                        }","                                    },","                                    \"required\": [\"en\", \"ar\"]","                                },","                                \"picture\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"url\": { \"type\": \"string\" }","                                    },","                                    \"required\": [\"url\"]","                                }","                            },","                            \"required\": [\"id\", \"short_name\", \"name\", \"picture\"]","                        },","                        \"birthdate\": { \"type\": \"string\" },","                        \"hiring_date\": { \"type\": \"string\" },","                        \"fixing_date\": { \"type\": \"string\" },","                        \"termination_date\": { \"type\": [\"string\", \"null\"] },","                        \"fixed\": { \"type\": [\"boolean\", \"null\"] },","                        \"gender\": { \"type\": \"string\" },","                        \"marital_status\": { \"type\": \"string\" },","                        \"mobile_number\": { \"type\": \"string\" },","                        \"number\": { \"type\": \"string\" },","                        \"ext_number\": { \"type\": \"string\" },","                        \"personal_email\": { \"type\": \"string\" },","                        \"religion\": { \"type\": \"string\" },","                        \"citizen\": { \"type\": \"boolean\" },","                        \"labour_card\": { \"type\": \"string\" },","                        \"end_of_contract\": { \"type\": [\"string\", \"null\"] },","                        \"mol_number\": { \"type\": \"string\" },","                        \"resident_id\": { \"type\": \"string\" },","                        \"labour_card_expiry\": { \"type\": \"string\" },","                        \"passport_number\": { \"type\": \"string\" },","                        \"passport_issue_date\": { \"type\": \"string\" },","                        \"address\": { \"type\": \"string\" },","                        \"contract_type\": { \"type\": \"string\" },","                        \"contract_end_date\": { \"type\": [\"string\", \"null\"] },","                        \"nationalities\": {","                            \"type\": \"array\",","                            \"items\": { \"type\": \"string\" }","                        },","                        \"national_id\": { \"type\": \"string\" },","                        \"active\": { \"type\": \"boolean\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"branch_id\", \"employment_number\", \"email\", \"username\", \"user\", \"birthdate\", \"hiring_date\", \"fixing_date\", \"gender\", \"marital_status\", \"mobile_number\", \"number\", \"ext_number\", \"personal_email\", \"religion\", \"citizen\", \"labour_card\", \"mol_number\", \"resident_id\", \"labour_card_expiry\", \"passport_number\", \"passport_issue_date\", \"address\", \"contract_type\", \"nationalities\", \"national_id\", \"active\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"210a205d-ad6e-4729-b1c2-109ea0a18a0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"hiring_date","value":"2022-01-10","type":"text"},{"key":"gender","value":"Male","type":"text"},{"key":"marital_status","value":"Married","type":"text"},{"key":"birthdate","value":"1998-01-10","type":"text"},{"key":"number","value":"07 9121 2122","type":"text"},{"key":"national_id","value":"9912304521","type":"text"},{"key":"mobile_number","value":"778953440","type":"text"},{"key":"ext_number","value":"JO","type":"text"},{"key":"personal_email","value":"issa@zen.comaaaaaaa","type":"text"},{"key":"religion","value":"Muslim","type":"text"},{"key":"nationality","value":"Jordanian","type":"text"},{"key":"card_id","value":"1234","type":"text"},{"key":"citizen","value":"Jordan","type":"text"},{"key":"labour_card","value":"2342314","type":"text"},{"key":"end_of_contract","value":"2026-01-01","type":"text"},{"key":"mol_number","value":"21431432","type":"text"},{"key":"labour_card_expiry","value":"2026-01-01","type":"text"},{"key":"passport_number","value":"234511","type":"text"},{"key":"roster_enabled","value":"false","type":"text"},{"key":"address","value":"WASedkowqer, ewqrkop","type":"text"},{"key":"resident_id","value":"100321","type":"text"},{"key":"passport_issue_date","value":"2019-01-01","type":"text"},{"key":"birth_country","value":"Jordan","type":"text"},{"key":"destination_employee_id","value":"10","type":"text"},{"key":"payment_method","value":"Cash","type":"text"},{"key":"ss_number","value":"2143214","type":"text"},{"key":"tax_number","value":"341341321","type":"text"},{"key":"gl_account_number","value":"43214314","type":"text"},{"key":"bank_account_id","value":"79090","type":"text"},{"key":"ancestry","value":"83","type":"text"},{"key":"number_of_levels","value":"3","type":"text"},{"key":"mobile_number_country_code","value":"JO","type":"text"},{"key":"phone_number_country_code","value":"JO","type":"text"},{"key":"employment_number","value":"2341211111111123314111","type":"text"},{"key":"phone_number","value":"07 9121 2122","type":"text"},{"key":"email","value":"issaa@isssssa.comaaaaaaaissaa","type":"text"},{"key":"global_id","value":"test1","description":"<p>global id</p>\n","type":"text","disabled":true},{"key":"name_en[first_name]","value":"issa","type":"text"},{"key":"name_en[second_name]","value":"issa","type":"text"},{"key":"name_en[third_name]","value":"issa","type":"text"},{"key":"name_en[last_name]","value":"issa","type":"text"},{"key":"name_ar[first_name]","value":"issa","type":"text"},{"key":"name_ar[second_name]","value":"issaissa","type":"text"},{"key":"name_ar[third_name]","value":"issa","type":"text"},{"key":"name_ar[last_name]","value":"issa","type":"text"},{"key":"sponsor_id","value":"","description":"<p>string</p>\n","type":"text"},{"key":"sponsor_id","value":"","description":"<p>string</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees","description":"<p>This API end-point wil llist all employees of a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"b8f4b272-93c0-44dd-8b90-449d3f2bb150","name":"Create Employee","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/1159","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees","1159"],"query":[{"key":"include[]","value":"employee.financial_datum","disabled":true},{"key":"include[]","value":"employee.professional_datum","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"51579af838dcf7544e4db9802a488d06\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5297dfc0-1a58-4b8d-80dd-3165f4aa9933"},{"key":"X-Runtime","value":"0.100599"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1275"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1159,\n    \"branch_id\": 104,\n    \"employment_number\": \"23412111111111\",\n    \"email\": \"qatesting@zenhr.com\",\n    \"username\": \"a5\",\n    \"user\": {\n        \"id\": 1273,\n        \"short_name\": {\n            \"en\": \"Mazen Ziad\",\n            \"ar\": \"مازن زيد\"\n        },\n        \"name\": {\n            \"en\": {\n                \"last_name\": \"Ziad\",\n                \"first_name\": \"Mazen\",\n                \"third_name\": \"Atta\",\n                \"second_name\": \"Mohammad\"\n            },\n            \"ar\": {\n                \"last_name\": \"زيد\",\n                \"first_name\": \"مازن\",\n                \"third_name\": \"عطا\",\n                \"second_name\": \"محمد\"\n            }\n        },\n        \"picture\": {\n            \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/h0K9AFxoii-no-background.png\"\n        }\n    },\n    \"birthdate\": \"1998-01-10\",\n    \"hiring_date\": \"2022-01-10\",\n    \"fixing_date\": \"2022-10-10\",\n    \"termination_date\": null,\n    \"fixed\": true,\n    \"gender\": \"Male\",\n    \"marital_status\": \"Married\",\n    \"mobile_number\": \"778953440\",\n    \"number\": \"07 9121 2122\",\n    \"ext_number\": \"JO\",\n    \"personal_email\": \"issa@zen.comaaaaaaa\",\n    \"religion\": \"Muslim\",\n    \"citizen\": true,\n    \"labour_card\": \"23423142\",\n    \"end_of_contract\": \"2026-01-01\",\n    \"mol_number\": \"21431432\",\n    \"resident_id\": \"100321\",\n    \"labour_card_expiry\": \"2026-01-01\",\n    \"passport_number\": \"234511\",\n    \"passport_issue_date\": \"2019-01-01\",\n    \"address\": \"WASedkowqer, ewqrkop\",\n    \"contract_type\": \"unlimited\",\n    \"contract_end_date\": \"2026-01-01\",\n    \"nationalities\": [],\n    \"national_id\": \"9912304521\",\n    \"active\": true,\n    \"integration_maps\": [],\n    \"created_at\": \"2017-09-26T07:38:19.976Z\",\n    \"updated_at\": \"2024-05-29T13:36:46.260Z\"\n}"}],"_postman_id":"210a205d-ad6e-4729-b1c2-109ea0a18a0c"},{"name":"Update Employee","event":[{"listen":"test","script":{"id":"94168a07-421e-4378-80d5-9db489bc045d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"branch_id\": { \"type\": \"number\" },","                        \"employment_number\": { \"type\": \"string\" },","                        \"email\": { \"type\": \"string\", \"format\": \"email\" },","                        \"username\": { \"type\": \"string\" },","                        \"user\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"short_name\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"en\": { \"type\": \"string\" },","                                        \"ar\": { \"type\": \"string\" }","                                    },","                                    \"required\": [\"en\", \"ar\"]","                                },","                                \"name\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"en\": {","                                            \"type\": \"object\",","                                            \"properties\": {","                                                \"last_name\": { \"type\": \"string\" },","                                                \"first_name\": { \"type\": \"string\" },","                                                \"third_name\": { \"type\": \"string\" },","                                                \"second_name\": { \"type\": \"string\" }","                                            },","                                            \"required\": [\"last_name\", \"first_name\", \"third_name\", \"second_name\"]","                                        },","                                        \"ar\": {","                                            \"type\": \"object\",","                                            \"properties\": {","                                                \"last_name\": { \"type\": \"string\" },","                                                \"first_name\": { \"type\": \"string\" },","                                                \"third_name\": { \"type\": \"string\" },","                                                \"second_name\": { \"type\": \"string\" }","                                            },","                                            \"required\": [\"last_name\", \"first_name\", \"third_name\", \"second_name\"]","                                        }","                                    },","                                    \"required\": [\"en\", \"ar\"]","                                },","                                \"picture\": {","                                    \"type\": \"object\",","                                    \"properties\": {","                                        \"url\": { \"type\": \"string\" }","                                    },","                                    \"required\": [\"url\"]","                                }","                            },","                            \"required\": [\"id\", \"short_name\", \"name\", \"picture\"]","                        },","                        \"birthdate\": { \"type\": \"string\" },","                        \"hiring_date\": { \"type\": \"string\" },","                        \"fixing_date\": { \"type\": \"string\" },","                        \"termination_date\": { \"type\": [\"string\", \"null\"] },","                        \"fixed\": { \"type\": [\"boolean\", \"null\"] },","                        \"gender\": { \"type\": \"string\" },","                        \"marital_status\": { \"type\": \"string\" },","                        \"mobile_number\": { \"type\": \"string\" },","                        \"number\": { \"type\": \"string\" },","                        \"ext_number\": { \"type\": \"string\" },","                        \"personal_email\": { \"type\": \"string\" },","                        \"religion\": { \"type\": \"string\" },","                        \"citizen\": { \"type\": \"boolean\" },","                        \"labour_card\": { \"type\": \"string\" },","                        \"end_of_contract\": { \"type\": [\"string\", \"null\"] },","                        \"mol_number\": { \"type\": \"string\" },","                        \"resident_id\": { \"type\": \"string\" },","                        \"labour_card_expiry\": { \"type\": \"string\" },","                        \"passport_number\": { \"type\": \"string\" },","                        \"passport_issue_date\": { \"type\": \"string\" },","                        \"address\": { \"type\": \"string\" },","                        \"contract_type\": { \"type\": \"string\" },","                        \"contract_end_date\": { \"type\": [\"string\", \"null\"] },","                        \"nationalities\": {","                            \"type\": \"array\",","                            \"items\": { \"type\": \"string\" }","                        },","                        \"national_id\": { \"type\": \"string\" },","                        \"active\": { \"type\": \"boolean\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"branch_id\", \"employment_number\", \"email\", \"username\", \"user\", \"birthdate\", \"hiring_date\", \"fixing_date\", \"gender\", \"marital_status\", \"mobile_number\", \"number\", \"ext_number\", \"personal_email\", \"religion\", \"citizen\", \"labour_card\", \"mol_number\", \"resident_id\", \"labour_card_expiry\", \"passport_number\", \"passport_issue_date\", \"address\", \"contract_type\", \"nationalities\", \"national_id\", \"active\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{}}}],"id":"27a97d60-07ed-40e7-8d00-8c146fa5ec23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"hiring_date","value":"2022-01-10","type":"text"},{"key":"gender","value":"Male","type":"text"},{"key":"marital_status","value":"Married","type":"text"},{"key":"birthdate","value":"1998-01-10","type":"text"},{"key":"number","value":"07 9121 2122","type":"text"},{"key":"national_id","value":"9912304521","type":"text"},{"key":"mobile_number","value":"778953440","type":"text"},{"key":"ext_number","value":"JO","type":"text"},{"key":"personal_email","value":"issa@zen.comaaaaaaa","type":"text"},{"key":"religion","value":"Muslim","type":"text"},{"key":"nationality","value":"Jordanian","type":"text"},{"key":"card_id","value":"1234","type":"text"},{"key":"citizen","value":"Jordan","type":"text"},{"key":"labour_card","value":"2342314","type":"text"},{"key":"end_of_contract","value":"2026-01-01","type":"text"},{"key":"mol_number","value":"21431432","type":"text"},{"key":"labour_card_expiry","value":"2026-01-01","type":"text"},{"key":"passport_number","value":"234511","type":"text"},{"key":"roster_enabled","value":"false","type":"text"},{"key":"address","value":"WASedkowqer, ewqrkop","type":"text"},{"key":"resident_id","value":"100321","type":"text"},{"key":"passport_issue_date","value":"2019-01-01","type":"text"},{"key":"birth_country","value":"Jordan","type":"text"},{"key":"destination_employee_id","value":"10","type":"text"},{"key":"payment_method","value":"Cash","type":"text"},{"key":"ss_number","value":"2143214","type":"text"},{"key":"tax_number","value":"341341321","type":"text"},{"key":"gl_account_number","value":"43214314","type":"text"},{"key":"bank_account_id","value":"79090","type":"text"},{"key":"ancestry","value":"83","type":"text"},{"key":"number_of_levels","value":"3","type":"text"},{"key":"mobile_number_country_code","value":"JO","type":"text"},{"key":"phone_number_country_code","value":"JO","type":"text"},{"key":"employment_number","value":"2341211111111123314111","type":"text"},{"key":"phone_number","value":"07 9121 2122","type":"text"},{"key":"email","value":"issaa@isssssa.comaaaaaaaissaa","type":"text"},{"key":"global_id","value":"test1","type":"text","disabled":true},{"key":"name_en[first_name]","value":"issa","type":"text"},{"key":"name_en[second_name]","value":"issa","type":"text"},{"key":"name_en[third_name]","value":"issa","type":"text"},{"key":"name_en[last_name]","value":"issa","type":"text"},{"key":"name_ar[first_name]","value":"issa","type":"text"},{"key":"name_ar[second_name]","value":"issaissa","description":"<p>global_id</p>\n","type":"text"},{"key":"name_ar[third_name]","value":"issa","type":"text"},{"key":"name_ar[last_name]","value":"issa","type":"text"},{"key":"sponsor_id","value":"","description":"<p>string</p>\n","type":"text"},{"key":"sponsor_name","value":"","description":"<p>string</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id","description":"<p>This API end-point wil llist all employees of a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"9261fe19-35e0-41e8-8293-0d3d2bef46c2","name":"Update Employee","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/1159","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees","1159"],"query":[{"key":"include[]","value":"employee.financial_datum","disabled":true},{"key":"include[]","value":"employee.professional_datum","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"51579af838dcf7544e4db9802a488d06\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5297dfc0-1a58-4b8d-80dd-3165f4aa9933"},{"key":"X-Runtime","value":"0.100599"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1275"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1159,\n    \"branch_id\": 104,\n    \"employment_number\": \"23412111111111\",\n    \"email\": \"qatesting@zenhr.com\",\n    \"username\": \"a5\",\n    \"user\": {\n        \"id\": 1273,\n        \"short_name\": {\n            \"en\": \"Mazen Ziad\",\n            \"ar\": \"مازن زيد\"\n        },\n        \"name\": {\n            \"en\": {\n                \"last_name\": \"Ziad\",\n                \"first_name\": \"Mazen\",\n                \"third_name\": \"Atta\",\n                \"second_name\": \"Mohammad\"\n            },\n            \"ar\": {\n                \"last_name\": \"زيد\",\n                \"first_name\": \"مازن\",\n                \"third_name\": \"عطا\",\n                \"second_name\": \"محمد\"\n            }\n        },\n        \"picture\": {\n            \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/h0K9AFxoii-no-background.png\"\n        }\n    },\n    \"birthdate\": \"1998-01-10\",\n    \"hiring_date\": \"2022-01-10\",\n    \"fixing_date\": \"2022-10-10\",\n    \"termination_date\": null,\n    \"fixed\": true,\n    \"gender\": \"Male\",\n    \"marital_status\": \"Married\",\n    \"mobile_number\": \"778953440\",\n    \"number\": \"07 9121 2122\",\n    \"ext_number\": \"JO\",\n    \"personal_email\": \"issa@zen.comaaaaaaa\",\n    \"religion\": \"Muslim\",\n    \"citizen\": true,\n    \"labour_card\": \"23423142\",\n    \"end_of_contract\": \"2026-01-01\",\n    \"mol_number\": \"21431432\",\n    \"resident_id\": \"100321\",\n    \"labour_card_expiry\": \"2026-01-01\",\n    \"passport_number\": \"234511\",\n    \"passport_issue_date\": \"2019-01-01\",\n    \"address\": \"WASedkowqer, ewqrkop\",\n    \"contract_type\": \"unlimited\",\n    \"contract_end_date\": \"2026-01-01\",\n    \"nationalities\": [],\n    \"national_id\": \"9912304521\",\n    \"active\": true,\n    \"integration_maps\": [],\n    \"created_at\": \"2017-09-26T07:38:19.976Z\",\n    \"updated_at\": \"2024-05-29T13:36:46.260Z\"\n}"}],"_postman_id":"27a97d60-07ed-40e7-8d00-8c146fa5ec23"}],"id":"c0663ceb-6a6f-4d75-8fb6-2d794345bac4","_postman_id":"c0663ceb-6a6f-4d75-8fb6-2d794345bac4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Professional Data","item":[{"name":"List Employee Professional Data","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.expect(pm.response.headers.get('Content-Type')).to.include('application/json');","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee_id\": { \"type\": \"number\" },","                        \"employment_number\": { \"type\": \"string\" },","                        \"effective_on\": { \"type\": \"string\" },","                        \"expires_on\": { \"type\": [\"string\", \"null\"] },","                        \"manager\": {","                            \"type\": [\"object\", \"null\"],","                            \"properties\": {","                                \"id\": { \"type\": [\"number\", \"null\"] },","                                \"name\": { \"type\": [\"string\", \"null\"] }","                            }","                        },","                        \"position\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"name\": { \"type\": \"string\" }","                            },","                            \"required\": [\"id\", \"name\"]","                        },","                    },","                    \"required\": [\"id\", \"employee_id\", \"employment_number\", \"effective_on\", \"expires_on\", \"manager\", \"position\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"2071263f-dc0b-4dc1-a584-403bf399e738"}}],"id":"2a2a969c-fe83-4e6c-86c0-5489d3c7285d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data","description":"<p>this api end-point will list employee's professional data by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"filter[id][]","value":"1428"},{"disabled":true,"key":"filter[employee_id][]","value":"1159"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: expires_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: created_at, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: updated_at, dir: desc}"}],"variable":[{"id":"3afe3948-6d68-4573-ad5e-54552043eb79","type":"any","value":"","key":"branch_id"},{"id":"fe551114-9c54-40b1-b99a-732f813dae34","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"171b4b9e-63aa-4a60-990a-a37272769923","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data?page=1&limit=10","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e9203a8de270116c2d7ced82d7ffd309\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0ab5cba0-a9d9-4877-aff9-c107dff48019"},{"key":"X-Runtime","value":"0.094196"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"3210"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 8,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1428,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2015-01-01\",\n            \"expires_on\": \"2017-10-16\",\n            \"manager\": {\n                \"id\": 1151,\n                \"name\": \"Murad Rami\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 1902,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2017-10-17\",\n            \"expires_on\": \"2018-04-14\",\n            \"manager\": {\n                \"id\": 1153,\n                \"name\": \"Hasan Rashid\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 6961,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-04-15\",\n            \"expires_on\": \"2018-05-30\",\n            \"manager\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 7262,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-05-31\",\n            \"expires_on\": \"2018-07-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 9843,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-08-01\",\n            \"expires_on\": \"2018-12-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 10134,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-01-01\",\n            \"expires_on\": \"2019-04-03\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 18517,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-04-04\",\n            \"expires_on\": \"2023-04-30\",\n            \"manager\": {\n                \"id\": 199532,\n                \"name\": \"Ayhom Hala\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 254653,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2023-05-01\",\n            \"expires_on\": null,\n            \"manager\": {\n                \"id\": 191211,\n                \"name\": \"123 123\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        }\n    ]\n}"}],"_postman_id":"2a2a969c-fe83-4e6c-86c0-5489d3c7285d"},{"name":"Create Employee Professional Data","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.expect(pm.response.headers.get('Content-Type')).to.include('application/json');","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee_id\": { \"type\": \"number\" },","                        \"employment_number\": { \"type\": \"string\" },","                        \"effective_on\": { \"type\": \"string\" },","                        \"expires_on\": { \"type\": [\"string\", \"null\"] },","                        \"manager\": {","                            \"type\": [\"object\", \"null\"],","                            \"properties\": {","                                \"id\": { \"type\": [\"number\", \"null\"] },","                                \"name\": { \"type\": [\"string\", \"null\"] }","                            }","                        },","                        \"position\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"name\": { \"type\": \"string\" }","                            },","                            \"required\": [\"id\", \"name\"]","                        },","                    },","                    \"required\": [\"id\", \"employee_id\", \"employment_number\", \"effective_on\", \"expires_on\", \"manager\", \"position\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"f32242b6-f3ff-4eec-b2c2-fd2681f660c3"}}],"id":"663e1111-c1ec-48af-bbba-4787f9742970","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"322965","type":"text"},{"key":"work_type","value":"1","type":"text"},{"key":"position_id","value":"87436","type":"text"},{"key":"site_id","value":"140980","type":"text"},{"key":"department_id","value":"135216","type":"text"},{"key":"section_id","value":"134965","type":"text"},{"key":"project_id","value":"8394","type":"text"},{"key":"hierarchy_group_id","value":"128314","type":"text"},{"key":"manager_id","value":"","type":"text"},{"key":"effective_on","value":"2022-01-01","type":"text"},{"key":"expires_on","value":"2025-01-01","type":"text"},{"key":"note","value":"test","type":"text"},{"key":"supervisor_id","value":"","type":"text"},{"key":"occupation_on_iqama","value":"","type":"text"},{"key":"salary_scale_details","value":"","type":"text"},{"key":"outsourced","value":"","type":"text"},{"key":"business_unit_id","value":"","type":"text"},{"key":"division_id","value":"","type":"text"},{"key":"segment_id","value":"","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data","description":"<p>this api end-point will list employee's professional data by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"filter[id][]","value":"1428"},{"disabled":true,"key":"filter[employee_id][]","value":"1159"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: expires_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: created_at, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: updated_at, dir: desc}"}],"variable":[{"id":"64a1270b-dc7d-419d-b3aa-02341e562cc8","type":"any","value":"","key":"branch_id"},{"id":"37aa1dc7-fe78-4c88-882b-a1085c0c1de0","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"919ff4e6-e019-499a-b648-3628d9cd5f42","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data?page=1&limit=10","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e9203a8de270116c2d7ced82d7ffd309\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0ab5cba0-a9d9-4877-aff9-c107dff48019"},{"key":"X-Runtime","value":"0.094196"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"3210"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 8,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1428,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2015-01-01\",\n            \"expires_on\": \"2017-10-16\",\n            \"manager\": {\n                \"id\": 1151,\n                \"name\": \"Murad Rami\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 1902,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2017-10-17\",\n            \"expires_on\": \"2018-04-14\",\n            \"manager\": {\n                \"id\": 1153,\n                \"name\": \"Hasan Rashid\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 6961,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-04-15\",\n            \"expires_on\": \"2018-05-30\",\n            \"manager\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 7262,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-05-31\",\n            \"expires_on\": \"2018-07-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 9843,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-08-01\",\n            \"expires_on\": \"2018-12-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 10134,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-01-01\",\n            \"expires_on\": \"2019-04-03\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 18517,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-04-04\",\n            \"expires_on\": \"2023-04-30\",\n            \"manager\": {\n                \"id\": 199532,\n                \"name\": \"Ayhom Hala\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 254653,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2023-05-01\",\n            \"expires_on\": null,\n            \"manager\": {\n                \"id\": 191211,\n                \"name\": \"123 123\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        }\n    ]\n}"}],"_postman_id":"663e1111-c1ec-48af-bbba-4787f9742970"},{"name":"Update Employee Professional Data","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.expect(pm.response.headers.get('Content-Type')).to.include('application/json');","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee_id\": { \"type\": \"number\" },","                        \"employment_number\": { \"type\": \"string\" },","                        \"effective_on\": { \"type\": \"string\" },","                        \"expires_on\": { \"type\": [\"string\", \"null\"] },","                        \"manager\": {","                            \"type\": [\"object\", \"null\"],","                            \"properties\": {","                                \"id\": { \"type\": [\"number\", \"null\"] },","                                \"name\": { \"type\": [\"string\", \"null\"] }","                            }","                        },","                        \"position\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"name\": { \"type\": \"string\" }","                            },","                            \"required\": [\"id\", \"name\"]","                        },","                    },","                    \"required\": [\"id\", \"employee_id\", \"employment_number\", \"effective_on\", \"expires_on\", \"manager\", \"position\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"c8019e1e-9ef2-4d43-8327-6c9087266521"}}],"id":"de447f54-33d5-4d56-a64f-8a2f08899d9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"322965","type":"text"},{"key":"work_type","value":"1","type":"text"},{"key":"position_id","value":"87436","type":"text"},{"key":"site_id","value":"140980","type":"text"},{"key":"department_id","value":"135216","type":"text"},{"key":"section_id","value":"134965","type":"text"},{"key":"project_id","value":"8394","type":"text"},{"key":"hierarchy_group_id","value":"128314","type":"text"},{"key":"manager_id","value":"191211","type":"text"},{"key":"effective_on","value":"2022-01-01","type":"text"},{"key":"expires_on","value":"2025-01-01","type":"text"},{"key":"note","value":"test","type":"text"},{"key":"supervisor_id","value":"","type":"text"},{"key":"occupation_on_iqama","value":"","type":"text"},{"key":"salary_scale_details","value":"","type":"text"},{"key":"outsourced","value":"true","type":"text"},{"key":"business_unit_id","value":"","type":"text"},{"key":"division_id","value":"","type":"text"},{"key":"segment_id","value":"","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data/424031","description":"<p>this api end-point will list employee's professional data by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data","424031"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"filter[id][]","value":"1428"},{"disabled":true,"key":"filter[employee_id][]","value":"1159"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: expires_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: created_at, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: updated_at, dir: desc}"}],"variable":[{"id":"535c20f9-48e1-4b0b-9ba8-a9861364fa54","type":"any","value":"","key":"branch_id"},{"id":"1abb3cd5-effc-4e79-978b-aeeb4b00ec4e","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"ec5a4709-6e60-456b-a272-d4e5345c4f1e","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data?page=1&limit=10","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e9203a8de270116c2d7ced82d7ffd309\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0ab5cba0-a9d9-4877-aff9-c107dff48019"},{"key":"X-Runtime","value":"0.094196"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"3210"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 8,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1428,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2015-01-01\",\n            \"expires_on\": \"2017-10-16\",\n            \"manager\": {\n                \"id\": 1151,\n                \"name\": \"Murad Rami\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 1902,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2017-10-17\",\n            \"expires_on\": \"2018-04-14\",\n            \"manager\": {\n                \"id\": 1153,\n                \"name\": \"Hasan Rashid\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 6961,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-04-15\",\n            \"expires_on\": \"2018-05-30\",\n            \"manager\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 7262,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-05-31\",\n            \"expires_on\": \"2018-07-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 9843,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-08-01\",\n            \"expires_on\": \"2018-12-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 10134,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-01-01\",\n            \"expires_on\": \"2019-04-03\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 18517,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-04-04\",\n            \"expires_on\": \"2023-04-30\",\n            \"manager\": {\n                \"id\": 199532,\n                \"name\": \"Ayhom Hala\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 254653,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2023-05-01\",\n            \"expires_on\": null,\n            \"manager\": {\n                \"id\": 191211,\n                \"name\": \"123 123\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        }\n    ]\n}"}],"_postman_id":"de447f54-33d5-4d56-a64f-8a2f08899d9e"},{"name":"Destroy Employee Professional Data","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.expect(pm.response.headers.get('Content-Type')).to.include('application/json');","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee_id\": { \"type\": \"number\" },","                        \"employment_number\": { \"type\": \"string\" },","                        \"effective_on\": { \"type\": \"string\" },","                        \"expires_on\": { \"type\": [\"string\", \"null\"] },","                        \"manager\": {","                            \"type\": [\"object\", \"null\"],","                            \"properties\": {","                                \"id\": { \"type\": [\"number\", \"null\"] },","                                \"name\": { \"type\": [\"string\", \"null\"] }","                            }","                        },","                        \"position\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"name\": { \"type\": \"string\" }","                            },","                            \"required\": [\"id\", \"name\"]","                        },","                    },","                    \"required\": [\"id\", \"employee_id\", \"employment_number\", \"effective_on\", \"expires_on\", \"manager\", \"position\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"6eb17822-5164-40f0-8441-9caa4f2417db"}}],"id":"977f0907-7ef4-443e-a68b-6b3998d37035","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data/424031","description":"<p>this api end-point will list employee's professional data by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data","424031"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"filter[id][]","value":"1428"},{"disabled":true,"key":"filter[employee_id][]","value":"1159"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-01"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: expires_on, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: created_at, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: updated_at, dir: desc}"}],"variable":[{"id":"4f3d7f07-1ea9-4bab-80db-19eb85941a83","type":"any","value":"","key":"branch_id"},{"id":"a88d1b68-a2b6-40b6-b2b8-74bfcdd2473c","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"f5ec7573-86ac-43be-8b84-1ea3fe7e09d7","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data?page=1&limit=10","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e9203a8de270116c2d7ced82d7ffd309\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0ab5cba0-a9d9-4877-aff9-c107dff48019"},{"key":"X-Runtime","value":"0.094196"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"3210"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 8,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1428,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2015-01-01\",\n            \"expires_on\": \"2017-10-16\",\n            \"manager\": {\n                \"id\": 1151,\n                \"name\": \"Murad Rami\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 1902,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2017-10-17\",\n            \"expires_on\": \"2018-04-14\",\n            \"manager\": {\n                \"id\": 1153,\n                \"name\": \"Hasan Rashid\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 6961,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-04-15\",\n            \"expires_on\": \"2018-05-30\",\n            \"manager\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 7262,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-05-31\",\n            \"expires_on\": \"2018-07-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 9843,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2018-08-01\",\n            \"expires_on\": \"2018-12-31\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 10134,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-01-01\",\n            \"expires_on\": \"2019-04-03\",\n            \"manager\": {\n                \"id\": 1156,\n                \"name\": \"Maya  Belal\"\n            },\n            \"position\": {\n                \"id\": 3409,\n                \"name\": \"HR Director\"\n            },\n            \"site\": {\n                \"id\": 980,\n                \"name\": \"irbid\"\n            },\n            \"department\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"hierarchy_group\": {\n                \"id\": null,\n                \"name\": null\n            }\n        },\n        {\n            \"id\": 18517,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2019-04-04\",\n            \"expires_on\": \"2023-04-30\",\n            \"manager\": {\n                \"id\": 199532,\n                \"name\": \"Ayhom Hala\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        },\n        {\n            \"id\": 254653,\n            \"employee_id\": 1159,\n            \"employment_number\": \"09\",\n            \"effective_on\": \"2023-05-01\",\n            \"expires_on\": null,\n            \"manager\": {\n                \"id\": 191211,\n                \"name\": \"123 123\"\n            },\n            \"position\": {\n                \"id\": 811,\n                \"name\": \"HR Manager\"\n            },\n            \"site\": {\n                \"id\": 580,\n                \"name\": \"Amman123\"\n            },\n            \"department\": {\n                \"id\": 584,\n                \"name\": \"HR Department\"\n            },\n            \"section\": {\n                \"id\": null,\n                \"name\": null\n            },\n            \"project\": {\n                \"id\": 11102,\n                \"name\": \"Karam Department\"\n            },\n            \"hierarchy_group\": {\n                \"id\": 4618,\n                \"name\": \"Managers\"\n            }\n        }\n    ]\n}"}],"_postman_id":"977f0907-7ef4-443e-a68b-6b3998d37035"},{"name":"Get Employee Active Professional Data","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the expected schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"employee_id\": {\"type\": \"number\"},","            \"employment_number\": {\"type\": \"string\"},","            \"effective_on\": {\"type\": \"string\"},","            \"expires_on\": {\"type\": [\"string\", \"null\"]},","            \"manager\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": [\"number\", \"null\"]},","                    \"name\": {\"type\": [\"string\", \"null\"]}","                }","            },","            \"position\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"},","                    \"name\": {\"type\": \"string\"}","                }","            },","            \"site\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": [\"number\", \"null\"]},","                    \"name\": {\"type\": [\"string\", \"null\"]}","                }","            },","            \"department\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": [\"number\", \"null\"]},","                    \"name\": {\"type\": [\"string\", \"null\"]}","                }","            },","            \"section\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": [\"number\", \"null\"]},","                    \"name\": {\"type\": [\"string\", \"null\"]}","                }","            },","            \"project\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": [\"number\", \"null\"]},","                    \"name\": {\"type\": [\"string\", \"null\"]}","                }","            },","            \"hierarchy_group\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": [\"number\", \"null\"]},","                    \"name\": {\"type\": [\"string\", \"null\"]}","                }","            }","        }","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"dbb071c2-94d5-4748-81a0-3229b1002479"}}],"id":"6bafa714-a768-4b2b-ac7f-f24b27813fa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data/active","description":"<p>this api end-point will return employee's active professional data by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data","active"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"e14e7bbc-c22b-4c84-bf67-3f84da1802c9","type":"any","value":"","key":"branch_id"},{"id":"7b76b854-fd05-4e4e-93fe-7ad57f2974d3","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"acc51d0d-97f3-4e13-8c58-9693d0d9c2e3","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/professional_data/active","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","professional_data","active"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"861f374f341c55ebe44065734404f238\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1757397e-3eea-4e69-a45a-8dc3e451b4ea"},{"key":"X-Runtime","value":"0.029409"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 254653,\n    \"employee_id\": 1159,\n    \"employment_number\": \"09\",\n    \"effective_on\": \"2023-05-01\",\n    \"expires_on\": null,\n    \"manager\": {\n        \"id\": 191211,\n        \"name\": \"123 123\"\n    },\n    \"position\": {\n        \"id\": 123,\n        \"name\": \"HR Manager\"\n    },\n    \"site\": {\n        \"id\": 580,\n        \"name\": \"Amman123\"\n    },\n    \"department\": {\n        \"id\": 584,\n        \"name\": \"HR Department\"\n    },\n    \"section\": {\n        \"id\": null,\n        \"name\": null\n    },\n    \"project\": {\n        \"id\": 11102,\n        \"name\": \"Karam Department\"\n    },\n    \"hierarchy_group\": {\n        \"id\": 4618,\n        \"name\": \"Managers\"\n    }\n}"}],"_postman_id":"6bafa714-a768-4b2b-ac7f-f24b27813fa8"}],"id":"814ccb23-ef77-4961-a891-a80b6668fc26","_postman_id":"814ccb23-ef77-4961-a891-a80b6668fc26","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Financial Data","item":[{"name":"List Employee Financial Data","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","id":"be581635-8cef-4104-b15c-70357fac4af3"}}],"id":"c845cbbf-65a2-44dc-b08f-de003ce452c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"include[]","value":"financial_datum.employee"},{"disabled":true,"key":"filter[id][]","value":"1379"},{"disabled":true,"key":"filter[employee_id][]","value":"1159"},{"disabled":true,"key":"filter[family_exemption][]","value":"true"},{"disabled":true,"key":"filter[personal_exemption][]","value":"false"},{"disabled":true,"key":"filter[taxable][]","value":"true"},{"disabled":true,"key":"filter[salary_count][]","value":"12"},{"disabled":true,"key":"filter[resident][]","value":"true"},{"disabled":true,"key":"filter[other_exemption][]","value":"0"},{"disabled":true,"description":{"content":"<p>[2: approved, 4: withdrawn, 6: added_by_hr]</p>\n","type":"text/plain"},"key":"filter[status][]","value":"6"},{"disabled":true,"key":"filter[package_type][]","value":"net_salary"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_on][from]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_on][to]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[expires_on][from]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[expires_on][to]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[ss_participation_date][from]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[ss_participation_date][to]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DDS</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: basic_salary_fils, dir: asc}"}],"variable":[{"id":"570630bc-9df1-4359-a916-91783a589385","type":"any","value":"","key":"branch_id"},{"id":"1023ad6d-9eca-45ec-b555-3afa3bb02496","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"59afed88-1d8d-4735-a2f9-f6b5d48083a8","name":"List Employee Financial Data","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?page=1&limit=10","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"include","value":"financial_datum.employee","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a91a5a5aa245aff173cf2d37f92606b3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ccab7046-9bb9-4456-9c26-eca549e35c5e"},{"key":"X-Runtime","value":"0.041173"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"4327"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 6,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1379,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"payment_method\": \"bank_transfer\",\n            \"resident\": true,\n            \"taxable\": true,\n            \"salary_count\": 12,\n            \"personal_exemption\": true,\n            \"family_exemption\": true,\n            \"other_exemption\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"recurring_transactions\": [\n                {\n                    \"id\": 323,\n                    \"financial_transaction_type_id\": 215,\n                    \"financial_datum_id\": 1379,\n                    \"start_date\": \"2017-05-01\",\n                    \"end_date\": null,\n                    \"amount\": 50,\n                    \"created_at\": \"2017-09-26T08:11:45.721Z\",\n                    \"updated_at\": \"2017-09-26T08:11:45.721Z\",\n                    \"branch_currency_amounts\": {\n                        \"amount\": \"50.0\",\n                        \"currency\": \"JOD\"\n                    }\n                }\n            ],\n            \"ss_participation_date\": \"2015-01-01\",\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"status\": \"added_by_hr\",\n            \"effective_on\": \"2015-01-01\",\n            \"expires_on\": \"2016-12-31\",\n            \"created_at\": \"2017-09-26\",\n            \"updated_at\": \"2023-05-12T16:35:03.192Z\"\n        },\n        {\n            \"id\": 361807,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"payment_method\": \"bank_transfer\",\n            \"resident\": true,\n            \"taxable\": true,\n            \"salary_count\": 12,\n            \"personal_exemption\": true,\n            \"family_exemption\": true,\n            \"other_exemption\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"recurring_transactions\": [\n                {\n                    \"id\": 324,\n                    \"financial_transaction_type_id\": 217,\n                    \"financial_datum_id\": 361807,\n                    \"start_date\": \"2017-01-01\",\n                    \"end_date\": \"2017-05-01\",\n                    \"amount\": 2,\n                    \"created_at\": \"2017-09-26T08:11:45.778Z\",\n                    \"updated_at\": \"2017-09-26T08:11:45.778Z\",\n                    \"branch_currency_amounts\": {\n                        \"amount\": \"2.0\",\n                        \"currency\": \"JOD\"\n                    }\n                }\n            ],\n            \"ss_participation_date\": \"2015-01-01\",\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"status\": \"added_by_hr\",\n            \"effective_on\": \"2017-01-01\",\n            \"expires_on\": \"2017-05-01\",\n            \"created_at\": \"2023-05-12\",\n            \"updated_at\": \"2023-05-12T16:35:03.226Z\"\n        },\n        {\n            \"id\": 361812,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"payment_method\": \"bank_transfer\",\n            \"resident\": true,\n            \"taxable\": true,\n            \"salary_count\": 12,\n            \"personal_exemption\": true,\n            \"family_exemption\": true,\n            \"other_exemption\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"recurring_transactions\": [\n                {\n                    \"id\": 459048,\n                    \"financial_transaction_type_id\": 217,\n                    \"financial_datum_id\": 361812,\n                    \"start_date\": \"2017-01-01\",\n                    \"end_date\": \"2018-02-10\",\n                    \"amount\": 2,\n                    \"created_at\": \"2023-05-12T16:35:03.322Z\",\n                    \"updated_at\": \"2023-05-12T16:35:03.322Z\",\n                    \"branch_currency_amounts\": {\n                        \"amount\": \"2.0\",\n                        \"currency\": \"JOD\"\n                    }\n                },\n                {\n                    \"id\": 459050,\n                    \"financial_transaction_type_id\": 215,\n                    \"financial_datum_id\": 361812,\n                    \"start_date\": \"2017-05-01\",\n                    \"end_date\": \"2018-02-10\",\n                    \"amount\": 50,\n                    \"created_at\": \"2023-05-12T16:35:03.363Z\",\n                    \"updated_at\": \"2023-05-12T16:35:03.363Z\",\n                    \"branch_currency_amounts\": {\n                        \"amount\": \"50.0\",\n                        \"currency\": \"JOD\"\n                    }\n                }\n            ],\n            \"ss_participation_date\": \"2015-01-01\",\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"status\": \"added_by_hr\",\n            \"effective_on\": \"2017-05-02\",\n            \"expires_on\": \"2018-02-10\",\n            \"created_at\": \"2023-05-12\",\n            \"updated_at\": \"2023-05-12T16:35:03.271Z\"\n        },\n        {\n            \"id\": 3655,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"payment_method\": \"bank_transfer\",\n            \"resident\": true,\n            \"taxable\": true,\n            \"salary_count\": 12,\n            \"personal_exemption\": true,\n            \"family_exemption\": true,\n            \"other_exemption\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"recurring_transactions\": [],\n            \"ss_participation_date\": \"2015-01-01\",\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"status\": \"added_by_hr\",\n            \"effective_on\": \"2018-02-11\",\n            \"expires_on\": \"2018-12-31\",\n            \"created_at\": \"2018-02-11\",\n            \"updated_at\": \"2020-09-29T08:09:28.927Z\"\n        },\n        {\n            \"id\": 20706,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"payment_method\": \"bank_transfer\",\n            \"resident\": true,\n            \"taxable\": true,\n            \"salary_count\": 12,\n            \"personal_exemption\": true,\n            \"family_exemption\": true,\n            \"other_exemption\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"recurring_transactions\": [],\n            \"ss_participation_date\": \"2015-01-01\",\n            \"ss_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"status\": \"added_by_hr\",\n            \"effective_on\": \"2019-01-01\",\n            \"expires_on\": \"2021-12-31\",\n            \"created_at\": \"2019-03-10\",\n            \"updated_at\": \"2020-09-29T08:09:28.978Z\"\n        },\n        {\n            \"id\": 130745,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"payment_method\": \"bank_transfer\",\n            \"resident\": true,\n            \"taxable\": true,\n            \"salary_count\": 12,\n            \"personal_exemption\": true,\n            \"family_exemption\": true,\n            \"other_exemption\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"basic_salary\": {\n                \"amount\": 8000,\n                \"currency\": \"JOD\"\n            },\n            \"recurring_transactions\": [],\n            \"ss_participation_date\": \"2015-01-01\",\n            \"ss_salary\": {\n                \"amount\": 8000,\n                \"currency\": \"JOD\"\n            },\n            \"status\": \"approved\",\n            \"effective_on\": \"2022-01-01\",\n            \"expires_on\": null,\n            \"created_at\": \"2022-01-05\",\n            \"updated_at\": \"2022-01-05T13:01:05.701Z\"\n        }\n    ]\n}"}],"_postman_id":"c845cbbf-65a2-44dc-b08f-de003ce452c2"},{"name":"Create Employee Financial Data","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"99c08d30-9fd1-4cae-9669-b550754870c2"}}],"id":"6d0e9465-0e5d-4dd6-a83c-26d0483c4900","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ss_participation_date","value":"2022-01-01","type":"text"},{"key":"family_exemption","value":"true","type":"text"},{"key":"personal_exemption","value":"true","type":"text"},{"key":"taxable","value":"true","type":"text"},{"key":"salary_count","value":"3","type":"text"},{"key":"basic_salary_fils","value":"15600","type":"text"},{"key":"basic_salary_currency","value":"JOD","type":"text"},{"key":"ss_salary_fils","value":"12600","type":"text"},{"key":"ss_salary_currency","value":"JOD","type":"text"},{"key":"effective_on","value":"2024-01-01","type":"text"},{"key":"expires_on","value":"2026-01-01","type":"text"},{"key":"resident","value":"true","type":"text"},{"key":"other_exemption","value":"0","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"requester_id","value":"","type":"text"},{"key":"social_security_id","value":"","type":"text"},{"key":"package_type","value":"","type":"text"},{"key":"entitled_to_overtime","value":"true","type":"text"},{"key":"branch_currency_amounts[currency]","value":"JOD","type":"text"},{"key":"branch_currency_amounts[ss_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[basic_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[total_allowances]","value":"0","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"61669466-fe8e-4bb8-a84d-fa0c9a6a652d","type":"any","value":"","key":"branch_id"},{"id":"869ab6ae-aa3f-48a9-b28b-d768a5e83b5f","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"6bad1be1-0848-4925-acc6-06091afe070f","name":"Create Employee Financial Data","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ss_participation_date","value":"2022-01-01","type":"text"},{"key":"family_exemption","value":"true","type":"text"},{"key":"personal_exemption","value":"true","type":"text"},{"key":"taxable","value":"true","type":"text"},{"key":"salary_count","value":"3","type":"text"},{"key":"basic_salary_fils","value":"15600","type":"text"},{"key":"basic_salary_currency","value":"JOD","type":"text"},{"key":"ss_salary_fils","value":"12600","type":"text"},{"key":"ss_salary_currency","value":"JOD","type":"text"},{"key":"effective_on","value":"2024-01-01","type":"text"},{"key":"expires_on","value":"2026-01-01","type":"text"},{"key":"resident","value":"true","type":"text"},{"key":"other_exemption","value":"0","type":"text"},{"key":"status","value":"1","type":"text"},{"key":"requester_id","value":"","type":"text"},{"key":"social_security_id","value":"","type":"text"},{"key":"package_type","value":"","type":"text"},{"key":"entitled_to_overtime","value":"true","type":"text"},{"key":"branch_currency_amounts[currency]","value":"JOD","type":"text"},{"key":"branch_currency_amounts[ss_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[basic_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[total_allowances]","value":"0","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f9f294e29411fdf23f537643d9166879\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e13f459c-cfc9-4c53-9f89-b84da8561d46"},{"key":"X-Runtime","value":"34.405643"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"534"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 829765,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"payment_method\": \"bank_transfer\",\n    \"resident\": true,\n    \"taxable\": true,\n    \"salary_count\": 3,\n    \"personal_exemption\": true,\n    \"family_exemption\": true,\n    \"other_exemption\": {\n        \"amount\": 0,\n        \"currency\": \"JOD\"\n    },\n    \"basic_salary\": {\n        \"amount\": 15.6,\n        \"currency\": \"JOD\"\n    },\n    \"ss_salary\": {\n        \"amount\": 12.6,\n        \"currency\": \"JOD\"\n    },\n    \"ss_participation_date\": \"2022-01-01\",\n    \"package_type\": null,\n    \"status\": \"pending\",\n    \"effective_on\": \"2024-01-01\",\n    \"expires_on\": \"2026-01-01\",\n    \"created_at\": \"2024-04-28\",\n    \"updated_at\": \"2024-04-28T08:03:47.297Z\",\n    \"recurring_transactions\": []\n}"}],"_postman_id":"6d0e9465-0e5d-4dd6-a83c-26d0483c4900"},{"name":"Update Employee Financial Data","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"94acf617-f8e9-410a-b69a-475a882230fb"}}],"id":"4cf662c9-ff21-4101-839f-4a8a0776136b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"ss_participation_date","value":"2022-01-01","type":"text"},{"key":"family_exemption","value":"false","type":"text"},{"key":"personal_exemption","value":"false","type":"text"},{"key":"taxable","value":"false","type":"text"},{"key":"salary_count","value":"3","type":"text"},{"key":"basic_salary_fils","value":"15600","type":"text"},{"key":"basic_salary_currency","value":"JOD","type":"text"},{"key":"ss_salary_fils","value":"12600","type":"text"},{"key":"ss_salary_currency","value":"JOD","type":"text"},{"key":"effective_on","value":"2024-01-01","type":"text"},{"key":"expires_on","value":"2026-01-01","type":"text"},{"key":"resident","value":"true","type":"text"},{"key":"other_exemption","value":"0","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"requester_id","value":"","type":"text"},{"key":"social_security_id","value":"","type":"text"},{"key":"package_type","value":"","type":"text"},{"key":"entitled_to_overtime","value":"true","type":"text"},{"key":"branch_currency_amounts[currency]","value":"JOD","type":"text"},{"key":"branch_currency_amounts[ss_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[basic_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[total_allowances]","value":"0","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/:financial_datum_id","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data",":financial_datum_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"f0622c98-2087-4200-b169-fbf5ac199528","type":"any","value":"","key":"branch_id"},{"id":"f5fb8139-4a8c-4ba6-b386-b2dfa6db4248","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"21d5e63a-a4bc-4c6d-8fb7-6b00231889f1","type":"any","value":"","key":"financial_datum_id"}]}},"response":[{"id":"621cbbfe-b20d-4599-b0a1-25f6c4e6b608","name":"Create Employee Financial Data","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ss_participation_date","value":"2022-01-01","type":"text"},{"key":"family_exemption","value":"true","type":"text"},{"key":"personal_exemption","value":"true","type":"text"},{"key":"taxable","value":"true","type":"text"},{"key":"salary_count","value":"3","type":"text"},{"key":"basic_salary_fils","value":"15600","type":"text"},{"key":"basic_salary_currency","value":"JOD","type":"text"},{"key":"ss_salary_fils","value":"12600","type":"text"},{"key":"ss_salary_currency","value":"JOD","type":"text"},{"key":"effective_on","value":"2024-01-01","type":"text"},{"key":"expires_on","value":"2026-01-01","type":"text"},{"key":"resident","value":"true","type":"text"},{"key":"other_exemption","value":"0","type":"text"},{"key":"status","value":"1","type":"text"},{"key":"requester_id","value":"","type":"text"},{"key":"social_security_id","value":"","type":"text"},{"key":"package_type","value":"","type":"text"},{"key":"entitled_to_overtime","value":"true","type":"text"},{"key":"branch_currency_amounts[currency]","value":"JOD","type":"text"},{"key":"branch_currency_amounts[ss_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[basic_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[total_allowances]","value":"0","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f9f294e29411fdf23f537643d9166879\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e13f459c-cfc9-4c53-9f89-b84da8561d46"},{"key":"X-Runtime","value":"34.405643"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"534"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 829765,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"payment_method\": \"bank_transfer\",\n    \"resident\": true,\n    \"taxable\": true,\n    \"salary_count\": 3,\n    \"personal_exemption\": true,\n    \"family_exemption\": true,\n    \"other_exemption\": {\n        \"amount\": 0,\n        \"currency\": \"JOD\"\n    },\n    \"basic_salary\": {\n        \"amount\": 15.6,\n        \"currency\": \"JOD\"\n    },\n    \"ss_salary\": {\n        \"amount\": 12.6,\n        \"currency\": \"JOD\"\n    },\n    \"ss_participation_date\": \"2022-01-01\",\n    \"package_type\": null,\n    \"status\": \"pending\",\n    \"effective_on\": \"2024-01-01\",\n    \"expires_on\": \"2026-01-01\",\n    \"created_at\": \"2024-04-28\",\n    \"updated_at\": \"2024-04-28T08:03:47.297Z\",\n    \"recurring_transactions\": []\n}"}],"_postman_id":"4cf662c9-ff21-4101-839f-4a8a0776136b"},{"name":"Destroy Employee Financial Data","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"952f4adc-1cb0-4e3e-a553-5b7baebcb3d9"}}],"id":"cc4643d1-008b-46d9-a66e-f4062266e4e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"ss_participation_date","value":"2022-01-01","type":"text"},{"key":"family_exemption","value":"true","type":"text"},{"key":"personal_exemption","value":"true","type":"text"},{"key":"taxable","value":"true","type":"text"},{"key":"salary_count","value":"3","type":"text"},{"key":"basic_salary_fils","value":"15600","type":"text"},{"key":"basic_salary_currency","value":"JOD","type":"text"},{"key":"ss_salary_fils","value":"12600","type":"text"},{"key":"ss_salary_currency","value":"JOD","type":"text"},{"key":"effective_on","value":"2024-01-01","type":"text"},{"key":"expires_on","value":"2026-01-01","type":"text"},{"key":"resident","value":"true","type":"text"},{"key":"other_exemption","value":"0","type":"text"},{"key":"status","value":"1","type":"text"},{"key":"requester_id","value":"","type":"text"},{"key":"social_security_id","value":"","type":"text"},{"key":"package_type","value":"","type":"text"},{"key":"entitled_to_overtime","value":"true","type":"text"},{"key":"branch_currency_amounts[currency]","value":"JOD","type":"text"},{"key":"branch_currency_amounts[ss_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[basic_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[total_allowances]","value":"0","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/:financial_datum_id","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data",":financial_datum_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"e7dc334f-1570-4b8e-88fe-59fbb41b263f","type":"any","value":"","key":"branch_id"},{"id":"1b11a46b-1fe1-4b36-8c61-e6e99d6deeff","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"667d145f-62a0-44a8-b531-582f4e9e4ef2","type":"any","value":"","key":"financial_datum_id"}]}},"response":[{"id":"a977fcc8-a767-4922-a57c-0f95d541162a","name":"Create Employee Financial Data","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ss_participation_date","value":"2022-01-01","type":"text"},{"key":"family_exemption","value":"true","type":"text"},{"key":"personal_exemption","value":"true","type":"text"},{"key":"taxable","value":"true","type":"text"},{"key":"salary_count","value":"3","type":"text"},{"key":"basic_salary_fils","value":"15600","type":"text"},{"key":"basic_salary_currency","value":"JOD","type":"text"},{"key":"ss_salary_fils","value":"12600","type":"text"},{"key":"ss_salary_currency","value":"JOD","type":"text"},{"key":"effective_on","value":"2024-01-01","type":"text"},{"key":"expires_on","value":"2026-01-01","type":"text"},{"key":"resident","value":"true","type":"text"},{"key":"other_exemption","value":"0","type":"text"},{"key":"status","value":"1","type":"text"},{"key":"requester_id","value":"","type":"text"},{"key":"social_security_id","value":"","type":"text"},{"key":"package_type","value":"","type":"text"},{"key":"entitled_to_overtime","value":"true","type":"text"},{"key":"branch_currency_amounts[currency]","value":"JOD","type":"text"},{"key":"branch_currency_amounts[ss_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[basic_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[total_allowances]","value":"0","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f9f294e29411fdf23f537643d9166879\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e13f459c-cfc9-4c53-9f89-b84da8561d46"},{"key":"X-Runtime","value":"34.405643"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"534"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 829765,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"payment_method\": \"bank_transfer\",\n    \"resident\": true,\n    \"taxable\": true,\n    \"salary_count\": 3,\n    \"personal_exemption\": true,\n    \"family_exemption\": true,\n    \"other_exemption\": {\n        \"amount\": 0,\n        \"currency\": \"JOD\"\n    },\n    \"basic_salary\": {\n        \"amount\": 15.6,\n        \"currency\": \"JOD\"\n    },\n    \"ss_salary\": {\n        \"amount\": 12.6,\n        \"currency\": \"JOD\"\n    },\n    \"ss_participation_date\": \"2022-01-01\",\n    \"package_type\": null,\n    \"status\": \"pending\",\n    \"effective_on\": \"2024-01-01\",\n    \"expires_on\": \"2026-01-01\",\n    \"created_at\": \"2024-04-28\",\n    \"updated_at\": \"2024-04-28T08:03:47.297Z\",\n    \"recurring_transactions\": []\n}"}],"_postman_id":"cc4643d1-008b-46d9-a66e-f4062266e4e8"},{"name":"Get Employee Active Financial Data","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"}","                },","                \"required\": [\"id\"]","            },","            \"payment_method\": {\"type\": \"string\"},","            \"resident\": {\"type\": \"boolean\"},","            \"taxable\": {\"type\": \"boolean\"},","            \"salary_count\": {\"type\": \"number\"},","            \"personal_exemption\": {\"type\": \"boolean\"},","            \"family_exemption\": {\"type\": \"boolean\"},","            \"other_exemption\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": {\"type\": \"number\"},","                    \"currency\": {\"type\": \"string\"}","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"basic_salary\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": {\"type\": \"number\"},","                    \"currency\": {\"type\": \"string\"}","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"recurring_transactions\": {\"type\": \"array\"},","            \"ss_participation_date\": {\"type\": \"string\"},","            \"ss_salary\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": {\"type\": \"number\"},","                    \"currency\": {\"type\": \"string\"}","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"status\": {\"type\": \"string\"},","            \"effective_on\": {\"type\": \"string\"},","            \"expires_on\": {\"type\": [\"string\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"employee\", \"payment_method\", \"resident\", \"taxable\", \"salary_count\", \"personal_exemption\", \"family_exemption\", \"other_exemption\", \"basic_salary\", \"recurring_transactions\", \"ss_participation_date\", \"ss_salary\", \"status\", \"effective_on\", \"expires_on\", \"created_at\", \"updated_at\"]","    };","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"3c97c1ab-20c7-4740-9b3f-c8694576c32d"}}],"id":"bd142505-c1c6-472b-9099-b9ba7046fdfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/active","description":"<p>this API end-point will show the active financial data for the employee by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data","active"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"financial_datum.employee"}],"variable":[{"id":"9d6db1a4-d4b9-445a-90e8-627024b00ee1","type":"any","value":"","key":"branch_id"},{"id":"29c2b157-ce8f-4bb4-8ad1-da243fd0e42d","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"ab480854-f357-4640-84c9-58e111458194","name":"Get Employee Active Financial Data","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/active","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data","active"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"699a6b61c144a6164aa8dd536d512890\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"182f9364-2443-472e-8505-7c4fa49da5ad"},{"key":"X-Runtime","value":"0.020541"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"512"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 130745,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"payment_method\": \"bank_transfer\",\n    \"resident\": true,\n    \"taxable\": true,\n    \"salary_count\": 12,\n    \"personal_exemption\": true,\n    \"family_exemption\": true,\n    \"other_exemption\": {\n        \"amount\": 0,\n        \"currency\": \"JOD\"\n    },\n    \"basic_salary\": {\n        \"amount\": 8000,\n        \"currency\": \"JOD\"\n    },\n    \"recurring_transactions\": [],\n    \"ss_participation_date\": \"2015-01-01\",\n    \"ss_salary\": {\n        \"amount\": 8000,\n        \"currency\": \"JOD\"\n    },\n    \"status\": \"approved\",\n    \"effective_on\": \"2022-01-01\",\n    \"expires_on\": null,\n    \"created_at\": \"2022-01-05\",\n    \"updated_at\": \"2022-01-05T13:01:05.701Z\"\n}"}],"_postman_id":"bd142505-c1c6-472b-9099-b9ba7046fdfc"}],"id":"c8f96ad9-92cb-4d8b-abe7-d50845ff23fa","_postman_id":"c8f96ad9-92cb-4d8b-abe7-d50845ff23fa","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Recurring Transaction","item":[{"name":"List Recurring Transactions","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"bb482989-fa1e-4f8a-b3a4-fc3c8ddd4a58"}}],"id":"05e547cc-7bf1-418e-b931-a8ebba40fd49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/:financial_datum_id/recurring_transactions","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data",":financial_datum_id","recurring_transactions"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"include","value":"recurring_transaction.financial_transaction_type"},{"disabled":true,"key":"filter[financial_transaction_type_id]","value":"217"},{"disabled":true,"key":"filter[start_date][from]","value":"2017-06-01"},{"disabled":true,"key":"filter[start_date][to]","value":"2017-05-01"},{"disabled":true,"key":"filter[end_date][from]","value":"2017-06-01"},{"disabled":true,"key":"filter[start_date][to]","value":"2017-06-01"},{"disabled":true,"key":"order[]","value":"{column: recurring_transactions.financial_transaction_type_id, direction: desc}"},{"disabled":true,"key":"order[]","value":"{column: recurring_transactions.start_date, direction: desc}"},{"disabled":true,"key":"order[]","value":"{column: recurring_transactions.end_date, direction: desc}"},{"disabled":true,"key":"order[]","value":"{column: recurring_transactions.amount, direction: desc}"}],"variable":[{"id":"2c5ed113-968e-4250-81a7-78c7dbfc59f5","type":"any","value":"","key":"branch_id"},{"id":"74ad642f-f317-43f9-ae36-698d6cce7b91","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"199b2668-add6-401d-acb3-167f15db3eba","type":"any","value":"","key":"financial_datum_id"}]}},"response":[{"id":"c85aeb19-0099-4d0a-be75-805bca542b66","name":"List Recurring Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/1379/recurring_transactions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data","1379","recurring_transactions"],"query":[{"key":"page","value":"1","description":"Page number","disabled":true},{"key":"limit","value":"10","description":"Records limit per page","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"2759978fd44e532eb5f676bc93000fe9\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c7a38aee-0a66-4c5a-a726-2318eaf0acb2"},{"key":"X-Runtime","value":"0.082716"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"259"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 323,\n            \"financial_treansaction_type\": {\n                \"id\": 215\n            },\n            \"start_date\": \"2017-05-01\",\n            \"end_date\": null,\n            \"amount\": 50,\n            \"branch_currency_amounts\": {\n                \"amount\": \"50.0\",\n                \"currency\": \"JOD\"\n            }\n        }\n    ]\n}"}],"_postman_id":"05e547cc-7bf1-418e-b931-a8ebba40fd49"},{"name":"Create Recurring Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"45cbd1a6-ac22-42fe-8d18-130b9512db9e"}}],"id":"75c1603f-5f0a-480c-a06b-03e6ca8030d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"217","type":"text"},{"key":"start_date","value":"2022-01-01","type":"text"},{"key":"end_date","value":"2024-01-01","type":"text"},{"key":"amount","value":"3123","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/:financial_datum_id/recurring_transactions","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data",":financial_datum_id","recurring_transactions"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"1c58265b-70ce-459a-82fe-09620a5891b3","type":"any","value":"","key":"branch_id"},{"id":"ab81cc29-c159-4bc5-ae81-ae26c9d385ba","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"06a44628-7e0b-4702-827a-e64214a51e5f","type":"any","value":"","key":"financial_datum_id"}]}},"response":[{"id":"a2daad65-ade2-4c78-b39c-ad4a84b5a090","name":"Create Recurring Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"215","type":"text"},{"key":"start_date","value":"2022-01-01","type":"text"},{"key":"end_date","value":"2024-01-01","type":"text"},{"key":"amount","value":"3123","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/1379/recurring_transactions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data","1379","recurring_transactions"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"cb00e7eb5a4a97abd0529e83d29d63f4\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"92a1be02-2b45-4c23-96ee-72e489747a43"},{"key":"X-Runtime","value":"1.919387"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"180"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1683379,\n    \"financial_treansaction_type\": {\n        \"id\": 215\n    },\n    \"start_date\": \"2022-01-01\",\n    \"end_date\": \"2024-01-01\",\n    \"amount\": 50,\n    \"branch_currency_amounts\": {\n        \"amount\": \"50.0\",\n        \"currency\": \"JOD\"\n    }\n}"}],"_postman_id":"75c1603f-5f0a-480c-a06b-03e6ca8030d0"},{"name":"Update Recurring Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"b4dcbbe8-9632-44ab-9d14-5643c77d6252"}}],"id":"c60c7f92-1950-4051-8e31-d191917f71a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"215","type":"text"},{"key":"start_date","value":"2022-01-01","type":"text"},{"key":"end_date","value":"2024-01-01","type":"text"},{"key":"amount","value":"3124","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/:financial_datum_id/recurring_transactions/:recuuring_transaction_id","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data",":financial_datum_id","recurring_transactions",":recuuring_transaction_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"219ca8e1-5785-406c-bfba-5e17581c99ae","type":"any","value":"","key":"branch_id"},{"id":"fe6f0011-430b-4b5b-b401-312545c12c71","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"dc451616-1b5f-4cb0-b803-bdec8e112076","type":"any","value":"","key":"financial_datum_id"},{"id":"ac98631e-0117-4788-9d3e-c8e5d387e738","type":"any","value":"","key":"recuuring_transaction_id"}]}},"response":[{"id":"5dd727ad-f5a0-4661-b2dc-ff40500b3a8a","name":"Update Recurring Transaction","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"215","type":"text"},{"key":"start_date","value":"2022-01-01","type":"text"},{"key":"end_date","value":"2024-01-01","type":"text"},{"key":"amount","value":"3124","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/1379/recurring_transactions/1683379","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data","1379","recurring_transactions","1683379"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e4087ccd9cdc3d961e8f0715785e387d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b050a716-5069-4d9a-b0ca-38609f7ed470"},{"key":"X-Runtime","value":"0.268457"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"184"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1683379,\n    \"financial_treansaction_type\": {\n        \"id\": 215\n    },\n    \"start_date\": \"2022-01-01\",\n    \"end_date\": \"2024-01-01\",\n    \"amount\": 3124,\n    \"branch_currency_amounts\": {\n        \"amount\": \"3124.0\",\n        \"currency\": \"JOD\"\n    }\n}"}],"_postman_id":"c60c7f92-1950-4051-8e31-d191917f71a1"},{"name":"Destroy Recurring Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    // Define the JSON schema here","    var schema = {","        type: 'object',","        properties: {","            pagination: {","                type: 'object',","                properties: {","                    current_page: { type: 'number' },","                    per_page: { type: 'number' },","                    total_entries: { type: 'number' },","                    total_pages: { type: 'number' }","                },","                required: ['current_page', 'per_page', 'total_entries', 'total_pages']","            },","            data: {","                type: 'array',","                items: {","                    type: 'object',","                    properties: {","                        id: { type: 'number' },","                        employee: {","                            type: 'object',","                            properties: {","                                id: { type: 'number' }","                            },","                            required: ['id']","                        },","                        // Add more properties and their types as needed","                    },","                    required: ['id', 'employee']","                }","            }","            // Add more properties and their types as needed","        },","        required: ['pagination', 'data']","    };","    ","    pm.expect(jsonData).to.have.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"5cd5b935-f203-497d-bdf9-a4db1817341e"}}],"id":"249ca55d-72c3-48e0-92aa-a792c6376705","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"ss_participation_date","value":"2022-01-01","type":"text"},{"key":"family_exemption","value":"true","type":"text"},{"key":"personal_exemption","value":"true","type":"text"},{"key":"taxable","value":"true","type":"text"},{"key":"salary_count","value":"3","type":"text"},{"key":"basic_salary_fils","value":"15600","type":"text"},{"key":"basic_salary_currency","value":"JOD","type":"text"},{"key":"ss_salary_fils","value":"12600","type":"text"},{"key":"ss_salary_currency","value":"JOD","type":"text"},{"key":"effective_on","value":"2024-01-01","type":"text"},{"key":"expires_on","value":"2026-01-01","type":"text"},{"key":"resident","value":"true","type":"text"},{"key":"other_exemption","value":"0","type":"text"},{"key":"status","value":"1","type":"text"},{"key":"requester_id","value":"","type":"text"},{"key":"social_security_id","value":"","type":"text"},{"key":"package_type","value":"","type":"text"},{"key":"entitled_to_overtime","value":"true","type":"text"},{"key":"branch_currency_amounts[currency]","value":"JOD","type":"text"},{"key":"branch_currency_amounts[ss_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[basic_salary]","value":"15000","type":"text"},{"key":"branch_currency_amounts[total_allowances]","value":"0","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/:financial_datum_id/recurring_transactions/:recuuring_transaction_id","description":"<p>This API end-point wil llist all financial data for an employee by branch_id and employee_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees?page=4&amp;limit=2  </p>\n<p>you can use include parameters to include the employee with the financial data:</p>\n<ul>\n<li>financial_datum.employee</li>\n</ul>\n<p>ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data?include=financial_datum.employee</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data",":financial_datum_id","recurring_transactions",":recuuring_transaction_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"8fa88cce-158f-405e-b4dd-f1e6686f5768","type":"any","value":"","key":"branch_id"},{"id":"c9a964c4-6fd8-4a63-be2c-0341fa39f24a","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"aab5ef2b-28ea-43b9-9e4a-41ae68c4d0ac","type":"any","value":"","key":"financial_datum_id"},{"id":"0bbcf176-5e13-42f0-af7a-1e16232e9b49","type":"any","value":"","key":"recuuring_transaction_id"}]}},"response":[],"_postman_id":"249ca55d-72c3-48e0-92aa-a792c6376705"},{"name":"Get Recurring Transaction","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"}","                },","                \"required\": [\"id\"]","            },","            \"payment_method\": {\"type\": \"string\"},","            \"resident\": {\"type\": \"boolean\"},","            \"taxable\": {\"type\": \"boolean\"},","            \"salary_count\": {\"type\": \"number\"},","            \"personal_exemption\": {\"type\": \"boolean\"},","            \"family_exemption\": {\"type\": \"boolean\"},","            \"other_exemption\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": {\"type\": \"number\"},","                    \"currency\": {\"type\": \"string\"}","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"basic_salary\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": {\"type\": \"number\"},","                    \"currency\": {\"type\": \"string\"}","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"recurring_transactions\": {\"type\": \"array\"},","            \"ss_participation_date\": {\"type\": \"string\"},","            \"ss_salary\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": {\"type\": \"number\"},","                    \"currency\": {\"type\": \"string\"}","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"status\": {\"type\": \"string\"},","            \"effective_on\": {\"type\": \"string\"},","            \"expires_on\": {\"type\": [\"string\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"employee\", \"payment_method\", \"resident\", \"taxable\", \"salary_count\", \"personal_exemption\", \"family_exemption\", \"other_exemption\", \"basic_salary\", \"recurring_transactions\", \"ss_participation_date\", \"ss_salary\", \"status\", \"effective_on\", \"expires_on\", \"created_at\", \"updated_at\"]","    };","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"eb89896a-0f6f-4298-a95c-a4f408be0e0a"}}],"id":"ede0b269-c743-4c2e-941b-0f2c566a08e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/:financial_datum_id/recurring_transactions/:recuuring_transaction_id","description":"<p>this API end-point will show the active financial data for the employee by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data",":financial_datum_id","recurring_transactions",":recuuring_transaction_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"recurring_transaction.financial_transaction_type"}],"variable":[{"id":"be88b221-ced3-4a6d-a9e9-10d23284e37f","type":"any","value":"","key":"branch_id"},{"id":"2f71324d-33ad-4308-af12-41d93c60a238","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"ea4035eb-ed8a-4f41-9112-fa52091b9bac","type":"any","value":"","key":"financial_datum_id"},{"id":"e9f5e483-b9b7-4004-8388-dc9003593796","type":"any","value":"","key":"recuuring_transaction_id"}]}},"response":[{"id":"5336b63a-ce9d-42a8-9f3f-ece5839736b9","name":"Get Employee Active Financial Data","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_data/active","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_data","active"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"699a6b61c144a6164aa8dd536d512890\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"182f9364-2443-472e-8505-7c4fa49da5ad"},{"key":"X-Runtime","value":"0.020541"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"512"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 130745,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"payment_method\": \"bank_transfer\",\n    \"resident\": true,\n    \"taxable\": true,\n    \"salary_count\": 12,\n    \"personal_exemption\": true,\n    \"family_exemption\": true,\n    \"other_exemption\": {\n        \"amount\": 0,\n        \"currency\": \"JOD\"\n    },\n    \"basic_salary\": {\n        \"amount\": 8000,\n        \"currency\": \"JOD\"\n    },\n    \"recurring_transactions\": [],\n    \"ss_participation_date\": \"2015-01-01\",\n    \"ss_salary\": {\n        \"amount\": 8000,\n        \"currency\": \"JOD\"\n    },\n    \"status\": \"approved\",\n    \"effective_on\": \"2022-01-01\",\n    \"expires_on\": null,\n    \"created_at\": \"2022-01-05\",\n    \"updated_at\": \"2022-01-05T13:01:05.701Z\"\n}"}],"_postman_id":"ede0b269-c743-4c2e-941b-0f2c566a08e2"}],"id":"9489acad-cccb-4435-a0cc-7d5829bb0969","_postman_id":"9489acad-cccb-4435-a0cc-7d5829bb0969","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Salaries","item":[{"name":"List Employees Salaries","id":"d5dfc4c9-a531-427b-91ac-f5549d40f9bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/salaries","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","salaries"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[],"_postman_id":"d5dfc4c9-a531-427b-91ac-f5549d40f9bb"},{"name":"Get Employee Salary","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 400ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(400);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee\": { \"type\": \"object\" },","                        \"professional_datum\": { \"type\": \"object\" },","                        \"financial_datum\": { \"type\": \"object\" },","                        \"days_worked\": { \"type\": \"number\" },","                        \"month\": { \"type\": \"number\" },","                        \"year\": { \"type\": \"number\" },","                        \"from_date\": { \"type\": \"string\" },","                        \"to_date\": { \"type\": \"string\" },","                        \"status\": { \"type\": \"string\" },","                        \"incomes_and_deductions\": { \"type\": [\"object\", \"null\"] },","                        \"company_contributions\": { \"type\": [\"object\", \"null\"] },","                        \"part_time_transactions\": { \"type\": [\"object\", \"null\"] },","                        \"professional_datum_id\": { \"type\": [\"number\", \"null\"] },","                        \"out_of_payroll\": { \"type\": [\"object\", \"null\"] },","                        \"absence\": { \"type\": \"number\" },","                        \"financial_datum_id\": { \"type\": \"number\" },","                        \"timeoff_balance\": { \"type\": [\"string\", \"null\"] },","                        \"overtime_duration\": { \"type\": [\"number\", \"null\"] },","                        \"basic_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"ss_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"worth_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"total_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"net_income\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"net_deduction\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"absence_amount\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"part_time_salary\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        }","                    },","                    \"required\": [\"id\", \"employee\", \"professional_datum\", \"financial_datum\", \"days_worked\", \"month\", \"year\", \"from_date\", \"to_date\", \"status\", \"incomes_and_deductions\", \"company_contributions\", \"part_time_transactions\", \"professional_datum_id\", \"out_of_payroll\", \"absence\", \"financial_datum_id\", \"timeoff_balance\", \"overtime_duration\", \"basic_salary\", \"ss_salary\", \"worth_salary\", \"total_salary\", \"net_income\", \"net_deduction\", \"absence_amount\", \"part_time_salary\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"92c92a32-6ae9-4926-aac0-2a2438ed0ba4"}}],"id":"b7536ca3-0808-4581-80f5-cf0383f43656","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/salaries","description":"<p>this API end-point will list all of the employee salaries by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","salaries"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"1"},{"disabled":true,"key":"include[]","value":"salary.employee"},{"disabled":true,"key":"include[]","value":"salary.financial_data"},{"disabled":true,"key":"include[]","value":"salary.professional_data"},{"disabled":true,"key":"filter[id][]","value":"2024"},{"disabled":true,"key":"filter[employee][integration_maps][global_id]","value":"342reqaaaatest"},{"disabled":true,"key":"filter[employee_id][]","value":""},{"disabled":true,"key":"filter[month][]","value":""},{"disabled":true,"key":"filter[year][]","value":""},{"disabled":true,"key":"filter[salary_batch_id][]","value":""},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":""},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":""},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":""},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":""},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: month, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: year, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: salary_batch_id, dir: asc}"}],"variable":[{"id":"7862fd0c-8cd5-41e7-9917-effbaa05614c","type":"any","value":"","key":"branch_id"},{"id":"7a3610cb-55e6-4d91-b1f5-15a27c59855a","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"9c83a91f-dfe9-4009-b37c-2112b0e4f01d","name":"List Employee Salaries","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/salaries","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","salaries"],"query":[{"key":"year","value":"2022","disabled":true},{"key":"month","value":"1","disabled":true},{"key":"include","value":"salary.employee,salary.financial_data","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f079e63819544f7c408bfae50c5cc704\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f23efdd8-b42a-4f86-bc21-e81a5559821b"},{"key":"X-Runtime","value":"0.044498"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"8454"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 40,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 3088,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 9,\n            \"year\": 2017,\n            \"from_date\": \"2017-09-01\",\n            \"to_date\": \"2017-09-30\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2241.881,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 143.958,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 202.077,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 3263,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 10,\n            \"year\": 2017,\n            \"from_date\": \"2017-10-01\",\n            \"to_date\": \"2017-10-31\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2166,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 184,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 3272,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 11,\n            \"year\": 2017,\n            \"from_date\": \"2017-11-01\",\n            \"to_date\": \"2017-11-30\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2166,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 184,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 15080,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 1379\n            },\n            \"days_worked\": 30,\n            \"month\": 1,\n            \"year\": 2018,\n            \"from_date\": \"2018-01-01\",\n            \"to_date\": \"2018-01-31\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 1379,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2300,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2166,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 184,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 19072,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 3,\n            \"year\": 2018,\n            \"from_date\": \"2018-03-01\",\n            \"to_date\": \"2018-03-31\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": null,\n            \"overtime_duration\": null,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2307.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 192.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 35140,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 4,\n            \"year\": 2018,\n            \"from_date\": \"2018-03-21\",\n            \"to_date\": \"2018-04-20\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2287.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 212.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 36713,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 19,\n            \"month\": 6,\n            \"year\": 2018,\n            \"from_date\": \"2018-05-21\",\n            \"to_date\": \"2018-06-20\",\n            \"status\": \"sent_to_employee\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 12,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 1500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 1442.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 157.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 1000,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 51235,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 7,\n            \"year\": 2018,\n            \"from_date\": \"2018-07-01\",\n            \"to_date\": \"2018-07-31\",\n            \"status\": \"approved\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 240,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2448.939,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 152.085,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 203.146,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 71956,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 30,\n            \"month\": 9,\n            \"year\": 2018,\n            \"from_date\": \"2018-08-26\",\n            \"to_date\": \"2018-09-25\",\n            \"status\": \"approved\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2307.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 192.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        },\n        {\n            \"id\": 91789,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"professional_datum\": {\n                \"id\": null\n            },\n            \"financial_datum\": {\n                \"id\": 3655\n            },\n            \"days_worked\": 31,\n            \"month\": 10,\n            \"year\": 2018,\n            \"from_date\": \"2018-10-01\",\n            \"to_date\": \"2018-10-31\",\n            \"status\": \"approved\",\n            \"incomes_and_deductions\": null,\n            \"company_contributions\": null,\n            \"part_time_transactions\": null,\n            \"professional_datum_id\": null,\n            \"out_of_payroll\": null,\n            \"absence\": 0,\n            \"financial_datum_id\": 3655,\n            \"timeoff_balance\": \"0.0\",\n            \"overtime_duration\": 0,\n            \"basic_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"ss_salary\": {\n                \"amount\": 2100,\n                \"currency\": \"JOD\"\n            },\n            \"worth_salary\": {\n                \"amount\": 2500,\n                \"currency\": \"JOD\"\n            },\n            \"total_salary\": {\n                \"amount\": 2307.5,\n                \"currency\": \"JOD\"\n            },\n            \"net_income\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"net_deduction\": {\n                \"amount\": 192.5,\n                \"currency\": \"JOD\"\n            },\n            \"absence_amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"part_time_salary\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            }\n        }\n    ]\n}"}],"_postman_id":"b7536ca3-0808-4581-80f5-cf0383f43656"},{"name":"Update Salary Financial Integration Status","id":"05df47c5-73ab-4780-bb6e-8c74b9e2df28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/salaries/:salary_id?integration_request_status=integration_request_not_sent","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","salaries",":salary_id"],"host":["app.zenhr.com"],"query":[{"description":{"content":"<p>You can use one of the statuses below:\nintegration_request_not_sent, integration_request_enqueued, integration_request_processing, integration_request_sent, integration_request_failed, integration_request_calculating_provision</p>\n","type":"text/plain"},"key":"integration_request_status","value":"integration_request_not_sent"}],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"salary_id"}]}},"response":[],"_postman_id":"05df47c5-73ab-4780-bb6e-8c74b9e2df28"}],"id":"2b9ce382-d636-4f92-ba17-b37f9f457590","_postman_id":"2b9ce382-d636-4f92-ba17-b37f9f457590","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Employee Financial Transactions","item":[{"name":"List Employee Financal Transactions","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Retrieve the financial_transaction_id from the response data","var jsonData = pm.response.json();","var financialTransactionId = jsonData.data[0].id;","","// Set the financial_transaction_id as an environment variable","pm.environment.set(\"financial_transaction_id\", financialTransactionId);","// Test to check if each financial transaction has the required properties","pm.test(\"Each financial transaction has the required properties\", function () {","    var jsonData = pm.response.json();","    jsonData.data.forEach(function(transaction) {","        pm.expect(transaction).to.have.property('id');","        pm.expect(transaction).to.have.property('financial_transaction_type');","        pm.expect(transaction).to.have.property('employee');","        pm.expect(transaction).to.have.property('transaction_status');","        pm.expect(transaction).to.have.property('direction');","        pm.expect(transaction).to.have.property('out_of_payroll');","        pm.expect(transaction).to.have.property('amount');","        pm.expect(transaction).to.have.property('notes');","        pm.expect(transaction).to.have.property('effective_date');","        pm.expect(transaction).to.have.property('cancel_requested');","        pm.expect(transaction).to.have.property('cancel_requested_on');","        pm.expect(transaction).to.have.property('integration_maps');","        pm.expect(transaction).to.have.property('created_at');","        pm.expect(transaction).to.have.property('updated_at');","    });","});","","pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});","","","pm.test(\"Response should be valid JSON\", function () {","    pm.expect(pm.response.json()).to.be.an('object');","});","","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Pagination object is present and contains expected keys\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData.pagination).to.exist.and.to.be.an('object');","    pm.expect(responseData.pagination).to.include.all.keys('current_page', 'per_page', 'total_entries', 'total_pages');","});","","var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>ID</th>","        <th>Transaction Status</th>","        <th>Direction</th>","        <th>Out of Payroll</th>","        <th>Amount</th>","        <th>Notes</th>","        <th>Effective Date</th>","        <th>Cancel Requested</th>","        <th>Integration Maps</th>","        <th>Created At</th>","        <th>Updated At</th>","    </tr>","    ","    {{#each response.data}}","        <tr id=row_{{@key}}>","            <td>{{id}}</td>","            <td>{{transaction_status}}</td>","            <td>{{direction}}</td>","            <td>{{out_of_payroll}}</td>","            <td>{{amount.amount}} {{amount.currency}}</td>","            <td>{{notes}}</td>","            <td>{{effective_date}}</td>","            <td>{{cancel_requested}}</td>","            <td>{{integration_maps.[0].global_id}}</td>","            <td>{{created_at}}</td>","            <td>{{updated_at}}</td>","        </tr>","    {{/each}}","</table>","`;","","function constructVisualizerPayload() {","    return { response: pm.response.json() }","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{},"id":"35c9bc93-2440-448e-91b5-e068148c840f"}}],"id":"134a5ec8-3d79-4063-a503-2074f61f90fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/104/employees/1159/financial_transactions/","description":"<p>This API end-point will list all employee financial transactions by employee_id and branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","employees","1159","financial_transactions",""],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include[]","value":"financial_transaction.employee"},{"disabled":true,"key":"include[]","value":"financial_transaction.financial_transaction_type"},{"disabled":true,"key":"filter[id][]","value":"203345"},{"disabled":true,"key":"filter[financial_transaction_type_id][]","value":"9138"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2019-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2019-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2019-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2019-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][from]","value":"2019-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][to]","value":"2019-01-25"},{"disabled":true,"key":"filter[integration_maps][global_id]","value":"test1"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employees.hiring_date, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_date, dir: asc}"}],"variable":[]}},"response":[{"id":"582ae1a1-3181-4a5f-901e-59c0ec0f27a0","name":"List Employee Financal Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employees/1159/financial_transactions/","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employees","1159","financial_transactions",""],"query":[{"key":"page","value":"1","description":"Page number","disabled":true},{"key":"limit","value":"2","description":"Records limit per page","disabled":true},{"key":"include[]","value":"financial_transaction.employee","disabled":true},{"key":"include[]","value":"financial_transaction.financial_transaction_type","disabled":true},{"key":"filter[id][]","value":"203345","disabled":true},{"key":"filter[financial_transaction_type_id][]","value":"9138","disabled":true},{"key":"filter[created_at][from]","value":"2019-01-25","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[created_at][to]","value":"2019-01-25","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][from]","value":"2019-01-25","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][to]","value":"2019-01-25","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[effective_date][from]","value":"2019-01-25","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[effective_date][to]","value":"2019-01-25","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[integration_maps][global_id]","value":"test1","disabled":true},{"key":"order[]","value":"{column: employees.hiring_date, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: effective_date, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"cacfbeb9a6eeba5bc2bd8f8a71aeb6da\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"533d86ad-42c1-4336-8e2c-be8fece4d960"},{"key":"X-Runtime","value":"0.248042"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"9699"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 244,\n        \"total_pages\": 10\n    },\n    \"data\": [\n        {\n            \"id\": 1216967,\n            \"financial_transaction_type\": {\n                \"id\": 33274\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"company_expense\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 15.999,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"test\",\n            \"effective_date\": \"2024-06-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [\n                {\n                    \"global_id\": \"test1\"\n                }\n            ],\n            \"created_at\": \"2024-05-28T10:42:07.847Z\",\n            \"updated_at\": \"2024-05-28T10:42:07.847Z\"\n        },\n        {\n            \"id\": 1216966,\n            \"financial_transaction_type\": {\n                \"id\": 9135\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"cash_variance\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 11.85,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2024-05-16\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-16T08:38:04.660Z\",\n            \"updated_at\": \"2024-05-16T08:38:04.660Z\"\n        },\n        {\n            \"id\": 342,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 70,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-09\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 351,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 11.5,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-09\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 3197,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-06-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 3869,\n            \"financial_transaction_type\": {\n                \"id\": 1554\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"withdrawn\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 30,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-08-03\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": \"2019-02-10T14:19:19.562Z\"\n        },\n        {\n            \"id\": 4192,\n            \"financial_transaction_type\": {\n                \"id\": 1554\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-07-03\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 19191,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-02-28\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-30T10:09:37.079Z\",\n            \"updated_at\": \"2019-01-30T10:09:37.079Z\"\n        },\n        {\n            \"id\": 22706,\n            \"financial_transaction_type\": {\n                \"id\": 219\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"cancelled\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 10,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-06-12\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-04-09T08:39:52.003Z\",\n            \"updated_at\": \"2019-04-09T08:40:00.374Z\"\n        },\n        {\n            \"id\": 23373,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 500,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-06-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-04-23T07:18:31.195Z\",\n            \"updated_at\": \"2019-04-23T07:18:31.307Z\"\n        },\n        {\n            \"id\": 24482,\n            \"financial_transaction_type\": {\n                \"id\": 219\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"rejected\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 20,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-06-12\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-05-15T08:56:39.776Z\",\n            \"updated_at\": \"2019-05-15T08:57:34.584Z\"\n        },\n        {\n            \"id\": 26061,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 10,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-06-03\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-06-02T09:00:29.224Z\",\n            \"updated_at\": \"2019-06-02T09:00:29.307Z\"\n        },\n        {\n            \"id\": 31194,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-12-18\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-07T15:32:29.626Z\",\n            \"updated_at\": \"2019-08-07T15:32:29.762Z\"\n        },\n        {\n            \"id\": 55416,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 10,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2020-03-26\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-03-11T10:05:11.428Z\",\n            \"updated_at\": \"2020-03-11T10:05:11.558Z\"\n        },\n        {\n            \"id\": 10035,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"withdrawn\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-01-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": \"2019-03-06T13:55:19.719Z\"\n        },\n        {\n            \"id\": 10042,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"delegated\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-01-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": \"2019-02-05T13:46:58.578Z\"\n        },\n        {\n            \"id\": 10646,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"delegated\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-01-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": \"2019-02-05T13:46:58.800Z\"\n        },\n        {\n            \"id\": 10951,\n            \"financial_transaction_type\": {\n                \"id\": 2664\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"withdrawn\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 4500,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"تايلبتاريب\",\n            \"effective_date\": \"2019-01-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": \"2019-03-06T13:55:24.465Z\"\n        },\n        {\n            \"id\": 49330,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"withdrawn\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 250,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2020-01-14\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-01-14T10:31:00.194Z\",\n            \"updated_at\": \"2020-01-14T10:31:30.240Z\"\n        },\n        {\n            \"id\": 49331,\n            \"financial_transaction_type\": {\n                \"id\": 1961\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"pending\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 250,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2020-01-14\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-01-14T10:33:19.484Z\",\n            \"updated_at\": \"2020-01-14T10:33:19.484Z\"\n        },\n        {\n            \"id\": 49352,\n            \"financial_transaction_type\": {\n                \"id\": 214\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 20,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"Queue\",\n            \"effective_date\": \"2020-09-09\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-01-14T21:21:50.690Z\",\n            \"updated_at\": \"2020-01-14T21:21:50.690Z\"\n        },\n        {\n            \"id\": 66590,\n            \"financial_transaction_type\": {\n                \"id\": 1554\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"cancelled\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 500,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2021-04-14\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-07-13T13:40:38.298Z\",\n            \"updated_at\": \"2020-07-13T13:40:51.174Z\"\n        },\n        {\n            \"id\": 71356,\n            \"financial_transaction_type\": {\n                \"id\": 8706\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"withdrawn\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"test\",\n            \"effective_date\": \"2021-03-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-08-27T07:18:11.268Z\",\n            \"updated_at\": \"2023-05-30T08:34:48.444Z\"\n        },\n        {\n            \"id\": 102041,\n            \"financial_transaction_type\": {\n                \"id\": 216\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 1250,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"Bonus of the year 2020\",\n            \"effective_date\": \"2021-01-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2021-01-19T09:19:41.358Z\",\n            \"updated_at\": \"2021-01-19T09:19:41.358Z\"\n        },\n        {\n            \"id\": 102053,\n            \"financial_transaction_type\": {\n                \"id\": 216\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 1000,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2021-01-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2021-01-19T11:27:22.003Z\",\n            \"updated_at\": \"2021-01-27T15:26:24.969Z\"\n        }\n    ]\n}"}],"_postman_id":"134a5ec8-3d79-4063-a503-2074f61f90fe"},{"name":"Create Employee Financal Transactions","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the defined JSON schema\", function () {","    var jsonData = pm.response.json();","","    // Define the JSON schema","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"financial_transaction_type\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"transaction_status\": { \"type\": \"string\" },","                        \"direction\": { \"type\": \"string\" },","                        \"out_of_payroll\": { \"type\": \"boolean\" },","                        \"amount\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"notes\": { \"type\": [\"null\", \"string\"] },","                        \"effective_date\": { \"type\": \"string\" },","                        \"cancel_requested\": { \"type\": \"boolean\" },","                        \"cancel_requested_on\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the financial_transaction_id from the response data","var jsonData = pm.response.json();","var financialTransactionId = jsonData.data[0].id;","","// Set the financial_transaction_id as an environment variable","pm.environment.set(\"financial_transaction_id\", financialTransactionId);"],"type":"text/javascript","packages":{},"id":"4bc575ee-818b-48e9-8474-206a19d6437d"}}],"id":"946e54a8-8338-4cff-9cbc-9859461712cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"44258","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"cancel_requested","value":"false","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2025-01-01","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"10000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"global_id","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_transactions","description":"<p>This API end-point will list all employee financial transactions by employee_id and branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_transactions"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"9cf7e02a-240c-4d5d-a152-d04ab16050ba","type":"any","value":"","key":"branch_id"},{"id":"5f1140db-359c-4f4a-94ab-308052fd2dce","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"fad2b99b-4aba-4673-b6de-52ea9c5b9c68","name":"Create Employee Financal Transactions","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"44258","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"cancel_requested","value":"false","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2025-01-01","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"10000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"global_id","value":"test121","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_transactions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_transactions"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"0d4189ec9bcc8294d728fd9fb3777b3a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"33ac4b58-9ade-42f9-85a4-65778a3c13bb"},{"key":"X-Runtime","value":"0.290112"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"418"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1216969,\n    \"financial_transaction_type\": {\n        \"id\": 44258\n    },\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"transaction_status\": \"pending\",\n    \"direction\": \"income\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 10,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"test\",\n    \"effective_date\": \"2025-01-01\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test121\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T13:40:15.509Z\",\n    \"updated_at\": \"2024-05-30T13:40:15.509Z\"\n}"}],"_postman_id":"946e54a8-8338-4cff-9cbc-9859461712cb"},{"name":"Create Employee Financal Transaction Requests","event":[{"listen":"test","script":{"id":"4bc575ee-818b-48e9-8474-206a19d6437d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the defined JSON schema\", function () {","    var jsonData = pm.response.json();","","    // Define the JSON schema","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"financial_transaction_type\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"transaction_status\": { \"type\": \"string\" },","                        \"direction\": { \"type\": \"string\" },","                        \"out_of_payroll\": { \"type\": \"boolean\" },","                        \"amount\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"notes\": { \"type\": [\"null\", \"string\"] },","                        \"effective_date\": { \"type\": \"string\" },","                        \"cancel_requested\": { \"type\": \"boolean\" },","                        \"cancel_requested_on\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the financial_transaction_id from the response data","var jsonData = pm.response.json();","var financialTransactionId = jsonData.data[0].id;","","// Set the financial_transaction_id as an environment variable","pm.environment.set(\"financial_transaction_id\", financialTransactionId);"],"type":"text/javascript","packages":{}}}],"id":"33d2bf49-24d5-4ec4-9b83-41c36e0d41b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"44258","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"cancel_requested","value":"false","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2025-01-01","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"10000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"global_id","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_transactions_requests","description":"<p>This API end-point will list all employee financial transactions by employee_id and branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_transactions_requests"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"2a5b544e-62f4-4bff-a9f5-ec89caa1642d","name":"Create Employee Financal Transactions","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"44258","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"cancel_requested","value":"false","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2025-01-01","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"10000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"global_id","value":"test121","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_transactions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_transactions"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"0d4189ec9bcc8294d728fd9fb3777b3a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"33ac4b58-9ade-42f9-85a4-65778a3c13bb"},{"key":"X-Runtime","value":"0.290112"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"418"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1216969,\n    \"financial_transaction_type\": {\n        \"id\": 44258\n    },\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"transaction_status\": \"pending\",\n    \"direction\": \"income\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 10,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"test\",\n    \"effective_date\": \"2025-01-01\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test121\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T13:40:15.509Z\",\n    \"updated_at\": \"2024-05-30T13:40:15.509Z\"\n}"}],"_postman_id":"33d2bf49-24d5-4ec4-9b83-41c36e0d41b1"},{"name":"Update Employee Financal Transactions","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the defined JSON schema\", function () {","    var jsonData = pm.response.json();","","    // Define the JSON schema","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"financial_transaction_type\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"transaction_status\": { \"type\": \"string\" },","                        \"direction\": { \"type\": \"string\" },","                        \"out_of_payroll\": { \"type\": \"boolean\" },","                        \"amount\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"notes\": { \"type\": [\"null\", \"string\"] },","                        \"effective_date\": { \"type\": \"string\" },","                        \"cancel_requested\": { \"type\": \"boolean\" },","                        \"cancel_requested_on\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the financial_transaction_id from the response data","var jsonData = pm.response.json();","var financialTransactionId = jsonData.data[0].id;","","// Set the financial_transaction_id as an environment variable","pm.environment.set(\"financial_transaction_id\", financialTransactionId);"],"type":"text/javascript","packages":{},"id":"dfedf7fe-36b3-40ae-a582-c9f749d567e7"}}],"id":"caa77c90-8f19-44b2-a33c-af73252c5d9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"financial_transaction_type_id","value":"44258","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"notes","value":"test 123","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2025-01-01","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"10000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"global_id","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_transactions/:financial_transaction_id","description":"<p>This API end-point will list all employee financial transactions by employee_id and branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_transactions",":financial_transaction_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"e287ee07-2757-4d47-b5d7-7cd0584eceb0","type":"any","value":"","key":"branch_id"},{"id":"6dacc2a3-16a0-4d65-8596-d1cd0bf29a69","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"024232ed-7037-404f-ac00-d81e47d381d8","type":"any","value":"","key":"financial_transaction_id"}]}},"response":[],"_postman_id":"caa77c90-8f19-44b2-a33c-af73252c5d9a"},{"name":"Destroy Employee Financal Transactions","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the defined JSON schema\", function () {","    var jsonData = pm.response.json();","","    // Define the JSON schema","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"financial_transaction_type\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"transaction_status\": { \"type\": \"string\" },","                        \"direction\": { \"type\": \"string\" },","                        \"out_of_payroll\": { \"type\": \"boolean\" },","                        \"amount\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"notes\": { \"type\": [\"null\", \"string\"] },","                        \"effective_date\": { \"type\": \"string\" },","                        \"cancel_requested\": { \"type\": \"boolean\" },","                        \"cancel_requested_on\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the financial_transaction_id from the response data","var jsonData = pm.response.json();","var financialTransactionId = jsonData.data[0].id;","","// Set the financial_transaction_id as an environment variable","pm.environment.set(\"financial_transaction_id\", financialTransactionId);"],"type":"text/javascript","packages":{},"id":"c4fd5fcc-c16c-4356-8955-7dc8fafda6df"}}],"id":"28931e69-1742-4132-b6ec-0c08af269100","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_transactions/:financial_transaction_id","description":"<p>This API end-point will list all employee financial transactions by employee_id and branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","financial_transactions",":financial_transaction_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"d9cb2efc-6b08-4b79-8d14-ff1975ffc24d","type":"any","value":"","key":"branch_id"},{"id":"f60342f8-db47-4473-980e-efc21a85d54c","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"d0e707ef-edf0-4a1c-b1b4-fbdc3850503b","type":"any","value":"","key":"financial_transaction_id"}]}},"response":[{"id":"849a7601-1288-4fff-bc35-9bf8eeb48324","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/financial_transactions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","financial_transactions"],"query":[{"key":"include","value":"financial_transaction.employee, financial_transaction.financial_transaction_type","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae35cc9eb6c45a7cc2b5628aab0f4828\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7fda3d37-89dc-45e5-ae87-3b75214b6a19"},{"key":"X-Runtime","value":"0.024913"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"3826"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 187,\n        \"total_pages\": 19\n    },\n    \"data\": [\n        {\n            \"id\": 203345,\n            \"financial_transaction_type\": {\n                \"id\": 9138\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 500,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2021-11-04\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2021-11-04T10:25:25.603Z\",\n            \"updated_at\": \"2021-11-04T10:25:25.718Z\"\n        },\n        {\n            \"id\": 204144,\n            \"financial_transaction_type\": {\n                \"id\": 9137\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 5885,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \" vbb\",\n            \"effective_date\": \"2021-11-10\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2021-11-08T19:57:16.712Z\",\n            \"updated_at\": \"2021-11-08T19:57:17.124Z\"\n        },\n        {\n            \"id\": 204217,\n            \"financial_transaction_type\": {\n                \"id\": 9139\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 103,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"bshshshshsh\",\n            \"effective_date\": \"2022-03-02\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2021-11-09T12:16:43.401Z\",\n            \"updated_at\": \"2021-11-09T12:16:43.552Z\"\n        },\n        {\n            \"id\": 226718,\n            \"financial_transaction_type\": {\n                \"id\": 9138\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"withdrawn\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2022-06-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2022-01-03T11:42:20.090Z\",\n            \"updated_at\": \"2022-09-14T08:24:24.308Z\"\n        },\n        {\n            \"id\": 263974,\n            \"financial_transaction_type\": {\n                \"id\": 15752\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2022-03-18\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2022-03-18T06:49:52.166Z\",\n            \"updated_at\": \"2022-03-18T06:49:52.337Z\"\n        },\n        {\n            \"id\": 263976,\n            \"financial_transaction_type\": {\n                \"id\": 15752\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 300,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2022-03-18\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2022-03-18T06:58:50.568Z\",\n            \"updated_at\": \"2022-03-18T06:58:50.720Z\"\n        },\n        {\n            \"id\": 264848,\n            \"financial_transaction_type\": {\n                \"id\": 15752\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"nn\",\n            \"effective_date\": \"2022-03-11\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2022-03-20T20:41:14.015Z\",\n            \"updated_at\": \"2022-03-20T20:41:14.185Z\"\n        },\n        {\n            \"id\": 264849,\n            \"financial_transaction_type\": {\n                \"id\": 15163\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"approved\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 0,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2022-03-23\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2022-03-20T20:41:46.250Z\",\n            \"updated_at\": \"2022-03-20T20:41:46.451Z\"\n        },\n        {\n            \"id\": 398675,\n            \"financial_transaction_type\": {\n                \"id\": 9135\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"pending\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2022-09-28\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2022-09-25T09:40:42.699Z\",\n            \"updated_at\": \"2022-09-25T09:40:42.699Z\"\n        },\n        {\n            \"id\": 398905,\n            \"financial_transaction_type\": {\n                \"id\": 9135\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"pending\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 200,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2022-09-28\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2022-09-25T13:00:09.715Z\",\n            \"updated_at\": \"2022-09-25T13:00:09.715Z\"\n        }\n    ]\n}"}],"_postman_id":"28931e69-1742-4132-b6ec-0c08af269100"},{"name":"Get Employee Financial Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Define the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"financial_transaction_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"}","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"}","                },","                \"required\": [\"id\"]","            },","            \"transaction_status\": {\"type\": \"string\"},","            \"direction\": {\"type\": \"string\"},","            \"out_of_payroll\": {\"type\": \"boolean\"},","            \"amount\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": {\"type\": \"number\"},","                    \"currency\": {\"type\": \"string\"}","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"notes\": {\"type\": [\"null\", \"string\"]},","            \"effective_date\": {\"type\": \"string\"},","            \"cancel_requested\": {\"type\": \"boolean\"},","            \"cancel_requested_on\": {\"type\": [\"null\", \"string\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"effective_date\", \"cancel_requested\", \"created_at\", \"updated_at\"]","    };","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"e62a36b5-f835-42a0-b21e-330cc6e6120e"}}],"id":"511bda7e-ad1b-4317-8e79-8132d700adaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee/financial_transactions/:financial_transaction_id","description":"<p>This API end-point will show employee financial transaction by employee_id, branch_id, and financial_transaction_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee","financial_transactions",":financial_transaction_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"financial_transaction.employee"},{"disabled":true,"key":"include[]","value":"financial_transaction.financial_transaction_type"}],"variable":[{"id":"4e4efeb7-ad10-4efc-b182-723c778dfe9a","type":"any","value":"","key":"branch_id"},{"id":"05bd971d-9895-4a70-ba63-adb528693db6","type":"any","value":"{{employee_id}}","key":"employee"},{"id":"f66d84d5-0e03-4c6a-9049-c8a40cef0306","type":"any","value":"{{financial_transaction_id}}","key":"financial_transaction_id"}]}},"response":[{"id":"d7687ee9-730c-4585-b862-bc67ca5a3f87","name":"Get Employee Financial Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee/financial_transactions/:financial_transaction_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee","financial_transactions",":financial_transaction_id"],"query":[{"key":"include[]","value":"financial_transaction.employee","disabled":true},{"key":"include[]","value":"financial_transaction.financial_transaction_type","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee","value":"{{employee_id}}"},{"key":"financial_transaction_id","value":"{{financial_transaction_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"cc34ae94fba38d428fda3843eb655824\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"95bda4be-f346-4483-b1a7-930da233d2c2"},{"key":"X-Runtime","value":"0.112596"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"431"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1216967,\n    \"financial_transaction_type\": {\n        \"id\": 33274\n    },\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"transaction_status\": \"added_by_hr\",\n    \"direction\": \"company_expense\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 15.999,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"test\",\n    \"effective_date\": \"2024-06-01\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-28T10:42:07.847Z\",\n    \"updated_at\": \"2024-05-28T10:42:07.847Z\"\n}"}],"_postman_id":"511bda7e-ad1b-4317-8e79-8132d700adaa"}],"id":"49337019-5e8b-4943-9e5a-1a021e2b1fcc","_postman_id":"49337019-5e8b-4943-9e5a-1a021e2b1fcc","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Employee Timeoff Transaction","item":[{"name":"List Employee Timeoff Transactions","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee\": { \"type\": \"object\" },","                        \"timeoff\": { \"type\": \"object\" },","                        \"from_date\": { \"type\": [\"string\", \"null\"] },","                        \"to_date\": { \"type\": [\"string\", \"null\"] },","                        \"amount\": { \"type\": \"number\" },","                        \"notes\": { \"type\": [\"string\", \"null\"] },","                        \"status\": { \"type\": \"string\" },","                        \"class_name\": { \"type\": \"string\" },","                        \"resumption_date\": { \"type\": \"string\" },","                        \"consider_taken_days\": { \"type\": \"boolean\" },","                        \"payroll_setup_info\": { \"type\": [\"object\", \"null\"] },","                        \"effective_date\": { \"type\": [\"string\", \"null\"] },","                        \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"employee\", \"timeoff\", \"from_date\", \"to_date\", \"amount\", \"notes\", \"status\", \"class_name\", \"resumption_date\", \"consider_taken_days\", \"payroll_setup_info\", \"effective_date\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var timeoffTransactionId = responseBody.data[0].id;","pm.environment.set(\"timeoff_transaction_id\", timeoffTransactionId);"],"type":"text/javascript","id":"478dad67-708b-41a7-8480-fd6056a7f41c"}}],"id":"cc5968a4-09e7-4f78-af02-1c0666003598","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/timeoff_transactions","description":"<p>This API end-point will list all of timeoff transactions for an employee by employee_id, branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","timeoff_transactions"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include[]","value":"timeoff_transaction.employee"},{"disabled":true,"key":"include[]","value":"timeoff_transaction.timeoff"},{"disabled":true,"key":"filter[id][]","value":"15399"},{"disabled":true,"key":"filter[timeoff_id][]","value":"809"},{"disabled":true,"key":"filter[amount][]","value":"2"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[from_date][from]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[from_date][to]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[to_date][from]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[to_date][to]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][from]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][to]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[resumption_date][from]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[resumption_date][to]","value":"2022-11-19"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: timeoff_id, dir: desc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: from_date, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: to_date, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: amount, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_date, dir: asc}"}],"variable":[{"id":"78ca456e-9521-4045-82d0-56d2ebd1040c","type":"any","value":"","key":"branch_id"},{"id":"cc4e3d0f-b158-4196-97ba-4815a7902773","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"fa005738-5e09-466c-9687-3145f3b34eb6","name":"List Employee Timeoff Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/timeoff_transactions?page=1&limit=10","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","timeoff_transactions"],"query":[{"key":"include","value":"attendance_record.attendance_details, attendance_record.attendance_machine","disabled":true},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"97b6decd098a3a2d2278cd98a4ce81ce\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"82ccd8d4-f478-416a-978b-2e0ef75df3c1"},{"key":"X-Runtime","value":"0.028898"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"4789"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 266,\n        \"total_pages\": 27\n    },\n    \"data\": [\n        {\n            \"id\": 62918,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 816\n            },\n            \"from_date\": \"2018-10-08T00:00:00.000+03:00\",\n            \"to_date\": \"2018-10-08T00:00:00.000+03:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"cancelled\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2018-10-09T00:00:00.000+03:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2018-12-20T17:29:54.731+02:00\",\n            \"updated_at\": \"2020-01-26T21:53:30.087Z\"\n        },\n        {\n            \"id\": 75030,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 809\n            },\n            \"from_date\": \"2019-02-01T00:00:00.000+02:00\",\n            \"to_date\": \"2019-03-03T00:00:00.000+02:00\",\n            \"amount\": 21,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-03-04T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-10T18:46:45.707+02:00\",\n            \"updated_at\": \"2020-01-26T23:33:18.073Z\"\n        },\n        {\n            \"id\": 75486,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 817\n            },\n            \"from_date\": \"2019-01-18T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-18T00:00:00.000+02:00\",\n            \"amount\": 0,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-19T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-13T12:27:27.859+02:00\",\n            \"updated_at\": \"2020-01-26T23:39:01.220Z\"\n        },\n        {\n            \"id\": 80306,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-20T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 2,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T13:34:06.378+02:00\",\n            \"updated_at\": \"2020-01-27T00:21:05.054Z\"\n        },\n        {\n            \"id\": 80327,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"cancelled\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-23T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T14:49:17.777+02:00\",\n            \"updated_at\": \"2020-01-26T19:22:55.776Z\"\n        },\n        {\n            \"id\": 80328,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-23T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-23T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-24T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T14:58:28.412+02:00\",\n            \"updated_at\": \"2020-01-27T00:20:49.697Z\"\n        },\n        {\n            \"id\": 80335,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-20T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-20T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:02:53.074+02:00\",\n            \"updated_at\": \"2020-01-27T00:22:15.541Z\"\n        },\n        {\n            \"id\": 80338,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:04:12.846+02:00\",\n            \"updated_at\": \"2020-01-27T00:21:30.692Z\"\n        },\n        {\n            \"id\": 80342,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 817\n            },\n            \"from_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"rejected\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:11:46.884+02:00\",\n            \"updated_at\": \"2020-01-27T00:20:49.871Z\"\n        },\n        {\n            \"id\": 80344,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:14:57.786+02:00\",\n            \"updated_at\": \"2020-01-27T00:20:04.580Z\"\n        }\n    ]\n}"}],"_postman_id":"cc5968a4-09e7-4f78-af02-1c0666003598"},{"name":"Get Employee Timeoff Transaction","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"}","                },","                \"required\": [\"id\"]","            },","            \"timeoff\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"}","                },","                \"required\": [\"id\"]","            },","            \"from_date\": {\"type\": \"string\"},","            \"to_date\": {\"type\": \"string\"},","            \"amount\": {\"type\": \"number\"},","            \"notes\": {\"type\": \"string\"},","            \"status\": {\"type\": \"string\"},","            \"class_name\": {\"type\": \"string\"},","            \"resumption_date\": {\"type\": \"string\"},","            \"consider_taken_days\": {\"type\": \"boolean\"},","            \"payroll_setup_info\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": {\"type\": \"number\"},","                    \"branch_id\": {\"type\": \"number\"},","                    \"custom\": {\"type\": \"boolean\"},","                    \"deduct_absence\": {\"type\": \"boolean\"},","                    \"calendar_days_on_hiring_termination\": {\"type\": \"boolean\"},","                    \"cut_off_date\": {\"type\": \"number\"},","                    \"distribute_extra_salary\": {\"type\": \"boolean\"},","                    \"distribute_extra_salary_tax\": {\"type\": \"boolean\"},","                    \"absence_calc_base\": {\"type\": \"number\"},","                    \"absence_calc_mode\": {\"type\": \"number\"},","                    \"vacation_calc_base\": {\"type\": \"number\"},","                    \"overtime_calc_base\": {\"type\": \"number\"},","                    \"overtime_calc_cut_off_date\": {\"type\": \"boolean\"},","                    \"unpaid_calc_base\": {\"type\": \"number\"},","                    \"unpaid_calc_mode\": {\"type\": \"number\"},","                    \"created_at\": {\"type\": \"string\"},","                    \"updated_at\": {\"type\": \"string\"},","                    \"gl_identifiers\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"stb\": {\"type\": \"string\"},","                            \"tax\": {\"type\": \"string\"},","                            \"branch\": {\"type\": \"string\"},","                            \"ss_emp\": {\"type\": \"string\"},","                            \"ins_emp\": {\"type\": \"string\"},","                            \"ss_comp\": {\"type\": \"string\"},","                            \"ins_comp\": {\"type\": \"string\"},","                            \"clearance\": {\"type\": \"string\"},","                            \"net_income\": {\"type\": \"string\"},","                            \"basic_salary\": {\"type\": \"string\"},","                            \"total_salary\": {\"type\": \"string\"},","                            \"worth_salary\": {\"type\": \"string\"},","                            \"net_deduction\": {\"type\": \"string\"},","                            \"stb_clearance\": {\"type\": \"string\"},","                            \"tax_clearance\": {\"type\": \"string\"},","                            \"absence_amount\": {\"type\": \"string\"},","                            \"ss_comp_clearance\": {\"type\": \"string\"},","                            \"ins_comp_clearance\": {\"type\": \"string\"},","                            \"air_ticket_provision\": {\"type\": \"string\"},","                            \"extra_salary_provision\": {\"type\": \"string\"},","                            \"company_expenses_clearance\": {\"type\": \"string\"},","                            \"air_ticket_provision_clearance\": {\"type\": \"string\"},","                            \"offcycle_termination_clearance\": {\"type\": \"string\"},","                            \"part_time_transaction_clearance\": {\"type\": \"string\"},","                            \"vacation_compensation_clearance\": {\"type\": \"string\"},","                            \"vacation_compensation_provision\": {\"type\": \"string\"},","                            \"extra_salary_provision_clearance\": {\"type\": \"string\"},","                            \"service_termination_benefit_provision\": {\"type\": \"string\"},","                            \"vacation_compensation_provision_clearance\": {\"type\": \"string\"},","                            \"service_termination_benefit_provision_clearance\": {\"type\": \"string\"},","                            \"service_termination_benefit_provision_difference\": {\"type\": \"string\"},","                            \"service_termination_benefit_provision_difference_clearance\": {\"type\": \"string\"}","                        }","                    },","                    \"show_company_contributions\": {\"type\": \"boolean\"},","                    \"use_exceptional_ss\": {\"type\": \"boolean\"},","                    \"tax_excluded_transaction_types\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"absence\": {\"type\": \"string\"},","                            \"overtime\": {\"type\": \"string\"},","                            \"insurance\": {\"type\": \"string\"},","                            \"social_security\": {\"type\": \"string\"},","                            \"unpaid_vacation\": {\"type\": \"string\"},","                            \"vacation_compensation\": {\"type\": \"string\"}","                        }","                    },","                    \"one_time_financial_transaction_to_extra_salary\": {\"type\": \"boolean\"},","                    \"extra_salary_recurring_transactions_ids\": {\"type\": \"array\"},","                    \"extra_salary_prorated_in_final_settelment\": {\"type\": \"boolean\"},","                    \"social_security_id\": {\"type\": [\"number\", \"null\"]},","                    \"hazardous_social_security_id\": {\"type\": [\"number\", \"null\"]},","                    \"calc_unpaid_leaves_based_on_work_shift\": {\"type\": \"boolean\"},","                    \"calc_overtime_based_on_work_shift\": {\"type\": \"boolean\"},","                    \"tax_type\": {\"type\": \"string\"},","                    \"calc_martyrs_tax\": {\"type\": \"boolean\"},","                    \"gross_up\": {\"type\": \"boolean\"},","                    \"gross_up_financial_transaction_type_id\": {\"type\": [\"number\", \"null\"]},","                    \"pro_rated_tax\": {\"type\": \"boolean\"},","                    \"martyrs_type\": {\"type\": \"string\"},","                    \"show_actual_absence_days_calculation\": {\"type\": \"boolean\"},","                    \"show_cut_off_date\": {\"type\": \"boolean\"},","                    \"martyrs_exclude_unpaid\": {\"type\": \"boolean\"}","                }","            },","            \"effective_date\": {\"type\": [\"string\", \"null\"]},","            \"cancel_requested_on\": {\"type\": [\"string\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"employee\", \"timeoff\", \"from_date\", \"to_date\", \"amount\", \"notes\", \"status\", ","                     \"class_name\", \"resumption_date\", \"consider_taken_days\", \"payroll_setup_info\", ","                     \"effective_date\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"0fc71ab0-4ee2-4a17-bb88-ffd8421bf474"}}],"id":"112cf1fd-cc66-448c-8ee4-d784d40cf13d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/timeoff_transactions/:timeoff_transaction_id","description":"<p>This API end-point will show a timeoff transaction details for an employee by branch_id, employee_id and timeoff_transaction_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","timeoff_transactions",":timeoff_transaction_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"timeoff_transaction.timeoff"},{"disabled":true,"key":"include[]","value":"timeoff_transaction.employee"}],"variable":[{"id":"7e6e8637-cde5-403f-b071-d720bbf37c60","type":"any","value":"","key":"branch_id"},{"id":"ffc77f09-070c-41cc-a8dc-7525a537eac6","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"eabf9289-9690-4df9-8751-fddd621b3c5f","type":"any","value":"{{timeoff_transaction_id}}","key":"timeoff_transaction_id"}]}},"response":[{"id":"133c7f34-41fd-4d98-949b-f325bfee80f9","name":"Get Employee Timeoff Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/timeoff_transactions/:timeoff_transaction_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","timeoff_transactions",":timeoff_transaction_id"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"},{"key":"timeoff_transaction_id","value":"{{timeoff_transaction_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"047741c59e4fec40e2bccac5f9019a04\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"4070fa9d-bee7-4b2e-bd05-213156b3e1d4"},{"key":"X-Runtime","value":"0.040132"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"468"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 62918,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"timeoff\": {\n        \"id\": 816\n    },\n    \"from_date\": \"2018-10-08T00:00:00.000+03:00\",\n    \"to_date\": \"2018-10-08T00:00:00.000+03:00\",\n    \"amount\": 1,\n    \"notes\": \"\",\n    \"status\": \"cancelled\",\n    \"class_name\": \"TimeoffTransaction::Request\",\n    \"resumption_date\": \"2018-10-09T00:00:00.000+03:00\",\n    \"consider_taken_days\": false,\n    \"payroll_setup_info\": null,\n    \"effective_date\": null,\n    \"cancel_requested_on\": null,\n    \"created_at\": \"2018-12-20T17:29:54.731+02:00\",\n    \"updated_at\": \"2020-01-26T21:53:30.087Z\"\n}"}],"_postman_id":"112cf1fd-cc66-448c-8ee4-d784d40cf13d"},{"name":"Create Timeoff Transaction Request","id":"ffbfc87d-7603-4f43-a851-3041f3bcaa52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"timeoff_id","value":"","description":"<p>integer</p>\n","type":"text"},{"key":"from_date","value":"","description":"<p>date format YYYY-MM-DD</p>\n","type":"text"},{"key":"to_date","value":"","description":"<p>date format YYYY-MM-DD</p>\n","type":"text"},{"key":"effective_date","value":"","description":"<p>date format YYYY-MM-DD</p>\n","type":"text"},{"key":"notes","value":"","description":"<p>text</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/timeoff_transaction_requests","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","timeoff_transaction_requests"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"e672cd66-9da6-4ae2-9582-244f56ea191e","name":"Get Employee Timeoff Transaction Copy","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/timeoff_transactions/:timeoff_transaction_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","timeoff_transactions",":timeoff_transaction_id"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"},{"key":"timeoff_transaction_id","value":"{{timeoff_transaction_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"047741c59e4fec40e2bccac5f9019a04\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"4070fa9d-bee7-4b2e-bd05-213156b3e1d4"},{"key":"X-Runtime","value":"0.040132"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"468"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 62918,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"timeoff\": {\n        \"id\": 816\n    },\n    \"from_date\": \"2018-10-08T00:00:00.000+03:00\",\n    \"to_date\": \"2018-10-08T00:00:00.000+03:00\",\n    \"amount\": 1,\n    \"notes\": \"\",\n    \"status\": \"cancelled\",\n    \"class_name\": \"TimeoffTransaction::Request\",\n    \"resumption_date\": \"2018-10-09T00:00:00.000+03:00\",\n    \"consider_taken_days\": false,\n    \"payroll_setup_info\": null,\n    \"effective_date\": null,\n    \"cancel_requested_on\": null,\n    \"created_at\": \"2018-12-20T17:29:54.731+02:00\",\n    \"updated_at\": \"2020-01-26T21:53:30.087Z\"\n}"}],"_postman_id":"ffbfc87d-7603-4f43-a851-3041f3bcaa52"}],"id":"66a68bfb-7450-4f56-a470-5b495b8ca6ff","_postman_id":"66a68bfb-7450-4f56-a470-5b495b8ca6ff","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Employee Competencies","item":[{"name":"List Employee Competencies","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": {\"type\": \"number\"},","                    \"per_page\": {\"type\": \"number\"},","                    \"total_entries\": {\"type\": \"number\"},","                    \"total_pages\": {\"type\": \"number\"}","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"competency\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"required_level\": {\"type\": \"number\"},","                        \"achieved_level\": {\"type\": [\"number\", \"null\"]},","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"competency\", \"employee\", \"required_level\", \"achieved_level\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var EmployeeCompetencyId = responseBody.data[0].id;","pm.environment.set(\"employee_competency_id\", EmployeeCompetencyId);"],"type":"text/javascript","id":"aef90db3-4c38-498f-8157-e4cfa15594ba"}}],"id":"c402a770-241d-4d86-9cbb-0e6c7edacf67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"employee_competency.competencies_category"},{"disabled":true,"key":"include[]","value":"employee_competency.competency"},{"disabled":true,"key":"filter[id][]","value":"29"},{"disabled":true,"key":"filter[competency_id][]","value":"2"},{"disabled":true,"key":"filter[required_level][]","value":"5"},{"disabled":true,"key":"filter[achieved_level][]","value":"4"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-01-25"},{"disabled":true,"description":{"content":"<p>Format { column: column_name, dir: direction }\navailable directions [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[{"id":"580cd2f2-7b9b-4449-9cbc-895e275d6fa2","type":"any","value":"","key":"branch_id"},{"id":"2838d34a-7266-49bc-8489-b99c1110f808","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"4f17b4b5-75f2-448a-8e57-5e611b23365b","name":"List Employee Competencies","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies?include=employee_competency.competencies_category","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies"],"query":[{"key":"include","value":"employee_competency.competencies_category"}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"417fdb301c6d59697eb5b8e88b77df90\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"59f112b4-7d08-4b0c-b982-582e73f262bc"},{"key":"X-Runtime","value":"0.124184"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"3812"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 846,\n        \"total_pages\": 85\n    },\n    \"data\": [\n        {\n            \"id\": 1,\n            \"competency\": {\n                \"id\": 1,\n                \"competencies_category\": {\n                    \"id\": 2304,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": null,\n                        \"en\": \"test\"\n                    },\n                    \"levels\": 6,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2023-12-11T12:19:50.637Z\",\n                    \"updated_at\": \"2023-12-11T12:53:35.651Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 1158\n            },\n            \"required_level\": 5,\n            \"achieved_level\": 3,\n            \"created_at\": \"2018-11-18T15:10:42.202Z\",\n            \"updated_at\": \"2023-10-26\"\n        },\n        {\n            \"id\": 28,\n            \"competency\": {\n                \"id\": 1,\n                \"competencies_category\": {\n                    \"id\": 2304,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": null,\n                        \"en\": \"test\"\n                    },\n                    \"levels\": 6,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2023-12-11T12:19:50.637Z\",\n                    \"updated_at\": \"2023-12-11T12:53:35.651Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 11821\n            },\n            \"required_level\": 4,\n            \"achieved_level\": null,\n            \"created_at\": \"2018-11-19T12:54:25.178Z\",\n            \"updated_at\": \"2018-11-19\"\n        },\n        {\n            \"id\": 29,\n            \"competency\": {\n                \"id\": 1,\n                \"competencies_category\": {\n                    \"id\": 2304,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": null,\n                        \"en\": \"test\"\n                    },\n                    \"levels\": 6,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2023-12-11T12:19:50.637Z\",\n                    \"updated_at\": \"2023-12-11T12:53:35.651Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"required_level\": 5,\n            \"achieved_level\": 4,\n            \"created_at\": \"2018-11-22T07:48:58.902Z\",\n            \"updated_at\": \"2022-11-22\"\n        },\n        {\n            \"id\": 32,\n            \"competency\": {\n                \"id\": 2,\n                \"competencies_category\": {\n                    \"id\": 1,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"communication skills\"\n                    },\n                    \"levels\": 5,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2018-11-18T14:53:13.893Z\",\n                    \"updated_at\": \"2018-11-27T10:00:03.297Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 1154\n            },\n            \"required_level\": 3,\n            \"achieved_level\": null,\n            \"created_at\": \"2018-11-27T09:39:23.126Z\",\n            \"updated_at\": \"2018-11-27\"\n        },\n        {\n            \"id\": 40,\n            \"competency\": {\n                \"id\": 2,\n                \"competencies_category\": {\n                    \"id\": 1,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"communication skills\"\n                    },\n                    \"levels\": 5,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2018-11-18T14:53:13.893Z\",\n                    \"updated_at\": \"2018-11-27T10:00:03.297Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 11996\n            },\n            \"required_level\": 2,\n            \"achieved_level\": 2,\n            \"created_at\": \"2018-12-09T08:51:51.382Z\",\n            \"updated_at\": \"2018-12-09\"\n        },\n        {\n            \"id\": 79,\n            \"competency\": {\n                \"id\": 2,\n                \"competencies_category\": {\n                    \"id\": 1,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"communication skills\"\n                    },\n                    \"levels\": 5,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2018-11-18T14:53:13.893Z\",\n                    \"updated_at\": \"2018-11-27T10:00:03.297Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 14249\n            },\n            \"required_level\": 4,\n            \"achieved_level\": null,\n            \"created_at\": \"2019-02-12T09:15:57.377Z\",\n            \"updated_at\": \"2019-02-12\"\n        },\n        {\n            \"id\": 642,\n            \"competency\": {\n                \"id\": 85,\n                \"competencies_category\": {\n                    \"id\": 51,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Teamwork Skills \"\n                    },\n                    \"levels\": 5,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2019-02-15T15:17:12.896Z\",\n                    \"updated_at\": \"2019-03-16T13:02:21.761Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 15925\n            },\n            \"required_level\": 1,\n            \"achieved_level\": null,\n            \"created_at\": \"2019-04-03T12:54:27.338Z\",\n            \"updated_at\": \"2019-04-03\"\n        },\n        {\n            \"id\": 677,\n            \"competency\": {\n                \"id\": 85,\n                \"competencies_category\": {\n                    \"id\": 51,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Teamwork Skills \"\n                    },\n                    \"levels\": 5,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2019-02-15T15:17:12.896Z\",\n                    \"updated_at\": \"2019-03-16T13:02:21.761Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"required_level\": 4,\n            \"achieved_level\": 3,\n            \"created_at\": \"2019-05-01T11:57:18.980Z\",\n            \"updated_at\": \"2019-05-01\"\n        },\n        {\n            \"id\": 686,\n            \"competency\": {\n                \"id\": 1,\n                \"competencies_category\": {\n                    \"id\": 2304,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": null,\n                        \"en\": \"test\"\n                    },\n                    \"levels\": 6,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2023-12-11T12:19:50.637Z\",\n                    \"updated_at\": \"2023-12-11T12:53:35.651Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 18147\n            },\n            \"required_level\": 5,\n            \"achieved_level\": null,\n            \"created_at\": \"2019-05-27T11:08:19.094Z\",\n            \"updated_at\": \"2019-05-27\"\n        },\n        {\n            \"id\": 687,\n            \"competency\": {\n                \"id\": 2,\n                \"competencies_category\": {\n                    \"id\": 1,\n                    \"branch\": {\n                        \"id\": 104\n                    },\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"communication skills\"\n                    },\n                    \"levels\": 5,\n                    \"linked_to_position\": true,\n                    \"created_at\": \"2018-11-18T14:53:13.893Z\",\n                    \"updated_at\": \"2018-11-27T10:00:03.297Z\"\n                }\n            },\n            \"employee\": {\n                \"id\": 18147\n            },\n            \"required_level\": 5,\n            \"achieved_level\": null,\n            \"created_at\": \"2019-05-27T11:08:19.173Z\",\n            \"updated_at\": \"2019-05-27\"\n        }\n    ]\n}"}],"_postman_id":"c402a770-241d-4d86-9cbb-0e6c7edacf67"},{"name":"Get Employee Competency","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"competency\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"required_level\": {\"type\": \"number\"},","                        \"achieved_level\": {\"type\": [\"number\", \"null\"]},","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"competency\", \"employee\", \"required_level\", \"achieved_level\"]","    }","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"fa196af5-d803-4ad3-abcb-820a72455af8"}}],"id":"bfa19992-643c-4018-9e07-1942cbc6c249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies/:employee_competency_id","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies",":employee_competency_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"employee_competency.competencies_category"},{"disabled":true,"key":"include[]","value":"employee_competency.competency"}],"variable":[{"id":"9fd358f9-deed-4a91-b8b6-1eba24b9800f","type":"any","value":"","key":"branch_id"},{"id":"e9a3efd5-7d71-4186-bde6-937d3b347898","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"a0b1fe62-5096-498a-9d98-6b8119243485","type":"any","value":"{{employee_competency_id}}","key":"employee_competency_id"}]}},"response":[{"id":"ff6711b4-345d-4855-9907-c811a0917eb2","name":"Get Employee Competency","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies/:employee_competency_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies",":employee_competency_id"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"},{"key":"employee_competency_id","value":"{{employee_competency_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"9f5fca2e6849e5567757e70fb4b11d30\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c3e7175b-9a05-47a6-a2f3-a4f19a819be5"},{"key":"X-Runtime","value":"0.030229"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"157"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"competency\": {\n        \"id\": 1\n    },\n    \"employee\": {\n        \"id\": 1158\n    },\n    \"required_level\": 5,\n    \"achieved_level\": 3,\n    \"created_at\": \"2018-11-18T15:10:42.202Z\",\n    \"updated_at\": \"2023-10-26\"\n}"}],"_postman_id":"bfa19992-643c-4018-9e07-1942cbc6c249"},{"name":"Create Employee Competency","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competency\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"required_level\": {\"type\": \"number\"},","            \"achieved_level\": {\"type\": [\"number\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competency\", \"employee\", \"required_level\", \"achieved_level\"]","    }","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"7309331b-86bb-4b0f-a08f-ca329451e774"}}],"id":"bcab10f6-6938-4807-abf4-6d865f29dda5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"name[ar]","value":"test","type":"text"},{"key":"competency_id","value":"6789","type":"text"},{"key":"required_level","value":"5","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"76a9f267-56bf-4633-b099-22d89aaa7bc0","type":"any","value":"","key":"branch_id"},{"id":"dfaf1f5a-68a4-49c9-859b-8eb18be1a397","type":"any","value":"{{employee_id}}","key":"employee_id"}]}},"response":[{"id":"bb9d749c-6f40-42b3-853c-a7b497a89946","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"competency_id","value":"{{competency_id}}","type":"text"},{"key":"required_level","value":"5","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"4cf138aa0febbdb0b93cae14e55c59ab\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ce814100-0ac3-4be9-9697-0617de66a54d"},{"key":"X-Runtime","value":"0.144132"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"169"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 97202,\n    \"competency\": {\n        \"id\": 13295\n    },\n    \"employee\": {\n        \"id\": 98417\n    },\n    \"required_level\": 5,\n    \"achieved_level\": null,\n    \"created_at\": \"2023-12-11T13:59:54.176Z\",\n    \"updated_at\": \"2023-12-11\"\n}"}],"_postman_id":"bcab10f6-6938-4807-abf4-6d865f29dda5"},{"name":"Update Employee Competency","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competency\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"required_level\": {\"type\": \"number\"},","            \"achieved_level\": {\"type\": [\"number\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competency\", \"employee\", \"required_level\", \"achieved_level\"]","    }","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"40fea839-4523-414e-b119-fbc69f8e0c29"}}],"id":"b52dc45a-9af2-4d4e-8862-23294de37d56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"achieved_level","value":"1","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies/:employee_competency_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies",":employee_competency_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"18a0f539-e3ef-4521-aa58-a97528e020f0","type":"any","value":"","key":"branch_id"},{"id":"df6601c7-5d11-403c-9192-88fe53b11f13","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"1bbbf07e-5fd0-4ab9-a0a1-882a6fb8c28f","type":"any","value":"{{employee_competency_id}}","key":"employee_competency_id"}]}},"response":[{"id":"755b58c1-57fe-4fec-bd7d-52b8bcb8d62d","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"achieved_level","value":"1","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies/:employee_competency_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies",":employee_competency_id"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"},{"key":"employee_competency_id","value":"{{employee_competency_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6791dcffb01588688cfc75b05d4f0d2c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f3216645-a7b9-46c8-a8a1-fb4b430db669"},{"key":"X-Runtime","value":"0.097363"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"158"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"competency\": {\n        \"id\": 1\n    },\n    \"employee\": {\n        \"id\": 98417\n    },\n    \"required_level\": 5,\n    \"achieved_level\": 1,\n    \"created_at\": \"2018-11-18T15:10:42.202Z\",\n    \"updated_at\": \"2023-12-11\"\n}"},{"id":"c0e98a1d-f949-4d3f-b01e-3fbcadc96536","name":"Failed","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"achieved_level","value":"100","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies/:employee_competency_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies",":employee_competency_id"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"},{"key":"employee_competency_id","value":"{{employee_competency_id}}"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"b09afd11-773f-4a78-84f8-6d9781c202c0"},{"key":"X-Runtime","value":"0.056334"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": null,\n        \"message\": \"Validation failed: Achieved level translation missing: en.achieved_level_should_not_exceed_category_level\",\n        \"errors\": {\n            \"ar\": [\n                \"translation missing: en.achieved_level_should_not_exceed_category_level\"\n            ],\n            \"en\": [\n                \"Achieved level translation missing: en.achieved_level_should_not_exceed_category_level\"\n            ]\n        },\n        \"object\": {\n            \"employee_id\": 98417,\n            \"achieved_level\": 100,\n            \"id\": 1,\n            \"competency_id\": 1,\n            \"required_level\": 5,\n            \"created_at\": \"2018-11-18T15:10:42.202Z\",\n            \"updated_at\": \"2023-12-11\"\n        }\n    }\n}"}],"_postman_id":"b52dc45a-9af2-4d4e-8862-23294de37d56"},{"name":"Delete Competency","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 204","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","id":"3e7dcfdf-25a0-465e-98ed-6cfdd32a6414"}}],"id":"e9b845cd-c912-41bc-ad82-f1a619591664","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies/:employee_competency_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies",":employee_competency_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"f03c1990-2ce2-415d-acc7-3d70827d4100","type":"any","value":"","key":"branch_id"},{"id":"f0469fcd-73cd-42b0-8839-ffa3937b47a2","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"2778e4f7-effe-4652-a657-6a0a584ca1d1","type":"any","value":"{{employee_competency_id}}","key":"employee_competency_id"}]}},"response":[{"id":"30ba6376-62c6-4f83-83eb-c4d3369cf15b","name":"Delete Competency","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_competencies/:employee_competency_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","employee_competencies",":employee_competency_id"],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"},{"key":"employee_competency_id","value":"{{employee_competency_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"fb806fc2-0daf-4da2-9bb6-99cfca488526"},{"key":"X-Runtime","value":"0.092429"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e9b845cd-c912-41bc-ad82-f1a619591664"}],"id":"06a4c449-21b6-468d-8749-7554b2c83243","_postman_id":"06a4c449-21b6-468d-8749-7554b2c83243","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Approvals","item":[{"name":"List Approvals","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response schema is valid\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch_id\": {\"type\": \"number\"},","            \"employment_number\": {\"type\": \"string\"},","            \"email\": {\"type\": \"string\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"last_name\": {\"type\": \"string\"},","                            \"first_name\": {\"type\": \"string\"},","                            \"third_name\": {\"type\": \"string\"},","                            \"second_name\": {\"type\": \"string\"}","                        }","                    },","                    \"ar\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"last_name\": {\"type\": \"string\"},","                            \"first_name\": {\"type\": \"string\"},","                            \"third_name\": {\"type\": \"string\"},","                            \"second_name\": {\"type\": \"string\"}","                        }","                    }","                }","            },","            \"birthdate\": {\"type\": \"string\"},","            \"hiring_date\": {\"type\": \"string\"},","            \"fixing_date\": {\"type\": \"string\"},","            \"termination_date\": {\"type\": [\"string\", \"null\"]},","            \"fixed\": {\"type\": [\"boolean\", \"null\"]},","            \"gender\": {\"type\": \"string\"},","            \"marital_status\": {\"type\": \"string\"},","            \"mobile_number\": {\"type\": \"string\"},","            \"number\": {\"type\": \"string\"},","            \"ext_number\": {\"type\": \"string\"},","            \"personal_email\": {\"type\": \"string\"},","            \"religion\": {\"type\": \"string\"},","            \"citizen\": {\"type\": \"boolean\"},","            \"labour_card\": {\"type\": \"string\"},","            \"end_of_contract\": {\"type\": [\"string\", \"null\"]},","            \"mol_number\": {\"type\": \"string\"},","            \"resident_id\": {\"type\": \"string\"},","            \"labour_card_expiry\": {\"type\": [\"string\", \"null\"]},","            \"passport_number\": {\"type\": \"string\"},","            \"address\": {\"type\": \"string\"},","            \"contract_type\": {\"type\": \"number\"},","            \"nationalities\": {\"type\": \"array\"},","            \"active\": {\"type\": \"boolean\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        }","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"4f04c0ef-dab2-47a4-a40e-a00346efe12a"}}],"id":"6ec78bbd-479f-4d97-bc4d-68cdf7f5bc22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/approvals","description":"<p>This API end-point will show approvals by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","approvals"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"4"},{"disabled":true,"key":"filter[created_at][to]","value":"2020-12-30"},{"disabled":true,"key":"filter[action_time][from]","value":"2018-01-01"},{"disabled":true,"key":"filter[created_at][exact]","value":""},{"disabled":true,"key":"order","value":"[{column: approvals.id, direction: asc}]"},{"disabled":true,"key":"filter[status]","value":"2"},{"disabled":true,"key":"filter[approval_cycle][approvable_type]","value":"TimeoffTransaction"},{"disabled":true,"key":"filter[approval_cycle][approvable_type]","value":"SalaryBatch"},{"disabled":true,"key":"","value":""}],"variable":[{"id":"95c97d1f-31c4-4f5a-a03e-0f14d08ddcf6","type":"any","value":"","key":"branch_id"},{"id":"8dff3e02-cb6a-4612-ab51-bb48b6c9db09","type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"65fb3cd7-2ef2-431e-997e-208c1c2d1ab0","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id"],"query":[{"key":"include","value":"employee.financial_datum","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b8bcc0122b65b0a052d8d0091ae10272\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d5556d65-9f2a-498d-b0e9-7c781350b474"},{"key":"X-Runtime","value":"0.048273"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"768"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 98417,\n    \"branch_id\": 104,\n    \"employment_number\": \"500134871210\",\n    \"email\": \"nowar+87@zenhr.com\",\n    \"name\": {\n        \"en\": {\n            \"last_name\": \"test\",\n            \"first_name\": \"test\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        },\n        \"ar\": {\n            \"last_name\": \"\",\n            \"first_name\": \"\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        }\n    },\n    \"birthdate\": \"2022-01-01\",\n    \"hiring_date\": \"2022-05-01\",\n    \"fixing_date\": \"2022-07-31\",\n    \"termination_date\": \"2022-05-31\",\n    \"fixed\": null,\n    \"gender\": \"\",\n    \"marital_status\": \"\",\n    \"mobile_number\": \"\",\n    \"number\": \"\",\n    \"ext_number\": \"\",\n    \"personal_email\": \"\",\n    \"religion\": \"\",\n    \"citizen\": true,\n    \"labour_card\": \"\",\n    \"end_of_contract\": null,\n    \"mol_number\": \"\",\n    \"resident_id\": \"\",\n    \"labour_card_expiry\": null,\n    \"passport_number\": \"\",\n    \"address\": \"\",\n    \"contract_type\": 1,\n    \"nationalities\": [],\n    \"active\": false,\n    \"created_at\": \"2022-05-17T13:55:14.049Z\",\n    \"updated_at\": \"2023-05-12T16:36:02.509Z\"\n}"},{"id":"3506a6f5-5c39-448e-9116-5fe22f59d1ea","name":"Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://zenhr.local:3000/api/v3/branches/:branch_id/employees/:employee_id","protocol":"http","host":["zenhr","local"],"port":"3000","path":["api","v3","branches",":branch_id","employees",":employee_id"],"query":[{"key":"include","value":"employee.financial_datum","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"8b36dd0b-cfae-4426-965c-bc7c4a413619"},{"key":"X-Runtime","value":"0.049657"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": \"not_found\",\n        \"message\": \"Couldn't find Employee with 'id'={{employee_id}}\",\n        \"errors\": {\n            \"ar\": [\n                \"Couldn't find Employee with 'id'={{employee_id}}, yes\"\n            ],\n            \"en\": [\n                \"Couldn't find Employee with 'id'={{employee_id}}\"\n            ]\n        },\n        \"object\": null\n    }\n}"}],"_postman_id":"6ec78bbd-479f-4d97-bc4d-68cdf7f5bc22"},{"name":"Get Approval","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response schema is valid\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch_id\": {\"type\": \"number\"},","            \"employment_number\": {\"type\": \"string\"},","            \"email\": {\"type\": \"string\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"last_name\": {\"type\": \"string\"},","                            \"first_name\": {\"type\": \"string\"},","                            \"third_name\": {\"type\": \"string\"},","                            \"second_name\": {\"type\": \"string\"}","                        }","                    },","                    \"ar\": {","                        \"type\": \"object\",","                        \"properties\": {","                            \"last_name\": {\"type\": \"string\"},","                            \"first_name\": {\"type\": \"string\"},","                            \"third_name\": {\"type\": \"string\"},","                            \"second_name\": {\"type\": \"string\"}","                        }","                    }","                }","            },","            \"birthdate\": {\"type\": \"string\"},","            \"hiring_date\": {\"type\": \"string\"},","            \"fixing_date\": {\"type\": \"string\"},","            \"termination_date\": {\"type\": [\"string\", \"null\"]},","            \"fixed\": {\"type\": [\"boolean\", \"null\"]},","            \"gender\": {\"type\": \"string\"},","            \"marital_status\": {\"type\": \"string\"},","            \"mobile_number\": {\"type\": \"string\"},","            \"number\": {\"type\": \"string\"},","            \"ext_number\": {\"type\": \"string\"},","            \"personal_email\": {\"type\": \"string\"},","            \"religion\": {\"type\": \"string\"},","            \"citizen\": {\"type\": \"boolean\"},","            \"labour_card\": {\"type\": \"string\"},","            \"end_of_contract\": {\"type\": [\"string\", \"null\"]},","            \"mol_number\": {\"type\": \"string\"},","            \"resident_id\": {\"type\": \"string\"},","            \"labour_card_expiry\": {\"type\": [\"string\", \"null\"]},","            \"passport_number\": {\"type\": \"string\"},","            \"address\": {\"type\": \"string\"},","            \"contract_type\": {\"type\": \"number\"},","            \"nationalities\": {\"type\": \"array\"},","            \"active\": {\"type\": \"boolean\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        }","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"ea1e9518-f68a-407a-842b-780000bd2107"}}],"id":"e829e05b-cc36-41af-8029-00bdd2f68499","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/approvals/:approval_id","description":"<p>This API end-point will show approvals by branch_id and employee_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","approvals",":approval_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"4"},{"disabled":true,"key":"filter[created_at][to]","value":"2020-12-30"},{"disabled":true,"key":"filter[action_time][from]","value":"2018-01-01"},{"disabled":true,"key":"filter[created_at][exact]","value":""},{"disabled":true,"key":"order","value":"[{column: approvals.id, direction: asc}]"}],"variable":[{"id":"9dfcb8fa-d7fe-4b8e-b38d-076dea853d86","type":"any","value":"","key":"branch_id"},{"id":"bf3e72bb-a215-4bb4-8537-d345f676b044","type":"any","value":"{{employee_id}}","key":"employee_id"},{"id":"06e28f31-0ca4-4bdd-a0f5-ebf9e9aafa32","type":"any","value":"","key":"approval_id"}]}},"response":[{"id":"0c1ee390-c8b6-457f-b4a7-8d62c16b0f2f","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id"],"query":[{"key":"include","value":"employee.financial_datum","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":"{{employee_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b8bcc0122b65b0a052d8d0091ae10272\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d5556d65-9f2a-498d-b0e9-7c781350b474"},{"key":"X-Runtime","value":"0.048273"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"768"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 98417,\n    \"branch_id\": 104,\n    \"employment_number\": \"500134871210\",\n    \"email\": \"nowar+87@zenhr.com\",\n    \"name\": {\n        \"en\": {\n            \"last_name\": \"test\",\n            \"first_name\": \"test\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        },\n        \"ar\": {\n            \"last_name\": \"\",\n            \"first_name\": \"\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        }\n    },\n    \"birthdate\": \"2022-01-01\",\n    \"hiring_date\": \"2022-05-01\",\n    \"fixing_date\": \"2022-07-31\",\n    \"termination_date\": \"2022-05-31\",\n    \"fixed\": null,\n    \"gender\": \"\",\n    \"marital_status\": \"\",\n    \"mobile_number\": \"\",\n    \"number\": \"\",\n    \"ext_number\": \"\",\n    \"personal_email\": \"\",\n    \"religion\": \"\",\n    \"citizen\": true,\n    \"labour_card\": \"\",\n    \"end_of_contract\": null,\n    \"mol_number\": \"\",\n    \"resident_id\": \"\",\n    \"labour_card_expiry\": null,\n    \"passport_number\": \"\",\n    \"address\": \"\",\n    \"contract_type\": 1,\n    \"nationalities\": [],\n    \"active\": false,\n    \"created_at\": \"2022-05-17T13:55:14.049Z\",\n    \"updated_at\": \"2023-05-12T16:36:02.509Z\"\n}"},{"id":"b917cd90-e47e-4e57-954b-67daed8106dc","name":"Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://zenhr.local:3000/api/v3/branches/:branch_id/employees/:employee_id","protocol":"http","host":["zenhr","local"],"port":"3000","path":["api","v3","branches",":branch_id","employees",":employee_id"],"query":[{"key":"include","value":"employee.financial_datum","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"8b36dd0b-cfae-4426-965c-bc7c4a413619"},{"key":"X-Runtime","value":"0.049657"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": \"not_found\",\n        \"message\": \"Couldn't find Employee with 'id'={{employee_id}}\",\n        \"errors\": {\n            \"ar\": [\n                \"Couldn't find Employee with 'id'={{employee_id}}, yes\"\n            ],\n            \"en\": [\n                \"Couldn't find Employee with 'id'={{employee_id}}\"\n            ]\n        },\n        \"object\": null\n    }\n}"}],"_postman_id":"e829e05b-cc36-41af-8029-00bdd2f68499"}],"id":"98cdca21-246d-483f-8fbe-16f7c7095584","_postman_id":"98cdca21-246d-483f-8fbe-16f7c7095584","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Overtimes","item":[{"name":"List Overtime","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"54c4bd82-1241-43d4-a5b7-8ddb58139f84"}}],"id":"053722ee-9b48-4876-82e5-0f1bb94a8784","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/overtimes","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","overtimes"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include","value":"overtime.employee"},{"disabled":true,"key":"filter[integration_maps][global_id]","value":"test1"}],"variable":[{"id":"8575cd20-cc43-4c10-86fa-7d3c7d010dba","type":"any","value":"","key":"branch_id"},{"id":"a0236566-4c35-4e9a-8fd0-48050d71bf42","type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"52a4148d-b317-4d44-97e1-da6e76a23f73","name":"List Overtime","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employees/1159/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employees","1159","overtimes"],"query":[{"key":"page","value":"2","description":"Page number","disabled":true},{"key":"limit","value":"2","description":"Records limit per page","disabled":true},{"key":"include","value":"overtime.employee","disabled":true},{"key":"filter[integration_maps][global_id]","value":"test1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"2308ff63ae23956ffd1a76aa972f48ac\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dee62c31-c21a-4d50-bacc-cff280ce0661"},{"key":"X-Runtime","value":"0.365044"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"11401"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 88,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 66,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2017-09-12T15:00:00.000Z\",\n            \"to\": \"2017-09-12T17:00:00.000Z\",\n            \"amount_fils\": 23958,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2017-09-26\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T10:22:41.140Z\",\n            \"updated_at\": \"2023-03-08T15:23:16.450Z\"\n        },\n        {\n            \"id\": 634,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-08-01T15:00:00.000Z\",\n            \"to\": \"2018-08-01T17:00:00.000Z\",\n            \"amount_fils\": 26043,\n            \"amount_currency\": \"JOD\",\n            \"status\": 4,\n            \"effective_date\": \"2018-08-01\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-02T08:23:08.941Z\",\n            \"updated_at\": \"2023-03-08T15:23:48.050Z\"\n        },\n        {\n            \"id\": 645,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-07-04T14:00:00.000Z\",\n            \"to\": \"2018-07-04T18:00:00.000Z\",\n            \"amount_fils\": 52085,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2018-07-04\",\n            \"duration\": 240,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 4,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-03T14:51:28.744Z\",\n            \"updated_at\": \"2023-03-08T15:23:48.637Z\"\n        },\n        {\n            \"id\": 646,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-07-05T14:00:00.000Z\",\n            \"to\": \"2018-07-05T19:00:00.000Z\",\n            \"amount_fils\": 65106,\n            \"amount_currency\": \"JOD\",\n            \"status\": 3,\n            \"effective_date\": \"2018-08-01\",\n            \"duration\": 300,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 5,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-03T15:16:28.267Z\",\n            \"updated_at\": \"2023-03-08T15:23:48.690Z\"\n        },\n        {\n            \"id\": 1876,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-20T23:05:00.000Z\",\n            \"to\": \"2019-01-21T00:10:00.000Z\",\n            \"amount_fils\": 14423,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-21\",\n            \"duration\": 65,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1.08,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-22T09:42:58.264Z\",\n            \"updated_at\": \"2023-03-08T15:24:56.597Z\"\n        },\n        {\n            \"id\": 1885,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-23T23:00:00.000Z\",\n            \"to\": \"2019-01-24T00:00:00.000Z\",\n            \"amount_fils\": 13355,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-24\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-23T12:16:27.086Z\",\n            \"updated_at\": \"2023-03-08T15:24:57.188Z\"\n        },\n        {\n            \"id\": 2048,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-02-04T13:41:00.000Z\",\n            \"to\": \"2019-02-04T15:09:00.000Z\",\n            \"amount_fils\": 19631,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2019-02-04\",\n            \"duration\": 88,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1.47,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-02-06T09:30:49.918Z\",\n            \"updated_at\": \"2023-03-08T15:25:05.260Z\"\n        },\n        {\n            \"id\": 4234,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-06-19T14:00:00.000Z\",\n            \"to\": \"2019-06-19T16:14:00.000Z\",\n            \"amount_fils\": 25810,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2019-06-19\",\n            \"duration\": 134,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2.23,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-07-02T15:00:36.755Z\",\n            \"updated_at\": \"2023-03-08T15:27:10.714Z\"\n        },\n        {\n            \"id\": 9379,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2020-01-14T17:00:00.000Z\",\n            \"to\": \"2020-01-14T19:00:00.000Z\",\n            \"amount_fils\": 36059,\n            \"amount_currency\": \"JOD\",\n            \"status\": 4,\n            \"effective_date\": \"2020-01-14\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"\",\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-01-14T11:38:58.514Z\",\n            \"updated_at\": \"2023-03-08T15:32:07.257Z\"\n        },\n        {\n            \"id\": 58283,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 6500\n            },\n            \"from\": \"2021-08-31T22:00:00.000Z\",\n            \"to\": \"2021-08-31T23:00:00.000Z\",\n            \"amount_fils\": 13021,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2021-09-01\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"nnsxsnxsn\",\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2021-07-26T13:57:36.257Z\",\n            \"updated_at\": \"2023-03-08T16:16:50.331Z\"\n        },\n        {\n            \"id\": 69227,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 6500\n            },\n            \"from\": \"2021-10-31T22:00:00.000Z\",\n            \"to\": \"2021-11-19T06:50:00.000Z\",\n            \"amount_fils\": 5755784,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2021-11-04\",\n            \"duration\": 26450,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": true,\n            \"deducted_duration\": 0,\n            \"notes\": \"jjj\",\n            \"calculated_total_hours\": 440.83,\n            \"integration_maps\": [],\n            \"created_at\": \"2021-11-04T10:24:17.192Z\",\n            \"updated_at\": \"2023-03-08T16:27:16.227Z\"\n        },\n        {\n            \"id\": 89124,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 8930\n            },\n            \"from\": \"2022-05-24T15:15:00.000Z\",\n            \"to\": \"2022-05-24T17:15:00.000Z\",\n            \"amount_fils\": 83333,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-05-24\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"test notes\",\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-02-17T06:21:43.956Z\",\n            \"updated_at\": \"2023-03-08T16:46:14.965Z\"\n        },\n        {\n            \"id\": 89559,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 8930\n            },\n            \"from\": \"2022-02-23T08:33:00.000Z\",\n            \"to\": \"2022-02-23T09:33:00.000Z\",\n            \"amount_fils\": 41666,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-02-23\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"Svedberg five re we freed\",\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-02-20T08:34:39.134Z\",\n            \"updated_at\": \"2023-03-08T16:46:41.471Z\"\n        },\n        {\n            \"id\": 98781,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-03-23T11:00:00.000Z\",\n            \"to\": \"2022-03-23T13:00:00.000Z\",\n            \"amount_fils\": 74075,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-03-23\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"sdfdsfdsfd\",\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-03-23T14:40:21.655Z\",\n            \"updated_at\": \"2024-02-22T10:05:42.220Z\"\n        },\n        {\n            \"id\": 115238,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 5943\n            },\n            \"from\": \"2022-04-30T21:00:00.000Z\",\n            \"to\": \"2022-05-01T01:10:00.000Z\",\n            \"amount_fils\": 154446,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-05-01\",\n            \"duration\": 250,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"\",\n            \"calculated_total_hours\": 4.17,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-05-16T10:57:51.517Z\",\n            \"updated_at\": \"2023-03-08T17:11:50.204Z\"\n        },\n        {\n            \"id\": 115673,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-05-09T21:00:00.000Z\",\n            \"to\": \"2022-05-10T03:20:00.000Z\",\n            \"amount_fils\": 234448,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-05-10\",\n            \"duration\": 380,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"\",\n            \"calculated_total_hours\": 6.33,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-05-17T14:48:04.623Z\",\n            \"updated_at\": \"2023-03-08T17:12:15.488Z\"\n        },\n        {\n            \"id\": 115679,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-05-11T22:00:00.000Z\",\n            \"to\": \"2022-05-23T22:05:00.000Z\",\n            \"amount_fils\": 10669763,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-05-12\",\n            \"duration\": 17285,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"\",\n            \"calculated_total_hours\": 288.08,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-05-17T15:09:11.830Z\",\n            \"updated_at\": \"2023-03-08T17:12:15.848Z\"\n        },\n        {\n            \"id\": 127453,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 10383\n            },\n            \"from\": \"2023-05-10T07:00:00.000Z\",\n            \"to\": \"2023-05-10T08:00:00.000Z\",\n            \"amount_fils\": 44445,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2023-05-10\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"\",\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-06-22T13:49:45.116Z\",\n            \"updated_at\": \"2023-03-08T17:23:39.671Z\"\n        },\n        {\n            \"id\": 161455,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 10383\n            },\n            \"from\": \"2022-08-31T15:58:00.000Z\",\n            \"to\": \"2022-08-31T19:58:00.000Z\",\n            \"amount_fils\": 172044,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-08-31\",\n            \"duration\": 240,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"Test\",\n            \"calculated_total_hours\": 4,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-08-29T16:00:21.178Z\",\n            \"updated_at\": \"2023-03-08T17:53:06.442Z\"\n        },\n        {\n            \"id\": 175175,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-09-27T14:00:00.000Z\",\n            \"to\": \"2022-09-27T19:00:00.000Z\",\n            \"amount_fils\": 185188,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-09-27\",\n            \"duration\": 300,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"werfgh\",\n            \"calculated_total_hours\": 5,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-09-25T09:41:07.198Z\",\n            \"updated_at\": \"2023-03-08T18:05:16.382Z\"\n        },\n        {\n            \"id\": 175262,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-09-26T14:00:00.000Z\",\n            \"to\": \"2022-09-26T19:00:00.000Z\",\n            \"amount_fils\": 185188,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-09-26\",\n            \"duration\": 300,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"aserdfghj\",\n            \"calculated_total_hours\": 5,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-09-25T13:00:32.292Z\",\n            \"updated_at\": \"2023-03-08T18:05:21.457Z\"\n        },\n        {\n            \"id\": 200579,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-11-23T08:40:00.000Z\",\n            \"to\": \"2022-11-24T08:40:00.000Z\",\n            \"amount_fils\": 363630,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-11-23\",\n            \"duration\": 1440,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"Test\",\n            \"calculated_total_hours\": 24,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-11-10T09:20:39.606Z\",\n            \"updated_at\": \"2023-03-08T18:30:16.841Z\"\n        },\n        {\n            \"id\": 202305,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-11-16T09:00:00.000Z\",\n            \"to\": \"2022-11-16T13:00:00.000Z\",\n            \"amount_fils\": 60605,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-11-16\",\n            \"duration\": 240,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"Test\",\n            \"calculated_total_hours\": 4,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-11-14T12:08:39.052Z\",\n            \"updated_at\": \"2023-03-08T18:31:55.353Z\"\n        },\n        {\n            \"id\": 202503,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-11-14T16:21:00.000Z\",\n            \"to\": \"2022-11-14T18:00:00.000Z\",\n            \"amount_fils\": 25000,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-11-14\",\n            \"duration\": 99,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"Test\",\n            \"calculated_total_hours\": 1.65,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-11-14T15:10:44.922Z\",\n            \"updated_at\": \"2023-03-08T18:32:08.126Z\"\n        },\n        {\n            \"id\": 202511,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 9506\n            },\n            \"from\": \"2022-11-13T09:00:00.000Z\",\n            \"to\": \"2022-11-13T11:00:00.000Z\",\n            \"amount_fils\": 30303,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2022-11-13\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"Test\",\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-11-14T15:17:06.368Z\",\n            \"updated_at\": \"2023-03-08T18:32:08.560Z\"\n        }\n    ]\n}"}],"_postman_id":"053722ee-9b48-4876-82e5-0f1bb94a8784"},{"name":"Get Overtime","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"ad9663a2-6ea6-4bc5-bf89-5e58f3a01243"}}],"id":"c871cca3-c880-4a7e-97b5-6f39dfaf9931","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/overtimes/:overtime_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","overtimes",":overtime_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include","value":"overtime.employee"}],"variable":[{"id":"32060598-41fe-4430-afbd-ddaedeb09555","type":"any","value":"","key":"branch_id"},{"id":"506af757-3f48-422a-a9e6-2414c02393db","type":"any","value":"","key":"employee_id"},{"id":"1388e157-14c1-4330-9de9-bb18354293b9","type":"any","value":"","key":"overtime_id"}]}},"response":[{"id":"6a548ad5-7902-48a0-846f-cd8d4012c8bf","name":"Get Overtime","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/overtimes/66","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees",":employee_id","overtimes","66"],"query":[{"key":"page","value":"2","description":"Page number","disabled":true},{"key":"limit","value":"2","description":"Records limit per page","disabled":true},{"key":"include","value":"overtime.employee","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"employee_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"35b93d3c3ea38d5439e6d5f34bfd3d83\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"77b4f1ae-e69e-471e-a433-c559c2b0c8c5"},{"key":"X-Runtime","value":"0.130180"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"444"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 66,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2017-09-12T15:00:00.000Z\",\n    \"to\": \"2017-09-12T17:00:00.000Z\",\n    \"amount_fils\": 23958,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2017-09-26\",\n    \"duration\": 120,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": 0,\n    \"notes\": null,\n    \"calculated_total_hours\": 2,\n    \"integration_maps\": [],\n    \"created_at\": \"2017-09-26T10:22:41.140Z\",\n    \"updated_at\": \"2023-03-08T15:23:16.450Z\"\n}"}],"_postman_id":"c871cca3-c880-4a7e-97b5-6f39dfaf9931"},{"name":"Create Overtime","id":"eb73a9b6-ebcd-40b3-8c85-bec05d144de5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/overtimes","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","overtimes"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"2d794562-03a7-4441-8905-4812760c68b4","type":"any","value":"","key":"branch_id"},{"id":"ad5c7fdc-9003-48eb-8006-1c8df645ab5b","type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"239f9462-05e7-47d2-a40f-1a590c9220e6","name":"Create Overtime","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2023-01-01","type":"text"},{"key":"to","value":"2023-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2023-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"global_id","value":"test1","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/1159/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees","1159","overtimes"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5d3eebc92c1cdca67fa26b7bc4ee059d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"91018b40-f249-433f-9589-0bffbd34ec25"},{"key":"X-Runtime","value":"0.578072"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"474"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787801,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2023-01-01T00:00:00.000Z\",\n    \"to\": \"2023-01-02T00:00:00.000Z\",\n    \"amount_fils\": 967740,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2023-01-01\",\n    \"duration\": 1440,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test\",\n    \"calculated_total_hours\": 0,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T13:49:49.801Z\",\n    \"updated_at\": \"2024-05-30T13:49:49.801Z\"\n}"}],"_postman_id":"eb73a9b6-ebcd-40b3-8c85-bec05d144de5"},{"name":"Create Overtime Request","id":"7dd42c5e-e27c-4ea6-935b-169f58759a57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"","type":"text","description":"<p>integer</p>\n"},{"key":"overtime_type_id","value":"","type":"text","description":"<p>integer</p>\n"},{"key":"from","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"to","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"amount_fils","value":"","type":"text","description":"<p>integer</p>\n"},{"key":"amount_currency","value":"","type":"text","description":"<p>string</p>\n"},{"key":"effective_date","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"cancel_requested_on","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"out_of_payroll","value":"","type":"text","description":"<p>boolean</p>\n"},{"key":"deducted_duration","value":"","type":"text","description":"<p>integer</p>\n"},{"key":"notes","value":"","type":"text","description":"<p>string</p>\n"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/overtime_requests","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","overtime_requests"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"8b36730b-8a4b-4671-a3f5-a6fda727453c","name":"Create Overtime","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2023-01-01","type":"text"},{"key":"to","value":"2023-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2023-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"global_id","value":"test1","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/1159/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees","1159","overtimes"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5d3eebc92c1cdca67fa26b7bc4ee059d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"91018b40-f249-433f-9589-0bffbd34ec25"},{"key":"X-Runtime","value":"0.578072"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"474"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787801,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2023-01-01T00:00:00.000Z\",\n    \"to\": \"2023-01-02T00:00:00.000Z\",\n    \"amount_fils\": 967740,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2023-01-01\",\n    \"duration\": 1440,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test\",\n    \"calculated_total_hours\": 0,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T13:49:49.801Z\",\n    \"updated_at\": \"2024-05-30T13:49:49.801Z\"\n}"}],"_postman_id":"7dd42c5e-e27c-4ea6-935b-169f58759a57"},{"name":"Destroy Overtime","id":"98e1f7ec-f2e4-430c-8896-5a2ae054b38e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/overtimes/:overtime_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","overtimes",":overtime_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"562f5841-acc1-4b2d-bd0c-b6b60ccd467a","type":"any","value":"","key":"branch_id"},{"id":"3047ef44-4670-4bf0-99e2-7676030b6266","type":"any","value":"","key":"employee_id"},{"id":"f8fce1ee-f8db-4840-82c0-b5786d58424f","type":"any","value":"","key":"overtime_id"}]}},"response":[{"id":"854266e1-cc10-493f-b58d-bce62c226939","name":"Create Overtime","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ef804bf2de645af4544bff24f2a12317\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dd4f99f6-afd6-4bb6-99da-45cee6e7953c"},{"key":"X-Runtime","value":"3.191726"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"432"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787800,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2022-01-01T00:00:00.000Z\",\n    \"to\": \"2022-01-02T00:00:00.000Z\",\n    \"amount_fils\": 967740,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2022-01-01\",\n    \"duration\": 1440,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test\",\n    \"calculated_total_hours\": 24,\n    \"created_at\": \"2024-04-28T14:52:06.683Z\",\n    \"updated_at\": \"2024-04-28T14:52:06.683Z\"\n}"}],"_postman_id":"98e1f7ec-f2e4-430c-8896-5a2ae054b38e"},{"name":"Edit Overtime","id":"24ffcbca-22e5-46c2-9293-5592d2114ee0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"global_id","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/overtimes/:overtime_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","overtimes",":overtime_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"dc959ecb-53fd-498e-9dcf-1df3cb6f8165","type":"any","value":"","key":"branch_id"},{"id":"ea3bae8c-27a4-49d1-ad19-b36b0104c59c","type":"any","value":"","key":"employee_id"},{"id":"c6510f23-be94-4d27-86e1-dc53ea7c457e","type":"any","value":"","key":"overtime_id"}]}},"response":[{"id":"d58aeae7-01e2-4d15-99a3-7cbbb8b4498f","name":"Edit Overtime","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2023-01-01","type":"text"},{"key":"to","value":"2023-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2023-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"global_id","value":"test1","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/1159/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","employees","1159","overtimes"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5d3eebc92c1cdca67fa26b7bc4ee059d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"91018b40-f249-433f-9589-0bffbd34ec25"},{"key":"X-Runtime","value":"0.578072"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"474"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787801,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2023-01-01T00:00:00.000Z\",\n    \"to\": \"2023-01-02T00:00:00.000Z\",\n    \"amount_fils\": 967740,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2023-01-01\",\n    \"duration\": 1440,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test\",\n    \"calculated_total_hours\": 0,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T13:49:49.801Z\",\n    \"updated_at\": \"2024-05-30T13:49:49.801Z\"\n}"}],"_postman_id":"24ffcbca-22e5-46c2-9293-5592d2114ee0"}],"id":"d011426d-ea4e-4134-9e2b-d501f9691fa8","_postman_id":"d011426d-ea4e-4134-9e2b-d501f9691fa8","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Loans","item":[{"name":"List Loans","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"33263e94-0f7f-4436-a089-8b2efa9eac43"}}],"id":"20d93324-d11b-4af2-b584-7cfc43eb30e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","loans"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include","value":"loan.employee"},{"disabled":true,"key":"include","value":"loan.loan_type"},{"disabled":true,"key":"filter[integration_maps][global_id]","value":"test1"}],"variable":[{"id":"a24c76bb-610e-4c2d-803d-ca1b7b6e5e7d","type":"any","value":"","key":"branch_id"},{"id":"1d5cfa3a-327a-4b7d-8e56-b73130d0de64","type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"800c8203-e371-43b1-89c3-0d545e1cb7d0","name":"List Loans","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employees/1159/loans","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employees","1159","loans"],"query":[{"key":"page","value":"2","description":"Page number","disabled":true},{"key":"limit","value":"2","description":"Records limit per page","disabled":true},{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true},{"key":"filter[integration_maps][global_id]","value":"test1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"1d76efd8af11221d3762486e74ee4552\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8c8b7f97-d2b1-4de4-bf04-b7ef5c2752dd"},{"key":"X-Runtime","value":"0.082060"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"10169"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 34,\n        \"total_pages\": 2\n    },\n    \"data\": [\n        {\n            \"id\": 1157,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 7000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-01-13\",\n            \"number_of_payments\": 14,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 63\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-01-13T14:05:45.539Z\",\n            \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n        },\n        {\n            \"id\": 6943,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 500000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2022-05-05\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 751\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2021-09-14T14:05:07.786Z\",\n            \"updated_at\": \"2021-09-14T14:05:08.202Z\"\n        },\n        {\n            \"id\": 8899,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 600000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2040-12-10\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 843\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-01-09T12:13:45.319Z\",\n            \"updated_at\": \"2022-01-24T13:33:37.799Z\"\n        },\n        {\n            \"id\": 9364,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 500000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2033-01-05\",\n            \"number_of_payments\": 3,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 843\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-01-27T12:07:19.382Z\",\n            \"updated_at\": \"2022-01-27T12:07:28.938Z\"\n        },\n        {\n            \"id\": 9749,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 50000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2109-02-26\",\n            \"number_of_payments\": 3,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 843\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"j\",\n            \"out_of_payroll\": false,\n            \"status\": 12,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-02-13T13:01:00.714Z\",\n            \"updated_at\": \"2023-03-09T12:59:32.146Z\"\n        },\n        {\n            \"id\": 12287,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1200000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2030-02-01\",\n            \"number_of_payments\": 12,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 1269\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-05-16T11:05:58.441Z\",\n            \"updated_at\": \"2022-05-16T11:05:58.960Z\"\n        },\n        {\n            \"id\": 12770,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 600000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2033-05-01\",\n            \"number_of_payments\": 12,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 1269\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-05-31T06:30:06.593Z\",\n            \"updated_at\": \"2022-05-31T06:30:07.572Z\"\n        },\n        {\n            \"id\": 15998,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2029-12-01\",\n            \"number_of_payments\": 3,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 1365\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-08-24T12:53:22.385Z\",\n            \"updated_at\": \"2022-08-24T12:53:22.501Z\"\n        },\n        {\n            \"id\": 17627,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 2000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2040-09-27\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 843\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-09-25T13:01:43.960Z\",\n            \"updated_at\": \"2022-09-25T13:01:44.368Z\"\n        },\n        {\n            \"id\": 30264,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 500000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-04-11\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 751\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-04-11T13:09:26.280Z\",\n            \"updated_at\": \"2023-04-11T13:09:26.514Z\"\n        },\n        {\n            \"id\": 30267,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 500000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2028-04-27\",\n            \"number_of_payments\": 5,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 751\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-04-11T13:16:46.485Z\",\n            \"updated_at\": \"2023-04-11T13:16:46.782Z\"\n        },\n        {\n            \"id\": 30925,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2026-04-18\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 523\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-04-18T12:21:45.682Z\",\n            \"updated_at\": \"2023-04-18T12:21:47.278Z\"\n        },\n        {\n            \"id\": 31267,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 100000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-04-25\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-04-25T14:06:29.588Z\",\n            \"updated_at\": \"2023-04-25T14:06:29.769Z\"\n        },\n        {\n            \"id\": 34354,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 50000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2028-07-05\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 62\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-06-07T13:54:47.093Z\",\n            \"updated_at\": \"2023-07-06T16:43:55.802Z\"\n        },\n        {\n            \"id\": 34617,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 50000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2026-05-07\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 62\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-06-11T14:53:26.898Z\",\n            \"updated_at\": \"2023-06-11T14:53:26.898Z\"\n        },\n        {\n            \"id\": 39171,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2027-08-01\",\n            \"number_of_payments\": 5,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 90\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-08-01T15:17:32.964Z\",\n            \"updated_at\": \"2023-08-01T15:17:32.964Z\"\n        },\n        {\n            \"id\": 39173,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 500000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-09-14\",\n            \"number_of_payments\": 3,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 1269\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-08-01T15:23:02.689Z\",\n            \"updated_at\": \"2023-08-01T15:23:02.689Z\"\n        },\n        {\n            \"id\": 39589,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-08-07\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 1365\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-08-07T14:53:34.812Z\",\n            \"updated_at\": \"2023-12-12T10:00:34.739Z\"\n        },\n        {\n            \"id\": 41976,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2026-02-01\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 278\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-08-27T15:46:01.152Z\",\n            \"updated_at\": \"2023-08-27T15:46:01.152Z\"\n        },\n        {\n            \"id\": 43494,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2030-12-19\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 751\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-09-10T13:15:34.756Z\",\n            \"updated_at\": \"2023-09-10T13:15:34.756Z\"\n        },\n        {\n            \"id\": 48887,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 100000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-08-07\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-11-05T11:57:27.298Z\",\n            \"updated_at\": \"2023-11-05T11:57:27.298Z\"\n        },\n        {\n            \"id\": 51446,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2029-11-29\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 1055\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-11-28T14:07:08.516Z\",\n            \"updated_at\": \"2023-11-28T14:07:08.516Z\"\n        },\n        {\n            \"id\": 52163,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 100000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-12-27\",\n            \"number_of_payments\": 3,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 171\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-12-06T15:05:44.406Z\",\n            \"updated_at\": \"2023-12-06T15:05:44.406Z\"\n        },\n        {\n            \"id\": 60469,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 200000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2030-12-19\",\n            \"number_of_payments\": 4,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 477\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-01-07T15:31:04.635Z\",\n            \"updated_at\": \"2024-01-07T15:31:04.635Z\"\n        },\n        {\n            \"id\": 60682,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 250000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2029-11-21\",\n            \"number_of_payments\": 5,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 4160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-01-09T13:07:09.461Z\",\n            \"updated_at\": \"2024-01-09T13:07:09.461Z\"\n        }\n    ]\n}"}],"_postman_id":"20d93324-d11b-4af2-b584-7cfc43eb30e4"},{"name":"Get Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"fa93be99-f2a8-4dc6-bc1e-800a3b3f1412"}}],"id":"cb6d6722-aaeb-4e31-8ae8-08fb2d16171f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans/:loan_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","loans",":loan_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"loan.employee"},{"disabled":true,"key":"include","value":"loan.loan_type"}],"variable":[{"id":"4aab8384-dc6b-45b3-8eeb-3a916b09bbeb","type":"any","value":"","key":"branch_id"},{"id":"8921d1e2-90fa-44bc-82ed-8c7023684c7b","type":"any","value":"","key":"employee_id"},{"id":"254adcae-9f18-458c-b938-0e2d8c50f871","type":"any","value":"","key":"loan_id"}]}},"response":[{"id":"ffe57844-32c4-4349-ad4e-d07b425ce9af","name":"Get Loan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employees/1159/loans/1157","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employees","1159","loans","1157"],"query":[{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b9b30450b7480327a59b2206c47ddf3f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9c6a101c-16b7-4d95-a27e-6cdd1bdd19fc"},{"key":"X-Runtime","value":"0.119746"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"402"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1157,\n    \"employee\": {\n        \"employee_id\": 1159\n    },\n    \"amount_fils\": 7000000,\n    \"amount_currency\": \"JOD\",\n    \"effective_date\": \"2020-01-13\",\n    \"number_of_payments\": 14,\n    \"name\": {\n        \"ar\": null,\n        \"en\": null\n    },\n    \"loan_type\": {\n        \"loan_type_id\": 63\n    },\n    \"cancel_requested_on\": null,\n    \"notes\": \"\",\n    \"out_of_payroll\": false,\n    \"status\": 4,\n    \"installment_date\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2020-01-13T14:05:45.539Z\",\n    \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n}"}],"_postman_id":"cb6d6722-aaeb-4e31-8ae8-08fb2d16171f"},{"name":"Destroy Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"75eb0e4b-2678-4105-b313-9da26fc78379"}}],"id":"0998eddb-4e54-464d-a024-621afc211a0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans/:loan_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","loans",":loan_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"ca594fda-d31f-4b24-a0d8-c40c96e5431e","type":"any","value":"","key":"branch_id"},{"id":"47ea8399-2c10-421a-ae5e-f76586785f07","type":"any","value":"","key":"employee_id"},{"id":"34c63cae-90d1-4e98-9141-fd2da18fab7e","type":"any","value":"","key":"loan_id"}]}},"response":[],"_postman_id":"0998eddb-4e54-464d-a024-621afc211a0b"},{"name":"Create Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"eed1b2db-be91-45cb-80c0-927d826fdedb"}}],"id":"72d65ec7-0aed-4e80-ba7a-9aafe3ec0a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"loan_type_id","value":"63","type":"text"},{"key":"status","value":"4","type":"text"},{"key":"amount_fils","value":"1000000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"number_of_payments","value":"4","type":"text"},{"key":"name[ar]","value":"test","type":"text"},{"key":"name[en]","value":"test","type":"text"},{"key":"instalment_fils","value":"250000","type":"text"},{"key":"instalment_currency","value":"JOD","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"installment_date","value":"","type":"text"},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","loans"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"e600b8b7-4894-4394-91a4-b8c37dff03e5","type":"any","value":"","key":"branch_id"},{"id":"db78f549-1f47-4840-8cc4-b556194b9d32","type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"b69ccc40-7984-49f8-b3ac-2f6a44ea3bb0","name":"Get Loan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employees/1159/loans/1157","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employees","1159","loans","1157"],"query":[{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b9b30450b7480327a59b2206c47ddf3f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9c6a101c-16b7-4d95-a27e-6cdd1bdd19fc"},{"key":"X-Runtime","value":"0.119746"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"402"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1157,\n    \"employee\": {\n        \"employee_id\": 1159\n    },\n    \"amount_fils\": 7000000,\n    \"amount_currency\": \"JOD\",\n    \"effective_date\": \"2020-01-13\",\n    \"number_of_payments\": 14,\n    \"name\": {\n        \"ar\": null,\n        \"en\": null\n    },\n    \"loan_type\": {\n        \"loan_type_id\": 63\n    },\n    \"cancel_requested_on\": null,\n    \"notes\": \"\",\n    \"out_of_payroll\": false,\n    \"status\": 4,\n    \"installment_date\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2020-01-13T14:05:45.539Z\",\n    \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n}"}],"_postman_id":"72d65ec7-0aed-4e80-ba7a-9aafe3ec0a71"},{"name":"Create Loan Request","event":[{"listen":"test","script":{"id":"eed1b2db-be91-45cb-80c0-927d826fdedb","exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{}}}],"id":"70835fd5-c7b9-4629-a5cb-435d5beaf098","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"loan_type_id","value":"","type":"text","description":"<p>integer</p>\n"},{"key":"amount_fils","value":"1000000","type":"text","description":"<p>integer</p>\n"},{"key":"amount_currency","value":"JOD","type":"text","description":"<p>string</p>\n"},{"key":"effective_date","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"number_of_payments","value":"4","type":"text","description":"<p>integer</p>\n"},{"key":"name[ar]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name[en]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"instalment_fils","value":"250000","type":"text","description":"<p>integer</p>\n"},{"key":"instalment_currency","value":"JOD","type":"text","description":"<p>string</p>\n"},{"key":"cancel_requested_on","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"notes","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"out_of_payroll","value":"false","type":"text","description":"<p>boolean</p>\n"},{"key":"installment_date","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loan_requests","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","loan_requests"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"366590d7-b8fd-42bb-a69d-ca77bb624461","name":"Get Loan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employees/1159/loans/1157","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employees","1159","loans","1157"],"query":[{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b9b30450b7480327a59b2206c47ddf3f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9c6a101c-16b7-4d95-a27e-6cdd1bdd19fc"},{"key":"X-Runtime","value":"0.119746"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"402"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1157,\n    \"employee\": {\n        \"employee_id\": 1159\n    },\n    \"amount_fils\": 7000000,\n    \"amount_currency\": \"JOD\",\n    \"effective_date\": \"2020-01-13\",\n    \"number_of_payments\": 14,\n    \"name\": {\n        \"ar\": null,\n        \"en\": null\n    },\n    \"loan_type\": {\n        \"loan_type_id\": 63\n    },\n    \"cancel_requested_on\": null,\n    \"notes\": \"\",\n    \"out_of_payroll\": false,\n    \"status\": 4,\n    \"installment_date\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2020-01-13T14:05:45.539Z\",\n    \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n}"}],"_postman_id":"70835fd5-c7b9-4629-a5cb-435d5beaf098"},{"name":"Edit Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"9dac536f-8ab1-47e6-bdd1-bb50a7d31f5c"}}],"id":"550ee864-17eb-44b6-9f65-3a6a27e72e52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"loan_type_id","value":"63","type":"text"},{"key":"status","value":"4","type":"text"},{"key":"amount_fils","value":"1000000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"number_of_payments","value":"4","type":"text"},{"key":"name[ar]","value":"test","type":"text"},{"key":"name[en]","value":"test","type":"text"},{"key":"instalment_fils","value":"250000","type":"text"},{"key":"instalment_currency","value":"JOD","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"notes","value":"test213","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"installment_date","value":"","type":"text"},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans/:loan_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","loans",":loan_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"a38049d8-8af3-43ac-a3d0-40b22506c152","type":"any","value":"","key":"branch_id"},{"id":"e87fb148-1b4e-4f07-8c1d-94f145125d89","type":"any","value":"","key":"employee_id"},{"id":"6a2f211a-44b9-4a35-859f-aa78e2b51a67","type":"any","value":"","key":"loan_id"}]}},"response":[{"id":"e66568fc-c0c3-4791-95c6-b622dfcdf48a","name":"Get Loan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employees/1159/loans/1157","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employees","1159","loans","1157"],"query":[{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b9b30450b7480327a59b2206c47ddf3f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9c6a101c-16b7-4d95-a27e-6cdd1bdd19fc"},{"key":"X-Runtime","value":"0.119746"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"402"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1157,\n    \"employee\": {\n        \"employee_id\": 1159\n    },\n    \"amount_fils\": 7000000,\n    \"amount_currency\": \"JOD\",\n    \"effective_date\": \"2020-01-13\",\n    \"number_of_payments\": 14,\n    \"name\": {\n        \"ar\": null,\n        \"en\": null\n    },\n    \"loan_type\": {\n        \"loan_type_id\": 63\n    },\n    \"cancel_requested_on\": null,\n    \"notes\": \"\",\n    \"out_of_payroll\": false,\n    \"status\": 4,\n    \"installment_date\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2020-01-13T14:05:45.539Z\",\n    \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n}"}],"_postman_id":"550ee864-17eb-44b6-9f65-3a6a27e72e52"}],"id":"5e54c1b6-80d2-40ed-a6b0-9183eae68b91","_postman_id":"5e54c1b6-80d2-40ed-a6b0-9183eae68b91","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Miscellaneous Requests","item":[{"name":"List Employees Miscellaneous Requests","id":"fedf8747-e0b0-4abc-a308-bc186d340372","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/miscellaneous_requests","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","miscellaneous_requests"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"include","value":"miscellaneous_request.employee"},{"disabled":true,"key":"include","value":"miscellaneous_request.miscellaneous_type"},{"disabled":true,"key":"filter[id][]","value":"2562"},{"disabled":true,"key":"filter[miscellaneous_type_id][]","value":"7"},{"disabled":true,"key":"filter[effective_date][from]","value":"2023-09-09"},{"disabled":true,"key":"filter[effective_date][to]","value":"2023-09-11"},{"disabled":true,"key":"filter[created_at][from]","value":"2023-09-09"},{"disabled":true,"key":"filter[created_at][to]","value":"2023-09-09"},{"disabled":true,"key":"order[]","value":"{ column: id,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: effective_date,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: employee_id,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: miscellaneous_type_id,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: created_at,dir: asc }"}],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"a5bc51c6-7cb7-47cd-a78b-0d1b5bcb3ebc","name":"List Employees Miscellaneous Requests","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/employees/1159/miscellaneous_requests","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","employees","1159","miscellaneous_requests"],"query":[{"key":"page","value":"2","type":"text","disabled":true},{"key":"limit","value":"3","type":"text","disabled":true},{"key":"include","value":"miscellaneous_request.employee","type":"text","disabled":true},{"key":"include","value":"miscellaneous_request.miscellaneous_type","type":"text","disabled":true},{"key":"filter[id][]","value":"2562","type":"text","disabled":true},{"key":"filter[miscellaneous_type_id][]","value":"7","type":"text","disabled":true},{"key":"filter[effective_date][from]","value":"2023-09-09","type":"text","disabled":true},{"key":"filter[effective_date][to]","value":"2023-09-11","type":"text","disabled":true},{"key":"filter[created_at][from]","value":"2023-09-09","type":"text","disabled":true},{"key":"filter[created_at][to]","value":"2023-09-09","type":"text","disabled":true},{"key":"order[]","value":"{ column: id,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: effective_date,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: employee_id,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: miscellaneous_type_id,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: created_at,dir: asc }","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"5772"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-9wbVWiNnlYByUlGtxQDqIQ=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"6d711bb3f2f975da4eae473aae2e219b\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"8bd07c13-8333-427f-abe9-b467862b3367"},{"key":"X-Runtime","value":"0.075383"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:20:42 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 233,\n        \"total_pages\": 10\n    },\n    \"data\": [\n        {\n            \"id\": 109,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-01-24\",\n            \"status\": 2,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-24T11:01:42.524Z\",\n            \"updated_at\": \"2021-08-02T11:35:29.861Z\"\n        },\n        {\n            \"id\": 145,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 78\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:05:49.731Z\",\n            \"updated_at\": \"2019-03-06T10:06:57.455Z\"\n        },\n        {\n            \"id\": 146,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"test\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:07:28.029Z\",\n            \"updated_at\": \"2019-03-06T10:08:31.638Z\"\n        },\n        {\n            \"id\": 147,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:09:00.844Z\",\n            \"updated_at\": \"2019-03-06T10:09:43.527Z\"\n        },\n        {\n            \"id\": 148,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:10:08.440Z\",\n            \"updated_at\": \"2019-05-16T11:16:32.012Z\"\n        },\n        {\n            \"id\": 165,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-20\",\n            \"status\": 1,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-20T14:53:19.878Z\",\n            \"updated_at\": \"2019-03-20T14:53:19.878Z\"\n        },\n        {\n            \"id\": 166,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 62\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-20\",\n            \"status\": 1,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-20T14:53:41.061Z\",\n            \"updated_at\": \"2019-03-20T14:53:41.061Z\"\n        },\n        {\n            \"id\": 167,\n            \"employee\": {\n                \"id\": 13482\n            },\n            \"miscellaneous_type\": {\n                \"id\": 149\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-20\",\n            \"status\": 1,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-20T14:54:51.790Z\",\n            \"updated_at\": \"2019-03-20T14:54:51.790Z\"\n        },\n        {\n            \"id\": 205,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"miscellaneous_type\": {\n                \"id\": 62\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-04-09\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-04-09T08:42:25.805Z\",\n            \"updated_at\": \"2019-04-09T08:42:32.016Z\"\n        },\n        {\n            \"id\": 216,\n            \"employee\": {\n                \"id\": 16300\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-04-11\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-04-11T14:23:07.078Z\",\n            \"updated_at\": \"2019-04-11T14:23:10.800Z\"\n        },\n        {\n            \"id\": 301,\n            \"employee\": {\n                \"id\": 17646\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-12\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-12T10:57:10.574Z\",\n            \"updated_at\": \"2022-06-27T12:58:28.652Z\"\n        },\n        {\n            \"id\": 322,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 78\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T08:53:35.051Z\",\n            \"updated_at\": \"2019-05-15T08:53:44.388Z\"\n        },\n        {\n            \"id\": 323,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T08:54:07.130Z\",\n            \"updated_at\": \"2019-05-15T08:54:17.540Z\"\n        },\n        {\n            \"id\": 324,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:04:17.090Z\",\n            \"updated_at\": \"2019-05-15T09:14:34.803Z\"\n        },\n        {\n            \"id\": 326,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:30:52.095Z\",\n            \"updated_at\": \"2019-05-15T09:31:07.700Z\"\n        },\n        {\n            \"id\": 327,\n            \"employee\": {\n                \"id\": 17823\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:31:42.203Z\",\n            \"updated_at\": \"2019-05-15T09:31:59.745Z\"\n        },\n        {\n            \"id\": 328,\n            \"employee\": {\n                \"id\": 17823\n            },\n            \"miscellaneous_type\": {\n                \"id\": 149\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:32:34.863Z\",\n            \"updated_at\": \"2019-05-15T09:32:41.773Z\"\n        },\n        {\n            \"id\": 339,\n            \"employee\": {\n                \"id\": 17531\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"test\\r\\n\",\n            \"effective_date\": \"2019-05-20\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-20T11:15:57.090Z\",\n            \"updated_at\": \"2019-05-20T11:17:33.551Z\"\n        },\n        {\n            \"id\": 344,\n            \"employee\": {\n                \"id\": 18042\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-21\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-21T09:46:32.681Z\",\n            \"updated_at\": \"2019-05-21T09:47:46.557Z\"\n        },\n        {\n            \"id\": 345,\n            \"employee\": {\n                \"id\": 18042\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-21\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-21T09:48:25.227Z\",\n            \"updated_at\": \"2019-05-21T09:48:39.454Z\"\n        },\n        {\n            \"id\": 355,\n            \"employee\": {\n                \"id\": 18142\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-27\",\n            \"status\": 2,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-27T09:38:36.453Z\",\n            \"updated_at\": \"2022-06-27T13:42:32.761Z\"\n        },\n        {\n            \"id\": 358,\n            \"employee\": {\n                \"id\": 18143\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"test\",\n            \"effective_date\": \"2019-05-27\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-27T10:56:29.124Z\",\n            \"updated_at\": \"2019-05-27T10:57:50.609Z\"\n        },\n        {\n            \"id\": 359,\n            \"employee\": {\n                \"id\": 18143\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-27\",\n            \"status\": 2,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-27T10:58:01.816Z\",\n            \"updated_at\": \"2022-06-27T13:42:36.260Z\"\n        },\n        {\n            \"id\": 461,\n            \"employee\": {\n                \"id\": 19906\n            },\n            \"miscellaneous_type\": {\n                \"id\": 62\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-07-02\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-07-02T15:48:36.104Z\",\n            \"updated_at\": \"2019-07-02T15:48:47.263Z\"\n        },\n        {\n            \"id\": 482,\n            \"employee\": {\n                \"id\": 20069\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"afda - Rejected On Termination Process\",\n            \"effective_date\": \"2019-07-06\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-07-04T13:56:27.578Z\",\n            \"updated_at\": \"2019-07-04T13:56:27.578Z\"\n        }\n    ]\n}"}],"_postman_id":"fedf8747-e0b0-4abc-a308-bc186d340372"},{"name":"Show Employees Miscellaneous Requests","id":"2112e929-e3bb-43ae-8d24-a8df40ea16c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/miscellaneous_requests/:miscellaneous_request_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","miscellaneous_requests",":miscellaneous_request_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"miscellaneous_request.employee"},{"disabled":true,"key":"include","value":"miscellaneous_request.miscellaneous_type"}],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"},{"type":"any","value":"","key":"miscellaneous_request_id"}]}},"response":[{"id":"9e2a115b-a92d-4b6b-8aa8-eecaae413071","name":"Show Employees Miscellaneous Requests","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/employees/1159/miscellaneous_requests/109","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","employees","1159","miscellaneous_requests","109"],"query":[{"key":"include","value":"miscellaneous_request.employee","type":"text","disabled":true},{"key":"include","value":"miscellaneous_request.miscellaneous_type","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"223"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-DMhbe/2MfvABEpfXziGE7w=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"8b81c459160f08a948dc1b18ed080390\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"27198617-4f7a-4bc1-8811-02b62597722c"},{"key":"X-Runtime","value":"0.023940"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:21:13 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"miscellaneous_type\": {\n        \"id\": 71\n    },\n    \"notes\": \"\",\n    \"effective_date\": \"2019-01-24\",\n    \"status\": 2,\n    \"cancel_requested_on\": null,\n    \"created_at\": \"2019-01-24T11:01:42.524Z\",\n    \"updated_at\": \"2021-08-02T11:35:29.861Z\"\n}"}],"_postman_id":"2112e929-e3bb-43ae-8d24-a8df40ea16c3"},{"name":"Create Miscellaneous Request","id":"f5988407-804f-465f-ba0e-5a89c849fdc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"miscellaneous_type_id","value":"","description":"<p>integer</p>\n","type":"text"},{"key":"notes","value":"","description":"<p>string</p>\n","type":"text"},{"key":"effective_date","value":"","description":"<p>Date Format YYYY-MM-DD</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/miscellaneous_requests","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","miscellaneous_requests"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"3831bbb2-aa2a-4f9b-a580-85ce81983e9f","name":"Create Employees Miscellaneous Requests","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/employees/1159/miscellaneous_requests/109","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","employees","1159","miscellaneous_requests","109"],"query":[{"key":"include","value":"miscellaneous_request.employee","type":"text","disabled":true},{"key":"include","value":"miscellaneous_request.miscellaneous_type","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"223"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-DMhbe/2MfvABEpfXziGE7w=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"8b81c459160f08a948dc1b18ed080390\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"27198617-4f7a-4bc1-8811-02b62597722c"},{"key":"X-Runtime","value":"0.023940"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:21:13 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"miscellaneous_type\": {\n        \"id\": 71\n    },\n    \"notes\": \"\",\n    \"effective_date\": \"2019-01-24\",\n    \"status\": 2,\n    \"cancel_requested_on\": null,\n    \"created_at\": \"2019-01-24T11:01:42.524Z\",\n    \"updated_at\": \"2021-08-02T11:35:29.861Z\"\n}"}],"_postman_id":"f5988407-804f-465f-ba0e-5a89c849fdc5"}],"id":"e8806a72-4410-4da5-a0e6-4cc1579704db","_postman_id":"e8806a72-4410-4da5-a0e6-4cc1579704db","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Bank Account","item":[{"name":"List Employee Bank Account","id":"096bd283-f03c-47a6-8ebd-521d4b4651e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"allowed_actions\": [],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 71444,\n            \"owner_id\": 138679,\n            \"owner_type\": \"Employee\",\n            \"bank_branch\": {\n                \"bank_branch_id\": 6,\n                \"id\": 6,\n                \"bank\": {\n                    \"id\": 1,\n                    \"name\": {\n                        \"ar\": \"البنك العربي\",\n                        \"en\": \"Arab Bank\"\n                    },\n                    \"country\": {\n                        \"country_id\": 111,\n                        \"id\": 111,\n                        \"name\": {\n                            \"ar\": \"الأردن\",\n                            \"en\": \"Jordan\"\n                        },\n                        \"country_code\": \"JO\",\n                        \"region\": \"mena\"\n                    },\n                    \"routing_id\": \"10\",\n                    \"short_code\": null,\n                    \"swift_code\": \"ARABJOAXXXX\"\n                },\n                \"swift_code\": null,\n                \"name\": {\n                    \"ar\": null,\n                    \"en\": \"Main Branch\"\n                }\n            },\n            \"iban\": \"SA0380000000608010167519\",\n            \"bank_account_number\": \"78342012891\",\n            \"percent_transfer\": 100.0,\n            \"related_establishment_number\": null,\n            \"swift_code\": null,\n            \"exchange_account\": \"\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/bank_accounts","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","bank_accounts"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[],"_postman_id":"096bd283-f03c-47a6-8ebd-521d4b4651e0"}],"id":"8e33d58b-55f8-4ce7-990e-a95057551e31","_postman_id":"8e33d58b-55f8-4ce7-990e-a95057551e31","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Families","item":[{"name":"List Employee Families","id":"c0db3e78-1d8d-4499-b32a-952ff82858b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/families","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","families"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"family.employee"},{"disabled":true,"description":{"content":"<p>integer</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"description":{"content":"<p>integer</p>\n","type":"text/plain"},"key":"page","value":"3"}],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"661f071c-c2a6-4d5a-b950-cd3bde956670","name":"List Employee Families","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/employees/1159/families","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","employees","1159","families"],"query":[{"key":"include[]","value":"family.employee","type":"text","disabled":true},{"key":"limit","value":"2","description":"integer","type":"text","disabled":true},{"key":"page","value":"3","description":"integer","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"7725"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-L5EM2cTC9tyWb3N4bUm4gw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"de7265f9a86121df12b8ad3a7d79c2f3\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"435ebcd5-4d94-432e-a0e6-c840b56dea32"},{"key":"X-Runtime","value":"0.077417"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:15:38 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 13,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 91706,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"Dse\",\n                    \"first_name\": \"Ds\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"nil\",\n                    \"first_name\": \"nil\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2017-02-01\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": null,\n            \"email\": null,\n            \"nationality\": [],\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2023-12-28T08:54:19.910Z\",\n            \"updated_at\": \"2024-11-26T18:31:24.511Z\"\n        },\n        {\n            \"id\": 91707,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"dxsds\",\n                    \"first_name\": \"sds\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"\",\n                    \"first_name\": \"\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-02-02\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": \"\",\n            \"email\": null,\n            \"nationality\": null,\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2023-12-28T08:54:44.784Z\",\n            \"updated_at\": \"2023-12-28T08:54:44.784Z\"\n        },\n        {\n            \"id\": 91708,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"dxsds\",\n                    \"first_name\": \"sds\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"\",\n                    \"first_name\": \"\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-02-02\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": \"\",\n            \"email\": null,\n            \"nationality\": null,\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2023-12-28T08:54:45.546Z\",\n            \"updated_at\": \"2023-12-28T08:54:45.546Z\"\n        },\n        {\n            \"id\": 91709,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"dxsds\",\n                    \"first_name\": \"sds\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"\",\n                    \"first_name\": \"\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-02-02\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": \"\",\n            \"email\": null,\n            \"nationality\": null,\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2023-12-28T08:54:45.814Z\",\n            \"updated_at\": \"2023-12-28T08:54:45.814Z\"\n        },\n        {\n            \"id\": 91710,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"dxsds\",\n                    \"first_name\": \"sds\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"\",\n                    \"first_name\": \"\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-02-02\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": \"\",\n            \"email\": null,\n            \"nationality\": null,\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2023-12-28T08:54:46.020Z\",\n            \"updated_at\": \"2023-12-28T08:54:46.020Z\"\n        },\n        {\n            \"id\": 91711,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"Dxsds\",\n                    \"first_name\": \"Sds\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"nil\",\n                    \"first_name\": \"nil\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-02-02\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": null,\n            \"email\": null,\n            \"nationality\": [],\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2023-12-28T08:54:46.116Z\",\n            \"updated_at\": \"2024-11-26T18:31:24.474Z\"\n        },\n        {\n            \"id\": 91712,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"dxsds\",\n                    \"first_name\": \"sds\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"\",\n                    \"first_name\": \"\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-02-02\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": \"\",\n            \"email\": null,\n            \"nationality\": null,\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2023-12-28T08:54:48.950Z\",\n            \"updated_at\": \"2023-12-28T08:54:48.950Z\"\n        },\n        {\n            \"id\": 96224,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Parent\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"nil\",\n                    \"first_name\": \"nil\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"نهيل\",\n                    \"first_name\": \"تست\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-05-07\",\n            \"relation_date\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Single\",\n            \"phone_number\": null,\n            \"email\": null,\n            \"nationality\": [],\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2024-05-07T11:10:56.377Z\",\n            \"updated_at\": \"2024-11-26T18:31:24.552Z\"\n        },\n        {\n            \"id\": 21779,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"Ziad\",\n                    \"first_name\": \"nil\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"nil\",\n                    \"first_name\": \"nil\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"2022-06-08\",\n            \"relation_date\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"phone_number\": null,\n            \"email\": null,\n            \"nationality\": [],\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://minio.staging.devops.zenhr.com/zenhr-pr-12461/profile_pictures/family/21779/Happy_child.jpg\",\n            \"created_at\": \"2022-09-11T07:59:41.338Z\",\n            \"updated_at\": \"2024-11-26T18:31:24.294Z\"\n        },\n        {\n            \"id\": 21781,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Spouse\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"Mazen\",\n                    \"first_name\": \"Yara\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"nil\",\n                    \"first_name\": \"nil\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"1995-02-01\",\n            \"relation_date\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"phone_number\": null,\n            \"email\": null,\n            \"nationality\": [],\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://minio.staging.devops.zenhr.com/zenhr-pr-12461/profile_pictures/family/21781/download.jpg\",\n            \"created_at\": \"2022-09-11T08:02:59.545Z\",\n            \"updated_at\": \"2024-11-26T18:31:24.416Z\"\n        },\n        {\n            \"id\": 21782,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Parent\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"Ziad\",\n                    \"first_name\": \"Jehad\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                },\n                \"ar\": {\n                    \"last_name\": \"nil\",\n                    \"first_name\": \"nil\",\n                    \"third_name\": \"\",\n                    \"second_name\": \"\"\n                }\n            },\n            \"birthdate\": \"1940-02-01\",\n            \"relation_date\": null,\n            \"gender\": null,\n            \"marital_status\": null,\n            \"phone_number\": null,\n            \"email\": null,\n            \"nationality\": [],\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://minio.staging.devops.zenhr.com/zenhr-pr-12461/profile_pictures/family/21782/download_%281%29.jpg\",\n            \"created_at\": \"2022-09-11T08:04:25.515Z\",\n            \"updated_at\": \"2024-11-26T18:31:24.448Z\"\n        },\n        {\n            \"id\": 141,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Child\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"zaid\",\n                    \"first_name\": \"Salma\",\n                    \"third_name\": \"Ahmad\",\n                    \"second_name\": \"Mazen\"\n                },\n                \"ar\": {\n                    \"last_name\": \"حسن\",\n                    \"first_name\": \"سلمى\",\n                    \"third_name\": \"أحمد\",\n                    \"second_name\": \"مازن\"\n                }\n            },\n            \"birthdate\": \"1990-11-01\",\n            \"relation_date\": null,\n            \"gender\": \"Female\",\n            \"marital_status\": \"Married\",\n            \"phone_number\": \"\",\n            \"email\": null,\n            \"nationality\": null,\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://minio.staging.devops.zenhr.com/zenhr-pr-12461/profile_pictures/family/141/istockphoto-1168369629-612x612.jpg\",\n            \"created_at\": \"2017-11-14T13:51:20.016Z\",\n            \"updated_at\": \"2022-09-11T08:01:29.802Z\"\n        },\n        {\n            \"id\": 111165,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"relation\": \"Parent\",\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"Asd\",\n                    \"first_name\": \"Asd\",\n                    \"third_name\": \"Asd\",\n                    \"second_name\": \"Asd\"\n                },\n                \"ar\": {\n                    \"last_name\": \"dd\",\n                    \"first_name\": \"ad\",\n                    \"third_name\": \"dasd\",\n                    \"second_name\": \"asd\"\n                }\n            },\n            \"birthdate\": \"2024-07-08\",\n            \"relation_date\": null,\n            \"gender\": \"Male\",\n            \"marital_status\": \"Married\",\n            \"phone_number\": null,\n            \"email\": null,\n            \"nationality\": [],\n            \"national_id\": null,\n            \"sponsor_id\": null,\n            \"sponsor_name\": null,\n            \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n            \"created_at\": \"2024-11-24T14:31:56.018Z\",\n            \"updated_at\": \"2024-11-26T18:31:24.606Z\"\n        }\n    ]\n}"}],"_postman_id":"c0db3e78-1d8d-4499-b32a-952ff82858b6"},{"name":"Show Family","id":"484b906f-ca29-4fcc-a513-e0ad16196352","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/families/:family_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","families",":family_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"family.empoyee"}],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"},{"type":"any","value":"","key":"family_id"}]}},"response":[{"id":"6f9226fc-8774-4ab2-8797-894545f866bc","name":"Show Family","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/employees/1159/families/91706","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","employees","1159","families","91706"],"query":[{"key":"include[]","value":"family.empoyee","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"572"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-W6rraj+RNsbJY86kveXX5A=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"03a4c1489480e99d46efee8097c5c363\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"6b1d6491-d9f9-471a-8916-47c1e998b788"},{"key":"X-Runtime","value":"0.028112"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:16:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 91706,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"relation\": \"Child\",\n    \"name\": {\n        \"en\": {\n            \"last_name\": \"Dse\",\n            \"first_name\": \"Ds\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        },\n        \"ar\": {\n            \"last_name\": \"nil\",\n            \"first_name\": \"nil\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        }\n    },\n    \"birthdate\": \"2017-02-01\",\n    \"relation_date\": null,\n    \"gender\": \"Female\",\n    \"marital_status\": \"Single\",\n    \"phone_number\": null,\n    \"email\": null,\n    \"nationality\": [],\n    \"national_id\": null,\n    \"sponsor_id\": null,\n    \"sponsor_name\": null,\n    \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n    \"created_at\": \"2023-12-28T08:54:19.910Z\",\n    \"updated_at\": \"2024-11-26T18:31:24.511Z\"\n}"}],"_postman_id":"484b906f-ca29-4fcc-a513-e0ad16196352"},{"name":"Delete Family","id":"400ab39a-47fc-4111-879a-ac86ed6ce25e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/families/:family_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","families",":family_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"family.empoyee"}],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"},{"type":"any","value":"","key":"family_id"}]}},"response":[],"_postman_id":"400ab39a-47fc-4111-879a-ac86ed6ce25e"},{"name":"Create Family","id":"5def4a04-76aa-4893-9ce5-632d07b5e9fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"relation","value":"Child","type":"text","description":"<p>Parent Spouse Child Siblings</p>\n"},{"key":"birthdate","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"name_en[first_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_en[second_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_en[third_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_en[last_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[first_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[second_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[third_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[last_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"marital_sstatus","value":"single","type":"text","description":"<p>Single Married Divorced Widow</p>\n"},{"key":"phone_number","value":"1234567891","type":"text"},{"key":"gender","value":"Male","type":"text","description":"<p>Male Female</p>\n"},{"key":"name","value":"","type":"text","description":"<p>string</p>\n"},{"key":"email","value":"","type":"text","description":"<p>email</p>\n"},{"key":"national_id","value":"","type":"text","description":"<p>string</p>\n"},{"key":"nationality[]","value":"Jordan","type":"text","description":"<p>List countries end-point (string)</p>\n"},{"key":"relation_date","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"sponsor_id","value":"","type":"text","description":"<p>string</p>\n"},{"key":"sponsor_name","value":"","type":"text","description":"<p>string</p>\n"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/families","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","families"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"f93dcde9-c4b3-416d-8698-b70d4072b286","name":"Create Family","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/employees/1159/families/91706","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","employees","1159","families","91706"],"query":[{"key":"include[]","value":"family.empoyee","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"572"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-W6rraj+RNsbJY86kveXX5A=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"03a4c1489480e99d46efee8097c5c363\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"6b1d6491-d9f9-471a-8916-47c1e998b788"},{"key":"X-Runtime","value":"0.028112"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:16:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 91706,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"relation\": \"Child\",\n    \"name\": {\n        \"en\": {\n            \"last_name\": \"Dse\",\n            \"first_name\": \"Ds\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        },\n        \"ar\": {\n            \"last_name\": \"nil\",\n            \"first_name\": \"nil\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        }\n    },\n    \"birthdate\": \"2017-02-01\",\n    \"relation_date\": null,\n    \"gender\": \"Female\",\n    \"marital_status\": \"Single\",\n    \"phone_number\": null,\n    \"email\": null,\n    \"nationality\": [],\n    \"national_id\": null,\n    \"sponsor_id\": null,\n    \"sponsor_name\": null,\n    \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n    \"created_at\": \"2023-12-28T08:54:19.910Z\",\n    \"updated_at\": \"2024-11-26T18:31:24.511Z\"\n}"}],"_postman_id":"5def4a04-76aa-4893-9ce5-632d07b5e9fa"},{"name":"Update Family","id":"d35ee654-9a7a-485d-8d76-171b3009ce84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"relation","value":"Child","type":"text","description":"<p>Parent Spouse Child Siblings</p>\n"},{"key":"birthdate","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"name_en[first_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_en[second_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_en[third_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_en[last_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[first_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[second_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[third_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"name_ar[last_name]","value":"test","type":"text","description":"<p>string</p>\n"},{"key":"marital_sstatus","value":"single","type":"text","description":"<p>Single Married Divorced Widow</p>\n"},{"key":"phone_number","value":"1234567891","type":"text"},{"key":"gender","value":"Male","type":"text","description":"<p>Male Female</p>\n"},{"key":"name","value":"","type":"text","description":"<p>string</p>\n"},{"key":"email","value":"","type":"text","description":"<p>email</p>\n"},{"key":"national_id","value":"","type":"text","description":"<p>string</p>\n"},{"key":"nationality[]","value":"Jordan","type":"text","description":"<p>List countries end-point (string)</p>\n"},{"key":"relation_date","value":"","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"sponsor_id","value":"","type":"text","description":"<p>string</p>\n"},{"key":"sponsor_name","value":"","type":"text","description":"<p>string</p>\n"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/families/:family_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","families",":family_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"employee_id"},{"type":"any","value":"","key":"family_id"}]}},"response":[{"id":"acc2c425-a5ae-471a-bb1c-6f64829470e7","name":"Update Family","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/employees/1159/families/91706","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","employees","1159","families","91706"],"query":[{"key":"include[]","value":"family.empoyee","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"572"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-W6rraj+RNsbJY86kveXX5A=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"03a4c1489480e99d46efee8097c5c363\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"6b1d6491-d9f9-471a-8916-47c1e998b788"},{"key":"X-Runtime","value":"0.028112"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:16:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 91706,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"relation\": \"Child\",\n    \"name\": {\n        \"en\": {\n            \"last_name\": \"Dse\",\n            \"first_name\": \"Ds\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        },\n        \"ar\": {\n            \"last_name\": \"nil\",\n            \"first_name\": \"nil\",\n            \"third_name\": \"\",\n            \"second_name\": \"\"\n        }\n    },\n    \"birthdate\": \"2017-02-01\",\n    \"relation_date\": null,\n    \"gender\": \"Female\",\n    \"marital_status\": \"Single\",\n    \"phone_number\": null,\n    \"email\": null,\n    \"nationality\": [],\n    \"national_id\": null,\n    \"sponsor_id\": null,\n    \"sponsor_name\": null,\n    \"picture\": \"https://zenhr-pr-12461.staging.devops.zenhr.com/images/missing.png\",\n    \"created_at\": \"2023-12-28T08:54:19.910Z\",\n    \"updated_at\": \"2024-11-26T18:31:24.511Z\"\n}"}],"_postman_id":"d35ee654-9a7a-485d-8d76-171b3009ce84"}],"id":"1066cbca-ba45-4a54-8b08-b0a26f05b759","_postman_id":"1066cbca-ba45-4a54-8b08-b0a26f05b759","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Employee Shifts","item":[{"name":"List Employee Shifts","id":"1246bffd-bb74-460f-b94a-1de842cb9bc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_shifts","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_shifts"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"employee_shift.work_shift"},{"disabled":true,"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: work_shift_id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: from_date, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: to_date, dir: asc}"},{"disabled":true,"key":"filter[from_date][from]","value":"2024-10-20"},{"disabled":true,"key":"filter[from_date][to]","value":"2024-10-21"},{"disabled":true,"key":"filter[to_date][from]","value":"2024-10-20"}],"variable":[{"id":"0969d817-1582-4477-b8e5-658ce9862c0a","type":"any","value":"104","key":"branch_id"},{"id":"75955472-1107-4bb6-9b1e-7152c143665e","type":"any","value":"1159","key":"employee_id"}]}},"response":[{"id":"6a630646-dec0-4cc2-a74c-65a19b0c1caa","name":"List Branch Emoloyees Shifts","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employee_shifts","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employee_shifts"],"query":[{"key":"page","value":"2","disabled":true},{"key":"limit","value":"3","disabled":true},{"key":"include[]","value":"employee_shift.work_shift","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","disabled":true},{"key":"order[]","value":"{column: employee_id, dir: asc}","disabled":true},{"key":"order[]","value":"{column: work_shift_id, dir: asc}","disabled":true},{"key":"order[]","value":"{column: from_date, dir: asc}","disabled":true},{"key":"order[]","value":"{column: to_date, dir: asc}","disabled":true},{"key":"filter[from_date][from]","value":"2024-10-20","disabled":true},{"key":"filter[from_date][to]","value":"2024-10-21","disabled":true},{"key":"filter[to_date][from]","value":"2024-10-20","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5695f8df89ce6fae044a2fc6fca9cbc9\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bac0cb97-65fb-4590-9f20-90bfb4d4e7f1"},{"key":"X-Runtime","value":"0.529793"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"231"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 13304870,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"work_shift\": {\n                \"id\": 13697\n            },\n            \"from_date\": \"2024-10-20T21:00:00.000Z\",\n            \"to_date\": \"2024-10-26T21:00:00.000Z\"\n        }\n    ]\n}"}],"_postman_id":"1246bffd-bb74-460f-b94a-1de842cb9bc0"},{"name":"Show Employee Shifts","id":"e7343f3c-be61-4231-bb75-325b7126d43d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_shifts/:work_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_shifts",":work_shift_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"employee_shift.work_shift"}],"variable":[{"id":"f3a214b4-b4ad-4218-b1d3-efe5ba3848b3","type":"any","value":"","key":"branch_id"},{"id":"d4247855-676b-4e11-b797-bbda48c27d86","type":"any","value":"","key":"employee_id"},{"id":"0b832cc1-5b05-417c-abb5-187aaf1239b9","type":"any","value":"13304870","key":"work_shift_id"}]}},"response":[{"id":"852baa4f-746a-4226-9136-77d2d25500e6","name":"Show Branch Employee Shifts","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employee_shifts/:work_shift_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employee_shifts",":work_shift_id"],"query":[{"key":"include[]","value":"employee_shift.work_shift","disabled":true}],"variable":[{"key":"work_shift_id","value":"13304870"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6fe27af94580e943d9a570493d0d2f80\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5d478277-5560-4a86-9bea-d64299119030"},{"key":"X-Runtime","value":"0.057781"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"140"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13304870,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"work_shift\": {\n        \"id\": 13697\n    },\n    \"from_date\": \"2024-10-20T21:00:00.000Z\",\n    \"to_date\": \"2024-10-26T21:00:00.000Z\"\n}"}],"_postman_id":"e7343f3c-be61-4231-bb75-325b7126d43d"},{"name":"Create Employee Shift","id":"198dc10f-3ef6-4cfe-a99f-3e58e9d1c7dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,        // The ID of the employee\n    \"work_shift_id\": 44546,     // The ID of the work shift\n    \"from_date\": \"2024-11-11\",  // The start of the work shift date\n    \"to_date\": \"2024-12-11\"     // The end of the work shift date\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_shifts","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_shifts"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"58b92008-0efc-4349-86a7-2f0c8e3426e6","type":"any","value":"","key":"branch_id"},{"id":"d2d4510c-148a-4d48-a082-0f716d4d40c7","type":"any","value":"","key":"employee_id"}]}},"response":[{"id":"117da5ef-fe5d-474e-87a8-85ff47152a19","name":"Create Employee Shift","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,\n    \"work_shift_id\": 44546,\n    \"from_date\": \"2024-11-11\",\n    \"to_date\": \"2024-12-11\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/104/employee_shifts/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"80df4d98f2e59f9789e7820f89c8022e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"2303c693-8210-442b-a237-860d3a464207"},{"key":"X-Runtime","value":"0.425829"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"140"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13307347,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"work_shift\": {\n        \"id\": 44546\n    },\n    \"from_date\": \"2024-11-11T00:00:00.000Z\",\n    \"to_date\": \"2024-12-11T00:00:00.000Z\"\n}"}],"_postman_id":"198dc10f-3ef6-4cfe-a99f-3e58e9d1c7dc"},{"name":"Delete Employee Shift","id":"e7f23d39-d6fe-4839-ba99-0d2267fb5e1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_shifts/:work_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_shifts",":work_shift_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"4f0423cb-aa00-4ffc-b121-f2fd5ae6043a","type":"any","value":"","key":"branch_id"},{"id":"5f07ea8f-527f-42e4-b4fc-8007893fa43b","type":"any","value":"","key":"employee_id"},{"id":"035c37e4-cd41-4570-bb24-b4a8fba81293","type":"any","value":"","key":"work_shift_id"}]}},"response":[],"_postman_id":"e7f23d39-d6fe-4839-ba99-0d2267fb5e1d"},{"name":"Update Employee Shift","id":"09850b5e-6445-4887-83cb-07b33ce47797","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,        // The ID of the employee\n    \"work_shift_id\": 44546,     // The ID of the work shift\n    \"from_date\": \"2024-11-11\",  // The start of the work shift date\n    \"to_date\": \"2024-12-11\"     // The end of the work shift date\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/employee_shifts/:work_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","employee_shifts",":work_shift_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"acc57952-0aab-4860-a752-fcb415e35937","type":"any","value":"","key":"branch_id"},{"id":"2d06af93-336d-47c5-a1ec-62d1202de65d","type":"any","value":"","key":"employee_id"},{"id":"8a826669-7c6a-48b0-8608-bc5b7b85d685","type":"any","value":"","key":"work_shift_id"}]}},"response":[{"id":"b0feba60-311a-4716-abf8-71457fcac1b6","name":"Create Employee Shift","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,\n    \"work_shift_id\": 44546,\n    \"from_date\": \"2024-11-11\",\n    \"to_date\": \"2024-12-11\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/104/employee_shifts/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"80df4d98f2e59f9789e7820f89c8022e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"2303c693-8210-442b-a237-860d3a464207"},{"key":"X-Runtime","value":"0.425829"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"140"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13307347,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"work_shift\": {\n        \"id\": 44546\n    },\n    \"from_date\": \"2024-11-11T00:00:00.000Z\",\n    \"to_date\": \"2024-12-11T00:00:00.000Z\"\n}"}],"_postman_id":"09850b5e-6445-4887-83cb-07b33ce47797"}],"id":"f0fe3195-ff38-466a-956c-6e63e035db34","_postman_id":"f0fe3195-ff38-466a-956c-6e63e035db34","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Employees Termination","item":[{"name":"Create Termination","id":"61642003-dd5b-46d4-a355-b0cedee50209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"410314","type":"text"},{"key":"termination_setup_id","value":"45423","type":"text"},{"key":"termination_date","value":"2024-12-01","description":"<p>date</p>\n","type":"text"},{"key":"notes","value":"test","description":"<p>string</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/employees/1159/terminations","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","employees","1159","terminations"],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"c5179b13-b4ca-4f32-bdb8-0b1a3282831a","name":"Create Termination","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"1497","type":"text"},{"key":"termination_setup_id","value":"45423","type":"text"},{"key":"termination_date","value":"2024-12-01","description":"date","type":"text"},{"key":"notes","value":"test","description":"string","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/terminations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a9436a8a63a0321750163dbe6f659d50\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"24f398e1-004d-427b-971c-2082b09f1177"},{"key":"X-Runtime","value":"0.550791"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"273"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 191128,\n    \"employee\": {\n        \"employee_id\": 1497\n    },\n    \"termination_setup\": {\n        \"termination_setup_id\": 45423\n    },\n    \"termination_date\": \"2024-12-01\",\n    \"financial_transaction_ids\": null,\n    \"notes\": \"test\",\n    \"salary_id\": null,\n    \"created_at\": \"2024-12-08T12:33:58.742Z\",\n    \"updated_at\": \"2024-12-08T12:33:58.742Z\"\n}"}],"_postman_id":"61642003-dd5b-46d4-a355-b0cedee50209"},{"name":"Delete Termination","id":"0d6319ec-58bb-48a9-82ed-e052a8204763","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"410314","type":"text"},{"key":"termination_setup_id","value":"45423","type":"text"},{"key":"termination_date","value":"2024-12-01","description":"<p>date</p>\n","type":"text"},{"key":"notes","value":"test","description":"<p>string</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/terminations/:termination_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","employees",":employee_id","terminations",":termination_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"1c61ad89-ccae-4487-bc9d-2c0d197d80f4","type":"any","value":"","key":"branch_id"},{"id":"9ef7a155-7a5d-40b9-a5ea-33d2f2d88d6d","type":"any","value":"","key":"employee_id"},{"id":"5014646e-8b22-456d-a576-35a3ee0cedc3","type":"any","value":"","key":"termination_id"}]}},"response":[],"_postman_id":"0d6319ec-58bb-48a9-82ed-e052a8204763"}],"id":"bfe3b446-e5ad-4e6f-af6c-d4249f8cb537","_postman_id":"bfe3b446-e5ad-4e6f-af6c-d4249f8cb537","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}}],"id":"0284f064-b0f9-4f5e-8fcc-e30b064aa767","description":"<p>the below end points serving the branch employees data</p>\n","_postman_id":"0284f064-b0f9-4f5e-8fcc-e30b064aa767","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Timeoffs","item":[{"name":"List Timeoffs","event":[{"listen":"test","script":{"id":"5ea95b7f-2d07-4205-a13a-aee992c2cf02","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": \"string\" },","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"branch\": { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"number\" } }, \"required\": [\"id\"] },","                        \"cut_holidays\": { \"type\": [\"boolean\", \"null\"] },","                        \"cut_days_off\": { \"type\": [\"boolean\", \"null\"] },","                        \"exceed_balance\": { \"type\": [\"boolean\", \"null\"] },","                        \"accumulative\": { \"type\": [\"boolean\", \"null\"] },","                        \"class_name\": { \"type\": \"string\" },","                        \"deduction_type\": { \"type\": \"number\" },","                        \"deduction_amount\": { \"type\": \"number\" },","                        \"is_sick_vacation\": { \"type\": \"boolean\" },","                        \"allowed_min\": { \"type\": [\"null\", \"number\"] },","                        \"pro_rata\": { \"type\": \"boolean\" },","                        \"ability_to_non_deduct\": { \"type\": \"boolean\" },","                        \"exceed_end_of_year_balance\": { \"type\": \"boolean\" },","                        \"grace_period_amount\": { \"type\": [\"null\", \"number\"] },","                        \"grace_period_interval\": { \"type\": [\"null\", \"string\"] },","                        \"number_of_minutes_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_minutes_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"auto_move_balances\": { \"type\": \"boolean\" },","                        \"accumulative_balance_cap\": { \"type\": \"boolean\" },","                        \"maximum_cap_days\": { \"type\": \"number\" },","                        \"link_with_probation\": { \"type\": \"boolean\" },","                        \"balances_effective_dates\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"allowed_min\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the timeoff_id from the response","var responseJson = pm.response.json();","var timeoffId = responseJson.data[0].id;","","// Set the timeoff_id as an environment variable","pm.environment.set(\"timeoff_id\", timeoffId);"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"26737319-05b1-42e2-9318-bfec4e335f90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoffs","description":"<p>This API end-point will list all timeoffs in a brnch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","timeoffs"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"imit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"8550"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2019-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2019-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2019-10-29"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2019-10-29"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"7b04832c-dac6-4ccf-bc9c-d00711f887d6","name":"List Timeoffs","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoffs/?imit=100&page=1","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","timeoffs",""],"query":[{"key":"imit","value":"100"},{"key":"page","value":"1"},{"key":"include","value":"attendance_record.attendance_details, attendance_record.attendance_machine","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"0b9edec825707283e90d5458a70a8850\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ab435916-f9f7-45e3-99c6-51c1d8ce0181"},{"key":"X-Runtime","value":"0.032617"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"7896"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 137,\n        \"total_pages\": 14\n    },\n    \"data\": [\n        {\n            \"id\": 18257,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"test\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": false,\n            \"cut_days_off\": false,\n            \"exceed_balance\": false,\n            \"accumulative\": false,\n            \"class_name\": \"AnnualVacation\",\n            \"deduction_type\": 1,\n            \"deduction_amount\": 0,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": false,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2019-05-09T12:24:32.426Z\",\n            \"updated_at\": \"2022-12-07\"\n        },\n        {\n            \"id\": 809,\n            \"name\": {\n                \"ar\": \"الاجازات السنوية\",\n                \"en\": \"Annual Vacation\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": true,\n            \"cut_days_off\": true,\n            \"exceed_balance\": true,\n            \"accumulative\": true,\n            \"class_name\": \"AnnualVacation\",\n            \"deduction_type\": 2,\n            \"deduction_amount\": 0,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": true,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": true,\n            \"maximum_cap_days\": 1,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:51.827Z\",\n            \"updated_at\": \"2023-02-08\"\n        },\n        {\n            \"id\": 810,\n            \"name\": {\n                \"ar\": \"يوم اجازه مرضيه\",\n                \"en\": \"Sick Day off\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": true,\n            \"cut_days_off\": false,\n            \"exceed_balance\": false,\n            \"accumulative\": false,\n            \"class_name\": \"BalancedVacation\",\n            \"deduction_type\": 2,\n            \"deduction_amount\": 0,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": true,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:51.872Z\",\n            \"updated_at\": \"2022-01-05\"\n        },\n        {\n            \"id\": 811,\n            \"name\": {\n                \"ar\": \"مغادرة شخصيه\",\n                \"en\": \"Personal Leave\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": null,\n            \"cut_days_off\": null,\n            \"exceed_balance\": null,\n            \"accumulative\": null,\n            \"class_name\": \"Leave\",\n            \"deduction_type\": 1,\n            \"deduction_amount\": 0,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": 0,\n            \"grace_period_interval\": \"day\",\n            \"number_of_minutes_allowed\": 400,\n            \"number_of_minutes_allowed_type\": 2,\n            \"number_of_transactions_allowed\": 4,\n            \"number_of_transactions_allowed_type\": 1,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:52.008Z\",\n            \"updated_at\": \"2023-07-31\"\n        },\n        {\n            \"id\": 812,\n            \"name\": {\n                \"ar\": \"مغادرة مرضيه\",\n                \"en\": \"Sick Leave\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": null,\n            \"cut_days_off\": null,\n            \"exceed_balance\": null,\n            \"accumulative\": null,\n            \"class_name\": \"Leave\",\n            \"deduction_type\": 1,\n            \"deduction_amount\": 0,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:52.034Z\",\n            \"updated_at\": \"2019-06-26\"\n        },\n        {\n            \"id\": 813,\n            \"name\": {\n                \"ar\": \"مغادرة مقتطعة من الراتب\",\n                \"en\": \"Unpaid Leave\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": null,\n            \"cut_days_off\": null,\n            \"exceed_balance\": null,\n            \"accumulative\": null,\n            \"class_name\": \"Leave\",\n            \"deduction_type\": 2,\n            \"deduction_amount\": 100,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:52.055Z\",\n            \"updated_at\": \"2019-05-29\"\n        },\n        {\n            \"id\": 814,\n            \"name\": {\n                \"ar\": \"اجازة زواج\",\n                \"en\": \"Marriage Leave\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": false,\n            \"cut_days_off\": false,\n            \"exceed_balance\": null,\n            \"accumulative\": null,\n            \"class_name\": \"Vacation\",\n            \"deduction_type\": 2,\n            \"deduction_amount\": 100,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:52.072Z\",\n            \"updated_at\": \"2022-01-12\"\n        },\n        {\n            \"id\": 815,\n            \"name\": {\n                \"ar\": \"اجازة امومة\",\n                \"en\": \"Maternity Leave\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": true,\n            \"cut_days_off\": true,\n            \"exceed_balance\": null,\n            \"accumulative\": null,\n            \"class_name\": \"Vacation\",\n            \"deduction_type\": 2,\n            \"deduction_amount\": 100,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:52.088Z\",\n            \"updated_at\": \"2020-11-04\"\n        },\n        {\n            \"id\": 816,\n            \"name\": {\n                \"ar\": \"اجازة ابوة\",\n                \"en\": \"Paternity Leave\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": false,\n            \"cut_days_off\": false,\n            \"exceed_balance\": null,\n            \"accumulative\": null,\n            \"class_name\": \"Vacation\",\n            \"deduction_type\": 2,\n            \"deduction_amount\": 0,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:52.121Z\",\n            \"updated_at\": \"2021-03-03\"\n        },\n        {\n            \"id\": 817,\n            \"name\": {\n                \"ar\": \"اجازة غير مدفوعة\",\n                \"en\": \"Unpaid Vacation\"\n            },\n            \"branch\": {\n                \"id\": 104\n            },\n            \"cut_holidays\": false,\n            \"cut_days_off\": false,\n            \"exceed_balance\": null,\n            \"accumulative\": null,\n            \"class_name\": \"Vacation\",\n            \"deduction_type\": 2,\n            \"deduction_amount\": 100,\n            \"is_sick_vacation\": false,\n            \"allowed_min\": null,\n            \"pro_rata\": true,\n            \"ability_to_non_deduct\": true,\n            \"exceed_end_of_year_balance\": false,\n            \"grace_period_amount\": null,\n            \"grace_period_interval\": null,\n            \"number_of_minutes_allowed\": null,\n            \"number_of_minutes_allowed_type\": null,\n            \"number_of_transactions_allowed\": null,\n            \"number_of_transactions_allowed_type\": null,\n            \"auto_move_balances\": true,\n            \"accumulative_balance_cap\": false,\n            \"maximum_cap_days\": 0,\n            \"link_with_probation\": false,\n            \"balances_effective_dates\": null,\n            \"created_at\": \"2017-09-26T07:01:52.134Z\",\n            \"updated_at\": \"2019-05-30\"\n        }\n    ]\n}"}],"_postman_id":"26737319-05b1-42e2-9318-bfec4e335f90"},{"name":"Get Timeoff","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": \"string\"},","                    \"en\": {\"type\": \"string\"}","                }","            },","            \"branch\": {\"type\": \"object\", \"properties\": {\"id\": {\"type\": \"number\"}}},","            \"cut_holidays\": {\"type\": \"boolean\"},","            \"cut_days_off\": {\"type\": \"boolean\"},","            \"exceed_balance\": {\"type\": \"boolean\"},","            \"accumulative\": {\"type\": \"boolean\"},","            \"class_name\": {\"type\": \"string\"},","            \"deduction_type\": {\"type\": \"number\"},","            \"deduction_amount\": {\"type\": \"number\"},","            \"is_sick_vacation\": {\"type\": \"boolean\"},","            \"allowed_min\": {\"type\": [\"null\", \"number\"]},","            \"pro_rata\": {\"type\": \"boolean\"},","            \"ability_to_non_deduct\": {\"type\": \"boolean\"},","            \"exceed_end_of_year_balance\": {\"type\": \"boolean\"},","            \"grace_period_amount\": {\"type\": [\"null\", \"number\"]},","            \"grace_period_interval\": {\"type\": [\"null\", \"string\"]},","            \"number_of_minutes_allowed\": {\"type\": [\"null\", \"number\"]},","            \"number_of_minutes_allowed_type\": {\"type\": [\"null\", \"string\"]},","            \"number_of_transactions_allowed\": {\"type\": [\"null\", \"number\"]},","            \"number_of_transactions_allowed_type\": {\"type\": [\"null\", \"string\"]},","            \"auto_move_balances\": {\"type\": \"boolean\"},","            \"accumulative_balance_cap\": {\"type\": \"boolean\"},","            \"maximum_cap_days\": {\"type\": \"number\"},","            \"link_with_probation\": {\"type\": \"boolean\"},","            \"balances_effective_dates\": {\"type\": [\"null\", \"string\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","    };","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"41aee6d6-8cc1-4e13-904c-033b8c9ab801"}}],"id":"72510a3a-2281-4983-ae50-0115a61cc54a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoffs/:timeoff_id","description":"<p>This API end-point will show an attendance record by branch_id and attendance record_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","timeoffs",":timeoff_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"c789edb8-6f24-4480-b750-212dff3a9ec9","type":"any","value":"","key":"branch_id"},{"id":"86de63d5-0596-44b4-aa67-8b938f7400a1","type":"any","value":"{{timeoff_id}}","key":"timeoff_id"}]}},"response":[{"id":"64e075b7-baeb-42aa-b6d7-0e7d14518d45","name":"Get Timeoff","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoffs/:timeoff_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","timeoffs",":timeoff_id"],"variable":[{"key":"branch_id","value":""},{"key":"timeoff_id","value":"{{timeoff_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ff153833540806a2d1cbf3d78363dec7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"62cfdff1-7ec2-4d47-b370-9e07eb0c1ca1"},{"key":"X-Runtime","value":"0.016674"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"758"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 18257,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"test\"\n    },\n    \"branch\": {\n        \"id\": 104\n    },\n    \"cut_holidays\": false,\n    \"cut_days_off\": false,\n    \"exceed_balance\": false,\n    \"accumulative\": false,\n    \"class_name\": \"AnnualVacation\",\n    \"deduction_type\": 1,\n    \"deduction_amount\": 0,\n    \"is_sick_vacation\": false,\n    \"allowed_min\": null,\n    \"pro_rata\": false,\n    \"ability_to_non_deduct\": true,\n    \"exceed_end_of_year_balance\": false,\n    \"grace_period_amount\": null,\n    \"grace_period_interval\": null,\n    \"number_of_minutes_allowed\": null,\n    \"number_of_minutes_allowed_type\": null,\n    \"number_of_transactions_allowed\": null,\n    \"number_of_transactions_allowed_type\": null,\n    \"auto_move_balances\": true,\n    \"accumulative_balance_cap\": false,\n    \"maximum_cap_days\": 0,\n    \"link_with_probation\": false,\n    \"balances_effective_dates\": null,\n    \"created_at\": \"2019-05-09T12:24:32.426Z\",\n    \"updated_at\": \"2022-12-07\"\n}"}],"_postman_id":"72510a3a-2281-4983-ae50-0115a61cc54a"}],"id":"2e5c6620-ca8a-4f65-a977-8e54d09d19f9","_postman_id":"2e5c6620-ca8a-4f65-a977-8e54d09d19f9","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Timeoff Transaction","item":[{"name":"List Timeoff Transactions","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"timeoff\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"from_date\": { \"type\": [\"string\", \"null\"] },","                        \"to_date\": { \"type\": [\"string\", \"null\"] },","                        \"amount\": { \"type\": \"number\" },","                        \"notes\": { \"type\": [\"string\", \"null\"] },","                        \"status\": { \"type\": \"string\" },","                        \"class_name\": { \"type\": \"string\" },","                        \"resumption_date\": { \"type\": \"string\" },","                        \"consider_taken_days\": { \"type\": \"boolean\" },","                        \"payroll_setup_info\": { \"type\": [\"object\", \"null\"] },","                        \"effective_date\": { \"type\": [\"string\", \"null\"] },","                        \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"employee\", \"timeoff\", \"amount\", \"notes\", \"status\", \"class_name\", \"resumption_date\", \"consider_taken_days\", \"payroll_setup_info\", \"effective_date\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","// Store the id of the first timeoff transaction in an environment variable","var responseData = pm.response.json();","var timeoffTransactionId = responseData.data[0].id;","pm.environment.set(\"timeoff_transaction_id\", timeoffTransactionId);"],"type":"text/javascript","id":"cc5aef56-b362-40d2-81fc-2e9585715866"}}],"id":"a89ce63e-5f49-452e-bbc5-2580c33f233b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoff_transactions","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","timeoff_transactions"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"key":"include[]","value":"attendance_record.attendance_details"},{"disabled":true,"key":"include[]","value":"attendance_record.attendance_machine"},{"disabled":true,"key":"filter[id][]","value":"2852"},{"disabled":true,"key":"filter[employee_id][]","value":"1151"},{"disabled":true,"key":"filter[timeoff_id][]","value":"809"},{"disabled":true,"key":"filter[amount][]","value":"3"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"fiilter[created_at][to]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[from_date][from]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[from_date][to]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[to_date][from]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[to_date][to]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][from]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][to]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[resumption_date][from]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[resumption_date][to]","value":"2023-01-01"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: timeoff_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: from_date, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: to_date, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: amount, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_date, dir: asc}"}],"variable":[{"id":"16da5207-4c82-4aa2-b960-b3c881565ddc","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"41845d1a-e5de-4e93-b332-fcb8a5c8a948","name":"List Timeoff Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoff_transactions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","timeoff_transactions"],"query":[{"key":"include","value":"attendance_record.attendance_details, attendance_record.attendance_machine","disabled":true},{"key":"page","value":"1","disabled":true},{"key":"limit","value":"10","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"97b6decd098a3a2d2278cd98a4ce81ce\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"afe4de6b-1129-4e09-a446-bab36bdc1a24"},{"key":"X-Runtime","value":"0.031146"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"4789"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 266,\n        \"total_pages\": 27\n    },\n    \"data\": [\n        {\n            \"id\": 62918,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 816\n            },\n            \"from_date\": \"2018-10-08T00:00:00.000+03:00\",\n            \"to_date\": \"2018-10-08T00:00:00.000+03:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"cancelled\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2018-10-09T00:00:00.000+03:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2018-12-20T17:29:54.731+02:00\",\n            \"updated_at\": \"2020-01-26T21:53:30.087Z\"\n        },\n        {\n            \"id\": 75030,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 809\n            },\n            \"from_date\": \"2019-02-01T00:00:00.000+02:00\",\n            \"to_date\": \"2019-03-03T00:00:00.000+02:00\",\n            \"amount\": 21,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-03-04T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-10T18:46:45.707+02:00\",\n            \"updated_at\": \"2020-01-26T23:33:18.073Z\"\n        },\n        {\n            \"id\": 75486,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 817\n            },\n            \"from_date\": \"2019-01-18T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-18T00:00:00.000+02:00\",\n            \"amount\": 0,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-19T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-13T12:27:27.859+02:00\",\n            \"updated_at\": \"2020-01-26T23:39:01.220Z\"\n        },\n        {\n            \"id\": 80306,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-20T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 2,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T13:34:06.378+02:00\",\n            \"updated_at\": \"2020-01-27T00:21:05.054Z\"\n        },\n        {\n            \"id\": 80327,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"cancelled\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-23T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T14:49:17.777+02:00\",\n            \"updated_at\": \"2020-01-26T19:22:55.776Z\"\n        },\n        {\n            \"id\": 80328,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-23T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-23T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-24T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T14:58:28.412+02:00\",\n            \"updated_at\": \"2020-01-27T00:20:49.697Z\"\n        },\n        {\n            \"id\": 80335,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-20T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-20T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:02:53.074+02:00\",\n            \"updated_at\": \"2020-01-27T00:22:15.541Z\"\n        },\n        {\n            \"id\": 80338,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:04:12.846+02:00\",\n            \"updated_at\": \"2020-01-27T00:21:30.692Z\"\n        },\n        {\n            \"id\": 80342,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 817\n            },\n            \"from_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"rejected\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:11:46.884+02:00\",\n            \"updated_at\": \"2020-01-27T00:20:49.871Z\"\n        },\n        {\n            \"id\": 80344,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"timeoff\": {\n                \"id\": 2123\n            },\n            \"from_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"to_date\": \"2019-01-21T00:00:00.000+02:00\",\n            \"amount\": 1,\n            \"notes\": \"\",\n            \"status\": \"withdrawn\",\n            \"class_name\": \"TimeoffTransaction::Request\",\n            \"resumption_date\": \"2019-01-22T00:00:00.000+02:00\",\n            \"consider_taken_days\": false,\n            \"payroll_setup_info\": null,\n            \"effective_date\": null,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-21T15:14:57.786+02:00\",\n            \"updated_at\": \"2020-01-27T00:20:04.580Z\"\n        }\n    ]\n}"}],"_postman_id":"a89ce63e-5f49-452e-bbc5-2580c33f233b"},{"name":"Get Timeoff Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"employee\": { \"type\": \"object\" },","            \"timeoff\": { \"type\": \"object\" },","            \"from_date\": { \"type\": \"string\" },","            \"to_date\": { \"type\": \"string\" },","            \"amount\": { \"type\": \"number\" },","            \"notes\": { \"type\": [\"string\", \"null\"] },","            \"status\": { \"type\": \"string\" },","            \"class_name\": { \"type\": \"string\" },","            \"resumption_date\": { \"type\": \"string\" },","            \"consider_taken_days\": { \"type\": \"boolean\" },","            \"payroll_setup_info\": { \"type\": \"null\" },","            \"effective_date\": { \"type\": \"null\" },","            \"cancel_requested_on\": { \"type\": \"null\" },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"employee\", \"timeoff\", \"from_date\", \"to_date\", \"amount\", \"notes\", \"status\", \"class_name\", \"resumption_date\", \"consider_taken_days\", \"payroll_setup_info\", \"effective_date\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"72b0cc4d-61ad-4cee-9d04-af5d48d804e6"}}],"id":"3bbfefd4-360c-430b-8146-363637f0524c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoff_transactions/:timeoff_transaction_id","description":"<p>This API end-point will show an attendance record by branch_id and attendance record_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","timeoff_transactions",":timeoff_transaction_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"attendance_record.attendance_details"},{"disabled":true,"key":"include[]","value":"attendance_record.attendance_machine"}],"variable":[{"id":"d4e03bb9-e011-41fa-aa39-25f198042eb1","type":"any","value":"","key":"branch_id"},{"id":"099c4483-1682-4dd4-b39c-d4863c66eafe","type":"any","value":"{{timeoff_transaction_id}}","key":"timeoff_transaction_id"}]}},"response":[{"id":"16244eba-c251-4d9f-85c9-1f4bb7df017d","name":"Get Timeoff Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoff_transactions/:timeoff_transaction_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","timeoff_transactions",":timeoff_transaction_id"],"variable":[{"key":"branch_id","value":""},{"key":"timeoff_transaction_id","value":"{{timeoff_transaction_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"047741c59e4fec40e2bccac5f9019a04\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"81a89061-ccab-4468-90a2-01f440348bf9"},{"key":"X-Runtime","value":"0.015913"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"468"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 62918,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"timeoff\": {\n        \"id\": 816\n    },\n    \"from_date\": \"2018-10-08T00:00:00.000+03:00\",\n    \"to_date\": \"2018-10-08T00:00:00.000+03:00\",\n    \"amount\": 1,\n    \"notes\": \"\",\n    \"status\": \"cancelled\",\n    \"class_name\": \"TimeoffTransaction::Request\",\n    \"resumption_date\": \"2018-10-09T00:00:00.000+03:00\",\n    \"consider_taken_days\": false,\n    \"payroll_setup_info\": null,\n    \"effective_date\": null,\n    \"cancel_requested_on\": null,\n    \"created_at\": \"2018-12-20T17:29:54.731+02:00\",\n    \"updated_at\": \"2020-01-26T21:53:30.087Z\"\n}"}],"_postman_id":"3bbfefd4-360c-430b-8146-363637f0524c"},{"name":"Create Timeoff Transaction Request","id":"967d6557-1fff-49dd-b6f8-0b477985d576","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text","description":"<p>integer</p>\n"},{"key":"timeoff_id","value":"810","type":"text","description":"<p>integer</p>\n"},{"key":"from_date","value":"2024-04-18","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"to_date","value":"2024-04-19","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"effective_date","value":"2024-04-18","type":"text","description":"<p>Date Format YYYY-MM-DD</p>\n"},{"key":"notes","value":"test","type":"text","description":"<p>string</p>\n"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/timeoff_transaction_requests/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","timeoff_transaction_requests",""],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[],"_postman_id":"967d6557-1fff-49dd-b6f8-0b477985d576"}],"id":"f587ca66-754f-4a37-b5ab-9571899a1b98","_postman_id":"f587ca66-754f-4a37-b5ab-9571899a1b98","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Financial Transaction Types","item":[{"name":"List Financal Transaction Types","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": {\"type\": \"number\"},","                    \"per_page\": {\"type\": \"number\"},","                    \"total_entries\": {\"type\": \"number\"},","                    \"total_pages\": {\"type\": \"number\"}","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": {\"type\": [\"string\", \"null\"] },","                                \"en\": {\"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"amount\": {\"type\": [\"number\", \"null\"]},","                        \"payroll_status\": {\"type\": \"string\"},","                        \"is_fixed\": {\"type\": \"boolean\"},","                        \"one_time\": {\"type\": \"boolean\"},","                        \"direction\": {\"type\": \"string\"},","                        \"min\": {\"type\": [\"number\", \"null\"]},","                        \"max\": {\"type\": [\"number\", \"null\"]},","                        \"exempted\": {\"type\": \"boolean\"},","                        \"pro_rata\": {\"type\": \"boolean\"},","                        \"mandatory_notes\": {\"type\": \"boolean\"},","                        \"hiring_termination_pro_rata\": {\"type\": \"boolean\"},","                        \"include_in_fixed_income\": {\"type\": \"boolean\"},","                        \"included_in_ss\": {\"type\": \"boolean\"},","                        \"active\": {\"type\": \"boolean\"},","                        \"gl_account_number\": { \"type\": [\"string\", \"null\"] },","                        \"clearance_account\": { \"type\": [\"string\", \"null\"] },","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\", \"gl_account_number\",\"clearance_account\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var financialTransactionTypeId = responseBody.data[0].id;","pm.environment.set(\"financial_transaction_type_id\", financialTransactionTypeId);"],"type":"text/javascript","packages":{},"id":"88fc420a-a8e0-4aed-b3d9-436369265fdf"}}],"id":"7ae4ac88-281a-4388-98b4-1ae11ec64fdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types","description":"<p>This API end-point will list all financial transaction types in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transaction_types"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"filter[id][]","value":"37810"},{"disabled":true,"key":"filter[amount][]","value":"50"},{"disabled":true,"key":"filter[ability_to_request][]","value":"true"},{"disabled":true,"key":"filter[gl_account_number][]","value":"20"},{"disabled":true,"key":"filter[integration_maps][gl_id]","value":"test1"},{"disabled":true,"key":"filter[clearance_account][]","value":"312"},{"disabled":true,"key":"filter[mandatory_attachment][]","value":"true"},{"disabled":true,"key":"filter[include_in_fixed_income][]","value":"false"},{"disabled":true,"key":"filter[is_fixed][]","value":"true"},{"disabled":true,"key":"filter[one_time][]","value":"true"},{"disabled":true,"description":{"content":"<p>direction types [incomes: 1, deductions: 2, company_expenses: 3]</p>\n","type":"text/plain"},"key":"filter[direction][]","value":"1"},{"disabled":true,"key":"filter[min][]","value":"10"},{"disabled":true,"key":"filter[max][]","value":"10"},{"disabled":true,"key":"filter[exempted][]","value":"true"},{"disabled":true,"key":"filter[pro_rata][]","value":"true"},{"disabled":true,"key":"filter[mandatory_notes][]","value":"false"},{"disabled":true,"key":"filter[included_in_ss][]","value":"true"},{"disabled":true,"key":"filter[active][]","value":"true"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[{"id":"980d9cb7-8e29-4c45-b216-34561f7bcc07","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"57a6455c-31ec-4fa2-873b-2ae767e34366","name":"List Financal Transaction Types","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transaction_types"],"query":[{"key":"filter[id][]","value":"37810","disabled":true},{"key":"filter[amount][]","value":"50","disabled":true},{"key":"filter[ability_to_request][]","value":"true","disabled":true},{"key":"filter[gl_account_number][]","value":"20","disabled":true},{"key":"filter[integration_maps][gl_id]","value":"test1","disabled":true},{"key":"filter[clearance_account][]","value":"312","disabled":true},{"key":"filter[mandatory_attachment][]","value":"true","disabled":true},{"key":"filter[include_in_fixed_income][]","value":"false","disabled":true},{"key":"filter[is_fixed][]","value":"true","disabled":true},{"key":"filter[one_time][]","value":"true","disabled":true},{"key":"filter[direction][]","value":"1","description":"direction types [incomes: 1, deductions: 2, company_expenses: 3]","disabled":true},{"key":"filter[min][]","value":"10","disabled":true},{"key":"filter[max][]","value":"10","disabled":true},{"key":"filter[exempted][]","value":"true","disabled":true},{"key":"filter[pro_rata][]","value":"true","disabled":true},{"key":"filter[mandatory_notes][]","value":"false","disabled":true},{"key":"filter[included_in_ss][]","value":"true","disabled":true},{"key":"filter[active][]","value":"true","disabled":true},{"key":"filter[created_at][from]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[created_at][to]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][from]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][to]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: name->en, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: name->ar, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"1290efb97bd769f85992ada226c27e92\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a166dd27-e041-4fb6-bf06-ce62ef087c39"},{"key":"X-Runtime","value":"0.424077"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"12497"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 95,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 44574,\n            \"name\": {\n                \"ar\": \"kaman test \",\n                \"en\": \"tets\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-28T10:21:25.229Z\",\n            \"updated_at\": \"2024-05-28T10:21:25.229Z\"\n        },\n        {\n            \"id\": 44575,\n            \"name\": {\n                \"ar\": \"kaman test \",\n                \"en\": \"tets\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-28T10:25:08.459Z\",\n            \"updated_at\": \"2024-05-28T10:25:08.459Z\"\n        },\n        {\n            \"id\": 44576,\n            \"name\": {\n                \"ar\": \"kaman test \",\n                \"en\": \"tets\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-28T10:25:43.555Z\",\n            \"updated_at\": \"2024-05-28T10:25:43.555Z\"\n        },\n        {\n            \"id\": 44577,\n            \"name\": {\n                \"ar\": \"kaman test \",\n                \"en\": \"tets\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-28T10:26:19.424Z\",\n            \"updated_at\": \"2024-05-28T10:26:19.424Z\"\n        },\n        {\n            \"id\": 8580,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"ProductionDig\"\n            },\n            \"amount\": 999999999999,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": false,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-07-21T11:51:40.067Z\",\n            \"updated_at\": \"2020-07-21T11:51:40.067Z\"\n        },\n        {\n            \"id\": 8583,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"ProductionDig\"\n            },\n            \"amount\": 20000000000,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-07-21T13:40:15.172Z\",\n            \"updated_at\": \"2020-07-21T13:40:55.210Z\"\n        },\n        {\n            \"id\": 8650,\n            \"name\": {\n                \"ar\": \"بدل برودكشن\",\n                \"en\": \"ProdTest\"\n            },\n            \"amount\": 80,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": false,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-07-29T11:42:47.636Z\",\n            \"updated_at\": \"2020-07-29T11:43:17.675Z\"\n        },\n        {\n            \"id\": 212,\n            \"name\": {\n                \"ar\": \"ايرادات اخرى\",\n                \"en\": \"Other Income1\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:01:52.197Z\",\n            \"updated_at\": \"2018-05-20T10:36:28.759Z\"\n        },\n        {\n            \"id\": 213,\n            \"name\": {\n                \"ar\": \"اقتطاعات اخرى\",\n                \"en\": \"Other Deduction\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"deductions\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": true,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:01:52.214Z\",\n            \"updated_at\": \"2020-05-20T14:13:07.474Z\"\n        },\n        {\n            \"id\": 214,\n            \"name\": {\n                \"ar\": \"بدل مواصلات\",\n                \"en\": \"Transportation Income\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:11:15.135Z\",\n            \"updated_at\": \"2017-09-26T07:11:15.135Z\"\n        },\n        {\n            \"id\": 215,\n            \"name\": {\n                \"ar\": \"بدل مواصلات\",\n                \"en\": \"Transportation Allowance\"\n            },\n            \"amount\": 50,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": false,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": true,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:11:36.824Z\",\n            \"updated_at\": \"2017-11-07T15:55:50.111Z\"\n        },\n        {\n            \"id\": 216,\n            \"name\": {\n                \"ar\": \"مكافأة\",\n                \"en\": \"Bonus!\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"out_of_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:12:13.554Z\",\n            \"updated_at\": \"2023-11-14T08:28:33.935Z\"\n        },\n        {\n            \"id\": 217,\n            \"name\": {\n                \"ar\": \"اقتطاع هيئة اجتماعية\",\n                \"en\": \"Social Committee Deduction\"\n            },\n            \"amount\": 2,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": false,\n            \"direction\": \"deductions\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": true,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:13:17.154Z\",\n            \"updated_at\": \"2020-05-20T14:13:07.486Z\"\n        },\n        {\n            \"id\": 218,\n            \"name\": {\n                \"ar\": \"بدل سكن\",\n                \"en\": \"Housing Allowance\"\n            },\n            \"amount\": 200,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": false,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": false,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:13:44.830Z\",\n            \"updated_at\": \"2021-07-11T12:45:30.281Z\"\n        },\n        {\n            \"id\": 219,\n            \"name\": {\n                \"ar\": \"اقتطاع انذار\",\n                \"en\": \"Warning Deduction\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"deductions\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": true,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:15:02.705Z\",\n            \"updated_at\": \"2020-05-20T14:13:07.499Z\"\n        },\n        {\n            \"id\": 277,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Speeding Fine\"\n            },\n            \"amount\": 600,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"deductions\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": true,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-10-24T07:04:07.977Z\",\n            \"updated_at\": \"2017-10-24T07:04:07.977Z\"\n        },\n        {\n            \"id\": 1059,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Pension Contr\"\n            },\n            \"amount\": 5,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": false,\n            \"direction\": \"deductions\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": true,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-04-12T06:36:18.000Z\",\n            \"updated_at\": \"2018-04-12T06:36:18.000Z\"\n        },\n        {\n            \"id\": 44578,\n            \"name\": {\n                \"ar\": \"kaman test \",\n                \"en\": \"tets\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-28T10:27:48.800Z\",\n            \"updated_at\": \"2024-05-28T10:27:48.800Z\"\n        },\n        {\n            \"id\": 1554,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Financial Claims\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-01T12:30:01.335Z\",\n            \"updated_at\": \"2018-07-01T12:30:01.335Z\"\n        },\n        {\n            \"id\": 1748,\n            \"name\": {\n                \"ar\": \"علاوة\",\n                \"en\": \"Allowance 2222\"\n            },\n            \"amount\": 50,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": false,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-22T12:28:36.713Z\",\n            \"updated_at\": \"2023-02-01T13:39:05.209Z\"\n        },\n        {\n            \"id\": 1961,\n            \"name\": {\n                \"ar\": \"مصاريف السفر\",\n                \"en\": \"Travel Expenses\"\n            },\n            \"amount\": 0,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": true,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-08-09T13:53:37.849Z\",\n            \"updated_at\": \"2018-08-09T13:55:41.332Z\"\n        },\n        {\n            \"id\": 2664,\n            \"name\": {\n                \"ar\": \"طلب شراء لابتوب\",\n                \"en\": \"Other income\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": false,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2018-11-08T10:32:55.970Z\",\n            \"updated_at\": \"2021-01-19T09:34:38.535Z\"\n        },\n        {\n            \"id\": 2686,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"new test\"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": true,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-11-11T12:45:33.454Z\",\n            \"updated_at\": \"2018-11-11T12:46:04.440Z\"\n        },\n        {\n            \"id\": 2778,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"samhoore \"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-11-19T13:16:30.317Z\",\n            \"updated_at\": \"2018-11-19T13:16:30.317Z\"\n        },\n        {\n            \"id\": 4667,\n            \"name\": {\n                \"ar\": \"تذكرة طيران\",\n                \"en\": \"Air Tickets \"\n            },\n            \"amount\": null,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"exempted\": true,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": true,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": \"\",\n            \"clearance_account\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-04-23T10:12:58.676Z\",\n            \"updated_at\": \"2021-01-19T11:40:39.933Z\"\n        }\n    ]\n}"}],"_postman_id":"7ae4ac88-281a-4388-98b4-1ae11ec64fdd"},{"name":"Get Financial Transaction Type","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"amount\": { \"type\": [\"null\", \"number\"] },","            \"payroll_status\": { \"type\": \"string\" },","            \"is_fixed\": { \"type\": \"boolean\" },","            \"one_time\": { \"type\": \"boolean\" },","            \"direction\": { \"type\": \"string\" },","            \"min\": { \"type\": [\"null\", \"number\"] },","            \"max\": { \"type\": [\"null\", \"number\"] },","            \"exempted\": { \"type\": \"boolean\" },","            \"pro_rata\": { \"type\": \"boolean\" },","            \"mandatory_notes\": { \"type\": \"boolean\" },","            \"hiring_termination_pro_rata\": { \"type\": \"boolean\" },","            \"include_in_fixed_income\": { \"type\": \"boolean\" },","            \"included_in_ss\": { \"type\": \"boolean\" },","            \"active\": { \"type\": \"boolean\" },","            \"gl_account_number\": { \"type\": [\"string\", \"null\"] },","            \"clearance_account\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\",\"gl_account_number\", \"clearance_account\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"3b43e6fb-6cf2-4007-baa1-923456ad15d4"}}],"id":"050f762a-7e24-47c0-9f7a-8560977030f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id","description":"<p>This API end-point will show a financial transaction type in branch by branch_id and financial_transaction_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transaction_types",":financial_transaction_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"cb2e3a35-f1a0-450f-8c92-3953e9bbfe9d","type":"any","value":"","key":"branch_id"},{"id":"d2fdc5ee-02d8-4b21-929b-b52842264b3d","type":"any","value":"{{financial_transaction_type_id}}","key":"financial_transaction_type_id"}]}},"response":[{"id":"d7a6186c-fb33-476a-8c2c-64380ced08d6","name":"Get Financial Transaction Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transaction_types",":financial_transaction_type_id"],"variable":[{"key":"branch_id","value":""},{"key":"financial_transaction_type_id","value":"{{financial_transaction_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e65eb8df840c04464d84441b0508f1a3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6fe690d7-d357-4ba1-aa24-f88b6cb118b5"},{"key":"X-Runtime","value":"0.081185"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"485"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44574,\n    \"name\": {\n        \"ar\": \"kaman test \",\n        \"en\": \"tets\"\n    },\n    \"amount\": null,\n    \"payroll_status\": \"in_payroll\",\n    \"is_fixed\": true,\n    \"one_time\": true,\n    \"direction\": \"incomes\",\n    \"min\": null,\n    \"max\": null,\n    \"exempted\": false,\n    \"pro_rata\": false,\n    \"mandatory_notes\": false,\n    \"hiring_termination_pro_rata\": true,\n    \"include_in_fixed_income\": true,\n    \"included_in_ss\": false,\n    \"active\": true,\n    \"gl_account_number\": null,\n    \"clearance_account\": null,\n    \"integration_maps\": [],\n    \"created_at\": \"2024-05-28T10:21:25.229Z\",\n    \"updated_at\": \"2024-05-28T10:21:25.229Z\"\n}"}],"_postman_id":"050f762a-7e24-47c0-9f7a-8560977030f2"},{"name":"Create Financial Transaction Type Copy","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 201","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"amount\": { \"type\": [\"null\", \"number\"] },","            \"payroll_status\": { \"type\": \"string\" },","            \"is_fixed\": { \"type\": \"boolean\" },","            \"one_time\": { \"type\": \"boolean\" },","            \"direction\": { \"type\": \"string\" },","            \"min\": { \"type\": [\"null\", \"number\"] },","            \"max\": { \"type\": [\"null\", \"number\"] },","            \"exempted\": { \"type\": \"boolean\" },","            \"pro_rata\": { \"type\": \"boolean\" },","            \"mandatory_notes\": { \"type\": \"boolean\" },","            \"hiring_termination_pro_rata\": { \"type\": \"boolean\" },","            \"include_in_fixed_income\": { \"type\": \"boolean\" },","            \"included_in_ss\": { \"type\": \"boolean\" },","            \"active\": { \"type\": \"boolean\" },","            \"gl_account_number\": { \"type\": [\"string\", \"null\"] },","            \"clearance_account\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\",\"gl_account_number\", \"clearance_account\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"a3878e44-154c-4d08-85b4-ffe4a25f4aba"}}],"id":"6f520cf7-b8ad-4872-af11-d7b30fbcbcbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"tets","type":"text"},{"key":"name[ar]","value":"kaman test ","type":"text"},{"key":"direction","value":"1","type":"text"},{"key":"is_fixed","value":"true","type":"text"},{"key":"one_time","value":"true","type":"text"},{"key":"gl_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types","description":"<p>This API end-point will show a financial transaction type in branch by branch_id and financial_transaction_type_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id?page=3&amp;limit=2</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transaction_types"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"2294b762-eed1-4edb-9758-1b85764dd3f0","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"dc416836-b49a-471c-b77a-4f33d7c8f98f","name":"Create Financial Transaction Type Copy","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"tets","type":"text"},{"key":"name[ar]","value":"kaman test ","type":"text"},{"key":"direction","value":"1","type":"text"},{"key":"is_fixed","value":"true","type":"text"},{"key":"one_time","value":"true","type":"text"},{"key":"gl_id","value":"test1","type":"text","disabled":true}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transaction_types"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a806045d16c28d7d358502aff99c74c0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"95e97088-8174-4cd7-8580-dca74c88ec55"},{"key":"X-Runtime","value":"0.288117"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"485"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44579,\n    \"name\": {\n        \"ar\": \"kaman test \",\n        \"en\": \"tets\"\n    },\n    \"amount\": null,\n    \"payroll_status\": \"in_payroll\",\n    \"is_fixed\": true,\n    \"one_time\": true,\n    \"direction\": \"incomes\",\n    \"min\": null,\n    \"max\": null,\n    \"exempted\": false,\n    \"pro_rata\": false,\n    \"mandatory_notes\": false,\n    \"hiring_termination_pro_rata\": true,\n    \"include_in_fixed_income\": true,\n    \"included_in_ss\": false,\n    \"active\": true,\n    \"gl_account_number\": null,\n    \"clearance_account\": null,\n    \"integration_maps\": [],\n    \"created_at\": \"2024-05-30T14:08:11.766Z\",\n    \"updated_at\": \"2024-05-30T14:08:11.766Z\"\n}"}],"_postman_id":"6f520cf7-b8ad-4872-af11-d7b30fbcbcbd"},{"name":"Update Financial Transaction Type Copy 2","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"amount\": { \"type\": [\"null\", \"number\"] },","            \"payroll_status\": { \"type\": \"string\" },","            \"is_fixed\": { \"type\": \"boolean\" },","            \"one_time\": { \"type\": \"boolean\" },","            \"direction\": { \"type\": \"string\" },","            \"min\": { \"type\": [\"null\", \"number\"] },","            \"max\": { \"type\": [\"null\", \"number\"] },","            \"exempted\": { \"type\": \"boolean\" },","            \"pro_rata\": { \"type\": \"boolean\" },","            \"mandatory_notes\": { \"type\": \"boolean\" },","            \"hiring_termination_pro_rata\": { \"type\": \"boolean\" },","            \"include_in_fixed_income\": { \"type\": \"boolean\" },","            \"included_in_ss\": { \"type\": \"boolean\" },","            \"active\": { \"type\": \"boolean\" },","            \"gl_account_number\": { \"type\": [\"string\", \"null\"] },","            \"clearance_account\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\",\"gl_account_number\", \"clearance_account\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"7ed2abbf-065c-4c5e-a1ae-e2cf62dab0c6"}}],"id":"58f962fd-3821-45fa-9cc4-7006f84b889b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name[en]","value":"tets","type":"text"},{"key":"name[ar]","value":"kaman test ","type":"text"},{"key":"direction","value":"1","type":"text"},{"key":"is_fixed","value":"true","type":"text"},{"key":"one_time","value":"true","type":"text"},{"key":"gl_id","value":"test12","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id","description":"<p>This API end-point will show a financial transaction type in branch by branch_id and financial_transaction_type_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id?page=3&amp;limit=2</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transaction_types",":financial_transaction_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"a4c09a8d-4adf-4f31-b3e8-fa00e8352975","type":"any","value":"","key":"branch_id"},{"id":"4505601f-ce7c-4fe7-bbd2-86bed58d163f","type":"any","value":"{{financial_transaction_type_id}}","key":"financial_transaction_type_id"}]}},"response":[{"id":"9a75bf61-3dbe-4de6-9331-6124d031f0b9","name":"Update Financial Transaction Type Copy 2","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name[en]","value":"tets","type":"text"},{"key":"name[ar]","value":"kaman test ","type":"text"},{"key":"direction","value":"1","type":"text"},{"key":"is_fixed","value":"true","type":"text"},{"key":"one_time","value":"true","type":"text"},{"key":"gl_id","value":"test12","type":"text","disabled":true}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transaction_types",":financial_transaction_type_id"],"variable":[{"key":"branch_id","value":""},{"key":"financial_transaction_type_id","value":"{{financial_transaction_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e65eb8df840c04464d84441b0508f1a3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"728ad642-e4f9-4de8-93be-a283974b0b15"},{"key":"X-Runtime","value":"0.142110"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"485"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44574,\n    \"name\": {\n        \"ar\": \"kaman test \",\n        \"en\": \"tets\"\n    },\n    \"amount\": null,\n    \"payroll_status\": \"in_payroll\",\n    \"is_fixed\": true,\n    \"one_time\": true,\n    \"direction\": \"incomes\",\n    \"min\": null,\n    \"max\": null,\n    \"exempted\": false,\n    \"pro_rata\": false,\n    \"mandatory_notes\": false,\n    \"hiring_termination_pro_rata\": true,\n    \"include_in_fixed_income\": true,\n    \"included_in_ss\": false,\n    \"active\": true,\n    \"gl_account_number\": null,\n    \"clearance_account\": null,\n    \"integration_maps\": [],\n    \"created_at\": \"2024-05-28T10:21:25.229Z\",\n    \"updated_at\": \"2024-05-28T10:21:25.229Z\"\n}"}],"_postman_id":"58f962fd-3821-45fa-9cc4-7006f84b889b"},{"name":"Delete Financial Transaction Type Copy 3","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"amount\": { \"type\": [\"null\", \"number\"] },","            \"payroll_status\": { \"type\": \"string\" },","            \"is_fixed\": { \"type\": \"boolean\" },","            \"one_time\": { \"type\": \"boolean\" },","            \"direction\": { \"type\": \"string\" },","            \"min\": { \"type\": [\"null\", \"number\"] },","            \"max\": { \"type\": [\"null\", \"number\"] },","            \"exempted\": { \"type\": \"boolean\" },","            \"pro_rata\": { \"type\": \"boolean\" },","            \"mandatory_notes\": { \"type\": \"boolean\" },","            \"hiring_termination_pro_rata\": { \"type\": \"boolean\" },","            \"include_in_fixed_income\": { \"type\": \"boolean\" },","            \"included_in_ss\": { \"type\": \"boolean\" },","            \"active\": { \"type\": \"boolean\" },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"157bb0f3-a3ca-4872-acc3-ffb7736217e8"}}],"id":"b16ae00c-a48b-4053-8554-88ef5cf369cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id","description":"<p>This API end-point will show a financial transaction type in branch by branch_id and financial_transaction_type_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id?page=3&amp;limit=2</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transaction_types",":financial_transaction_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"40f41c2c-d82d-4dc4-87dc-7eae2e4f1607","type":"any","value":"","key":"branch_id"},{"id":"1fa1fb1d-2645-4691-833f-8946012caefc","type":"any","value":"{{financial_transaction_type_id}}","key":"financial_transaction_type_id"}]}},"response":[{"id":"5a85c9ef-50de-479f-bf89-9b175225e101","name":"Get Financial Transaction Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transaction_types",":financial_transaction_type_id"],"variable":[{"key":"branch_id","value":""},{"key":"financial_transaction_type_id","value":"{{financial_transaction_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"cba0cc8522d6022985efe84d52308b7f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1e84f7eb-859a-4763-af9e-aa5f047ffd1e"},{"key":"X-Runtime","value":"0.014776"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"433"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 212,\n    \"name\": {\n        \"ar\": \"ايرادات اخرى\",\n        \"en\": \"Other Income1\"\n    },\n    \"amount\": null,\n    \"payroll_status\": \"in_payroll\",\n    \"is_fixed\": false,\n    \"one_time\": true,\n    \"direction\": \"incomes\",\n    \"min\": null,\n    \"max\": null,\n    \"exempted\": false,\n    \"pro_rata\": false,\n    \"mandatory_notes\": false,\n    \"hiring_termination_pro_rata\": true,\n    \"include_in_fixed_income\": true,\n    \"included_in_ss\": false,\n    \"active\": true,\n    \"created_at\": \"2017-09-26T07:01:52.197Z\",\n    \"updated_at\": \"2018-05-20T10:36:28.759Z\"\n}"}],"_postman_id":"b16ae00c-a48b-4053-8554-88ef5cf369cb"}],"id":"e5f0b460-fcec-4e15-9fab-74575bb91d69","_postman_id":"e5f0b460-fcec-4e15-9fab-74575bb91d69","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Financial Transactions","item":[{"name":"List Financal Transactions","event":[{"listen":"test","script":{"id":"95bfa95e-a9e7-414a-829d-410de8eec7c7","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response should match the JSON schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"financial_transaction_type\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"transaction_status\": { \"type\": \"string\" },","                        \"direction\": { \"type\": \"string\" },","                        \"out_of_payroll\": { \"type\": \"boolean\" },","                        \"amount\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"amount\": { \"type\": \"number\" },","                                \"currency\": { \"type\": \"string\" }","                            },","                            \"required\": [\"amount\", \"currency\"]","                        },","                        \"notes\": { \"type\": \"string\" },","                        \"effective_date\": { \"type\": \"string\" },","                        \"cancel_requested\": { \"type\": \"boolean\" },","                        \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first financial_transaction_id from the response and store it in an environment variable","var responseBody = pm.response.json();","var firstTransaction = responseBody.data[0];","var firstTransactionId = firstTransaction.id;","","pm.environment.set(\"financial_transaction_id\", firstTransactionId);"],"type":"text/javascript","packages":{}}}],"id":"9d5fa7ec-6d4e-4212-8962-fe9773d93137","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions","description":"<p>This API end-point will list all financial transactions in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transactions"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"financial_transaction.financial_transaction_type"},{"disabled":true,"key":"include[]","value":"financial_transaction.employee"},{"disabled":true,"key":"filter[id][]","value":"1905"},{"disabled":true,"key":"filter[integration_maps][gl_id]","value":"test1"},{"disabled":true,"key":"filter[employee][integration_maps][gl_id]","value":"342reqaaaatest"},{"disabled":true,"key":"filter[financial_transaction_type_id][]","value":"212"},{"disabled":true,"description":{"content":"<p>{ 1-&gt; Income / 2-&gt; Deduction / 3-&gt; expenses }</p>\n","type":"text/plain"},"key":"filter[financial_transaction_type][direction]","value":"3"},{"disabled":true,"key":"filter[employee_id][]","value":"3161"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][from]","value":"2022-10-21"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[effective_date][to]","value":"2022-10-21"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: effective_date, dir: asc}"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"c08549b0-e142-47b0-b28d-b22d51a445a9","name":"List Financal Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transactions"],"query":[{"key":"page","value":"1","description":"Page number","disabled":true},{"key":"limit","value":"3","description":"Records limit per page","disabled":true},{"key":"include[]","value":"financial_transaction.financial_transaction_type","disabled":true},{"key":"include[]","value":"financial_transaction.employee","disabled":true},{"key":"filter[id][]","value":"1905","disabled":true},{"key":"filter[integration_maps][gl_id]","value":"test1","disabled":true},{"key":"filter[employee][integration_maps][gl_id]","value":"342reqaaaatest","disabled":true},{"key":"filter[financial_transaction_type_id][]","value":"212","disabled":true},{"key":"filter[financial_transaction_type][direction]","value":"3","disabled":true},{"key":"filter[employee_id][]","value":"3161","disabled":true},{"key":"filter[created_at][from]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[created_at][to]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][from]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][to]","value":"2022-10-20","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[effective_date][from]","value":"2022-10-21","description":"Format YYYY-MM-DD","disabled":true},{"key":"filter[effective_date][to]","value":"2022-10-21","description":"Format YYYY-MM-DD","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: employee_id, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: effective_date, dir: asc}","description":"format { column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ada590373058b2b1cbc57295919c692f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b91aea55-a524-4d30-a790-36b88102ed71"},{"key":"X-Runtime","value":"0.411299"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"8813"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1293,\n        \"total_pages\": 52\n    },\n    \"data\": [\n        {\n            \"id\": 335,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1153\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 30,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-02\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 336,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1154\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 22,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-03\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 337,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1155\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-04\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 338,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1156\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 14,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-05\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 339,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1157\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 15,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-06\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 341,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1152\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 8,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-08\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 342,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 70,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-09\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 343,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1151\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 10,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-01\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 344,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1153\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 5,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-02\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 345,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1154\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 3.5,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-03\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 346,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1155\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 9,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-04\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 347,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1156\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 21,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-05\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 348,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1157\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 12,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-06\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 350,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1152\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 10,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-08\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 351,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 11.5,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-09-09\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 525,\n            \"financial_transaction_type\": {\n                \"id\": 216\n            },\n            \"employee\": {\n                \"id\": 1152\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-12-29\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 535,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 1496\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 10,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2017-10-24\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 1379,\n            \"financial_transaction_type\": {\n                \"id\": 216\n            },\n            \"employee\": {\n                \"id\": 2054\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-02-27\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 1386,\n            \"financial_transaction_type\": {\n                \"id\": 214\n            },\n            \"employee\": {\n                \"id\": 2054\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-01-31\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": \"2019-01-20T10:27:05.491Z\"\n        },\n        {\n            \"id\": 1387,\n            \"financial_transaction_type\": {\n                \"id\": 214\n            },\n            \"employee\": {\n                \"id\": 2054\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 30,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-02-27\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 1390,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 2054\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-03-30\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 1424,\n            \"financial_transaction_type\": {\n                \"id\": 213\n            },\n            \"employee\": {\n                \"id\": 2054\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"deduction\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-03-22\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 1822,\n            \"financial_transaction_type\": {\n                \"id\": 214\n            },\n            \"employee\": {\n                \"id\": 3161\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 100,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"trajbkba\",\n            \"effective_date\": \"2018-08-31\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 1905,\n            \"financial_transaction_type\": {\n                \"id\": 212\n            },\n            \"employee\": {\n                \"id\": 3161\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 39.062,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-07-31\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        },\n        {\n            \"id\": 1911,\n            \"financial_transaction_type\": {\n                \"id\": 216\n            },\n            \"employee\": {\n                \"id\": 3161\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": false,\n            \"amount\": {\n                \"amount\": 50,\n                \"currency\": \"JOD\"\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2018-08-31\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"integration_maps\": [],\n            \"created_at\": null,\n            \"updated_at\": null\n        }\n    ]\n}"}],"_postman_id":"9d5fa7ec-6d4e-4212-8962-fe9773d93137"},{"name":"Get Financial Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"financial_transaction_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"transaction_status\": { \"type\": \"string\" },","            \"direction\": { \"type\": \"string\" },","            \"out_of_payroll\": { \"type\": \"boolean\" },","            \"amount\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": { \"type\": \"number\" },","                    \"currency\": { \"type\": \"string\" }","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"notes\": { \"type\": \"string\" },","            \"effective_date\": { \"type\": \"string\" },","            \"cancel_requested\": { \"type\": \"boolean\" },","            \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"a3ad99eb-4267-493a-8905-fd734a70d18d"}}],"id":"fc38926c-1f7d-4eaf-8620-233ddb90027c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions/:financial_transaction_id","description":"<p>This API end-point will show financial transaction by branch_id, and financial_transaction_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transactions",":financial_transaction_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"financial_transaction.employee"},{"disabled":true,"key":"include[]","value":"financial_transaction.financial_transaction_type"}],"variable":[{"id":"94d4ce79-9a68-4619-a218-c5dbb6876e81","type":"any","value":"","key":"branch_id"},{"id":"031a9fec-e001-4131-ad25-283efb25876c","type":"any","value":"{{financial_transaction_id}}","key":"financial_transaction_id"}]}},"response":[{"id":"391b2020-ba33-4371-99bf-b71a2c5cdccd","name":"Get Financial Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions/335","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transactions","335"],"query":[{"key":"include[]","value":"financial_transaction.employee","disabled":true},{"key":"include[]","value":"financial_transaction.financial_transaction_type","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"74a3d7c2bc137cc953c3e6092b792e6c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9708773a-891f-4c88-9704-fd6726b08e2a"},{"key":"X-Runtime","value":"0.089377"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"345"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 335,\n    \"financial_transaction_type\": {\n        \"id\": 212\n    },\n    \"employee\": {\n        \"id\": 1153\n    },\n    \"transaction_status\": \"added_by_hr\",\n    \"direction\": \"income\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 30,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"\",\n    \"effective_date\": \"2017-09-02\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"integration_maps\": [],\n    \"created_at\": null,\n    \"updated_at\": null\n}"}],"_postman_id":"fc38926c-1f7d-4eaf-8620-233ddb90027c"},{"name":"Create Financial Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"financial_transaction_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"transaction_status\": { \"type\": \"string\" },","            \"direction\": { \"type\": \"string\" },","            \"out_of_payroll\": { \"type\": \"boolean\" },","            \"amount\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": { \"type\": \"number\" },","                    \"currency\": { \"type\": \"string\" }","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"notes\": { \"type\": \"string\" },","            \"effective_date\": { \"type\": \"string\" },","            \"cancel_requested\": { \"type\": \"boolean\" },","            \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"095c5fcf-4d00-48d3-be1e-3b9fa7c23ca0"}}],"id":"a267cfb6-fd2a-43f8-b46c-bd2b7c6706ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"financial_transaction_type_id","value":"33274","type":"text"},{"key":"amount_fils","value":"15999","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2024-06-01","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2024-06-02","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"19000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"gl_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions","description":"<p>This API end-point will show financial transaction by branch_id, and financial_transaction_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transactions"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"84bfa1ca-7122-4d12-9707-0c79b6ed262a","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"c20f0998-78bc-4cc6-ac49-33b5ed93244a","name":"Create Financial Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions/335","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transactions","335"],"query":[{"key":"include[]","value":"financial_transaction.employee","disabled":true},{"key":"include[]","value":"financial_transaction.financial_transaction_type","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"74a3d7c2bc137cc953c3e6092b792e6c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9708773a-891f-4c88-9704-fd6726b08e2a"},{"key":"X-Runtime","value":"0.089377"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"345"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 335,\n    \"financial_transaction_type\": {\n        \"id\": 212\n    },\n    \"employee\": {\n        \"id\": 1153\n    },\n    \"transaction_status\": \"added_by_hr\",\n    \"direction\": \"income\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 30,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"\",\n    \"effective_date\": \"2017-09-02\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"integration_maps\": [],\n    \"created_at\": null,\n    \"updated_at\": null\n}"}],"_postman_id":"a267cfb6-fd2a-43f8-b46c-bd2b7c6706ac"},{"name":"Edit Financial Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"financial_transaction_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"transaction_status\": { \"type\": \"string\" },","            \"direction\": { \"type\": \"string\" },","            \"out_of_payroll\": { \"type\": \"boolean\" },","            \"amount\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": { \"type\": \"number\" },","                    \"currency\": { \"type\": \"string\" }","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"notes\": { \"type\": \"string\" },","            \"effective_date\": { \"type\": \"string\" },","            \"cancel_requested\": { \"type\": \"boolean\" },","            \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"e1d4df90-e8a0-4bdb-a66a-ba51723ad36d"}}],"id":"545959e6-df4a-4d20-9e34-6b8feba822bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"financial_transaction_type_id","value":"33274","type":"text"},{"key":"amount_fils","value":"15999","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2024-06-01","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2024-06-02","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"19000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"gl_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions/:financial_transaction_id","description":"<p>This API end-point will show financial transaction by branch_id, and financial_transaction_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transactions",":financial_transaction_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"b4261d79-0867-471f-a202-1b6646af7609","type":"any","value":"","key":"branch_id"},{"id":"e743e1b9-a125-4754-91d3-8c81f948c37b","type":"any","value":"","key":"financial_transaction_id"}]}},"response":[{"id":"a08bc39c-9bf8-4eed-a8ca-4cc3af3bbf6b","name":"Edit Financial Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions/335","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transactions","335"],"query":[{"key":"include[]","value":"financial_transaction.employee","disabled":true},{"key":"include[]","value":"financial_transaction.financial_transaction_type","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"74a3d7c2bc137cc953c3e6092b792e6c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9708773a-891f-4c88-9704-fd6726b08e2a"},{"key":"X-Runtime","value":"0.089377"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"345"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 335,\n    \"financial_transaction_type\": {\n        \"id\": 212\n    },\n    \"employee\": {\n        \"id\": 1153\n    },\n    \"transaction_status\": \"added_by_hr\",\n    \"direction\": \"income\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 30,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"\",\n    \"effective_date\": \"2017-09-02\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"integration_maps\": [],\n    \"created_at\": null,\n    \"updated_at\": null\n}"}],"_postman_id":"545959e6-df4a-4d20-9e34-6b8feba822bc"},{"name":"Destroy Financial Transaction","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"financial_transaction_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"transaction_status\": { \"type\": \"string\" },","            \"direction\": { \"type\": \"string\" },","            \"out_of_payroll\": { \"type\": \"boolean\" },","            \"amount\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": { \"type\": \"number\" },","                    \"currency\": { \"type\": \"string\" }","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"notes\": { \"type\": \"string\" },","            \"effective_date\": { \"type\": \"string\" },","            \"cancel_requested\": { \"type\": \"boolean\" },","            \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"a0c13dba-53a3-4c32-8d48-5b1f3a900eb3"}}],"id":"67e09551-3cd6-48ff-9726-f7068129e7e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions/:financial_transaction_id","description":"<p>This API end-point will show financial transaction by branch_id, and financial_transaction_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","financial_transactions",":financial_transaction_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"5280c19d-a4ab-4f5a-96ab-5d9f2c073a76","type":"any","value":"","key":"branch_id"},{"id":"781815e6-636f-4a7e-a36f-effee1b54328","type":"any","value":"","key":"financial_transaction_id"}]}},"response":[{"id":"1d94744e-1afb-4730-84dd-deff4f2923db","name":"Edit Financial Transaction","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"financial_transaction_type_id","value":"33274","type":"text"},{"key":"amount_fils","value":"15999","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2024-06-01","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2024-06-02","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"19000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/financial_transactions/1216967","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","financial_transactions","1216967"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"9889a6c5573b74e322d80be1b57fc543\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"edaa6bcb-8e6c-421b-9f39-a88f4be45523"},{"key":"X-Runtime","value":"0.224349"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"391"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1216967,\n    \"financial_transaction_type\": {\n        \"id\": 33274\n    },\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"transaction_status\": \"added_by_hr\",\n    \"direction\": \"company_expense\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 15.999,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"test123\",\n    \"effective_date\": \"2024-06-01\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"created_at\": \"2024-04-29T10:53:41.988Z\",\n    \"updated_at\": \"2024-04-29T10:55:34.042Z\"\n}"}],"_postman_id":"67e09551-3cd6-48ff-9726-f7068129e7e8"}],"id":"b7cc9cf2-2f17-4417-95b6-639153857370","_postman_id":"b7cc9cf2-2f17-4417-95b6-639153857370","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Loan Types","item":[{"name":"List Loan Types","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": \"string\" },","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"branch\": { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"number\" } }, \"required\": [\"id\"] },","                        \"cut_holidays\": { \"type\": [\"boolean\", \"null\"] },","                        \"cut_days_off\": { \"type\": [\"boolean\", \"null\"] },","                        \"exceed_balance\": { \"type\": [\"boolean\", \"null\"] },","                        \"accumulative\": { \"type\": [\"boolean\", \"null\"] },","                        \"class_name\": { \"type\": \"string\" },","                        \"deduction_type\": { \"type\": \"number\" },","                        \"deduction_amount\": { \"type\": \"number\" },","                        \"is_sick_vacation\": { \"type\": \"boolean\" },","                        \"allowed_min\": { \"type\": [\"null\", \"number\"] },","                        \"pro_rata\": { \"type\": \"boolean\" },","                        \"ability_to_non_deduct\": { \"type\": \"boolean\" },","                        \"exceed_end_of_year_balance\": { \"type\": \"boolean\" },","                        \"grace_period_amount\": { \"type\": [\"null\", \"number\"] },","                        \"grace_period_interval\": { \"type\": [\"null\", \"string\"] },","                        \"number_of_minutes_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_minutes_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"auto_move_balances\": { \"type\": \"boolean\" },","                        \"accumulative_balance_cap\": { \"type\": \"boolean\" },","                        \"maximum_cap_days\": { \"type\": \"number\" },","                        \"link_with_probation\": { \"type\": \"boolean\" },","                        \"balances_effective_dates\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"allowed_min\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the timeoff_id from the response","var responseJson = pm.response.json();","var timeoffId = responseJson.data[0].id;","","// Set the timeoff_id as an environment variable","pm.environment.set(\"timeoff_id\", timeoffId);"],"type":"text/javascript","packages":{},"id":"f5ccfb29-56a3-411a-a90d-2d187b54b0b7"}}],"id":"3f424547-1f95-4e96-9189-7be58c987b7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loan_types/","description":"<p>This API end-point will list all timeoffs in a brnch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loan_types",""],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"imit","value":"3"},{"disabled":true,"key":"include","value":"loan_types.financial_transaction_type"},{"disabled":true,"key":"filter[integration_maps][global_id]","value":"test1"}],"variable":[{"id":"6b00265f-9113-40ab-9e24-333eb8095e0b","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"aecbb9af-a1d9-4c33-9b0c-0353521d6f41","name":"List Loan Types","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/loan_types/","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","loan_types",""],"query":[{"key":"page","value":"1","description":"page number","disabled":true},{"key":"imit","value":"3","description":"records limit per page","disabled":true},{"key":"include","value":"loan_types.financial_transaction_type","disabled":true},{"key":"filter[integration_maps][global_id]","value":"test1","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"523582b7718184c69b4b79b20a46499e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1e318efe-0d3d-4def-8f0a-195cfb69409b"},{"key":"X-Runtime","value":"0.308822"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"21831"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 46,\n        \"total_pages\": 2\n    },\n    \"data\": [\n        {\n            \"id\": 90,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test4\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 10,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 5000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 1000000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 50000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 1000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": null,\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-29T10:12:31.129Z\",\n            \"updated_at\": \"2019-08-29T12:43:35.662Z\"\n        },\n        {\n            \"id\": 93,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test5\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 7,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 5000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 100000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 5000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 100000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": null,\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-29T12:53:27.561Z\",\n            \"updated_at\": \"2019-08-29T12:53:27.561Z\"\n        },\n        {\n            \"id\": 5,\n            \"name\": {\n                \"ar\": \"قرض افتراضي فرع الأردن\",\n                \"en\": \"Default Loan Type Jordan Branch\"\n            },\n            \"description\": {\n                \"ar\": \"قرض افتراضي فرع الأردن\",\n                \"en\": \"Default Loan Type Jordan Branch\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 5,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 1000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 10000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 0,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 0,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": false,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-07T15:08:00.228Z\",\n            \"updated_at\": \"2022-04-13T11:45:01.457Z\"\n        },\n        {\n            \"id\": 62,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test1\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 10,\n            \"allowed_every\": 10,\n            \"allowed_every_type\": \"every_day\",\n            \"min_loan_fils\": 5000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 100000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 5000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 100000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": null,\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-07T15:35:54.425Z\",\n            \"updated_at\": \"2019-08-07T15:45:33.799Z\"\n        },\n        {\n            \"id\": 63,\n            \"name\": {\n                \"ar\": \"سلفة صغيرة\",\n                \"en\": \"Small Loan\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 12,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 10,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 1000000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 30000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 0,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 500000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 72,\n            \"eligible_employees\": \"not_citizen\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-07T15:36:44.751Z\",\n            \"updated_at\": \"2022-12-12T11:30:54.591Z\"\n        },\n        {\n            \"id\": 66,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test2\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 1,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 5000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 100000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 5000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 100000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 8,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": null,\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-15T10:51:39.368Z\",\n            \"updated_at\": \"2019-08-19T11:09:48.732Z\"\n        },\n        {\n            \"id\": 71,\n            \"name\": {\n                \"ar\": \"تيست3 \",\n                \"en\": \"Test3\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 1,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 5000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 100000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 5000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 100000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-19T11:59:40.079Z\",\n            \"updated_at\": \"2020-11-04T15:15:59.029Z\"\n        },\n        {\n            \"id\": 160,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test-Production\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 10000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 5000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 10000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 5000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-11-13T15:22:56.992Z\",\n            \"updated_at\": \"2019-11-13T15:22:56.992Z\"\n        },\n        {\n            \"id\": 171,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test Production2 \"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 10000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 5000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 10000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 5000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-11-25T15:20:32.285Z\",\n            \"updated_at\": \"2019-11-25T15:24:43.025Z\"\n        },\n        {\n            \"id\": 213,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test100\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 3,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 10000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 100000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 5000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 100000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-12-15T11:06:51.880Z\",\n            \"updated_at\": \"2019-12-15T11:06:51.880Z\"\n        },\n        {\n            \"id\": 278,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestProduction\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 3,\n            \"allowed_every\": 3,\n            \"allowed_every_type\": \"every_day\",\n            \"min_loan_fils\": 0,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 1000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 0,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 1000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": null,\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"in_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-03-26T07:08:09.884Z\",\n            \"updated_at\": \"2020-03-26T07:10:28.272Z\"\n        },\n        {\n            \"id\": 355,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestDig1\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 2000000000000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 300000000000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 2000000000000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 300000000000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-07-21T13:43:35.998Z\",\n            \"updated_at\": \"2020-07-21T13:43:35.998Z\"\n        },\n        {\n            \"id\": 368,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Production-TestingLoan\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 3,\n            \"allowed_every\": 2,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 100000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 500000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 120000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 900000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 5,\n            \"eligible_employees\": \"both\",\n            \"requestable\": false,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-07-29T10:04:10.239Z\",\n            \"updated_at\": \"2021-01-30T17:41:22.400Z\"\n        },\n        {\n            \"id\": 442,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"LoanNewCompan\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 4,\n            \"allowed_every\": 2,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 10000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 5000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 15000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 3000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-10-05T07:04:34.496Z\",\n            \"updated_at\": \"2020-10-05T08:55:39.004Z\"\n        },\n        {\n            \"id\": 461,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Upgrade-Loan \"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 1,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 2,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_month\",\n            \"min_loan_fils\": 20000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 2000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 20000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 2000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-11-11T11:25:37.323Z\",\n            \"updated_at\": \"2022-10-13T12:14:11.044Z\"\n        },\n        {\n            \"id\": 476,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestFadi2222\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 2,\n            \"allowed_every\": 2,\n            \"allowed_every_type\": \"every_day\",\n            \"min_loan_fils\": 10000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 2000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 30000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 800000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"in_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-12-13T12:56:57.574Z\",\n            \"updated_at\": \"2020-12-13T12:56:57.574Z\"\n        },\n        {\n            \"id\": 477,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test-LoanProBug\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 2,\n            \"allowed_every\": 2,\n            \"allowed_every_type\": \"every_day\",\n            \"min_loan_fils\": 20000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 333000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 20000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 333000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-12-13T16:08:22.412Z\",\n            \"updated_at\": \"2020-12-13T16:10:14.344Z\"\n        },\n        {\n            \"id\": 480,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"LLLLOOAANNBYY Fadi \"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_day\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 10000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 10000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 0,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 10000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 30,\n            \"eligible_employees\": \"both\",\n            \"requestable\": false,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-12-14T13:40:58.724Z\",\n            \"updated_at\": \"2021-10-26T08:34:23.232Z\"\n        },\n        {\n            \"id\": 514,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"fdag\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 32000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 444000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 44000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 55000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-01-28T12:29:50.080Z\",\n            \"updated_at\": \"2021-01-28T12:30:35.936Z\"\n        },\n        {\n            \"id\": 523,\n            \"name\": {\n                \"ar\": \"NEW2021\",\n                \"en\": \"NEW2021\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 20,\n            \"allowed_every\": 2,\n            \"allowed_every_type\": \"every_day\",\n            \"min_loan_fils\": 10000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 30000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 10000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 20000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": \"150.0\",\n            \"loan_payment_amount_exceed\": \"1.5\",\n            \"loan_payment_financial_transactions_ids\": [\n                218\n            ],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-02-08T14:50:55.037Z\",\n            \"updated_at\": \"2021-02-08T15:11:46.585Z\"\n        },\n        {\n            \"id\": 530,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Salary Advance\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 1000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 5000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 1000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 5000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": \"200.0\",\n            \"loan_payment_amount_exceed\": \"25.0\",\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-02-16T15:50:39.695Z\",\n            \"updated_at\": \"2021-02-16T15:50:39.695Z\"\n        },\n        {\n            \"id\": 625,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"In payroll\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 500000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 1000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 5000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 700000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"in_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-05-23T14:42:23.709Z\",\n            \"updated_at\": \"2021-05-23T14:43:55.344Z\"\n        },\n        {\n            \"id\": 712,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Titiana 333333333 333333333333333333 3333333333333333\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 0,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 10000000000000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 0,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 0,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-08-18T10:55:01.431Z\",\n            \"updated_at\": \"2021-08-18T10:55:01.431Z\"\n        },\n        {\n            \"id\": 751,\n            \"name\": {\n                \"ar\": \"قرض كتيير كبير \",\n                \"en\": \"Very large loan \"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 3,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 1000,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 100000000000,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 1000,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 100000000,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 12116\n            },\n            \"deafult_payment_type\": \"out_of_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-09-14T13:52:29.926Z\",\n            \"updated_at\": \"2021-09-14T13:52:29.926Z\"\n        },\n        {\n            \"id\": 843,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Saba Loaaaaan\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"branch_id\": 104,\n            \"allowed_after\": 0,\n            \"allowed_after_type\": \"after_month\",\n            \"allowed_times\": 1,\n            \"allowed_every\": 1,\n            \"allowed_every_type\": \"every_year\",\n            \"min_loan_fils\": 0,\n            \"min_loan_currency\": \"JOD\",\n            \"max_loan_fils\": 0,\n            \"max_loan_currency\": \"JOD\",\n            \"min_instalment_fils\": 0,\n            \"min_instalment_currency\": \"JOD\",\n            \"max_instalment_fils\": 0,\n            \"max_instalment_currency\": \"JOD\",\n            \"max_payments\": 12,\n            \"eligible_employees\": \"both\",\n            \"requestable\": true,\n            \"gl_identifier\": \"\",\n            \"clearance_account\": \"\",\n            \"loan_amount_exceed\": null,\n            \"loan_payment_amount_exceed\": null,\n            \"loan_payment_financial_transactions_ids\": [],\n            \"financial_transaction_type\": {\n                \"financial_transaction_type_id\": 216\n            },\n            \"deafult_payment_type\": \"in_payroll\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-11-16T08:46:06.845Z\",\n            \"updated_at\": \"2021-11-16T08:46:06.845Z\"\n        }\n    ]\n}"}],"_postman_id":"3f424547-1f95-4e96-9189-7be58c987b7a"},{"name":"Create Loan Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": \"string\" },","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"branch\": { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"number\" } }, \"required\": [\"id\"] },","                        \"cut_holidays\": { \"type\": [\"boolean\", \"null\"] },","                        \"cut_days_off\": { \"type\": [\"boolean\", \"null\"] },","                        \"exceed_balance\": { \"type\": [\"boolean\", \"null\"] },","                        \"accumulative\": { \"type\": [\"boolean\", \"null\"] },","                        \"class_name\": { \"type\": \"string\" },","                        \"deduction_type\": { \"type\": \"number\" },","                        \"deduction_amount\": { \"type\": \"number\" },","                        \"is_sick_vacation\": { \"type\": \"boolean\" },","                        \"allowed_min\": { \"type\": [\"null\", \"number\"] },","                        \"pro_rata\": { \"type\": \"boolean\" },","                        \"ability_to_non_deduct\": { \"type\": \"boolean\" },","                        \"exceed_end_of_year_balance\": { \"type\": \"boolean\" },","                        \"grace_period_amount\": { \"type\": [\"null\", \"number\"] },","                        \"grace_period_interval\": { \"type\": [\"null\", \"string\"] },","                        \"number_of_minutes_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_minutes_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"auto_move_balances\": { \"type\": \"boolean\" },","                        \"accumulative_balance_cap\": { \"type\": \"boolean\" },","                        \"maximum_cap_days\": { \"type\": \"number\" },","                        \"link_with_probation\": { \"type\": \"boolean\" },","                        \"balances_effective_dates\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"allowed_min\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the timeoff_id from the response","var responseJson = pm.response.json();","var timeoffId = responseJson.data[0].id;","","// Set the timeoff_id as an environment variable","pm.environment.set(\"timeoff_id\", timeoffId);"],"type":"text/javascript","packages":{},"id":"1692d2fb-3d30-4e2b-b500-0aea19607a58"}}],"id":"4fcf18e2-0b8c-4c11-ba3e-02b4de03759e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test_zen","type":"text"},{"key":"name[ar]","value":"test_zen","type":"text"},{"key":"description[en]","value":"test_zen","type":"text"},{"key":"description[ar]","value":"test_zen","type":"text"},{"key":"allowed_after","value":"2025-01-01","type":"text"},{"key":"allowed_after_type","value":"","type":"text"},{"key":"allowed_times","value":"56","type":"text"},{"key":"allowed_every","value":"1","type":"text"},{"key":"allowed_every_type","value":"every_day","type":"text"},{"key":"min_loan_fils","value":"100000","type":"text"},{"key":"min_loan_currency","value":"JOD","type":"text"},{"key":"max_loan_fils","value":"3000000","type":"text"},{"key":"max_loan_currency","value":"JOD","type":"text"},{"key":"min_instalment_fils","value":"50000","type":"text"},{"key":"min_instalment_currency","value":"JOD","type":"text"},{"key":"max_instalment_fils","value":"100000","type":"text"},{"key":"max_instalment_currency","value":"JOD","type":"text"},{"key":"max_payments","value":"20","type":"text"},{"key":"eligible_employees","value":"both","type":"text"},{"key":"requestable","value":"true","type":"text"},{"key":"loan_payment_financial_transactions_ids","value":"","type":"text"},{"key":"financial_transaction_type_id","value":"9138","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"clearance_account","value":"","type":"text"},{"key":"deduct_from_extra_salaries","value":"","type":"text"},{"key":"loan_amount_exceed","value":"","type":"text"},{"key":"loan_payment_amount_exceed","value":"","type":"text"},{"key":"loan_financial_transaction_ids","value":"2314","type":"text"},{"key":"deafult_payment_type","value":"","type":"text","disabled":true},{"key":"global_id","value":"test1123243532","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loan_types/","description":"<p>This API end-point will list all timeoffs in a brnch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loan_types",""],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"a1be70b2-f493-42f9-89c6-cbe2e2f2cf54","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"8b55198e-6b8b-4ce9-9f2a-9775e20c61d7","name":"Create Loan Type","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test_zen","type":"text"},{"key":"name[ar]","value":"test_zen","type":"text"},{"key":"description[en]","value":"test_zen","type":"text"},{"key":"description[ar]","value":"test_zen","type":"text"},{"key":"allowed_after","value":"2025-01-01","type":"text"},{"key":"allowed_after_type","value":"","type":"text"},{"key":"allowed_times","value":"56","type":"text"},{"key":"allowed_every","value":"1","type":"text"},{"key":"allowed_every_type","value":"every_day","type":"text"},{"key":"min_loan_fils","value":"100000","type":"text"},{"key":"min_loan_currency","value":"JOD","type":"text"},{"key":"max_loan_fils","value":"3000000","type":"text"},{"key":"max_loan_currency","value":"JOD","type":"text"},{"key":"min_instalment_fils","value":"50000","type":"text"},{"key":"min_instalment_currency","value":"JOD","type":"text"},{"key":"max_instalment_fils","value":"100000","type":"text"},{"key":"max_instalment_currency","value":"JOD","type":"text"},{"key":"max_payments","value":"20","type":"text"},{"key":"eligible_employees","value":"both","type":"text"},{"key":"requestable","value":"true","type":"text"},{"key":"loan_payment_financial_transactions_ids","value":"","type":"text"},{"key":"financial_transaction_type_id","value":"9138","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"clearance_account","value":"","type":"text"},{"key":"deduct_from_extra_salaries","value":"","type":"text"},{"key":"loan_amount_exceed","value":"","type":"text"},{"key":"loan_payment_amount_exceed","value":"","type":"text"},{"key":"loan_financial_transaction_ids","value":"2314","type":"text"},{"key":"deafult_payment_type","value":"","type":"text","disabled":true},{"key":"global_id","value":"test11232435321","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/loan_types/","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","loan_types",""],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b37bc1688358dbf5156847f626a34a13\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1481d28f-fbfe-4cc4-92e3-e8ac5ac6798a"},{"key":"X-Runtime","value":"0.192428"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"906"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4462,\n    \"name\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"description\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"branch_id\": 104,\n    \"allowed_after\": 2025,\n    \"allowed_after_type\": null,\n    \"allowed_times\": 56,\n    \"allowed_every\": 1,\n    \"allowed_every_type\": \"every_day\",\n    \"min_loan_fils\": 100000,\n    \"min_loan_currency\": \"JOD\",\n    \"max_loan_fils\": 3000000,\n    \"max_loan_currency\": \"JOD\",\n    \"min_instalment_fils\": 50000,\n    \"min_instalment_currency\": \"JOD\",\n    \"max_instalment_fils\": 100000,\n    \"max_instalment_currency\": \"JOD\",\n    \"max_payments\": 20,\n    \"eligible_employees\": \"both\",\n    \"requestable\": true,\n    \"gl_identifier\": \"\",\n    \"clearance_account\": \"\",\n    \"loan_amount_exceed\": null,\n    \"loan_payment_amount_exceed\": null,\n    \"loan_payment_financial_transactions_ids\": [],\n    \"financial_transaction_type\": {\n        \"financial_transaction_type_id\": 9138\n    },\n    \"deafult_payment_type\": \"out_of_payroll\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test11232435321\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T14:29:59.551Z\",\n    \"updated_at\": \"2024-05-30T14:29:59.551Z\"\n}"}],"_postman_id":"4fcf18e2-0b8c-4c11-ba3e-02b4de03759e"},{"name":"Edit Loan Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": \"string\" },","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"branch\": { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"number\" } }, \"required\": [\"id\"] },","                        \"cut_holidays\": { \"type\": [\"boolean\", \"null\"] },","                        \"cut_days_off\": { \"type\": [\"boolean\", \"null\"] },","                        \"exceed_balance\": { \"type\": [\"boolean\", \"null\"] },","                        \"accumulative\": { \"type\": [\"boolean\", \"null\"] },","                        \"class_name\": { \"type\": \"string\" },","                        \"deduction_type\": { \"type\": \"number\" },","                        \"deduction_amount\": { \"type\": \"number\" },","                        \"is_sick_vacation\": { \"type\": \"boolean\" },","                        \"allowed_min\": { \"type\": [\"null\", \"number\"] },","                        \"pro_rata\": { \"type\": \"boolean\" },","                        \"ability_to_non_deduct\": { \"type\": \"boolean\" },","                        \"exceed_end_of_year_balance\": { \"type\": \"boolean\" },","                        \"grace_period_amount\": { \"type\": [\"null\", \"number\"] },","                        \"grace_period_interval\": { \"type\": [\"null\", \"string\"] },","                        \"number_of_minutes_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_minutes_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"auto_move_balances\": { \"type\": \"boolean\" },","                        \"accumulative_balance_cap\": { \"type\": \"boolean\" },","                        \"maximum_cap_days\": { \"type\": \"number\" },","                        \"link_with_probation\": { \"type\": \"boolean\" },","                        \"balances_effective_dates\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"allowed_min\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the timeoff_id from the response","var responseJson = pm.response.json();","var timeoffId = responseJson.data[0].id;","","// Set the timeoff_id as an environment variable","pm.environment.set(\"timeoff_id\", timeoffId);"],"type":"text/javascript","packages":{},"id":"141af406-c766-4cad-b0f2-61457649f19f"}}],"id":"24828305-feb5-4128-bbb4-e7fd3e9919f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test_zen","type":"text"},{"key":"name[ar]","value":"test_zen","type":"text"},{"key":"description[en]","value":"test_zen","type":"text"},{"key":"description[ar]","value":"test_zen","type":"text"},{"key":"allowed_after","value":"2025-01-01","type":"text"},{"key":"allowed_after_type","value":"","type":"text"},{"key":"allowed_times","value":"56","type":"text"},{"key":"allowed_every","value":"1","type":"text"},{"key":"allowed_every_type","value":"every_day","type":"text"},{"key":"min_loan_fils","value":"100000","type":"text"},{"key":"min_loan_currency","value":"JOD","type":"text"},{"key":"max_loan_fils","value":"3000000","type":"text"},{"key":"max_loan_currency","value":"JOD","type":"text"},{"key":"min_instalment_fils","value":"50000","type":"text"},{"key":"min_instalment_currency","value":"JOD","type":"text"},{"key":"max_instalment_fils","value":"100000","type":"text"},{"key":"max_instalment_currency","value":"JOD","type":"text"},{"key":"max_payments","value":"20","type":"text"},{"key":"eligible_employees","value":"both","type":"text"},{"key":"requestable","value":"true","type":"text"},{"key":"loan_payment_financial_transactions_ids","value":"","type":"text"},{"key":"financial_transaction_type_id","value":"9138","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"clearance_account","value":"","type":"text"},{"key":"deduct_from_extra_salaries","value":"","type":"text"},{"key":"loan_amount_exceed","value":"","type":"text"},{"key":"loan_payment_amount_exceed","value":"","type":"text"},{"key":"loan_financial_transaction_ids","value":"2314","type":"text"},{"key":"deafult_payment_type","value":"","type":"text","disabled":true},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loan_types/:loan_type_id","description":"<p>This API end-point will list all timeoffs in a brnch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loan_types",":loan_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"14e1e70a-966c-4d9b-8007-c16b2168f717","type":"any","value":"","key":"branch_id"},{"id":"51786e4d-8377-4cff-bfd9-083ec7bfaa5e","type":"any","value":"","key":"loan_type_id"}]}},"response":[{"id":"d0f9c16d-217f-48aa-a964-9e32e8ab2af5","name":"Edit Loan Type","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test_zen","type":"text"},{"key":"name[ar]","value":"test_zen","type":"text"},{"key":"description[en]","value":"test_zen","type":"text"},{"key":"description[ar]","value":"test_zen","type":"text"},{"key":"allowed_after","value":"2025-01-01","type":"text"},{"key":"allowed_after_type","value":"","type":"text"},{"key":"allowed_times","value":"56","type":"text"},{"key":"allowed_every","value":"1","type":"text"},{"key":"allowed_every_type","value":"every_day","type":"text"},{"key":"min_loan_fils","value":"100000","type":"text"},{"key":"min_loan_currency","value":"JOD","type":"text"},{"key":"max_loan_fils","value":"3000000","type":"text"},{"key":"max_loan_currency","value":"JOD","type":"text"},{"key":"min_instalment_fils","value":"50000","type":"text"},{"key":"min_instalment_currency","value":"JOD","type":"text"},{"key":"max_instalment_fils","value":"100000","type":"text"},{"key":"max_instalment_currency","value":"JOD","type":"text"},{"key":"max_payments","value":"20","type":"text"},{"key":"eligible_employees","value":"both","type":"text"},{"key":"requestable","value":"true","type":"text"},{"key":"loan_payment_financial_transactions_ids","value":"","type":"text"},{"key":"financial_transaction_type_id","value":"9138","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"clearance_account","value":"","type":"text"},{"key":"deduct_from_extra_salaries","value":"","type":"text"},{"key":"loan_amount_exceed","value":"","type":"text"},{"key":"loan_payment_amount_exceed","value":"","type":"text"},{"key":"loan_financial_transaction_ids","value":"2314","type":"text"},{"key":"deafult_payment_type","value":"","type":"text","disabled":true},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/104/loan_types/4462"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b37bc1688358dbf5156847f626a34a13\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"64c3a3a0-2374-4a57-9442-0c3be49c2207"},{"key":"X-Runtime","value":"0.106888"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"906"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4462,\n    \"name\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"description\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"branch_id\": 104,\n    \"allowed_after\": 2025,\n    \"allowed_after_type\": null,\n    \"allowed_times\": 56,\n    \"allowed_every\": 1,\n    \"allowed_every_type\": \"every_day\",\n    \"min_loan_fils\": 100000,\n    \"min_loan_currency\": \"JOD\",\n    \"max_loan_fils\": 3000000,\n    \"max_loan_currency\": \"JOD\",\n    \"min_instalment_fils\": 50000,\n    \"min_instalment_currency\": \"JOD\",\n    \"max_instalment_fils\": 100000,\n    \"max_instalment_currency\": \"JOD\",\n    \"max_payments\": 20,\n    \"eligible_employees\": \"both\",\n    \"requestable\": true,\n    \"gl_identifier\": \"\",\n    \"clearance_account\": \"\",\n    \"loan_amount_exceed\": null,\n    \"loan_payment_amount_exceed\": null,\n    \"loan_payment_financial_transactions_ids\": [],\n    \"financial_transaction_type\": {\n        \"financial_transaction_type_id\": 9138\n    },\n    \"deafult_payment_type\": \"out_of_payroll\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test11232435321\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T14:29:59.551Z\",\n    \"updated_at\": \"2024-05-30T14:29:59.551Z\"\n}"}],"_postman_id":"24828305-feb5-4128-bbb4-e7fd3e9919f0"},{"name":"Get Loan Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": \"string\" },","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"branch\": { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"number\" } }, \"required\": [\"id\"] },","                        \"cut_holidays\": { \"type\": [\"boolean\", \"null\"] },","                        \"cut_days_off\": { \"type\": [\"boolean\", \"null\"] },","                        \"exceed_balance\": { \"type\": [\"boolean\", \"null\"] },","                        \"accumulative\": { \"type\": [\"boolean\", \"null\"] },","                        \"class_name\": { \"type\": \"string\" },","                        \"deduction_type\": { \"type\": \"number\" },","                        \"deduction_amount\": { \"type\": \"number\" },","                        \"is_sick_vacation\": { \"type\": \"boolean\" },","                        \"allowed_min\": { \"type\": [\"null\", \"number\"] },","                        \"pro_rata\": { \"type\": \"boolean\" },","                        \"ability_to_non_deduct\": { \"type\": \"boolean\" },","                        \"exceed_end_of_year_balance\": { \"type\": \"boolean\" },","                        \"grace_period_amount\": { \"type\": [\"null\", \"number\"] },","                        \"grace_period_interval\": { \"type\": [\"null\", \"string\"] },","                        \"number_of_minutes_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_minutes_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"auto_move_balances\": { \"type\": \"boolean\" },","                        \"accumulative_balance_cap\": { \"type\": \"boolean\" },","                        \"maximum_cap_days\": { \"type\": \"number\" },","                        \"link_with_probation\": { \"type\": \"boolean\" },","                        \"balances_effective_dates\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"allowed_min\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the timeoff_id from the response","var responseJson = pm.response.json();","var timeoffId = responseJson.data[0].id;","","// Set the timeoff_id as an environment variable","pm.environment.set(\"timeoff_id\", timeoffId);"],"type":"text/javascript","packages":{},"id":"805cc803-5712-449a-b952-a6254e85918e"}}],"id":"8b8e08c4-b8eb-4ded-bb0c-dc287ed0db56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loan_types/:loan_type_id","description":"<p>This API end-point will list all timeoffs in a brnch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loan_types",":loan_type_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"imit","value":"3"},{"disabled":true,"key":"include","value":"loan_types.financial_transaction_type"}],"variable":[{"id":"09bdbec5-8bfa-4570-b79a-7ff57c5ba35a","type":"any","value":"","key":"branch_id"},{"id":"d0381cb8-02ce-4ab9-9fc4-8840c10ee3e8","type":"any","value":"","key":"loan_type_id"}]}},"response":[{"id":"a99c8104-1562-4a38-9206-9aa8e2fba123","name":"Get Loan Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/loan_types/4462","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","loan_types","4462"],"query":[{"key":"page","value":"1","description":"page number","disabled":true},{"key":"imit","value":"3","description":"records limit per page","disabled":true},{"key":"include","value":"loan_types.financial_transaction_type","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b37bc1688358dbf5156847f626a34a13\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1461cd65-1b4e-4906-82c4-fdd7a5936909"},{"key":"X-Runtime","value":"0.067279"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"906"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4462,\n    \"name\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"description\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"branch_id\": 104,\n    \"allowed_after\": 2025,\n    \"allowed_after_type\": null,\n    \"allowed_times\": 56,\n    \"allowed_every\": 1,\n    \"allowed_every_type\": \"every_day\",\n    \"min_loan_fils\": 100000,\n    \"min_loan_currency\": \"JOD\",\n    \"max_loan_fils\": 3000000,\n    \"max_loan_currency\": \"JOD\",\n    \"min_instalment_fils\": 50000,\n    \"min_instalment_currency\": \"JOD\",\n    \"max_instalment_fils\": 100000,\n    \"max_instalment_currency\": \"JOD\",\n    \"max_payments\": 20,\n    \"eligible_employees\": \"both\",\n    \"requestable\": true,\n    \"gl_identifier\": \"\",\n    \"clearance_account\": \"\",\n    \"loan_amount_exceed\": null,\n    \"loan_payment_amount_exceed\": null,\n    \"loan_payment_financial_transactions_ids\": [],\n    \"financial_transaction_type\": {\n        \"financial_transaction_type_id\": 9138\n    },\n    \"deafult_payment_type\": \"out_of_payroll\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test11232435321\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T14:29:59.551Z\",\n    \"updated_at\": \"2024-05-30T14:29:59.551Z\"\n}"}],"_postman_id":"8b8e08c4-b8eb-4ded-bb0c-dc287ed0db56"}],"id":"77ba00a0-9841-44a9-90bd-6217d3a364e1","_postman_id":"77ba00a0-9841-44a9-90bd-6217d3a364e1","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Loans","item":[{"name":"List Loans","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"65e9fdfd-d95e-4956-b180-c5b3dde9fbeb"}}],"id":"71e5c357-0129-4e58-9ddf-8ac4b81b3426","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loans","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loans"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include","value":"loan.employee"},{"disabled":true,"key":"include","value":"loan.loan_type"},{"disabled":true,"key":"filter[employee][integration_maps][global_id]","value":"342reqaaaatest"},{"disabled":true,"key":"filter[integration_maps[global_id]","value":"test1"}],"variable":[{"id":"632e0c44-f308-428d-a486-982f3d08ef21","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"baa97003-14f3-45a2-8625-85396f953bde","name":"List Loans","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/loans","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","loans"],"query":[{"key":"page","value":"1","description":"Page number","disabled":true},{"key":"limit","value":"2","description":"Records limit per page","disabled":true},{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true},{"key":"filter[employee][integration_maps][global_id]","value":"342reqaaaatest","disabled":true},{"key":"filter[integration_maps[global_id]","value":"test1","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f978c595a95275d7a97b72f0af40a488\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5eb42b0f-0af9-4558-801e-50b21ee340bc"},{"key":"X-Runtime","value":"0.465674"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"10232"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 459,\n        \"total_pages\": 19\n    },\n    \"data\": [\n        {\n            \"id\": 1157,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 7000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-01-13\",\n            \"number_of_payments\": 14,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 63\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-01-13T14:05:45.539Z\",\n            \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n        },\n        {\n            \"id\": 1752,\n            \"employee\": {\n                \"employee_id\": 16229\n            },\n            \"amount_fils\": 4000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2022-07-01\",\n            \"number_of_payments\": 20,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 63\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 6,\n            \"installment_date\": \"2022-08-01\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-04-06T14:11:09.822Z\",\n            \"updated_at\": \"2020-04-06T14:11:48.399Z\"\n        },\n        {\n            \"id\": 486,\n            \"employee\": {\n                \"employee_id\": 21276\n            },\n            \"amount_fils\": 80000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2019-08-23\",\n            \"number_of_payments\": 7,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 62\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"test\",\n            \"out_of_payroll\": true,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-07T15:39:31.987Z\",\n            \"updated_at\": \"2019-08-25T12:01:57.927Z\"\n        },\n        {\n            \"id\": 12292,\n            \"employee\": {\n                \"employee_id\": 98220\n            },\n            \"amount_fils\": 444000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2022-05-17\",\n            \"number_of_payments\": 11,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 461\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-05-16T12:06:55.961Z\",\n            \"updated_at\": \"2022-05-16T12:06:56.389Z\"\n        },\n        {\n            \"id\": 184,\n            \"employee\": {\n                \"employee_id\": 1152\n            },\n            \"amount_fils\": 20000,\n            \"amount_currency\": \"SAR\",\n            \"effective_date\": \"2019-04-04\",\n            \"number_of_payments\": 4,\n            \"name\": {\n                \"ar\": \"قرض\",\n                \"en\": \"Loan\"\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 5\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-04-04T06:47:03.601Z\",\n            \"updated_at\": \"2019-08-25T12:02:00.187Z\"\n        },\n        {\n            \"id\": 87,\n            \"employee\": {\n                \"employee_id\": 1153\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2019-02-01\",\n            \"number_of_payments\": 20,\n            \"name\": {\n                \"ar\": \"قرض\",\n                \"en\": \"Loan\"\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 5\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-20T09:43:53.475Z\",\n            \"updated_at\": \"2019-08-25T12:02:01.309Z\"\n        },\n        {\n            \"id\": 3230,\n            \"employee\": {\n                \"employee_id\": 39712\n            },\n            \"amount_fils\": 70000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-11-02\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 66\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-10-14T13:50:21.924Z\",\n            \"updated_at\": \"2020-10-14T13:50:43.727Z\"\n        },\n        {\n            \"id\": 64092,\n            \"employee\": {\n                \"employee_id\": 313829\n            },\n            \"amount_fils\": 75000,\n            \"amount_currency\": \"USD\",\n            \"effective_date\": \"2030-12-07\",\n            \"number_of_payments\": 15,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 4160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": \"2030-12-30\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-02-04T16:28:54.177Z\",\n            \"updated_at\": \"2024-02-04T16:28:54.177Z\"\n        },\n        {\n            \"id\": 3274,\n            \"employee\": {\n                \"employee_id\": 40000\n            },\n            \"amount_fils\": 50000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-10-28\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-10-21T14:46:09.019Z\",\n            \"updated_at\": \"2020-10-21T14:46:23.717Z\"\n        },\n        {\n            \"id\": 9273,\n            \"employee\": {\n                \"employee_id\": 81151\n            },\n            \"amount_fils\": 700000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2031-01-29\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 843\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 12,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-01-25T09:51:14.617Z\",\n            \"updated_at\": \"2022-01-25T09:51:31.937Z\"\n        },\n        {\n            \"id\": 1855,\n            \"employee\": {\n                \"employee_id\": 34202\n            },\n            \"amount_fils\": 100000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-05-12\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 62\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 3,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-05-11T08:43:20.453Z\",\n            \"updated_at\": \"2020-05-11T08:43:35.136Z\"\n        },\n        {\n            \"id\": 4957,\n            \"employee\": {\n                \"employee_id\": 50783\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2021-11-04\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 461\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": \"2021-12-04\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-04-20T19:10:42.593Z\",\n            \"updated_at\": \"2021-04-20T19:10:42.593Z\"\n        },\n        {\n            \"id\": 3628,\n            \"employee\": {\n                \"employee_id\": 42200\n            },\n            \"amount_fils\": 444000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-12-16\",\n            \"number_of_payments\": 11,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 480\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-12-14T14:27:45.061Z\",\n            \"updated_at\": \"2020-12-14T14:28:01.925Z\"\n        },\n        {\n            \"id\": 31267,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 100000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-04-25\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2023-04-25T14:06:29.588Z\",\n            \"updated_at\": \"2023-04-25T14:06:29.769Z\"\n        },\n        {\n            \"id\": 1856,\n            \"employee\": {\n                \"employee_id\": 34202\n            },\n            \"amount_fils\": 100000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-04-13\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 93\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-05-11T08:56:12.295Z\",\n            \"updated_at\": \"2020-05-11T08:56:28.207Z\"\n        },\n        {\n            \"id\": 13874,\n            \"employee\": {\n                \"employee_id\": 39229\n            },\n            \"amount_fils\": 30613,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2029-10-01\",\n            \"number_of_payments\": 1,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 843\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": \"2029-10-01\",\n            \"integration_maps\": [],\n            \"created_at\": \"2022-06-29T08:29:09.277Z\",\n            \"updated_at\": \"2022-06-29T08:29:09.277Z\"\n        },\n        {\n            \"id\": 64091,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 75000,\n            \"amount_currency\": \"USD\",\n            \"effective_date\": \"2026-08-06\",\n            \"number_of_payments\": 15,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 4160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 1,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-02-04T16:22:48.585Z\",\n            \"updated_at\": \"2024-02-04T16:22:48.585Z\"\n        },\n        {\n            \"id\": 9366,\n            \"employee\": {\n                \"employee_id\": 81151\n            },\n            \"amount_fils\": 600000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2022-01-01\",\n            \"number_of_payments\": 3,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 843\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": false,\n            \"status\": 12,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2022-01-27T12:14:03.370Z\",\n            \"updated_at\": \"2022-01-27T12:14:12.079Z\"\n        },\n        {\n            \"id\": 8218,\n            \"employee\": {\n                \"employee_id\": 70591\n            },\n            \"amount_fils\": 10000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2021-12-03\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 213\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2021-12-01T15:53:34.628Z\",\n            \"updated_at\": \"2021-12-02T11:20:36.245Z\"\n        },\n        {\n            \"id\": 2654,\n            \"employee\": {\n                \"employee_id\": 37769\n            },\n            \"amount_fils\": 100000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2020-08-27\",\n            \"number_of_payments\": 2,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 66\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 4,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2020-08-26T15:45:34.627Z\",\n            \"updated_at\": \"2020-08-26T15:45:49.886Z\"\n        },\n        {\n            \"id\": 52604,\n            \"employee\": {\n                \"employee_id\": 297877\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2024-01-05\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 1269\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": \"2024-01-25\",\n            \"integration_maps\": [],\n            \"created_at\": \"2023-12-12T14:36:05.333Z\",\n            \"updated_at\": \"2023-12-12T14:36:05.333Z\"\n        },\n        {\n            \"id\": 7608,\n            \"employee\": {\n                \"employee_id\": 69912\n            },\n            \"amount_fils\": 10000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2021-10-30\",\n            \"number_of_payments\": 10,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 480\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": \"2021-10-30\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-10-26T08:26:57.111Z\",\n            \"updated_at\": \"2021-10-26T08:26:57.111Z\"\n        },\n        {\n            \"id\": 67897,\n            \"employee\": {\n                \"employee_id\": 1159\n            },\n            \"amount_fils\": 1000000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2025-01-01\",\n            \"number_of_payments\": 4,\n            \"name\": {\n                \"ar\": \"test\",\n                \"en\": \"test\"\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 63\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"test\",\n            \"out_of_payroll\": false,\n            \"status\": 0,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-21T13:45:43.978Z\",\n            \"updated_at\": \"2024-05-21T13:45:43.978Z\"\n        },\n        {\n            \"id\": 64611,\n            \"employee\": {\n                \"employee_id\": 228491\n            },\n            \"amount_fils\": 75000,\n            \"amount_currency\": \"USD\",\n            \"effective_date\": \"2026-02-23\",\n            \"number_of_payments\": 15,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 4160\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 6,\n            \"installment_date\": \"2026-02-23\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-02-11T14:52:50.863Z\",\n            \"updated_at\": \"2024-02-11T14:52:50.863Z\"\n        },\n        {\n            \"id\": 491,\n            \"employee\": {\n                \"employee_id\": 21276\n            },\n            \"amount_fils\": 80000,\n            \"amount_currency\": \"JOD\",\n            \"effective_date\": \"2019-09-06\",\n            \"number_of_payments\": 7,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"loan_type\": {\n                \"loan_type_id\": 62\n            },\n            \"cancel_requested_on\": null,\n            \"notes\": \"\",\n            \"out_of_payroll\": true,\n            \"status\": 2,\n            \"installment_date\": null,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-08-07T15:47:13.856Z\",\n            \"updated_at\": \"2019-08-25T12:01:59.486Z\"\n        }\n    ]\n}"}],"_postman_id":"71e5c357-0129-4e58-9ddf-8ac4b81b3426"},{"name":"Get Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"95712ec9-efcf-4d6c-8b59-a6b5b4623b75"}}],"id":"f69d3ee4-b177-4702-9fc2-7e8454547dc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loans/:loan_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loans",":loan_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"loan.employee"},{"disabled":true,"key":"include","value":"loan.loan_type"}],"variable":[{"id":"5a119ba0-9ebe-422e-a3c2-ba5ba22554e8","type":"any","value":"","key":"branch_id"},{"id":"10484c39-d14f-46ab-997f-ae0aa49b0cea","type":"any","value":"","key":"loan_id"}]}},"response":[{"id":"204a3642-53e9-4c1a-a8fb-7441d55647c5","name":"Get Loan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/loans/1157","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","loans","1157"],"query":[{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b9b30450b7480327a59b2206c47ddf3f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a4831303-bcd6-462a-9c3b-aa310ed79092"},{"key":"X-Runtime","value":"0.236758"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"402"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1157,\n    \"employee\": {\n        \"employee_id\": 1159\n    },\n    \"amount_fils\": 7000000,\n    \"amount_currency\": \"JOD\",\n    \"effective_date\": \"2020-01-13\",\n    \"number_of_payments\": 14,\n    \"name\": {\n        \"ar\": null,\n        \"en\": null\n    },\n    \"loan_type\": {\n        \"loan_type_id\": 63\n    },\n    \"cancel_requested_on\": null,\n    \"notes\": \"\",\n    \"out_of_payroll\": false,\n    \"status\": 4,\n    \"installment_date\": null,\n    \"integration_maps\": [],\n    \"created_at\": \"2020-01-13T14:05:45.539Z\",\n    \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n}"}],"_postman_id":"f69d3ee4-b177-4702-9fc2-7e8454547dc0"},{"name":"Destroy Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"aee4e6b2-b18d-49e7-abec-4fe4526703bf"}}],"id":"a6d7d905-53dd-41ea-ad99-7c31bab93003","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loans/:loan_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loans",":loan_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"59d22620-6a75-4180-8a9d-c43c17e7204c","type":"any","value":"","key":"branch_id"},{"id":"7232c377-ba13-438a-a4f5-49daeffbf763","type":"any","value":"","key":"loan_id"}]}},"response":[],"_postman_id":"a6d7d905-53dd-41ea-ad99-7c31bab93003"},{"name":"Create Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"54813436-4750-4c2b-bcc8-348334d28e7e"}}],"id":"138e7c73-eeb8-4e50-95d1-410d0f99c993","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"loan_type_id","value":"63","type":"text"},{"key":"status","value":"4","type":"text"},{"key":"amount_fils","value":"1000000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"number_of_payments","value":"4","type":"text"},{"key":"name[ar]","value":"test","type":"text"},{"key":"name[en]","value":"test","type":"text"},{"key":"instalment_fils","value":"250000","type":"text"},{"key":"instalment_currency","value":"JOD","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"installment_date","value":"","type":"text"},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loans","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loans"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"f04cbdb7-065e-4789-9352-58c8ab2888f4","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"934d4feb-cb42-4c77-8147-9c1fe35453d4","name":"Create Loan","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"loan_type_id","value":"63","type":"text"},{"key":"status","value":"4","type":"text"},{"key":"amount_fils","value":"1000000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"number_of_payments","value":"4","type":"text"},{"key":"name[ar]","value":"test","type":"text"},{"key":"name[en]","value":"test","type":"text"},{"key":"instalment_fils","value":"250000","type":"text"},{"key":"instalment_currency","value":"JOD","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"installment_date","value":"","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/employees/1159/loans"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e15ca12e47a491f718e4f803975744aa\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"788cf797-f174-463a-b4ac-2ef0b49536f0"},{"key":"X-Runtime","value":"0.946032"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"388"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1157,\n    \"employee\": {\n        \"employee_id\": 1159\n    },\n    \"amount_fils\": 7000000,\n    \"amount_currency\": \"JOD\",\n    \"effective_date\": \"2020-01-13\",\n    \"number_of_payments\": 14,\n    \"name\": {\n        \"ar\": null,\n        \"en\": null\n    },\n    \"loan_type\": {\n        \"loan_type_id\": 63\n    },\n    \"cancel_requested_on\": null,\n    \"notes\": \"\",\n    \"out_of_payroll\": false,\n    \"status\": 4,\n    \"installment_date\": null,\n    \"integration_maps\": [],\n    \"created_at\": \"2020-01-13T14:05:45.539Z\",\n    \"updated_at\": \"2020-01-13T14:08:20.820Z\"\n}"}],"_postman_id":"138e7c73-eeb8-4e50-95d1-410d0f99c993"},{"name":"Edit Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"198db8de-bfad-47f8-9c39-c01114d52410"}}],"id":"ce927d4d-e48b-4880-bb6d-e09fc310ccff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"","type":"text"},{"key":"loan_type_id","value":"63","type":"text"},{"key":"status","value":"4","type":"text"},{"key":"amount_fils","value":"1000000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"number_of_payments","value":"4","type":"text"},{"key":"name[ar]","value":"test","type":"text"},{"key":"name[en]","value":"test","type":"text"},{"key":"instalment_fils","value":"250000","type":"text"},{"key":"instalment_currency","value":"JOD","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"notes","value":"test213","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"installment_date","value":"","type":"text"},{"key":"global_id","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/loans/:loan_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","loans",":loan_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"8e708bc7-9e25-4e3d-8f1b-1ff056bf6c3a","type":"any","value":"","key":"branch_id"},{"id":"308bbae6-a86f-4c98-9d91-e71151b178bf","type":"any","value":"","key":"loan_id"}]}},"response":[],"_postman_id":"ce927d4d-e48b-4880-bb6d-e09fc310ccff"}],"id":"a9e95d9b-2555-4199-8f49-3a65b1d211ae","_postman_id":"a9e95d9b-2555-4199-8f49-3a65b1d211ae","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Overtime Types","item":[{"name":"List Overtime Types","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"16dedee0-d02a-4a45-abf6-5d69be32ca7a"}}],"id":"ccc88dd2-8fe0-41c3-9684-82abcdf67222","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtime_types"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"filter[integration_maps][global_id]","value":"test13"}],"variable":[{"id":"36052170-d199-4d4f-b096-9cb612b78574","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"ed5a63c3-dd3a-48bf-9c10-b7f142bae776","name":"List Overtime Types","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtime_types"],"query":[{"key":"page","value":"2","description":"Page number","disabled":true},{"key":"limit","value":"2","description":"Records limit per page","disabled":true},{"key":"filter[integration_maps][gl_id]","value":"test1","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"881db8b49f0b81e677a0fc471fdb9c12\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e1725817-f831-4ec9-8d64-dcd96ab7448f"},{"key":"X-Runtime","value":"0.143468"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"8573"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 30,\n        \"total_pages\": 2\n    },\n    \"data\": [\n        {\n            \"id\": 19141,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"asdasd\",\n                \"en\": \"asdasdasfdsgfdg\"\n            },\n            \"rule\": null,\n            \"rate\": 1.6,\n            \"minimum_hours\": 3,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": true,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [\n                {\n                    \"gl_id\": \"test13\"\n                }\n            ],\n            \"created_at\": \"2024-05-22T09:05:45.519Z\",\n            \"updated_at\": \"2024-05-29T09:33:03.665Z\"\n        },\n        {\n            \"id\": 8889,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"REGULAR NEW OVER TIME\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-12-09T19:15:35.210Z\",\n            \"updated_at\": \"2023-11-12T08:41:41.931Z\"\n        },\n        {\n            \"id\": 19142,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"asdasd\",\n                \"en\": \"asdasdasfdsgfdg\"\n            },\n            \"rule\": null,\n            \"rate\": 1.2,\n            \"minimum_hours\": 3,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-22T09:15:36.528Z\",\n            \"updated_at\": \"2024-05-22T09:15:36.528Z\"\n        },\n        {\n            \"id\": 18700,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"ovetrimeez\"\n            },\n            \"rule\": \"holiday\",\n            \"rate\": 1.3,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-02-06T12:43:35.690Z\",\n            \"updated_at\": \"2024-02-06T12:43:35.690Z\"\n        },\n        {\n            \"id\": 19143,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"asdasd\",\n                \"en\": \"asdasdasfdsgfdg\"\n            },\n            \"rule\": null,\n            \"rate\": 1.2,\n            \"minimum_hours\": 3,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-22T09:17:14.725Z\",\n            \"updated_at\": \"2024-05-22T09:17:14.725Z\"\n        },\n        {\n            \"id\": 19144,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"asdasd\",\n                \"en\": \"asdasdasfdsgfdg\"\n            },\n            \"rule\": null,\n            \"rate\": 1.2,\n            \"minimum_hours\": 3,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [\n                {\n                    \"gl_id\": \"test1\"\n                }\n            ],\n            \"created_at\": \"2024-05-29T09:30:59.699Z\",\n            \"updated_at\": \"2024-05-29T09:30:59.699Z\"\n        },\n        {\n            \"id\": 19145,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"asdasd\",\n                \"en\": \"asdasdasfdsgfdg\"\n            },\n            \"rule\": null,\n            \"rate\": 1.2,\n            \"minimum_hours\": 3,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-05-29T09:31:47.025Z\",\n            \"updated_at\": \"2024-05-29T09:31:47.025Z\"\n        },\n        {\n            \"id\": 19147,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"asdasd\",\n                \"en\": \"asdasdasfdsgfdg\"\n            },\n            \"rule\": null,\n            \"rate\": 1.2,\n            \"minimum_hours\": 3,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [\n                {\n                    \"gl_id\": \"test12\"\n                }\n            ],\n            \"created_at\": \"2024-05-29T09:32:07.294Z\",\n            \"updated_at\": \"2024-05-29T09:32:07.294Z\"\n        },\n        {\n            \"id\": 8603,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Titiana's Overtime \"\n            },\n            \"rule\": \"weekend\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": true,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-10-26T12:54:30.977Z\",\n            \"updated_at\": \"2024-01-28T12:53:14.032Z\"\n        },\n        {\n            \"id\": 8605,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"weeken new\"\n            },\n            \"rule\": \"weekend\",\n            \"rate\": 1.5,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-10-26T13:04:20.432Z\",\n            \"updated_at\": \"2021-10-26T13:04:26.847Z\"\n        },\n        {\n            \"id\": 18695,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"fgdgdg\",\n                \"en\": \"ff\"\n            },\n            \"rule\": \"holiday\",\n            \"rate\": 33,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-02-06T10:48:52.737Z\",\n            \"updated_at\": \"2024-02-06T12:52:41.590Z\"\n        },\n        {\n            \"id\": 18738,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"test\"\n            },\n            \"rule\": \"all_days\",\n            \"rate\": 1.5,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": true,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-02-08T08:48:34.872Z\",\n            \"updated_at\": \"2024-02-08T08:48:53.221Z\"\n        },\n        {\n            \"id\": 18739,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"moreeee\"\n            },\n            \"rule\": \"all_days\",\n            \"rate\": 20,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-02-08T09:27:47.148Z\",\n            \"updated_at\": \"2024-02-08T09:27:47.148Z\"\n        },\n        {\n            \"id\": 18142,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"New out-of-payroll Overtime Type\"\n            },\n            \"rule\": \"all_days\",\n            \"rate\": 1.5,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2024-01-08T08:13:48.299Z\",\n            \"updated_at\": \"2024-01-08T08:16:39.778Z\"\n        },\n        {\n            \"id\": 6500,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test1-Weekday\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2020-02-25T14:23:12.989Z\",\n            \"updated_at\": \"2020-09-29T10:17:36.446Z\"\n        },\n        {\n            \"id\": 91,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"عمل اضافي ايام الاسبوع\",\n                \"en\": \"Regular Overtime\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:19:09.355Z\",\n            \"updated_at\": \"2023-11-14T09:40:55.491Z\"\n        },\n        {\n            \"id\": 8930,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"NEWSTYPE - Exception by fidz\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2021-12-14T13:04:45.055Z\",\n            \"updated_at\": \"2024-02-06T12:52:37.496Z\"\n        },\n        {\n            \"id\": 17468,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"last overtime\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2023-11-16T12:26:21.681Z\",\n            \"updated_at\": \"2024-01-19T15:08:48.469Z\"\n        },\n        {\n            \"id\": 10383,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestOvertime33\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.5,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2022-06-12T08:29:41.563Z\",\n            \"updated_at\": \"2022-06-12T11:10:21.995Z\"\n        },\n        {\n            \"id\": 17463,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"overtime not\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": false,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2023-11-16T07:49:50.702Z\",\n            \"updated_at\": \"2023-11-16T07:49:50.702Z\"\n        },\n        {\n            \"id\": 17464,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"overtime exception\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.75,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2023-11-16T10:56:36.685Z\",\n            \"updated_at\": \"2023-11-16T10:56:36.685Z\"\n        },\n        {\n            \"id\": 17462,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"overtimee revamp test\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2023-11-16T07:34:49.367Z\",\n            \"updated_at\": \"2023-11-16T07:34:49.367Z\"\n        },\n        {\n            \"id\": 9506,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Firstlinerovertimetest\"\n            },\n            \"rule\": \"weekday\",\n            \"rate\": 1.25,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": true,\n            \"default\": true,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2022-02-21T09:21:38.912Z\",\n            \"updated_at\": \"2024-02-06T12:52:42.636Z\"\n        },\n        {\n            \"id\": 92,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"عمل اضافي نهاية الاسبوع\",\n                \"en\": \"Weekend Overtime\"\n            },\n            \"rule\": \"weekend\",\n            \"rate\": 1.75,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": true,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T07:19:39.866Z\",\n            \"updated_at\": \"2024-01-19T15:09:50.946Z\"\n        },\n        {\n            \"id\": 5909,\n            \"branch_id\": 104,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"include\"\n            },\n            \"rule\": \"weekend\",\n            \"rate\": 1.5,\n            \"minimum_hours\": null,\n            \"ability_to_request\": true,\n            \"mandatory_attachment\": false,\n            \"mandatory_notes\": false,\n            \"default\": false,\n            \"gl_identifier\": \"\",\n            \"integration_maps\": [],\n            \"created_at\": \"2019-11-13T20:51:45.653Z\",\n            \"updated_at\": \"2022-10-26T13:58:46.079Z\"\n        }\n    ]\n}"}],"_postman_id":"ccc88dd2-8fe0-41c3-9684-82abcdf67222"},{"name":"Get Overtime Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"job_description\": {\"type\": \"string\"},","            \"position_type\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"e4854aaf-6811-4b49-a053-5ac3406bb0b8"}}],"id":"5482e1ef-29a2-482e-af6c-89c8d1772579","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types/:overtime_type_id","description":"<p>This API end-point will show a position in a branch by branch_id and position_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtime_types",":overtime_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"204bb9ee-5977-4205-a28d-ba59bbf1d9b7","type":"any","value":"","key":"branch_id"},{"id":"b65ec914-72d2-4de7-8989-d930c1bf05e7","type":"any","value":"","key":"overtime_type_id"}]}},"response":[{"id":"97376eab-8f1b-4a9f-80c8-39996a0d895d","name":"Get Overtime Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types/8889","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtime_types","8889"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"120c253d16c01e4abe3612e2efb65a11\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"eebc3a41-c0df-43fd-b06e-a2a062b4b44d"},{"key":"X-Runtime","value":"0.172445"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"338"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 8889,\n    \"branch_id\": 104,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"REGULAR NEW OVER TIME\"\n    },\n    \"rule\": \"weekday\",\n    \"rate\": 1.25,\n    \"minimum_hours\": null,\n    \"ability_to_request\": true,\n    \"mandatory_attachment\": false,\n    \"mandatory_notes\": true,\n    \"default\": false,\n    \"gl_identifier\": \"\",\n    \"integration_maps\": [],\n    \"created_at\": \"2021-12-09T19:15:35.210Z\",\n    \"updated_at\": \"2023-11-12T08:41:41.931Z\"\n}"}],"_postman_id":"5482e1ef-29a2-482e-af6c-89c8d1772579"},{"name":"Destroy Overtime Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"job_description\": {\"type\": \"string\"},","            \"position_type\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"e8e3ccc0-25fc-4d0c-a776-3902fae68d9f"}}],"id":"85942496-2286-4edb-8f7d-d32e48575348","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types/:overtime_type_id","description":"<p>This API end-point will show a position in a branch by branch_id and position_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtime_types",":overtime_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"2560838a-7332-49fd-a384-b89a098bf9db","type":"any","value":"","key":"branch_id"},{"id":"aedb4618-47b5-40c8-a54d-6f7daf6c5f74","type":"any","value":"","key":"overtime_type_id"}]}},"response":[],"_postman_id":"85942496-2286-4edb-8f7d-d32e48575348"},{"name":"Create Overtime Type","id":"170961a3-6a18-4612-8276-f6adad73a9dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asdasd","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdg","type":"text"},{"key":"rule","value":"","type":"text"},{"key":"minimum_hours","value":"3","type":"text"},{"key":"ability_to_request","value":"true","type":"text"},{"key":"mandatory_attachment","value":"true","type":"text"},{"key":"mandatory_notes","value":"true","type":"text"},{"key":"default","value":"false","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"rate","value":"1.2","type":"text"},{"key":"global_id","value":"test12","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtime_types"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"bd2b809d-17c3-435a-bd3d-f1ee2b4a843c","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"18e0643b-5f87-4ec0-9e9e-01ce5b3ebf1c","name":"Create Overtime Type","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asdasd","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdg","type":"text"},{"key":"rule","value":"","type":"text"},{"key":"minimum_hours","value":"3","type":"text"},{"key":"ability_to_request","value":"true","type":"text"},{"key":"mandatory_attachment","value":"true","type":"text"},{"key":"mandatory_notes","value":"true","type":"text"},{"key":"default","value":"false","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"rate","value":"1.2","type":"text"},{"key":"gl_id","value":"test12","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtime_types"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"416e28c5c28b752fe734447aea11e7b6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5941b020-b04a-45b7-870b-c708b8b734de"},{"key":"X-Runtime","value":"0.125905"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"349"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19147,\n    \"branch_id\": 104,\n    \"name\": {\n        \"ar\": \"asdasd\",\n        \"en\": \"asdasdasfdsgfdg\"\n    },\n    \"rule\": null,\n    \"rate\": 1.2,\n    \"minimum_hours\": 3,\n    \"ability_to_request\": true,\n    \"mandatory_attachment\": true,\n    \"mandatory_notes\": true,\n    \"default\": false,\n    \"gl_identifier\": \"\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test12\"\n        }\n    ],\n    \"created_at\": \"2024-05-29T09:32:07.294Z\",\n    \"updated_at\": \"2024-05-29T09:32:07.294Z\"\n}"}],"_postman_id":"170961a3-6a18-4612-8276-f6adad73a9dc"},{"name":"Edit Overtime Type","id":"6ef8a736-42fb-404a-bc8a-170675f642d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asdasd","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdg","type":"text"},{"key":"rule","value":"","type":"text"},{"key":"minimum_hours","value":"3","type":"text"},{"key":"ability_to_request","value":"false","type":"text"},{"key":"mandatory_attachment","value":"false","type":"text"},{"key":"mandatory_notes","value":"false","type":"text"},{"key":"default","value":"true","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"rate","value":"1.6","type":"text"},{"key":"global_id","value":"test13","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types/:overtime_type_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtime_types",":overtime_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"05ce7500-3f79-4546-869f-1cdc07b7927d","type":"any","value":"","key":"branch_id"},{"id":"7a8eae5b-1c27-4844-8968-3c2c11083424","type":"any","value":"","key":"overtime_type_id"}]}},"response":[{"id":"6966fd08-1c7c-4152-8863-7bdcf2370223","name":"Edit Overtime Type","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asdasd","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdg","type":"text"},{"key":"rule","value":"","type":"text"},{"key":"minimum_hours","value":"3","type":"text"},{"key":"ability_to_request","value":"false","type":"text"},{"key":"mandatory_attachment","value":"false","type":"text"},{"key":"mandatory_notes","value":"false","type":"text"},{"key":"default","value":"true","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"rate","value":"1.6","type":"text"},{"key":"gl_id","value":"test13","type":"text","disabled":true}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtime_types/19141","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtime_types","19141"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e5d4cc8ce4fa6aa3ba86ee326dc8bd9e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d22b4060-f4e1-475d-b49f-e880e0eeb2da"},{"key":"X-Runtime","value":"0.364328"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"351"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19141,\n    \"branch_id\": 104,\n    \"name\": {\n        \"ar\": \"asdasd\",\n        \"en\": \"asdasdasfdsgfdg\"\n    },\n    \"rule\": null,\n    \"rate\": 1.6,\n    \"minimum_hours\": 3,\n    \"ability_to_request\": false,\n    \"mandatory_attachment\": false,\n    \"mandatory_notes\": false,\n    \"default\": true,\n    \"gl_identifier\": \"\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test13\"\n        }\n    ],\n    \"created_at\": \"2024-05-22T09:05:45.519Z\",\n    \"updated_at\": \"2024-05-29T09:33:03.665Z\"\n}"}],"_postman_id":"6ef8a736-42fb-404a-bc8a-170675f642d8"}],"id":"6b533b65-e2a5-4c93-968f-1d91b60a533d","_postman_id":"6b533b65-e2a5-4c93-968f-1d91b60a533d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Overtimes","item":[{"name":"List Overtime","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"68ef43fd-60b0-4499-8c0e-795d9dda7aac"}}],"id":"ba66fd25-fa21-4cf9-aed9-0ab64196fce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtimes"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include","value":"overtime.employee"},{"disabled":true,"key":"filter[integration_maps][global_id]","value":"test1"},{"disabled":true,"key":"filter[employee][integration_maps][global_id]","value":"342reqaaaatest"}],"variable":[{"id":"fb8769a1-ac94-4d6b-b112-dedfb689a03e","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"a9ff4a80-982b-4375-a2c8-8f9546f108aa","name":"List Overtime","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes"],"query":[{"key":"page","value":"2","description":"Page number","disabled":true},{"key":"limit","value":"2","description":"Records limit per page","disabled":true},{"key":"include","value":"overtime.employee","disabled":true},{"key":"filter[integration_maps][gl_id]","value":null,"disabled":true},{"key":"filter[employee][integration_maps][gl_id]","value":null,"disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b61b56c0877c0239e10d7b502b295a81\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e0c200ee-2bac-4d14-9116-4827b295fe80"},{"key":"X-Runtime","value":"1.096175"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"11271"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 566,\n        \"total_pages\": 23\n    },\n    \"data\": [\n        {\n            \"id\": 66,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2017-09-12T15:00:00.000Z\",\n            \"to\": \"2017-09-12T17:00:00.000Z\",\n            \"amount_fils\": 23958,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2017-09-26\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T10:22:41.140Z\",\n            \"updated_at\": \"2023-03-08T15:23:16.450Z\"\n        },\n        {\n            \"id\": 67,\n            \"employee\": {\n                \"id\": 1154\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2017-09-18T15:00:00.000Z\",\n            \"to\": \"2017-09-18T17:00:00.000Z\",\n            \"amount_fils\": 20833,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2017-09-26\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 2.001,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-09-26T10:23:07.561Z\",\n            \"updated_at\": \"2023-03-08T15:23:16.508Z\"\n        },\n        {\n            \"id\": 97,\n            \"employee\": {\n                \"id\": 1156\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2017-10-23T07:05:00.000Z\",\n            \"to\": \"2017-10-26T11:25:00.000Z\",\n            \"amount_fils\": 397584,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2017-10-19\",\n            \"duration\": 4580,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 76.33,\n            \"integration_maps\": [],\n            \"created_at\": \"2017-10-18T13:47:16.839Z\",\n            \"updated_at\": \"2023-03-08T15:23:18.611Z\"\n        },\n        {\n            \"id\": 410,\n            \"employee\": {\n                \"id\": 1152\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-04-11T21:00:00.000Z\",\n            \"to\": \"2018-04-11T22:00:00.000Z\",\n            \"amount_fils\": 5729,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2018-04-12\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-04-12T17:16:24.378Z\",\n            \"updated_at\": \"2023-03-08T15:23:35.901Z\"\n        },\n        {\n            \"id\": 631,\n            \"employee\": {\n                \"id\": 1154\n            },\n            \"overtime_type\": {\n                \"id\": 92\n            },\n            \"from\": \"2018-11-09T16:00:00.000Z\",\n            \"to\": \"2018-11-09T18:00:00.000Z\",\n            \"amount_fils\": 24999,\n            \"amount_currency\": \"JOD\",\n            \"status\": 3,\n            \"effective_date\": \"2018-11-09\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-01T13:05:53.617Z\",\n            \"updated_at\": \"2023-03-08T15:23:47.965Z\"\n        },\n        {\n            \"id\": 632,\n            \"employee\": {\n                \"id\": 1154\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-11-28T17:00:00.000Z\",\n            \"to\": \"2018-11-28T19:00:00.000Z\",\n            \"amount_fils\": 20833,\n            \"amount_currency\": \"JOD\",\n            \"status\": 3,\n            \"effective_date\": \"2019-01-01\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-01T13:25:01.520Z\",\n            \"updated_at\": \"2023-03-08T15:23:48.005Z\"\n        },\n        {\n            \"id\": 634,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-08-01T15:00:00.000Z\",\n            \"to\": \"2018-08-01T17:00:00.000Z\",\n            \"amount_fils\": 26043,\n            \"amount_currency\": \"JOD\",\n            \"status\": 4,\n            \"effective_date\": \"2018-08-01\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-02T08:23:08.941Z\",\n            \"updated_at\": \"2023-03-08T15:23:48.050Z\"\n        },\n        {\n            \"id\": 645,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-07-04T14:00:00.000Z\",\n            \"to\": \"2018-07-04T18:00:00.000Z\",\n            \"amount_fils\": 52085,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2018-07-04\",\n            \"duration\": 240,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 4,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-03T14:51:28.744Z\",\n            \"updated_at\": \"2023-03-08T15:23:48.637Z\"\n        },\n        {\n            \"id\": 646,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2018-07-05T14:00:00.000Z\",\n            \"to\": \"2018-07-05T19:00:00.000Z\",\n            \"amount_fils\": 65106,\n            \"amount_currency\": \"JOD\",\n            \"status\": 3,\n            \"effective_date\": \"2018-08-01\",\n            \"duration\": 300,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 5,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-07-03T15:16:28.267Z\",\n            \"updated_at\": \"2023-03-08T15:23:48.690Z\"\n        },\n        {\n            \"id\": 1287,\n            \"employee\": {\n                \"id\": 11490\n            },\n            \"overtime_type\": {\n                \"id\": 93\n            },\n            \"from\": \"2018-12-25T16:00:00.000Z\",\n            \"to\": \"2018-12-25T21:00:00.000Z\",\n            \"amount_fils\": 14706,\n            \"amount_currency\": \"JOD\",\n            \"status\": 3,\n            \"effective_date\": \"2018-12-25\",\n            \"duration\": 300,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 5,\n            \"integration_maps\": [],\n            \"created_at\": \"2018-11-11T12:44:43.731Z\",\n            \"updated_at\": \"2023-03-08T15:24:24.792Z\"\n        },\n        {\n            \"id\": 1875,\n            \"employee\": {\n                \"id\": 13370\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-20T23:00:00.000Z\",\n            \"to\": \"2019-01-21T04:10:00.000Z\",\n            \"amount_fils\": 35090,\n            \"amount_currency\": \"JOD\",\n            \"status\": 4,\n            \"effective_date\": \"2019-01-21\",\n            \"duration\": 310,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 5.17,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-22T09:41:43.061Z\",\n            \"updated_at\": \"2023-03-08T15:24:56.532Z\"\n        },\n        {\n            \"id\": 1876,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-20T23:05:00.000Z\",\n            \"to\": \"2019-01-21T00:10:00.000Z\",\n            \"amount_fils\": 14423,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-21\",\n            \"duration\": 65,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1.08,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-22T09:42:58.264Z\",\n            \"updated_at\": \"2023-03-08T15:24:56.597Z\"\n        },\n        {\n            \"id\": 1877,\n            \"employee\": {\n                \"id\": 13370\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-21T23:05:00.000Z\",\n            \"to\": \"2019-01-21T23:10:00.000Z\",\n            \"amount_fils\": 543,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-22\",\n            \"duration\": 5,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 0.08,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-22T09:46:33.599Z\",\n            \"updated_at\": \"2023-03-08T15:24:56.689Z\"\n        },\n        {\n            \"id\": 1880,\n            \"employee\": {\n                \"id\": 13370\n            },\n            \"overtime_type\": {\n                \"id\": 92\n            },\n            \"from\": \"2019-01-18T22:00:00.000Z\",\n            \"to\": \"2019-01-18T23:05:00.000Z\",\n            \"amount_fils\": 8796,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-19\",\n            \"duration\": 65,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1.08,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-22T12:13:30.816Z\",\n            \"updated_at\": \"2023-03-08T15:24:56.886Z\"\n        },\n        {\n            \"id\": 1881,\n            \"employee\": {\n                \"id\": 13370\n            },\n            \"overtime_type\": {\n                \"id\": 92\n            },\n            \"from\": \"2019-01-24T22:00:00.000Z\",\n            \"to\": \"2019-01-24T23:05:00.000Z\",\n            \"amount_fils\": 8796,\n            \"amount_currency\": \"JOD\",\n            \"status\": 3,\n            \"effective_date\": \"2019-01-25\",\n            \"duration\": 65,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1.08,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-22T12:15:11.023Z\",\n            \"updated_at\": \"2023-03-08T15:24:56.946Z\"\n        },\n        {\n            \"id\": 1885,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-23T23:00:00.000Z\",\n            \"to\": \"2019-01-24T00:00:00.000Z\",\n            \"amount_fils\": 13355,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-24\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-23T12:16:27.086Z\",\n            \"updated_at\": \"2023-03-08T15:24:57.188Z\"\n        },\n        {\n            \"id\": 1909,\n            \"employee\": {\n                \"id\": 13370\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-23T23:00:00.000Z\",\n            \"to\": \"2019-01-24T00:05:00.000Z\",\n            \"amount_fils\": 7330,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-24\",\n            \"duration\": 65,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1.08,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-24T10:59:56.397Z\",\n            \"updated_at\": \"2023-03-08T15:24:57.955Z\"\n        },\n        {\n            \"id\": 1973,\n            \"employee\": {\n                \"id\": 13984\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-01-28T22:00:00.000Z\",\n            \"to\": \"2019-01-28T23:00:00.000Z\",\n            \"amount_fils\": 6787,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-01-29\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": \"sdfdfdsfdsf\",\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-01-29T13:20:16.761Z\",\n            \"updated_at\": \"2024-02-22T10:09:50.306Z\"\n        },\n        {\n            \"id\": 2048,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-02-04T13:41:00.000Z\",\n            \"to\": \"2019-02-04T15:09:00.000Z\",\n            \"amount_fils\": 19631,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2019-02-04\",\n            \"duration\": 88,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1.47,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-02-06T09:30:49.918Z\",\n            \"updated_at\": \"2023-03-08T15:25:05.260Z\"\n        },\n        {\n            \"id\": 2190,\n            \"employee\": {\n                \"id\": 10732\n            },\n            \"overtime_type\": {\n                \"id\": 92\n            },\n            \"from\": \"2019-01-02T05:40:00.000Z\",\n            \"to\": \"2019-01-02T15:14:00.000Z\",\n            \"amount_fils\": 58662,\n            \"amount_currency\": \"JOD\",\n            \"status\": 6,\n            \"effective_date\": \"2019-01-02\",\n            \"duration\": 574,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 9.57,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-02-24T12:24:22.358Z\",\n            \"updated_at\": \"2023-03-08T15:25:14.235Z\"\n        },\n        {\n            \"id\": 2481,\n            \"employee\": {\n                \"id\": 13482\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-03-24T11:00:00.000Z\",\n            \"to\": \"2019-03-24T12:00:00.000Z\",\n            \"amount_fils\": 7353,\n            \"amount_currency\": \"JOD\",\n            \"status\": 3,\n            \"effective_date\": \"2019-03-24\",\n            \"duration\": 60,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 1,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-03-20T15:15:52.821Z\",\n            \"updated_at\": \"2023-03-08T15:25:31.025Z\"\n        },\n        {\n            \"id\": 2542,\n            \"employee\": {\n                \"id\": 15705\n            },\n            \"overtime_type\": {\n                \"id\": 92\n            },\n            \"from\": \"2019-04-05T11:00:00.000Z\",\n            \"to\": \"2019-04-05T13:00:00.000Z\",\n            \"amount_fils\": 1412,\n            \"amount_currency\": \"SAR\",\n            \"status\": 4,\n            \"effective_date\": \"2019-05-01\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-03-25T12:45:34.960Z\",\n            \"updated_at\": \"2023-03-08T15:25:34.463Z\"\n        },\n        {\n            \"id\": 2546,\n            \"employee\": {\n                \"id\": 15705\n            },\n            \"overtime_type\": {\n                \"id\": 91\n            },\n            \"from\": \"2019-04-17T09:00:00.000Z\",\n            \"to\": \"2019-04-17T23:00:00.000Z\",\n            \"amount_fils\": 8235,\n            \"amount_currency\": \"SAR\",\n            \"status\": 4,\n            \"effective_date\": \"2019-05-01\",\n            \"duration\": 840,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 14,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-03-25T13:41:48.745Z\",\n            \"updated_at\": \"2023-03-08T15:25:34.684Z\"\n        },\n        {\n            \"id\": 2585,\n            \"employee\": {\n                \"id\": 15227\n            },\n            \"overtime_type\": {\n                \"id\": 92\n            },\n            \"from\": \"2019-05-08T10:00:00.000Z\",\n            \"to\": \"2019-05-08T12:00:00.000Z\",\n            \"amount_fils\": 14120,\n            \"amount_currency\": \"JOD\",\n            \"status\": 2,\n            \"effective_date\": \"2019-05-08\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-03-27T09:46:34.483Z\",\n            \"updated_at\": \"2023-03-08T15:25:36.697Z\"\n        },\n        {\n            \"id\": 2706,\n            \"employee\": {\n                \"id\": 15787\n            },\n            \"overtime_type\": {\n                \"id\": 92\n            },\n            \"from\": \"2019-04-06T10:00:00.000Z\",\n            \"to\": \"2019-04-06T12:00:00.000Z\",\n            \"amount_fils\": 1765,\n            \"amount_currency\": \"SAR\",\n            \"status\": 4,\n            \"effective_date\": \"2019-04-29\",\n            \"duration\": 120,\n            \"cancel_requested_on\": null,\n            \"out_of_payroll\": false,\n            \"deducted_duration\": 0,\n            \"notes\": null,\n            \"calculated_total_hours\": 2,\n            \"integration_maps\": [],\n            \"created_at\": \"2019-03-31T08:53:12.622Z\",\n            \"updated_at\": \"2023-03-08T15:25:43.398Z\"\n        }\n    ]\n}"}],"_postman_id":"ba66fd25-fa21-4cf9-aed9-0ab64196fce4"},{"name":"Get Overtime","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"job_description\": {\"type\": \"string\"},","            \"position_type\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"9143cbe2-54ff-435c-a65c-1e48a8794167"}}],"id":"db7c9910-3ede-4727-8061-392bf16fa198","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes/:overtime_id","description":"<p>This API end-point will show a position in a branch by branch_id and position_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtimes",":overtime_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"a9257b26-a59c-4e85-b5f2-ce637d682ffd","type":"any","value":"","key":"branch_id"},{"id":"3188a1f6-c1f7-414f-91bf-dc2a54567348","type":"any","value":"","key":"overtime_id"}]}},"response":[{"id":"32ff4548-d417-4e9f-bdf2-a91e6ad262f5","name":"Get Overtime","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes/66","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes","66"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"35b93d3c3ea38d5439e6d5f34bfd3d83\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f3e0fc4-9b1f-4053-90b7-c00b40a2e51e"},{"key":"X-Runtime","value":"0.141032"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"444"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 66,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2017-09-12T15:00:00.000Z\",\n    \"to\": \"2017-09-12T17:00:00.000Z\",\n    \"amount_fils\": 23958,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2017-09-26\",\n    \"duration\": 120,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": 0,\n    \"notes\": null,\n    \"calculated_total_hours\": 2,\n    \"integration_maps\": [],\n    \"created_at\": \"2017-09-26T10:22:41.140Z\",\n    \"updated_at\": \"2023-03-08T15:23:16.450Z\"\n}"}],"_postman_id":"db7c9910-3ede-4727-8061-392bf16fa198"},{"name":"Create Overtime","id":"2e6def95-6f73-416a-a75f-4457afb654fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtimes"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"bfdcfcc7-ecde-44b3-ab7e-40cd45450768","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"c23a3448-9295-4ea7-bfeb-9694ed987993","name":"Create Overtime","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"},{"key":"gl_id","value":"test1","type":"text","disabled":true}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"31767f0f9a0aa0c43625810d3494effb\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"65c9d66a-498a-442f-ba87-698878206058"},{"key":"X-Runtime","value":"0.906336"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"471"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787800,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2022-01-01T00:00:00.000Z\",\n    \"to\": \"2022-01-02T00:00:00.000Z\",\n    \"amount_fils\": 967740,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2022-01-01\",\n    \"duration\": 1440,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test\",\n    \"calculated_total_hours\": 24,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-29T11:33:00.789Z\",\n    \"updated_at\": \"2024-05-29T11:33:00.789Z\"\n}"}],"_postman_id":"2e6def95-6f73-416a-a75f-4457afb654fb"},{"name":"Destroy Overtime","id":"b78a5151-d790-4404-8e9c-62086a8510f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes/:overtime_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtimes",":overtime_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"514bfddc-f06a-42a7-a160-c0ff92f99720","type":"any","value":"","key":"branch_id"},{"id":"a0d8f4ec-48bf-4e53-bb7a-ad9da57d8c87","type":"any","value":"","key":"overtime_id"}]}},"response":[{"id":"1d06bba5-9f5c-4665-a6c0-f777af86c9e9","name":"Create Overtime","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ef804bf2de645af4544bff24f2a12317\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"dd4f99f6-afd6-4bb6-99da-45cee6e7953c"},{"key":"X-Runtime","value":"3.191726"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"432"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787800,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2022-01-01T00:00:00.000Z\",\n    \"to\": \"2022-01-02T00:00:00.000Z\",\n    \"amount_fils\": 967740,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2022-01-01\",\n    \"duration\": 1440,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test\",\n    \"calculated_total_hours\": 24,\n    \"created_at\": \"2024-04-28T14:52:06.683Z\",\n    \"updated_at\": \"2024-04-28T14:52:06.683Z\"\n}"}],"_postman_id":"b78a5151-d790-4404-8e9c-62086a8510f3"},{"name":"Edit Overtime","id":"b83b07b8-e774-42f8-bb30-81cfb9687482","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"global_id","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes/:overtime_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","overtimes",":overtime_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"5564cb6e-5ca2-474f-983c-82cc4723a1e9","type":"any","value":"","key":"branch_id"},{"id":"3e48dc3d-c79f-4f70-84d3-dc9b59269d7b","type":"any","value":"","key":"overtime_id"}]}},"response":[{"id":"d48a6cb0-b0dc-49e1-9da8-0557cf51f6e1","name":"Edit Overtime","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"gl_id","value":"","type":"text","disabled":true}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes/787800","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes","787800"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f02a60a4d54f17b1b2111e6f80452836\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c270adf0-6667-4cfa-b6a3-61d130b6bf2f"},{"key":"X-Runtime","value":"0.805032"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"472"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787800,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2022-01-01T00:00:00.000Z\",\n    \"to\": \"2022-01-02T00:00:00.000Z\",\n    \"amount_fils\": 10000,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2022-01-01\",\n    \"duration\": 120,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test123\",\n    \"calculated_total_hours\": 24,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-29T11:33:00.789Z\",\n    \"updated_at\": \"2024-05-29T11:33:28.834Z\"\n}"}],"_postman_id":"b83b07b8-e774-42f8-bb30-81cfb9687482"}],"id":"17306bce-6e4c-4f96-85a6-890a89b2cb90","_postman_id":"17306bce-6e4c-4f96-85a6-890a89b2cb90","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Competencies Categories","item":[{"name":"Competencies","item":[{"name":"List Competencies","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": {\"type\": \"number\"},","                    \"per_page\": {\"type\": \"number\"},","                    \"total_entries\": {\"type\": \"number\"},","                    \"total_pages\": {\"type\": \"number\"}","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"competencies_category\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"]","                        },","                       \"description\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"]","                        },","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"competencies_category\", \"name\", \"description\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var competencyId = responseBody.data[0].id;","pm.environment.set(\"competency_id\", competencyId);"],"type":"text/javascript","id":"cc33de5e-29f1-4e88-a73d-9d236c07e787"}}],"id":"ff7615a5-0e5b-48ef-9008-b37a13bd7e1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"3"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"2"},{"disabled":true,"key":"include[]","value":"competency.competencies_category"},{"disabled":true,"key":"filter[id][]","value":"1"},{"disabled":true,"key":"filter[competencies_category_id][]","value":"1"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2018-11-18"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2018-11-18"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2018-11-18"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2018-11-18"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[{"id":"3ec95a4e-2080-4537-bc76-9bb48d09f77c","type":"any","value":"","key":"branch_id"},{"id":"b5c25469-d0a1-4628-a084-23d1aa0b3dee","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"}]}},"response":[{"id":"835bb0aa-e8f1-4849-841c-7570cf3faaac","name":"List Competencies","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies"],"query":[{"key":"order[id]","value":"desc","disabled":true}],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"02b2d572c64f8062ed96b9439fbd4211\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"720d79e5-d331-4a58-8dcb-12c10d619616"},{"key":"X-Runtime","value":"0.026923"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"518"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 2,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1,\n            \"competencies_category\": {\n                \"id\": 1\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"phone comunications\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"phone comunications\"\n            },\n            \"created_at\": \"2018-11-18T14:53:45.876Z\",\n            \"updated_at\": \"2018-11-18T14:53:45.876Z\"\n        },\n        {\n            \"id\": 2,\n            \"competencies_category\": {\n                \"id\": 1\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"english language\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"english language\"\n            },\n            \"created_at\": \"2018-11-18T14:54:02.749Z\",\n            \"updated_at\": \"2018-11-18T14:54:02.749Z\"\n        }\n    ]\n}"}],"_postman_id":"ff7615a5-0e5b-48ef-9008-b37a13bd7e1a"},{"name":"Get Competency","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competencies_category\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"description\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competencies_category\", \"name\", \"description\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"abd49b83-4571-4ee1-8934-26ee489b4815"}}],"id":"bcd88399-fc85-4ee8-a833-8ffcd435eb8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies/:competency_id ","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies",":competency_id "],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"competency.competencies_category"}],"variable":[{"id":"ca7a3dc2-e083-4766-94bb-b2c87cb42b66","type":"any","value":"","key":"branch_id"},{"id":"40cd27a0-b579-4132-99fb-ca47302a687e","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"},{"id":"6bae33d7-1e43-4af5-a387-908c7053faad","type":"any","value":"{{competency_id}}","key":"competency_id "}]}},"response":[{"id":"e5c1496a-3e2d-491c-8e09-05b824388dc4","name":"Get Competency","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies/:competency_id ","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies",":competency_id "],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"},{"key":"competency_id ","value":"{{competency_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"7379bd8676e6cb198845c56c9f0b8af8\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ecd23b08-c414-46ae-b52c-54267328da93"},{"key":"X-Runtime","value":"0.034321"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"216"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"competencies_category\": {\n        \"id\": 1\n    },\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"phone comunications\"\n    },\n    \"description\": {\n        \"ar\": \"\",\n        \"en\": \"phone comunications\"\n    },\n    \"created_at\": \"2018-11-18T14:53:45.876Z\",\n    \"updated_at\": \"2018-11-18T14:53:45.876Z\"\n}"}],"_postman_id":"bcd88399-fc85-4ee8-a833-8ffcd435eb8d"},{"name":"Create Competency","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competencies_category\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"description\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competencies_category\", \"name\", \"description\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"8480de45-c4a3-4f39-95cc-bdf86d91b0c1"}}],"id":"ef67e1b0-5b73-4ab9-87ee-8829269301e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"3f6b5ffc-21ea-4d3b-8170-7ccf30fa57dc","type":"any","value":"","key":"branch_id"},{"id":"d86e39e0-6412-43cf-ba39-54f8b5cbe083","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"}]}},"response":[{"id":"05ef1690-886d-4afa-8bba-9911ea2dfe51","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"1b9e1172fa3f3b034e94260bbfdbb5fe\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"41b4ad0d-c568-401c-9e61-90b1d888f6b1"},{"key":"X-Runtime","value":"0.045538"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"188"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13298,\n    \"competencies_category\": {\n        \"id\": 1\n    },\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"test\"\n    },\n    \"description\": {\n        \"ar\": \"\",\n        \"en\": \"\"\n    },\n    \"created_at\": \"2023-12-11T12:50:32.526Z\",\n    \"updated_at\": \"2023-12-11T12:50:32.526Z\"\n}"}],"_postman_id":"ef67e1b0-5b73-4ab9-87ee-8829269301e9"},{"name":"Update Competency","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competencies_category\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"description\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competencies_category\", \"name\", \"description\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"4fdb9f90-182e-4ad2-84c6-6d98c4958e48"}}],"id":"41c244fd-a8ba-4b90-bd30-9760f92775b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test2","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies/:competency_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies",":competency_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"afc3b3ba-2196-45bf-8597-82c2d24a6fe9","type":"any","value":"","key":"branch_id"},{"id":"791166cc-8d80-4b66-8e7d-492f238a95b3","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"},{"id":"9d8506ca-12e7-4b1a-bf0c-8c700d69157a","type":"any","value":"{{competency_id}}","key":"competency_id"}]}},"response":[{"id":"14a1097f-203f-4f85-b33b-ce6c9ab6b56c","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test2","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies/:competency_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies",":competency_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"},{"key":"competency_id","value":"{{competency_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f169c4cd30a37a3d5324f38431408c9d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"4be8f14c-ec5f-4bf9-a4ea-ca5848983292"},{"key":"X-Runtime","value":"0.046041"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"188"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"competencies_category\": {\n        \"id\": 2304\n    },\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"test2\"\n    },\n    \"description\": {\n        \"ar\": \"\",\n        \"en\": \"\"\n    },\n    \"created_at\": \"2018-11-18T14:53:45.876Z\",\n    \"updated_at\": \"2023-12-11T12:54:47.944Z\"\n}"}],"_postman_id":"41c244fd-a8ba-4b90-bd30-9760f92775b1"},{"name":"Delete Competency","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 204","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","id":"9c8d5969-cc32-4a42-80a1-1b52d5426b3a"}}],"id":"b94c3982-9708-4c82-bb03-522066f9cbcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/competencies/:competency_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","competencies",":competency_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"468655a7-d6b4-4410-9030-eae7f71f22e1","type":"any","value":"","key":"branch_id"},{"id":"87215270-fe5c-42a9-b9fe-dfa42e80f496","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"},{"id":"c77ef442-c5fe-4a1f-89e4-c15bfec79c27","type":"any","value":"{{competency_id}}","key":"competency_id"}]}},"response":[{"id":"a1fd66b6-f6db-4861-b376-3e6b81a5e664","name":"Delete Competencies Category","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"levels","value":"6","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"3d4c5303-8cd3-4f4f-8da8-487d4404773b"},{"key":"X-Runtime","value":"0.160725"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b94c3982-9708-4c82-bb03-522066f9cbcb"}],"id":"30af2faf-5c11-4966-820c-aa7934e2d67d","_postman_id":"30af2faf-5c11-4966-820c-aa7934e2d67d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Level Scales","item":[{"name":"List Level Scales","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": {\"type\": \"number\"},","                    \"per_page\": {\"type\": \"number\"},","                    \"total_entries\": {\"type\": \"number\"},","                    \"total_pages\": {\"type\": \"number\"}","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"competencies_category\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"]","                        },","                        \"level\": {\"type\": \"number\"},","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"competencies_category\", \"name\", \"level\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var levelScaleId = responseBody.data[0].id;","pm.environment.set(\"level_scale_id\", levelScaleId);"],"type":"text/javascript","id":"6f39ed7c-3e7b-4a9c-b797-4f9a9c8595fd"}}],"id":"bf6e2f08-52bc-4b56-8a5f-e3b8318cfec4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"level_scale.competencies_category"},{"disabled":true,"key":"filter[id][]","value":"1"},{"disabled":true,"key":"filter[competencies_category_id][]","value":"1"},{"disabled":true,"key":"filter[level][]","value":"5"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2018-11-27"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2018-11-27"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2018-11-27"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2018-11-27"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[{"id":"81efc526-2aac-454d-8509-1128b3b207f0","type":"any","value":"","key":"branch_id"},{"id":"b6303f40-7de2-4e7d-b98e-ae4d7f74a59f","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"}]}},"response":[{"id":"e40a7a47-abd1-494d-aa20-e2f7fb913e1c","name":"List Level Scales","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"42c6599f6a94b2a3955ee982fbf57069\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"393e107f-d94d-4a91-8946-1cc2790536f4"},{"key":"X-Runtime","value":"0.041803"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"890"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 5,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1,\n            \"competencies_category\": {\n                \"id\": 1\n            },\n            \"name\": {\n                \"ar\": \"1\",\n                \"en\": \"1\"\n            },\n            \"level\": 1,\n            \"created_at\": \"2018-11-18T14:53:13.920Z\",\n            \"updated_at\": \"2018-11-18T14:53:13.920Z\"\n        },\n        {\n            \"id\": 2,\n            \"competencies_category\": {\n                \"id\": 1\n            },\n            \"name\": {\n                \"ar\": \"2\",\n                \"en\": \"2\"\n            },\n            \"level\": 2,\n            \"created_at\": \"2018-11-18T14:53:13.927Z\",\n            \"updated_at\": \"2018-11-18T14:53:13.927Z\"\n        },\n        {\n            \"id\": 3,\n            \"competencies_category\": {\n                \"id\": 1\n            },\n            \"name\": {\n                \"ar\": \"3\",\n                \"en\": \"3\"\n            },\n            \"level\": 3,\n            \"created_at\": \"2018-11-18T14:53:13.933Z\",\n            \"updated_at\": \"2018-11-18T14:53:13.933Z\"\n        },\n        {\n            \"id\": 4,\n            \"competencies_category\": {\n                \"id\": 1\n            },\n            \"name\": {\n                \"ar\": \"40\",\n                \"en\": \"40\"\n            },\n            \"level\": 4,\n            \"created_at\": \"2018-11-18T14:53:13.939Z\",\n            \"updated_at\": \"2023-12-03T14:09:03.650Z\"\n        },\n        {\n            \"id\": 48,\n            \"competencies_category\": {\n                \"id\": 1\n            },\n            \"name\": {\n                \"ar\": \"50\",\n                \"en\": \"50\"\n            },\n            \"level\": 5,\n            \"created_at\": \"2018-11-27T10:00:03.330Z\",\n            \"updated_at\": \"2023-12-03T14:09:03.805Z\"\n        }\n    ]\n}"}],"_postman_id":"bf6e2f08-52bc-4b56-8a5f-e3b8318cfec4"},{"name":"Get Level Scale","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competencies_category\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"level\": {\"type\": \"number\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competencies_category\", \"name\", \"level\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"9cd6ec0a-1aa2-462c-b082-dd4db5975f8b"}}],"id":"a15ba9fd-6312-4a20-ba1d-33d7697a7ffb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales/:level_scale_id ","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales",":level_scale_id "],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"level_scale.competencies_category"}],"variable":[{"id":"a33a2a77-0cac-4ed0-9f2d-c9c8e5d0f5ab","type":"any","value":"","key":"branch_id"},{"id":"cff891e9-aa76-4b34-8442-9fa347ba14e9","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"},{"id":"d2e8c48b-2d82-4e4d-a9f5-85618992a5c9","type":"any","value":"{{level_scale_id}}","key":"level_scale_id "}]}},"response":[{"id":"b67a9f7d-7253-4932-869d-e90f5deceebb","name":"Get Level Scale","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales/:level_scale_id ","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales",":level_scale_id "],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"},{"key":"level_scale_id ","value":"{{level_scale_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"128357bb68c6bac50f8d360968269ead\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9e5ce1b5-3fa8-409e-8964-ea2d3db24aa9"},{"key":"X-Runtime","value":"0.022512"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"158"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"competencies_category\": {\n        \"id\": 1\n    },\n    \"name\": {\n        \"ar\": \"1\",\n        \"en\": \"1\"\n    },\n    \"level\": 1,\n    \"created_at\": \"2018-11-18T14:53:13.920Z\",\n    \"updated_at\": \"2018-11-18T14:53:13.920Z\"\n}"}],"_postman_id":"a15ba9fd-6312-4a20-ba1d-33d7697a7ffb"},{"name":"Create Level Scale","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competencies_category\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"level\": {\"type\": \"number\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competencies_category\", \"name\", \"level\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"19732f91-4ac7-4c16-a8ba-b5ca7847e92a"}}],"id":"95280e9a-e181-4f22-9558-d0dc65c3e08b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"level","value":"6","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"ec574dfd-6876-4e93-a5f6-a425b67c67a8","type":"any","value":"","key":"branch_id"},{"id":"0be1f7dd-9378-4d7a-ac57-7195ac8a5a19","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"}]}},"response":[{"id":"55fff77d-e67e-442d-ad19-af6fd0f1ccd4","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"level","value":"6","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e359a07ef8d368b3758df24bd099daff\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ac864f9a-fa5c-46ec-85bf-233e32255432"},{"key":"X-Runtime","value":"0.193755"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"166"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 32424,\n    \"competencies_category\": {\n        \"id\": 1\n    },\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"test\"\n    },\n    \"level\": 6,\n    \"created_at\": \"2023-12-11T13:08:25.410Z\",\n    \"updated_at\": \"2023-12-11T13:08:25.410Z\"\n}"}],"_postman_id":"95280e9a-e181-4f22-9558-d0dc65c3e08b"},{"name":"Update Level Scale","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"competencies_category\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"level\": {\"type\": \"number\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"competencies_category\", \"name\", \"level\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"7d415eaf-a4f5-4abc-b8a9-903a93d14c08"}}],"id":"49b43763-edde-499b-9b82-a2f8a6c36c2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test2","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales/:level_scale_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales",":level_scale_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"ffa3bcda-e1c1-414a-988d-82bd5600c511","type":"any","value":"","key":"branch_id"},{"id":"05cf6e8c-199c-48eb-b255-d876b1020f3f","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"},{"id":"a412ff40-88d9-4553-bbfb-2a2d74fab401","type":"any","value":"{{level_scale_id}}","key":"level_scale_id"}]}},"response":[{"id":"c7f7c6cd-38f4-4aee-98a9-b6687e35ccd5","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test2","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales/:level_scale_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales",":level_scale_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"},{"key":"level_scale_id","value":"{{level_scale_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f431d906034c22fa974aa6485b03295f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"451c42d9-b914-49fd-b5fa-a14497b4ca35"},{"key":"X-Runtime","value":"0.048133"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"163"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"competencies_category\": {\n        \"id\": 1\n    },\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"test2\"\n    },\n    \"level\": 1,\n    \"created_at\": \"2018-11-18T14:53:13.920Z\",\n    \"updated_at\": \"2023-12-11T13:09:16.328Z\"\n}"}],"_postman_id":"49b43763-edde-499b-9b82-a2f8a6c36c2d"},{"name":"Delete Level Scale","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 204","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","id":"3691809c-d9b4-4f16-b9de-43dd690b6f5c"}}],"id":"ec6b5ae2-5d32-41bb-874a-16194979df0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales/:level_scale_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales",":level_scale_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"033bc1ab-55d4-4e1f-8c63-b73300113ba7","type":"any","value":"","key":"branch_id"},{"id":"a018cee0-dd6e-49c5-b57c-567838cc081b","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"},{"id":"00a6c660-1401-4eea-a55b-207ac84ce0c0","type":"any","value":"{{level_scale_id}}","key":"level_scale_id"}]}},"response":[{"id":"d30305b9-e19e-4665-8844-81ef072f8066","name":"Delete Level Scale","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id/level_scales/:level_scale_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id","level_scales",":level_scale_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"},{"key":"level_scale_id","value":"{{level_scale_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"ff809bec-d9eb-437a-b27a-bb34a80285be"},{"key":"X-Runtime","value":"0.039488"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"ec6b5ae2-5d32-41bb-874a-16194979df0e"}],"id":"7cd32c83-255c-44da-a0a9-d2552699eddd","_postman_id":"7cd32c83-255c-44da-a0a9-d2552699eddd","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"List Competencies Categories","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": {\"type\": \"number\"},","                    \"per_page\": {\"type\": \"number\"},","                    \"total_entries\": {\"type\": \"number\"},","                    \"total_pages\": {\"type\": \"number\"}","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"branch\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"en\": { \"type\": [\"string\", \"null\"] },","                                \"ar\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"en\", \"ar\"]","                        },","                        \"levels\": {\"type\": \"number\"},","                        \"linked_to_position\": {\"type\": \"boolean\"},","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"branch\", \"name\", \"levels\", \"linked_to_position\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var competenciesCategoryId = responseBody.data[0].id;","pm.environment.set(\"competencies_category_id\", competenciesCategoryId);"],"type":"text/javascript","id":"7d7be65c-d1b8-4d70-a765-cd89a31737f1"}}],"id":"cbd32f4f-01db-4fec-90b1-32c6ff7b46b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"2269"},{"disabled":true,"key":"filter[linked_to_position][]","value":"false"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-05-18"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-05-18"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-05-18"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-05-18"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: desc}"}],"variable":[{"id":"fa0eade6-e81f-42ca-93ea-26bed0506e60","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"501faf0a-6c93-464c-b481-9e98a28e26f3","name":"List Competencies Categories","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories"],"query":[{"key":"order[id]","value":"desc","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b0adaa6a9b9eb9bd1f7e31a512e2f739\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6cb77584-166a-47cd-a46b-3b7680cf6757"},{"key":"X-Runtime","value":"0.035113"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1971"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 11,\n        \"total_pages\": 2\n    },\n    \"data\": [\n        {\n            \"id\": 2302,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"test\"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": true,\n            \"created_at\": \"2023-12-11T12:18:23.440Z\",\n            \"updated_at\": \"2023-12-11T12:18:23.440Z\"\n        },\n        {\n            \"id\": 2303,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"test\"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": true,\n            \"created_at\": \"2023-12-11T12:19:22.818Z\",\n            \"updated_at\": \"2023-12-11T12:19:22.818Z\"\n        },\n        {\n            \"id\": 2304,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": null,\n                \"en\": \"test\"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": true,\n            \"created_at\": \"2023-12-11T12:19:50.637Z\",\n            \"updated_at\": \"2023-12-11T12:19:50.637Z\"\n        },\n        {\n            \"id\": 1,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"communication skills\"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": true,\n            \"created_at\": \"2018-11-18T14:53:13.893Z\",\n            \"updated_at\": \"2018-11-27T10:00:03.297Z\"\n        },\n        {\n            \"id\": 51,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Teamwork Skills \"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": true,\n            \"created_at\": \"2019-02-15T15:17:12.896Z\",\n            \"updated_at\": \"2019-03-16T13:02:21.761Z\"\n        },\n        {\n            \"id\": 406,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Business Communication Skills \"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": true,\n            \"created_at\": \"2020-08-11T18:40:51.109Z\",\n            \"updated_at\": \"2020-10-01T11:08:50.000Z\"\n        },\n        {\n            \"id\": 465,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Upgrade Code Competencies \"\n            },\n            \"levels\": 3,\n            \"linked_to_position\": false,\n            \"created_at\": \"2020-11-11T09:58:39.826Z\",\n            \"updated_at\": \"2020-11-11T09:58:39.826Z\"\n        },\n        {\n            \"id\": 669,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Comp 1\"\n            },\n            \"levels\": 1,\n            \"linked_to_position\": false,\n            \"created_at\": \"2021-06-16T11:52:10.571Z\",\n            \"updated_at\": \"2021-06-16T11:52:10.571Z\"\n        },\n        {\n            \"id\": 810,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Computer Skills \"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": true,\n            \"created_at\": \"2022-05-18T10:42:50.088Z\",\n            \"updated_at\": \"2022-05-18T10:42:50.088Z\"\n        },\n        {\n            \"id\": 811,\n            \"branch\": {\n                \"id\": 104\n            },\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Not linked Comp\"\n            },\n            \"levels\": 5,\n            \"linked_to_position\": false,\n            \"created_at\": \"2022-05-18T10:44:12.953Z\",\n            \"updated_at\": \"2022-05-18T10:44:12.953Z\"\n        }\n    ]\n}"}],"_postman_id":"cbd32f4f-01db-4fec-90b1-32c6ff7b46b9"},{"name":"Get Competencies Category","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"levels\": {\"type\": \"number\"},","            \"linked_to_position\": {\"type\": \"boolean\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"branch\", \"name\", \"levels\", \"linked_to_position\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"58c2942b-6545-40e7-98b2-f513ef745aa4"}}],"id":"b8939c1f-fa76-4204-8c59-e26258bb5a7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"a7012e74-339f-433e-a107-664ced8e874c","type":"any","value":"","key":"branch_id"},{"id":"45718850-7775-4396-a0e2-3f24e2dbfab6","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"}]}},"response":[{"id":"b962a4b9-d604-450c-8752-fc87be6aa40a","name":"Get Competencies Category","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"0b06d05a245a9d2928adbc793931b4d5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9e5884ee-21db-41cd-89f6-63f9ad58d68a"},{"key":"X-Runtime","value":"0.021726"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"179"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2302,\n    \"branch\": {\n        \"id\": 104\n    },\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"test\"\n    },\n    \"levels\": 5,\n    \"linked_to_position\": true,\n    \"created_at\": \"2023-12-11T12:18:23.440Z\",\n    \"updated_at\": \"2023-12-11T12:18:23.440Z\"\n}"}],"_postman_id":"b8939c1f-fa76-4204-8c59-e26258bb5a7d"},{"name":"Create Competencies Category","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"levels\": {\"type\": \"number\"},","            \"linked_to_position\": {\"type\": \"boolean\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"branch\", \"name\", \"levels\", \"linked_to_position\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"482e655d-a14c-4802-a336-7318af6975f1"}}],"id":"6368f20d-d037-459e-b765-e2665b6b5031","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"levels","value":"5","type":"text"},{"key":"linked_to_position","value":"true","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"dc936ddc-3fc8-47d5-8b61-6fe2f52a566c","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"ac89aec2-19e3-44f2-a486-d112ea6b3bfd","name":"Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"levels","value":"5","type":"text","disabled":true},{"key":"linked_to_position","value":"true","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories"],"variable":[{"key":"branch_id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"52d12ec1-b3de-4f55-9add-076a5f1bc040"},{"key":"X-Runtime","value":"0.023162"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": null,\n        \"message\": \"Validation failed: Levels must be greater than 0\",\n        \"errors\": {\n            \"ar\": [\n                \"يجب أن يكون عدد Levels أكبر من 0\"\n            ],\n            \"en\": [\n                \"Levels must be greater than 0\"\n            ]\n        },\n        \"object\": {\n            \"id\": null,\n            \"branch_id\": 104,\n            \"name\": \"test\",\n            \"levels\": 0,\n            \"linked_to_position\": true,\n            \"created_at\": null,\n            \"updated_at\": null\n        }\n    }\n}"},{"id":"9e179a2b-ef63-4890-85c3-5ad4df9e3a9f","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"levels","value":"5","type":"text"},{"key":"linked_to_position","value":"true","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b869c654c1f3c0b994548b3a36c344bb\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"51714e8d-8330-4f91-9854-7f1cf042f646"},{"key":"X-Runtime","value":"0.123433"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"179"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2306,\n    \"branch\": {\n        \"id\": 104\n    },\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"test\"\n    },\n    \"levels\": 5,\n    \"linked_to_position\": true,\n    \"created_at\": \"2023-12-11T12:21:54.384Z\",\n    \"updated_at\": \"2023-12-11T12:21:54.384Z\"\n}"}],"_postman_id":"6368f20d-d037-459e-b765-e2665b6b5031"},{"name":"Update Competencies Category","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"en\": { \"type\": [\"string\", \"null\"] },","                    \"ar\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"en\", \"ar\"]","            },","            \"levels\": {\"type\": \"number\"},","            \"linked_to_position\": {\"type\": \"boolean\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"branch\", \"name\", \"levels\", \"linked_to_position\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"483267e5-bcc2-428f-843f-f33e3d6b5c8d"}}],"id":"ccb3c3d0-7a77-4e6d-96f1-ff85df6101b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"levels","value":"6","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"5efb57d4-b3bb-4ba6-9bdb-e6c9ab7c1f0f","type":"any","value":"","key":"branch_id"},{"id":"41247d7b-4b1f-43e5-96fd-802753181160","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"}]}},"response":[{"id":"74e37d36-8c72-4050-a2f2-412d2865670c","name":"Failed","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"levels","value":"-1","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"f6da5153-e2b0-48cc-b2a7-f3c9b8028f44"},{"key":"X-Runtime","value":"0.059300"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": null,\n        \"message\": \"Validation failed: Levels must be greater than 0\",\n        \"errors\": {\n            \"ar\": [\n                \"يجب أن يكون عدد Levels أكبر من 0\"\n            ],\n            \"en\": [\n                \"Levels must be greater than 0\"\n            ]\n        },\n        \"object\": {\n            \"branch_id\": 104,\n            \"levels\": -1,\n            \"id\": 2302,\n            \"name\": \"test\",\n            \"linked_to_position\": true,\n            \"created_at\": \"2023-12-11T12:18:23.440Z\",\n            \"updated_at\": \"2023-12-11T12:18:23.440Z\"\n        }\n    }\n}"},{"id":"10a83354-3174-4286-ba85-e164f323591a","name":"Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"levels","value":"6","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e203bb9e0e1a7724ae0fb71bac6de97b\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"3cf05f7c-cfac-4065-af09-a637835ea697"},{"key":"X-Runtime","value":"0.080775"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"179"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2302,\n    \"branch\": {\n        \"id\": 104\n    },\n    \"name\": {\n        \"ar\": null,\n        \"en\": \"test\"\n    },\n    \"levels\": 6,\n    \"linked_to_position\": true,\n    \"created_at\": \"2023-12-11T12:18:23.440Z\",\n    \"updated_at\": \"2023-12-11T12:23:51.280Z\"\n}"}],"_postman_id":"ccb3c3d0-7a77-4e6d-96f1-ff85df6101b4"},{"name":"Delete Competencies Category","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 204","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","id":"4b6bf3e7-dddf-4ae8-a00b-dbda511ea574"}}],"id":"eb995766-763e-481d-a6a4-6e72fd1692b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"c2438808-7f18-43c3-80e8-19c906100716","type":"any","value":"","key":"branch_id"},{"id":"0b165eef-9a07-4ada-b77a-6a4fd3b55861","type":"any","value":"{{competencies_category_id}}","key":"competencies_category_id"}]}},"response":[{"id":"99f1bb11-70f0-43d0-a3a6-c50730068426","name":"Delete Competencies Category","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"levels","value":"6","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/competencies_categories/:competencies_category_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","competencies_categories",":competencies_category_id"],"variable":[{"key":"branch_id","value":""},{"key":"competencies_category_id","value":"{{competencies_category_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"3d4c5303-8cd3-4f4f-8da8-487d4404773b"},{"key":"X-Runtime","value":"0.160725"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"eb995766-763e-481d-a6a4-6e72fd1692b5"}],"id":"53e35c70-952d-4d39-823f-ff4ae0c7913f","_postman_id":"53e35c70-952d-4d39-823f-ff4ae0c7913f","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"HR Letters","item":[{"name":"HR Letter Types","item":[{"name":"List HR Letter Types","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": {\"type\": \"number\"},","                    \"per_page\": {\"type\": \"number\"},","                    \"total_entries\": {\"type\": \"number\"},","                    \"total_pages\": {\"type\": \"number\"}","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"branch\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": {\"type\": [\"string\", \"null\"] },","                                \"en\": {\"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"classification\": {\"type\": \"string\"},","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"branch\", \"name\", \"classification\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var hrLetterTypeId = responseBody.data[0].id;","pm.environment.set(\"hr_letter_type_id\", hrLetterTypeId);"],"type":"text/javascript","id":"1559a390-e8d5-44c1-939b-de33f6cf28df"}}],"id":"a9cd8f3b-c2f5-4ed7-a0b5-d2df94d4e7b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types","description":"<p>This API end-point will list all hr letter types in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_types"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"3"},{"disabled":true,"key":"filter[classification][]","value":"neutral"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[{"id":"d8ef1096-9078-40ac-ba62-47ac83a5eadc","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"a1febbf7-9cea-4184-87fd-d8e864efb27b","name":"List Hr Letter Types","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types?order[id]=desc","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_types"],"query":[{"key":"order[id]","value":"desc"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"83c829d89a83298131519c301f8fa2d0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6fb4eefb-f2df-4576-904c-801b8d76dc58"},{"key":"X-Runtime","value":"0.063723"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1814"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 40,\n        \"total_pages\": 4\n    },\n    \"data\": [\n        {\n            \"id\": 47100,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-11-27T21:09:49.435Z\",\n            \"updated_at\": \"2023-11-27T21:09:49.435Z\",\n            \"name\": {\n                \"ar\": \"hr letter type ar\",\n                \"en\": \"hr letter type\"\n            }\n        },\n        {\n            \"id\": 46526,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-11-06T13:09:33.479Z\",\n            \"updated_at\": \"2023-11-06T13:09:33.479Z\",\n            \"name\": {\n                \"ar\": \"حلا\",\n                \"en\": \"hala3000\"\n            }\n        },\n        {\n            \"id\": 46447,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-11-05T11:54:56.065Z\",\n            \"updated_at\": \"2023-11-05T11:54:56.065Z\",\n            \"name\": {\n                \"ar\": \"387461\",\n                \"en\": \"Lean\"\n            }\n        },\n        {\n            \"id\": 46207,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-10-29T10:51:41.077Z\",\n            \"updated_at\": \"2023-10-29T10:51:41.077Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"testtest\"\n            }\n        },\n        {\n            \"id\": 46158,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-10-25T13:10:25.799Z\",\n            \"updated_at\": \"2023-10-25T13:10:25.799Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test HR 2\"\n            }\n        },\n        {\n            \"id\": 46157,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-10-25T13:10:23.714Z\",\n            \"updated_at\": \"2023-10-25T13:10:23.714Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test HR 2\"\n            }\n        },\n        {\n            \"id\": 46148,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-10-25T10:17:38.165Z\",\n            \"updated_at\": \"2023-10-25T10:17:38.165Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"rrrr\"\n            }\n        },\n        {\n            \"id\": 46099,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-10-23T14:46:28.740Z\",\n            \"updated_at\": \"2023-10-23T14:46:28.740Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Lean\"\n            }\n        },\n        {\n            \"id\": 45712,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-10-16T08:50:10.481Z\",\n            \"updated_at\": \"2023-10-16T08:50:10.481Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"test\"\n            }\n        },\n        {\n            \"id\": 45506,\n            \"branch_id\": 104,\n            \"classification\": \"positive\",\n            \"created_at\": \"2023-10-10T14:00:31.383Z\",\n            \"updated_at\": \"2023-10-10T14:00:31.383Z\",\n            \"name\": {\n                \"ar\": \"387461\",\n                \"en\": \"Lean\"\n            }\n        }\n    ]\n}"}],"_postman_id":"a9cd8f3b-c2f5-4ed7-a0b5-d2df94d4e7b4"},{"name":"Get HR Letter Type","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"classification\": { \"type\": \"string\" },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"branch\", \"name\", \"classification\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"9d9c46a7-f75f-4d27-905e-ae17962b1b13"}}],"id":"c9028b0f-6327-4d1f-884e-c3be62c1a231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types/:hr_letter_type_id","description":"<p>This API end-point will showthe the hr letter type in branch by branch_id and hr_letter_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_types",":hr_letter_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"151007c5-d3e7-440c-bf8e-1e72c4410bfa","type":"any","value":"","key":"branch_id"},{"id":"f0030ec7-6f86-4d1e-96fe-cb4b59010995","type":"any","value":"{{hr_letter_type_id}}","key":"hr_letter_type_id"}]}},"response":[{"id":"662f44a9-feb5-4270-a620-46a84e7d5058","name":"Get Hr Letter Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types/:hr_letter_type_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_types",":hr_letter_type_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_type_id","value":"{{hr_letter_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"2ff1e20d25d5cb57e3873370ff8b95a5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"83e59bf1-2e35-4d51-84e5-4057645e756a"},{"key":"X-Runtime","value":"0.033648"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"192"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 47100,\n    \"branch_id\": 104,\n    \"classification\": \"positive\",\n    \"created_at\": \"2023-11-27T21:09:49.435Z\",\n    \"updated_at\": \"2023-11-27T21:09:49.435Z\",\n    \"name\": {\n        \"ar\": \"hr letter type ar\",\n        \"en\": \"hr letter type\"\n    }\n}"}],"_postman_id":"c9028b0f-6327-4d1f-884e-c3be62c1a231"},{"name":"Create HR Letter Type","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 201","pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"classification\": { \"type\": \"string\" },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"branch\", \"name\", \"classification\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"021473b5-2833-405d-969b-f760797755c1"}}],"id":"6c83909d-f23f-4437-8a67-33027c2acc64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"hr letter type","type":"text"},{"key":"name[ar]","value":"hr letter type ar","type":"text"},{"key":"classification","value":"positive","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types","description":"<p>This API end-point will create a new hr letter type in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_types"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"2c620d59-b0c4-488a-8dc6-e112b35701ee","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"57cf27a1-23db-4271-9ae4-67aeb16e5f6a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"hr letter type","type":"text"},{"key":"name[ar]","value":"hr letter type ar","type":"text"},{"key":"classification","value":"positive","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_types"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b9c4d6148dd4efed8197a93f7d475e8a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"67ad777c-b152-48ca-b958-3001aa97375b"},{"key":"X-Runtime","value":"0.094624"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"192"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 47103,\n    \"branch_id\": 104,\n    \"classification\": \"positive\",\n    \"created_at\": \"2023-11-30T19:27:12.742Z\",\n    \"updated_at\": \"2023-11-30T19:27:12.742Z\",\n    \"name\": {\n        \"ar\": \"hr letter type ar\",\n        \"en\": \"hr letter type\"\n    }\n}"},{"id":"735947c5-ff86-4404-b08a-eda0c5db8152","name":"Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"hr letter type","type":"text","disabled":true},{"key":"name[ar]","value":"hr letter type ar","type":"text","disabled":true},{"key":"classification","value":"positive","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_types"],"variable":[{"key":"branch_id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"536f27b6-aa67-40ee-925e-57666d11eb2e"},{"key":"X-Runtime","value":"0.060272"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": null,\n        \"message\": \"Validation failed: Name can't be blank\",\n        \"errors\": {\n            \"ar\": [\n                \"لا يمكن أن يكون محتوى Name فارغاً\"\n            ],\n            \"en\": [\n                \"Name can't be blank\"\n            ]\n        },\n        \"object\": {\n            \"id\": null,\n            \"branch_id\": 104,\n            \"classification_string\": null,\n            \"created_at\": null,\n            \"updated_at\": null,\n            \"classification\": \"positive\",\n            \"name\": null\n        }\n    }\n}"}],"_postman_id":"6c83909d-f23f-4437-8a67-33027c2acc64"},{"name":"Update HR Letter Type","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"classification\": { \"type\": \"string\" },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"branch\", \"name\", \"classification\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"f903f946-3ed7-4b07-abdf-12de2b8c8f92"}}],"id":"a994ca68-4ed9-4d8b-b805-123d53429b09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"hr letter type","type":"text","disabled":true},{"key":"name[ar]","value":"hr letter type ar","type":"text","disabled":true},{"key":"classification","value":"negative","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types/:hr_letter_type_id","description":"<p>This API end-point will update the hr letter type in the branch by branch_id and hr_letter_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_types",":hr_letter_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"f015aabd-4c8c-45d6-a820-2d191928ac09","type":"any","value":"","key":"branch_id"},{"id":"24ad4e47-473f-4868-9844-0bf503f29927","type":"any","value":"{{hr_letter_type_id}}","key":"hr_letter_type_id"}]}},"response":[{"id":"a6ec2592-dab8-4c99-a7cf-1918cd69a663","name":"Update Hr Letter Type","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"hr letter type","type":"text","disabled":true},{"key":"name[ar]","value":"hr letter type ar","type":"text","disabled":true},{"key":"classification","value":"negative","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types/:hr_letter_type_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_types",":hr_letter_type_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_type_id","value":"{{hr_letter_type_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ce241082b8324efff708a677f36cf0b5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c04c30a5-1928-4670-a201-9a8b78c12cb1"},{"key":"X-Runtime","value":"0.038883"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"192"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 47100,\n    \"branch_id\": 104,\n    \"classification\": \"negative\",\n    \"created_at\": \"2023-11-27T21:09:49.435Z\",\n    \"updated_at\": \"2023-11-30T19:28:15.609Z\",\n    \"name\": {\n        \"ar\": \"hr letter type ar\",\n        \"en\": \"hr letter type\"\n    }\n}"}],"_postman_id":"a994ca68-4ed9-4d8b-b805-123d53429b09"},{"name":"Delete HR Letter Type","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 204","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","id":"959652fb-670d-4c9e-8fad-ea9107f906b2"}}],"id":"8bd31301-9578-4350-97ba-375a14832f3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types/:hr_letter_type_id","description":"<p>This API end-point will delete the hr letter type in the branch by branch_id and hr_letter_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_types",":hr_letter_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"ccb2fa32-8db5-4170-b62e-ccc94bf19c6a","type":"any","value":"","key":"branch_id"},{"id":"6bab8698-3639-49eb-a428-0dad9e1e7f42","type":"any","value":"{{hr_letter_type_id}}","key":"hr_letter_type_id"}]}},"response":[{"id":"d5753670-2025-4583-b10e-261c401a0591","name":"Delete Hr Letter Type","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_types/:hr_letter_type_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_types",":hr_letter_type_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_type_id","value":"{{hr_letter_type_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"60059ebe-65e1-4ee9-8211-5f384d0121b4"},{"key":"X-Runtime","value":"0.041846"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"8bd31301-9578-4350-97ba-375a14832f3d"}],"id":"1ccbe3d4-7db8-4f92-b2bf-c6f6250f811d","_postman_id":"1ccbe3d4-7db8-4f92-b2bf-c6f6250f811d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"HR Letter Templates","item":[{"name":"List HR Letter Templates","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": {\"type\": \"number\"},","                    \"per_page\": {\"type\": \"number\"},","                    \"total_entries\": {\"type\": \"number\"},","                    \"total_pages\": {\"type\": \"number\"}","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": {\"type\": \"number\"},","                        \"branch\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"hr_letter_type\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": {\"type\": [\"string\", \"null\"] },","                                \"en\": {\"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"description \": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": {\"type\": [\"string\", \"null\"] },","                                \"en\": {\"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"created_by_id\": {\"type\": \"number\"},","                        \"updated_by_id\": {\"type\": [\"number\", \"null\"]},","                        \"employee_confirmation\": {\"type\": \"boolean\"},","                        \"confirmation_duration_amount\": {\"type\": [\"number\", \"null\"]},","                        \"employee_direct_access\": {\"type\": [\"string\"]},","                        \"draft\": {\"type\": \"boolean\"},","                        \"favorite\": {\"type\": \"boolean\"},","                        \"has_financial_info\": {\"type\": [\"boolean\", \"null\"]},","                        \"created_at\": {\"type\": \"string\"},","                        \"updated_at\": {\"type\": \"string\"}","                    },","                    \"required\": [\"id\", \"branch\", \"hr_letter_type\", \"created_by_id\", \"name\", \"description\", \"employee_confirmation\", \"confirmation_duration_amount\", \"draft\", \"favorite\", \"employee_direct_access\", \"has_financial_info\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var hrLetterTemplateId = responseBody.data[0].id;","pm.environment.set(\"hr_letter_template_id\", hrLetterTemplateId);"],"type":"text/javascript","id":"89108f8f-5641-4285-bca0-41871e468951"}}],"id":"40a9ed78-fe58-44a8-8b42-48dc87e9978b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_templates"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>Page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>Records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"hr_letter_template.hr_letter_type"},{"disabled":true,"key":"filter[id][]","value":"1388"},{"disabled":true,"key":"filter[hr_letter_type_id][]","value":"665"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>Format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-10-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[{"id":"fffd7524-523b-40ea-9280-9adcc1b78571","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"429332a7-9930-449e-a4a2-000dba52890f","name":"List Hr Letter Templates","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates?order[id]=desc&include=hr_letter_template.hr_letter_type","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_templates"],"query":[{"key":"order[id]","value":"desc"},{"key":"include","value":"hr_letter_template.hr_letter_type"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"efc80daefc2803db627049ec90ff167f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"01755658-be53-498f-9592-34c15e9d9e3c"},{"key":"X-Runtime","value":"0.053677"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"6517"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 66,\n        \"total_pages\": 7\n    },\n    \"data\": [\n        {\n            \"id\": 14458,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 47100,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": true,\n            \"confirmation_duration_amount\": 1,\n            \"employee_direct_access\": \"no\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-11-30T18:45:50.199Z\",\n            \"updated_at\": \"2023-11-30T18:45:57.616Z\",\n            \"name\": {\n                \"ar\": \"hr letter template ar\",\n                \"en\": \"hr letter template\"\n            },\n            \"description\": {\n                \"ar\": \"description ar\",\n                \"en\": \"description\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 47100,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-11-27T21:09:49.435Z\",\n                \"updated_at\": \"2023-11-30T19:28:15.609Z\",\n                \"name\": {\n                    \"ar\": \"hr letter type ar\",\n                    \"en\": \"hr letter type\"\n                }\n            }\n        },\n        {\n            \"id\": 14099,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 40229,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"yes\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-11-05T11:54:48.966Z\",\n            \"updated_at\": \"2023-11-27T22:02:46.376Z\",\n            \"name\": {\n                \"ar\": \"hr letter template 2 ar\",\n                \"en\": \"hr letter template 2\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 40229,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.494Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.494Z\",\n                \"name\": {\n                    \"ar\": \"خطابات فترة التجربة\",\n                    \"en\": \"Probation HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 13966,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 40233,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": 1273,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"yes\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-10-29T11:05:04.740Z\",\n            \"updated_at\": \"2023-10-30T09:41:18.586Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"hr 1\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 40233,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.532Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.532Z\",\n                \"name\": {\n                    \"ar\": \"خطابات إنهاء الخدمات\",\n                    \"en\": \"Termination HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 13914,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 40229,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"no\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-10-25T10:17:22.078Z\",\n            \"updated_at\": \"2023-10-25T10:17:25.436Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"nnnn\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 40229,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.494Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.494Z\",\n                \"name\": {\n                    \"ar\": \"خطابات فترة التجربة\",\n                    \"en\": \"Probation HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 13878,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 40229,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"yes\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-10-23T14:45:43.456Z\",\n            \"updated_at\": \"2023-10-23T14:45:53.490Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"387461\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 40229,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.494Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.494Z\",\n                \"name\": {\n                    \"ar\": \"خطابات فترة التجربة\",\n                    \"en\": \"Probation HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 13677,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 40229,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"yes\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-10-16T08:47:53.891Z\",\n            \"updated_at\": \"2023-10-16T08:47:56.331Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"test\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 40229,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.494Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.494Z\",\n                \"name\": {\n                    \"ar\": \"خطابات فترة التجربة\",\n                    \"en\": \"Probation HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 13616,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 40229,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"yes\",\n            \"draft\": false,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-10-12T10:28:29.906Z\",\n            \"updated_at\": \"2023-10-12T10:28:43.943Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Smoke test yazan\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 40229,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.494Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.494Z\",\n                \"name\": {\n                    \"ar\": \"خطابات فترة التجربة\",\n                    \"en\": \"Probation HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 13537,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 961,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"yes_with_notification\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-10-10T14:00:47.196Z\",\n            \"updated_at\": \"2023-10-10T14:00:50.990Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"387461\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 961,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2021-10-24T10:53:42.636Z\",\n                \"updated_at\": \"2021-10-24T10:53:42.636Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Second Warning\"\n                }\n            }\n        },\n        {\n            \"id\": 12498,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 40233,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"yes_with_notification\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-09-04T13:15:38.603Z\",\n            \"updated_at\": \"2023-09-04T13:15:41.255Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"nnnn\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 40233,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.532Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.532Z\",\n                \"name\": {\n                    \"ar\": \"خطابات إنهاء الخدمات\",\n                    \"en\": \"Termination HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 12429,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 961,\n            \"lang\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"employee_confirmation\": false,\n            \"confirmation_duration_amount\": null,\n            \"employee_direct_access\": \"no\",\n            \"draft\": true,\n            \"favorite\": false,\n            \"has_financial_info\": false,\n            \"created_at\": \"2023-08-30T13:20:18.917Z\",\n            \"updated_at\": \"2023-08-30T13:20:20.863Z\",\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"nnnn\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"hr_letter_type\": {\n                \"id\": 961,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2021-10-24T10:53:42.636Z\",\n                \"updated_at\": \"2021-10-24T10:53:42.636Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Second Warning\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"40a9ed78-fe58-44a8-8b42-48dc87e9978b"},{"name":"Get HR Letter Template","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"hr_letter_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"description \": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_by_id\": {\"type\": \"number\"},","            \"updated_by_id\": {\"type\": [\"number\", \"null\"]},","            \"employee_confirmation\": {\"type\": \"boolean\"},","            \"confirmation_duration_amount\": {\"type\": [\"number\", \"null\"]},","            \"employee_direct_access\": {\"type\": [\"string\"]},","            \"draft\": {\"type\": \"boolean\"},","            \"favorite\": {\"type\": \"boolean\"},","            \"has_financial_info\": {\"type\": [\"boolean\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"branch\", \"hr_letter_type\", \"created_by_id\", \"name\", \"description\", \"employee_confirmation\", \"confirmation_duration_amount\", \"draft\", \"favorite\", \"employee_direct_access\", \"has_financial_info\", \"created_at\", \"updated_at\"]","    };","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"a49b5919-6961-4d1c-a84d-3ad5ebc0d948"}}],"id":"e4850118-5025-4062-a87f-e99012e94eb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates/:hr_letter_template_id","description":"<p>This API end-point will show the hr letter template in branch by branch_id and hr_letter_template_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_templates",":hr_letter_template_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"hr_letter_template.hr_letter_type"}],"variable":[{"id":"3b3917dd-b079-416b-960d-595f6e702900","type":"any","value":"","key":"branch_id"},{"id":"f305991b-1ce7-42e2-8df3-74dc12fa5ec2","type":"any","value":"{{hr_letter_template_id}}","key":"hr_letter_template_id"}]}},"response":[{"id":"109ad678-999c-4dbb-a588-e0f088141ccc","name":"Get Hr Letter Template","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates/:hr_letter_template_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_templates",":hr_letter_template_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_template_id","value":"{{hr_letter_template_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"557c0c75b6d2efd499079cf9bd317aa5\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"6505c36d-8474-440d-ba69-41a66cd848f7"},{"key":"X-Runtime","value":"0.023764"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"458"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 14458,\n    \"branch_id\": 104,\n    \"hr_letter_type_id\": 47100,\n    \"lang\": null,\n    \"created_by_id\": 1273,\n    \"updated_by_id\": null,\n    \"employee_confirmation\": true,\n    \"confirmation_duration_amount\": 1,\n    \"employee_direct_access\": \"no\",\n    \"draft\": true,\n    \"favorite\": false,\n    \"has_financial_info\": false,\n    \"created_at\": \"2023-11-30T18:45:50.199Z\",\n    \"updated_at\": \"2023-11-30T18:45:57.616Z\",\n    \"name\": {\n        \"ar\": \"hr letter template ar\",\n        \"en\": \"hr letter template\"\n    },\n    \"description\": {\n        \"ar\": \"description ar\",\n        \"en\": \"description\"\n    }\n}"}],"_postman_id":"e4850118-5025-4062-a87f-e99012e94eb8"},{"name":"Create HR Letter Template","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"hr_letter_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"description \": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_by_id\": {\"type\": \"number\"},","            \"updated_by_id\": {\"type\": [\"number\", \"null\"]},","            \"employee_confirmation\": {\"type\": \"boolean\"},","            \"confirmation_duration_amount\": {\"type\": [\"number\", \"null\"]},","            \"employee_direct_access\": {\"type\": [\"string\"]},","            \"draft\": {\"type\": \"boolean\"},","            \"favorite\": {\"type\": \"boolean\"},","            \"has_financial_info\": {\"type\": [\"boolean\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"branch\", \"hr_letter_type\", \"created_by_id\", \"name\", \"description\", \"employee_confirmation\", \"confirmation_duration_amount\", \"draft\", \"favorite\", \"employee_direct_access\", \"has_financial_info\", \"created_at\", \"updated_at\"]","    };","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"db0e6b98-bae5-4034-a19a-02b8c27af1bc"}}],"id":"7c5cf398-7d06-4b0e-9f8b-3d72a924392e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"branch_id","value":"","type":"text"},{"key":"hr_letter_type_id","value":"{{hr_letter_type_id}}","type":"text"},{"key":"body","value":"body","type":"text"},{"key":"created_by_id","value":"1273","type":"text"},{"key":"employee_confirmation","value":"true","type":"text"},{"key":"confirmation_duration_amount","value":"1","type":"text"},{"key":"draft","value":"true","type":"text"},{"key":"favorite","value":"false","type":"text"},{"key":"employee_direct_access","value":"no","type":"text"},{"key":"name[en]","value":"hr letter template","type":"text"},{"key":"name[ar]","value":"hr letter template ar","type":"text"},{"key":"description[en]","value":"description","type":"text"},{"key":"description[ar]","value":"description ar","type":"text"},{"key":"branches_hr_letter_templates_attributes[0][branch_id]","value":"","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_templates"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"edb21e06-eb12-4bd3-ab0f-551533da1aba","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"096f09ca-e048-4505-9c0e-05be8279c3e0","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"branch_id","value":"","type":"text"},{"key":"hr_letter_type_id","value":"{{hr_letter_type_id}}","type":"text"},{"key":"body","value":"body","type":"text"},{"key":"created_by_id","value":"1273","type":"text"},{"key":"employee_confirmation","value":"true","type":"text"},{"key":"confirmation_duration_amount","value":"1","type":"text"},{"key":"draft","value":"true","type":"text"},{"key":"favorite","value":"false","type":"text"},{"key":"employee_direct_access","value":"no","type":"text"},{"key":"name[en]","value":"hr letter template","type":"text"},{"key":"name[ar]","value":"hr letter template ar","type":"text"},{"key":"description[en]","value":"description","type":"text"},{"key":"description[ar]","value":"description ar","type":"text"},{"key":"has_financial_info","value":"true","type":"text"},{"key":"branches_hr_letter_templates_attributes[0][branch_id]","value":"","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_templates"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a669a0cafa9f0b08f867ec4914fcf291\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"227a5720-6c10-4d46-9eaf-ec8755877554"},{"key":"X-Runtime","value":"4.860022"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"458"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 14459,\n    \"branch_id\": 104,\n    \"hr_letter_type_id\": 47100,\n    \"lang\": null,\n    \"created_by_id\": 1273,\n    \"updated_by_id\": null,\n    \"employee_confirmation\": true,\n    \"confirmation_duration_amount\": 1,\n    \"employee_direct_access\": \"no\",\n    \"draft\": true,\n    \"favorite\": false,\n    \"has_financial_info\": false,\n    \"created_at\": \"2023-11-30T19:30:12.972Z\",\n    \"updated_at\": \"2023-11-30T19:30:17.609Z\",\n    \"name\": {\n        \"ar\": \"hr letter template ar\",\n        \"en\": \"hr letter template\"\n    },\n    \"description\": {\n        \"ar\": \"description ar\",\n        \"en\": \"description\"\n    }\n}"},{"id":"9a8103a2-5c23-491a-8e61-884cca827f74","name":"Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"branch_id","value":"","type":"text"},{"key":"hr_letter_type_id","value":"{{hr_letter_type_id}}","type":"text"},{"key":"body","value":"body","type":"text"},{"key":"created_by_id","value":"1273","type":"text"},{"key":"employee_confirmation","value":"true","type":"text"},{"key":"confirmation_duration_amount","value":"1","type":"text"},{"key":"draft","value":"true","type":"text"},{"key":"favorite","value":"false","type":"text"},{"key":"employee_direct_access","value":"no","type":"text"},{"key":"name[en]","value":"hr letter template","type":"text","disabled":true},{"key":"name[ar]","value":"hr letter template ar","type":"text","disabled":true},{"key":"description[en]","value":"description","type":"text"},{"key":"description[ar]","value":"description ar","type":"text"},{"key":"has_financial_info","value":"true","type":"text"},{"key":"branches_hr_letter_templates_attributes[0][branch_id]","value":"","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_templates"],"variable":[{"key":"branch_id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"c34c6e9a-e9db-45b7-b00d-6cf3900bd7b7"},{"key":"X-Runtime","value":"0.035392"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": null,\n        \"message\": \"Validation failed: Name can't be blank\",\n        \"errors\": {\n            \"ar\": [\n                \"لا يمكن أن يكون محتوى Name فارغاً\"\n            ],\n            \"en\": [\n                \"Name can't be blank\"\n            ]\n        },\n        \"object\": {\n            \"id\": null,\n            \"branch_id\": 104,\n            \"hr_letter_type_id\": 47100,\n            \"body\": \"body\",\n            \"lang\": null,\n            \"created_at\": null,\n            \"updated_at\": null,\n            \"created_by_id\": 1273,\n            \"updated_by_id\": null,\n            \"description\": \"description\",\n            \"employee_confirmation\": true,\n            \"confirmation_duration_amount\": 1,\n            \"draft\": true,\n            \"favorite\": false,\n            \"employee_direct_access\": \"no\",\n            \"name\": null,\n            \"has_financial_info\": true,\n            \"attachment_file_name\": null,\n            \"attachment_content_type\": null,\n            \"attachment_file_size\": null,\n            \"attachment_updated_at\": null,\n            \"draft_attachment_file_name\": null,\n            \"draft_attachment_content_type\": null,\n            \"draft_attachment_file_size\": null,\n            \"draft_attachment_updated_at\": null,\n            \"thumbnails_file_name\": null,\n            \"thumbnails_content_type\": null,\n            \"thumbnails_file_size\": null,\n            \"thumbnails_updated_at\": null\n        }\n    }\n}"}],"_postman_id":"7c5cf398-7d06-4b0e-9f8b-3d72a924392e"},{"name":"Update HR Letter Template","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"branch\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"hr_letter_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"description \": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": {\"type\": [\"string\", \"null\"] },","                    \"en\": {\"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"created_by_id\": {\"type\": \"number\"},","            \"updated_by_id\": {\"type\": [\"number\", \"null\"]},","            \"employee_confirmation\": {\"type\": \"boolean\"},","            \"confirmation_duration_amount\": {\"type\": [\"number\", \"null\"]},","            \"employee_direct_access\": {\"type\": [\"string\"]},","            \"draft\": {\"type\": \"boolean\"},","            \"favorite\": {\"type\": \"boolean\"},","            \"has_financial_info\": {\"type\": [\"boolean\", \"null\"]},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"branch\", \"hr_letter_type\", \"created_by_id\", \"name\", \"description\", \"employee_confirmation\", \"confirmation_duration_amount\", \"draft\", \"favorite\", \"employee_direct_access\", \"has_financial_info\", \"created_at\", \"updated_at\"]","    };","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"d15f05c1-9e13-4e35-93d8-3b34665ac8fb"}}],"id":"2aa88420-d305-4f56-ada4-3ca08a40293d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"hr letter template 2","type":"text"},{"key":"name[ar]","value":"hr letter template 2 ar","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates/:hr_letter_template_id","description":"<p>This API end-point will update the hr letter template in the branch by branch_id and hr_letter_template_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_templates",":hr_letter_template_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"c3c34899-677f-4d69-8272-96eb7b2559a2","type":"any","value":"","key":"branch_id"},{"id":"98f71701-d360-440f-b8af-8bd50f4eb781","type":"any","value":"{{hr_letter_template_id}}","key":"hr_letter_template_id"}]}},"response":[{"id":"f7887739-aef3-4d01-837b-9427992be219","name":"Update Hr Letter Template","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"hr letter template 2","type":"text"},{"key":"name[ar]","value":"hr letter template 2 ar","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates/:hr_letter_template_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_templates",":hr_letter_template_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_template_id","value":"{{hr_letter_template_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"28d715921fe924276fb36ed0d30ca5a9\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e1879d80-b1f6-4d9f-896f-28e94e657054"},{"key":"X-Runtime","value":"0.055688"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"462"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 14458,\n    \"branch_id\": 104,\n    \"hr_letter_type_id\": 47100,\n    \"lang\": null,\n    \"created_by_id\": 1273,\n    \"updated_by_id\": null,\n    \"employee_confirmation\": true,\n    \"confirmation_duration_amount\": 1,\n    \"employee_direct_access\": \"no\",\n    \"draft\": true,\n    \"favorite\": false,\n    \"has_financial_info\": false,\n    \"created_at\": \"2023-11-30T18:45:50.199Z\",\n    \"updated_at\": \"2023-11-30T19:31:24.613Z\",\n    \"name\": {\n        \"ar\": \"hr letter template 2 ar\",\n        \"en\": \"hr letter template 2\"\n    },\n    \"description\": {\n        \"ar\": \"description ar\",\n        \"en\": \"description\"\n    }\n}"}],"_postman_id":"2aa88420-d305-4f56-ada4-3ca08a40293d"},{"name":"Delete HR Letter Template","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 204","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","id":"df57d870-06fe-4024-b035-39513c589eb4"}}],"id":"3f4ec21e-762a-4111-a1e1-cb6cce8fa67a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates/:hr_letter_template_id","description":"<p>This API end-point will delete the hr letter type in the branch by branch_id and hr_letter_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letter_templates",":hr_letter_template_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"2e6bf665-0ae9-424b-9b5e-48d309455310","type":"any","value":"","key":"branch_id"},{"id":"d2f8beab-82d7-404c-b7a5-ac3d61bd692a","type":"any","value":"{{hr_letter_template_id}}","key":"hr_letter_template_id"}]}},"response":[{"id":"f937a10a-3b86-49da-be20-b867c4ba9dac","name":"Delete Hr Letter Template","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letter_templates/:hr_letter_template_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letter_templates",":hr_letter_template_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_template_id","value":"{{hr_letter_template_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"64c07406-b991-4599-9b3a-770e2978e152"},{"key":"X-Runtime","value":"0.695505"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"3f4ec21e-762a-4111-a1e1-cb6cce8fa67a"}],"id":"daafc32e-b322-4af7-be78-3d8ef4736041","_postman_id":"daafc32e-b322-4af7-be78-3d8ef4736041","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Employees HR Letters","item":[{"name":"List HR Letters","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"creator\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": [\"number\", \"null\"] }","                            },","                            \"required\": [\"id\"]","                        },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"hr_letter_template\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"classification\": { \"type\": \"string\" },","                        \"date\": { \"type\": \"string\" },","                        \"end_date\": { \"type\": [\"string\", \"null\"] },","                        \"action_time\": { \"type\": [\"string\", \"null\"] },","                        \"sent_by_hr\": { \"type\": \"boolean\" },","                        \"used_tags\": { \"type\": \"array\" },","                        \"confirmation_type\": { \"type\": \"string\" },","                        \"rejection_reason\": { \"type\": [\"string\", \"null\"] },","                        \"notification_status\": { \"type\": [\"string\", \"null\"] },","                        \"confirmation_duration_amount\": { \"type\": [\"number\", \"null\"] },","                        \"locale\": { \"type\": [\"string\", \"null\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"creator\", \"employee\", \"hr_letter_template\", \"classification\", \"date\", \"sent_by_hr\", \"used_tags\", \"confirmation_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});","","var responseBody = pm.response.json();","var hrLetterId = responseBody.data[0].id;","pm.environment.set(\"hr_letter_id\", hrLetterId);"],"type":"text/javascript","id":"b8092213-79c6-4c75-89a3-f3a72d261705"}}],"id":"84e3d534-f3e3-4d60-a4d8-a267c0ab4124","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters","description":"<p>This API end-point will list all hr letter templates in a branch by branch_id.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letters"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"hr_letter.hr_letter_template"},{"disabled":true,"key":"include[]","value":"hr_letter.hr_letter_type"},{"disabled":true,"key":"filter[id][]","value":"15661"},{"disabled":true,"key":"filter[employee_id][]","value":"117199"},{"disabled":true,"key":"filter[hr_letter_template_id][]","value":"604"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[creted_at][from]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[date][from]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[date][to]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[end_date][from]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[end_date][to]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[action_time][from]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[action_time][to]","value":"2019-01-20"},{"disabled":true,"description":{"content":"<p>format { column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"}],"variable":[{"id":"43872805-4452-46a2-b1cd-987e5b036d64","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"e489a2e9-7f76-43da-a9e3-481b9100dae2","name":"List Hr Letters","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters?order[id]=desc&include=hr_letter.hr_letter_template, hr_letter.hr_letter_type","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letters"],"query":[{"key":"order[id]","value":"desc"},{"key":"include","value":"hr_letter.hr_letter_template, hr_letter.hr_letter_type"},{"key":"include","value":"hr_letter.hr_letter_type","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"dc4a2676dc29075d279fbde390246d2d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1f48c38c-f128-4789-8567-dba3b39a80f2"},{"key":"X-Runtime","value":"0.050831"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"12528"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 10,\n        \"total_entries\": 340,\n        \"total_pages\": 34\n    },\n    \"data\": [\n        {\n            \"id\": 31549,\n            \"employee_id\": 98417,\n            \"hr_letter_template_id\": 14099,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-01-01\",\n            \"end_date\": null,\n            \"action_time\": \"2023-01-01T10:00:00.000Z\",\n            \"sent_by_hr\": true,\n            \"used_tags\": [],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"sent\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-11-30T19:23:08.873Z\",\n            \"updated_at\": \"2023-11-30T19:23:09.468Z\",\n            \"hr_letter_template\": {\n                \"id\": 14099,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 40229,\n                \"lang\": null,\n                \"created_by_id\": 1273,\n                \"updated_by_id\": null,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": true,\n                \"favorite\": false,\n                \"has_financial_info\": false,\n                \"created_at\": \"2023-11-05T11:54:48.966Z\",\n                \"updated_at\": \"2023-11-27T22:02:46.376Z\",\n                \"name\": {\n                    \"ar\": \"hr letter template 2 ar\",\n                    \"en\": \"hr letter template 2\"\n                },\n                \"description\": {\n                    \"ar\": \"\",\n                    \"en\": \"\"\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 40229,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.494Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.494Z\",\n                \"name\": {\n                    \"ar\": \"خطابات فترة التجربة\",\n                    \"en\": \"Probation HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 31548,\n            \"employee_id\": 98417,\n            \"hr_letter_template_id\": 14099,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-01-01\",\n            \"end_date\": null,\n            \"action_time\": \"2023-01-01T10:00:00.000Z\",\n            \"sent_by_hr\": true,\n            \"used_tags\": [],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"sent\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-11-30T19:20:32.902Z\",\n            \"updated_at\": \"2023-11-30T19:20:35.708Z\",\n            \"hr_letter_template\": {\n                \"id\": 14099,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 40229,\n                \"lang\": null,\n                \"created_by_id\": 1273,\n                \"updated_by_id\": null,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": true,\n                \"favorite\": false,\n                \"has_financial_info\": false,\n                \"created_at\": \"2023-11-05T11:54:48.966Z\",\n                \"updated_at\": \"2023-11-27T22:02:46.376Z\",\n                \"name\": {\n                    \"ar\": \"hr letter template 2 ar\",\n                    \"en\": \"hr letter template 2\"\n                },\n                \"description\": {\n                    \"ar\": \"\",\n                    \"en\": \"\"\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 40229,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2023-06-20T15:07:10.494Z\",\n                \"updated_at\": \"2023-06-20T15:07:10.494Z\",\n                \"name\": {\n                    \"ar\": \"خطابات فترة التجربة\",\n                    \"en\": \"Probation HR Letters\"\n                }\n            }\n        },\n        {\n            \"id\": 31265,\n            \"employee_id\": 1159,\n            \"hr_letter_template_id\": 648,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-11-06\",\n            \"end_date\": null,\n            \"action_time\": null,\n            \"sent_by_hr\": false,\n            \"used_tags\": [\n                \"employee@end_of_probation_day\",\n                \"employee@fixing_date\",\n                \"employee@hiring_date\",\n                \"employee@name\",\n                \"professional_datum@work_type_name\",\n                \"employee@national_id\",\n                \"employee@personal_email\",\n                \"employee@full_name\",\n                \"employee@preferred_nationality\",\n                \"employee@card_id\",\n                \"employee@mobile_number\",\n                \"professional_datum@manager_name\"\n            ],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"seen\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-11-06T13:09:11.161Z\",\n            \"updated_at\": \"2023-11-06T13:09:13.931Z\",\n            \"hr_letter_template\": {\n                \"id\": 648,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 439,\n                \"lang\": \"en\",\n                \"created_by_id\": null,\n                \"updated_by_id\": 1273,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": false,\n                \"favorite\": true,\n                \"has_financial_info\": false,\n                \"created_at\": \"2019-12-18T11:40:31.138Z\",\n                \"updated_at\": \"2023-06-20T15:27:30.349Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Ahmad\"\n                },\n                \"description\": {\n                    \"ar\": null,\n                    \"en\": null\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 439,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2019-12-17T07:09:30.300Z\",\n                \"updated_at\": \"2019-12-18T11:40:07.301Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Test-fadi\"\n                }\n            }\n        },\n        {\n            \"id\": 31033,\n            \"employee_id\": 1159,\n            \"hr_letter_template_id\": 10819,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-10-29\",\n            \"end_date\": null,\n            \"action_time\": null,\n            \"sent_by_hr\": false,\n            \"used_tags\": [],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"seen\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-10-29T10:51:02.967Z\",\n            \"updated_at\": \"2023-10-29T10:51:05.803Z\",\n            \"hr_letter_template\": {\n                \"id\": 10819,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 961,\n                \"lang\": null,\n                \"created_by_id\": 1273,\n                \"updated_by_id\": null,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": false,\n                \"favorite\": false,\n                \"has_financial_info\": false,\n                \"created_at\": \"2023-06-20T15:07:27.516Z\",\n                \"updated_at\": \"2023-06-20T15:41:44.612Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"newwwww\"\n                },\n                \"description\": {\n                    \"ar\": \"\",\n                    \"en\": \"\"\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 961,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2021-10-24T10:53:42.636Z\",\n                \"updated_at\": \"2021-10-24T10:53:42.636Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Second Warning\"\n                }\n            }\n        },\n        {\n            \"id\": 30992,\n            \"employee_id\": 40091,\n            \"hr_letter_template_id\": 648,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-10-25\",\n            \"end_date\": null,\n            \"action_time\": null,\n            \"sent_by_hr\": true,\n            \"used_tags\": [\n                \"employee@end_of_probation_day\",\n                \"employee@fixing_date\",\n                \"employee@hiring_date\",\n                \"employee@name\",\n                \"professional_datum@work_type_name\",\n                \"employee@national_id\",\n                \"employee@personal_email\",\n                \"employee@full_name\",\n                \"employee@preferred_nationality\",\n                \"employee@card_id\",\n                \"employee@mobile_number\",\n                \"professional_datum@manager_name\"\n            ],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"sent\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-10-25T13:10:11.923Z\",\n            \"updated_at\": \"2023-10-25T13:10:12.151Z\",\n            \"hr_letter_template\": {\n                \"id\": 648,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 439,\n                \"lang\": \"en\",\n                \"created_by_id\": null,\n                \"updated_by_id\": 1273,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": false,\n                \"favorite\": true,\n                \"has_financial_info\": false,\n                \"created_at\": \"2019-12-18T11:40:31.138Z\",\n                \"updated_at\": \"2023-06-20T15:27:30.349Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Ahmad\"\n                },\n                \"description\": {\n                    \"ar\": null,\n                    \"en\": null\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 439,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2019-12-17T07:09:30.300Z\",\n                \"updated_at\": \"2019-12-18T11:40:07.301Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Test-fadi\"\n                }\n            }\n        },\n        {\n            \"id\": 30959,\n            \"employee_id\": 1151,\n            \"hr_letter_template_id\": 648,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-10-25\",\n            \"end_date\": \"2023-09-25\",\n            \"action_time\": null,\n            \"sent_by_hr\": true,\n            \"used_tags\": [\n                \"employee@end_of_probation_day\",\n                \"employee@fixing_date\",\n                \"employee@hiring_date\",\n                \"employee@name\",\n                \"professional_datum@work_type_name\",\n                \"employee@national_id\",\n                \"employee@personal_email\",\n                \"employee@full_name\",\n                \"employee@preferred_nationality\",\n                \"employee@card_id\",\n                \"employee@mobile_number\",\n                \"professional_datum@manager_name\"\n            ],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"sent\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-10-25T11:04:59.901Z\",\n            \"updated_at\": \"2023-10-25T11:05:00.085Z\",\n            \"hr_letter_template\": {\n                \"id\": 648,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 439,\n                \"lang\": \"en\",\n                \"created_by_id\": null,\n                \"updated_by_id\": 1273,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": false,\n                \"favorite\": true,\n                \"has_financial_info\": false,\n                \"created_at\": \"2019-12-18T11:40:31.138Z\",\n                \"updated_at\": \"2023-06-20T15:27:30.349Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Ahmad\"\n                },\n                \"description\": {\n                    \"ar\": null,\n                    \"en\": null\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 439,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2019-12-17T07:09:30.300Z\",\n                \"updated_at\": \"2019-12-18T11:40:07.301Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Test-fadi\"\n                }\n            }\n        },\n        {\n            \"id\": 30957,\n            \"employee_id\": 40091,\n            \"hr_letter_template_id\": 648,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-10-25\",\n            \"end_date\": \"2023-09-25\",\n            \"action_time\": null,\n            \"sent_by_hr\": true,\n            \"used_tags\": [\n                \"employee@end_of_probation_day\",\n                \"employee@fixing_date\",\n                \"employee@hiring_date\",\n                \"employee@name\",\n                \"professional_datum@work_type_name\",\n                \"employee@national_id\",\n                \"employee@personal_email\",\n                \"employee@full_name\",\n                \"employee@preferred_nationality\",\n                \"employee@card_id\",\n                \"employee@mobile_number\",\n                \"professional_datum@manager_name\"\n            ],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"sent\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-10-25T11:03:10.059Z\",\n            \"updated_at\": \"2023-10-25T11:03:10.383Z\",\n            \"hr_letter_template\": {\n                \"id\": 648,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 439,\n                \"lang\": \"en\",\n                \"created_by_id\": null,\n                \"updated_by_id\": 1273,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": false,\n                \"favorite\": true,\n                \"has_financial_info\": false,\n                \"created_at\": \"2019-12-18T11:40:31.138Z\",\n                \"updated_at\": \"2023-06-20T15:27:30.349Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Ahmad\"\n                },\n                \"description\": {\n                    \"ar\": null,\n                    \"en\": null\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 439,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2019-12-17T07:09:30.300Z\",\n                \"updated_at\": \"2019-12-18T11:40:07.301Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Test-fadi\"\n                }\n            }\n        },\n        {\n            \"id\": 30955,\n            \"employee_id\": 40091,\n            \"hr_letter_template_id\": 648,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-10-25\",\n            \"end_date\": \"2023-09-25\",\n            \"action_time\": null,\n            \"sent_by_hr\": true,\n            \"used_tags\": [\n                \"employee@end_of_probation_day\",\n                \"employee@fixing_date\",\n                \"employee@hiring_date\",\n                \"employee@name\",\n                \"professional_datum@work_type_name\",\n                \"employee@national_id\",\n                \"employee@personal_email\",\n                \"employee@full_name\",\n                \"employee@preferred_nationality\",\n                \"employee@card_id\",\n                \"employee@mobile_number\",\n                \"professional_datum@manager_name\"\n            ],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"sent\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-10-25T10:16:54.167Z\",\n            \"updated_at\": \"2023-10-25T10:16:54.347Z\",\n            \"hr_letter_template\": {\n                \"id\": 648,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 439,\n                \"lang\": \"en\",\n                \"created_by_id\": null,\n                \"updated_by_id\": 1273,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": false,\n                \"favorite\": true,\n                \"has_financial_info\": false,\n                \"created_at\": \"2019-12-18T11:40:31.138Z\",\n                \"updated_at\": \"2023-06-20T15:27:30.349Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Ahmad\"\n                },\n                \"description\": {\n                    \"ar\": null,\n                    \"en\": null\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 439,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2019-12-17T07:09:30.300Z\",\n                \"updated_at\": \"2019-12-18T11:40:07.301Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Test-fadi\"\n                }\n            }\n        },\n        {\n            \"id\": 30953,\n            \"employee_id\": 40091,\n            \"hr_letter_template_id\": 1382,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-10-31\",\n            \"end_date\": \"2023-09-25\",\n            \"action_time\": null,\n            \"sent_by_hr\": true,\n            \"used_tags\": [\n                \"employee@name\",\n                \"bank@bank_name\",\n                \"bank@bank_branch_name\"\n            ],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"sent\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-10-25T10:16:31.651Z\",\n            \"updated_at\": \"2023-10-25T10:16:31.938Z\",\n            \"hr_letter_template\": {\n                \"id\": 1382,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 439,\n                \"lang\": \"en\",\n                \"created_by_id\": null,\n                \"updated_by_id\": null,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"no\",\n                \"draft\": false,\n                \"favorite\": false,\n                \"has_financial_info\": false,\n                \"created_at\": \"2021-05-08T14:53:45.233Z\",\n                \"updated_at\": \"2023-06-20T15:31:51.731Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"bank Letter\"\n                },\n                \"description\": {\n                    \"ar\": null,\n                    \"en\": null\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 439,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2019-12-17T07:09:30.300Z\",\n                \"updated_at\": \"2019-12-18T11:40:07.301Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Test-fadi\"\n                }\n            }\n        },\n        {\n            \"id\": 30952,\n            \"employee_id\": 1159,\n            \"hr_letter_template_id\": 648,\n            \"creator_id\": 1273,\n            \"classification\": \"negative\",\n            \"date\": \"2023-10-25\",\n            \"end_date\": null,\n            \"action_time\": null,\n            \"sent_by_hr\": false,\n            \"used_tags\": [\n                \"employee@end_of_probation_day\",\n                \"employee@fixing_date\",\n                \"employee@hiring_date\",\n                \"employee@name\",\n                \"professional_datum@work_type_name\",\n                \"employee@national_id\",\n                \"employee@personal_email\",\n                \"employee@full_name\",\n                \"employee@preferred_nationality\",\n                \"employee@card_id\",\n                \"employee@mobile_number\",\n                \"professional_datum@manager_name\"\n            ],\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"notification_status\": \"seen\",\n            \"confirmation_duration_amount\": null,\n            \"locale\": \"en\",\n            \"created_at\": \"2023-10-25T10:15:58.043Z\",\n            \"updated_at\": \"2023-10-25T10:16:00.836Z\",\n            \"hr_letter_template\": {\n                \"id\": 648,\n                \"branch_id\": 104,\n                \"hr_letter_type_id\": 439,\n                \"lang\": \"en\",\n                \"created_by_id\": null,\n                \"updated_by_id\": 1273,\n                \"employee_confirmation\": false,\n                \"confirmation_duration_amount\": null,\n                \"employee_direct_access\": \"yes\",\n                \"draft\": false,\n                \"favorite\": true,\n                \"has_financial_info\": false,\n                \"created_at\": \"2019-12-18T11:40:31.138Z\",\n                \"updated_at\": \"2023-06-20T15:27:30.349Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Ahmad\"\n                },\n                \"description\": {\n                    \"ar\": null,\n                    \"en\": null\n                }\n            },\n            \"hr_letter_type\": {\n                \"id\": 439,\n                \"branch_id\": 104,\n                \"classification\": \"negative\",\n                \"created_at\": \"2019-12-17T07:09:30.300Z\",\n                \"updated_at\": \"2019-12-18T11:40:07.301Z\",\n                \"name\": {\n                    \"ar\": \"\",\n                    \"en\": \"Test-fadi\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"84e3d534-f3e3-4d60-a4d8-a267c0ab4124"},{"name":"Get HR Letter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"hr_letter_template\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"creator\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"classification\": {\"type\": \"string\"},","            \"date\": {\"type\": \"string\"},","            \"end_date\": {\"type\": [\"string\", \"null\"]},","            \"action_time\": {\"type\": [\"string\", \"null\"]},","            \"sent_by_hr\": {\"type\": \"boolean\"},","            \"used_tags\": {\"type\": \"array\"},","            \"confirmation_type\": {\"type\": \"string\"},","            \"rejection_reason\": {\"type\": [\"string\", \"null\"]},","            \"notification_status\": {\"type\": \"string\"},","            \"confirmation_duration_amount\": {\"type\": [\"number\", \"null\"]},","            \"locale\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"employee\", \"hr_letter_template\", \"creator\", \"classification\", \"date\", \"sent_by_hr\", \"used_tags\", \"locale\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"cb16740c-4901-4bb5-9fe8-d98defbb2d8d"}}],"id":"888e79f7-1cdb-4597-8208-ce6fc5f52e6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters/:hr_letter_id","description":"<p>This API end-point will show the hr letter template in branch by branch_id and hr_letter_template_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letters",":hr_letter_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"hr_letter.hr_letter_type"},{"disabled":true,"key":"include[]","value":"hr_letter.hr_letter_template"}],"variable":[{"id":"6c8f3895-571f-41bd-a21c-0758d962a78f","type":"any","value":"","key":"branch_id"},{"id":"b76c361c-b955-4de7-9506-6da106a1696d","type":"any","value":"{{hr_letter_id}}","key":"hr_letter_id"}]}},"response":[{"id":"bd3011c7-a6da-4a7c-b2d5-d58c530fdaa4","name":"Get Hr Letter","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters/:hr_letter_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letters",":hr_letter_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_id","value":"{{hr_letter_id}}"}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"b13abe35-a611-43a8-a30b-eaa47ef30d1f"},{"key":"X-Runtime","value":"0.018822"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": \"not_found\",\n        \"message\": \"Couldn't find HrLetter with 'id'=31407\",\n        \"errors\": {\n            \"ar\": [\n                \"Couldn't find HrLetter with 'id'=31407\"\n            ],\n            \"en\": [\n                \"Couldn't find HrLetter with 'id'=31407\"\n            ]\n        },\n        \"object\": null\n    }\n}"}],"_postman_id":"888e79f7-1cdb-4597-8208-ce6fc5f52e6e"},{"name":"Create HR Letter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","                \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"hr_letter_template\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"creator\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"classification\": {\"type\": \"string\"},","            \"date\": {\"type\": \"string\"},","            \"end_date\": {\"type\": [\"string\", \"null\"]},","            \"action_time\": {\"type\": [\"string\", \"null\"]},","            \"sent_by_hr\": {\"type\": \"boolean\"},","            \"used_tags\": {\"type\": \"array\"},","            \"confirmation_type\": {\"type\": \"string\"},","            \"rejection_reason\": {\"type\": [\"string\", \"null\"]},","            \"notification_status\": {\"type\": \"string\"},","            \"confirmation_duration_amount\": {\"type\": [\"number\", \"null\"]},","            \"locale\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"employee\", \"hr_letter_template\", \"creator\", \"classification\", \"date\", \"sent_by_hr\", \"used_tags\", \"locale\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"b1fdff46-c62a-4116-a3ec-fa8692e70a62"}}],"id":"6b387ea8-7973-4d9c-8ec1-7e9193220e0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"{{employee_id}}","type":"text"},{"key":"hr_letter_template_id","value":"{{hr_letter_template_id}}","type":"text"},{"key":"creator_id","value":"1273","type":"text"},{"key":"date","value":"\"01-01-2023\"","type":"text"},{"key":"sent_by_hr","value":"true","type":"text"},{"key":"body","value":"body","type":"text"},{"key":"action_time","value":"\"01-01-2023  10:00\"","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters","description":"<p>This API end-point will create a new hr letter template in the branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letters"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"d23c5918-ac87-4cd5-a859-9aa70cd1267a","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"ef8d5df9-fd52-4e2f-9e45-d5d9af2920f1","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"{{employee_id}}","type":"text"},{"key":"hr_letter_template_id","value":"{{hr_letter_template_id}}","type":"text"},{"key":"creator_id","value":"1273","type":"text"},{"key":"date","value":"\"01-01-2023\"","type":"text"},{"key":"sent_by_hr","value":"true","type":"text"},{"key":"body","value":"body","type":"text"},{"key":"action_time","value":"\"01-01-2023  10:00\"","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letters"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5416b55a0e86f2e855b62c925b8bb54e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"3780904a-93d2-4be8-9dc1-729527ef635b"},{"key":"X-Runtime","value":"3.257892"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"428"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 31550,\n    \"employee_id\": 98417,\n    \"hr_letter_template_id\": 14459,\n    \"creator_id\": 1273,\n    \"classification\": \"negative\",\n    \"date\": \"2023-01-01\",\n    \"end_date\": null,\n    \"action_time\": \"2023-01-01T10:00:00.000Z\",\n    \"sent_by_hr\": true,\n    \"used_tags\": [],\n    \"confirmation_type\": \"pending\",\n    \"rejection_reason\": null,\n    \"notification_status\": \"sent\",\n    \"confirmation_duration_amount\": 1,\n    \"locale\": \"en\",\n    \"created_at\": \"2023-11-30T19:32:14.084Z\",\n    \"updated_at\": \"2023-11-30T19:32:14.184Z\"\n}"},{"id":"17218525-8e90-4ce3-8aaf-60fcb1c475b1","name":"Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"{{employee_id}}","type":"text","disabled":true},{"key":"hr_letter_template_id","value":"{{hr_letter_template_id}}","type":"text"},{"key":"creator_id","value":"1273","type":"text"},{"key":"date","value":"\"01-01-2023\"","type":"text"},{"key":"sent_by_hr","value":"true","type":"text"},{"key":"body","value":"body","type":"text"},{"key":"action_time","value":"\"01-01-2023  10:00\"","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letters"],"variable":[{"key":"branch_id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"adca6d47-cbda-439c-be8d-3952b86af6b6"},{"key":"X-Runtime","value":"3.681290"},{"key":"vary","value":"Accept, Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": null,\n        \"message\": \"Validation failed: Employee can't be blank\",\n        \"errors\": {\n            \"ar\": [\n                \"لا يمكن أن يكون محتوى Employee فارغاً\"\n            ],\n            \"en\": [\n                \"Employee can't be blank\"\n            ]\n        },\n        \"object\": {\n            \"id\": null,\n            \"employee_id\": null,\n            \"hr_letter_template_id\": 14459,\n            \"creator_id\": 1273,\n            \"date\": \"2023-01-01\",\n            \"end_date\": null,\n            \"created_at\": null,\n            \"updated_at\": null,\n            \"sent_by_hr\": true,\n            \"used_tags\": [],\n            \"body\": \"body\",\n            \"confirmation_type\": \"not_required\",\n            \"rejection_reason\": null,\n            \"action_time\": \"2023-01-01T10:00:00.000Z\",\n            \"notification_status\": null,\n            \"confirmation_duration_amount\": null,\n            \"locale\": null,\n            \"classification\": null\n        }\n    }\n}"}],"_postman_id":"6b387ea8-7973-4d9c-8ec1-7e9193220e0c"},{"name":"Update HR Letter","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Response matches the JSON schema\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","                \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"hr_letter_template\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"creator\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"classification\": {\"type\": \"string\"},","            \"date\": {\"type\": \"string\"},","            \"end_date\": {\"type\": [\"string\", \"null\"]},","            \"action_time\": {\"type\": [\"string\", \"null\"]},","            \"sent_by_hr\": {\"type\": \"boolean\"},","            \"used_tags\": {\"type\": \"array\"},","            \"confirmation_type\": {\"type\": \"string\"},","            \"rejection_reason\": {\"type\": [\"string\", \"null\"]},","            \"notification_status\": {\"type\": \"string\"},","            \"confirmation_duration_amount\": {\"type\": [\"number\", \"null\"]},","            \"locale\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"employee\", \"hr_letter_template\", \"creator\", \"classification\", \"date\", \"sent_by_hr\", \"used_tags\", \"locale\"]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});",""],"type":"text/javascript","id":"7d0680ce-281e-4fb4-96e0-577c127c5ede"}}],"id":"f7d1f5bc-3f2b-4d88-b93a-dbefcadbded7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"rejection_reason","value":"rejected","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters/:hr_letter_id","description":"<p>This API end-point will update the hr letter template in the branch by branch_id and hr_letter_template_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letters",":hr_letter_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"18cbb0d5-bb6c-4877-8943-ffd2a95cab2f","type":"any","value":"","key":"branch_id"},{"id":"9a74f3bb-457c-41bd-8ecf-6884fca7445d","type":"any","value":"{{hr_letter_id}}","key":"hr_letter_id"}]}},"response":[{"id":"ab3dc7b3-5681-4537-bf92-1c2542588ab1","name":"Update Hr Letter","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"rejection_reason","value":"rejected","type":"text"}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters/:hr_letter_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letters",":hr_letter_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_id","value":"{{hr_letter_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"dd36f210e37a784d3f780b7341863fef\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8b849c60-5030-4538-9dab-f7be42ab7152"},{"key":"X-Runtime","value":"0.243312"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"442"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 31549,\n    \"employee_id\": 98417,\n    \"hr_letter_template_id\": 14099,\n    \"creator_id\": 1273,\n    \"classification\": \"negative\",\n    \"date\": \"2023-01-01\",\n    \"end_date\": null,\n    \"action_time\": \"2023-01-01T10:00:00.000Z\",\n    \"sent_by_hr\": true,\n    \"used_tags\": [],\n    \"confirmation_type\": \"not_required\",\n    \"rejection_reason\": \"rejected\",\n    \"notification_status\": \"sent\",\n    \"confirmation_duration_amount\": null,\n    \"locale\": \"en\",\n    \"created_at\": \"2023-11-30T19:23:08.873Z\",\n    \"updated_at\": \"2023-11-30T19:33:58.686Z\"\n}"}],"_postman_id":"f7d1f5bc-3f2b-4d88-b93a-dbefcadbded7"},{"name":"Delete HR Letter","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 204","pm.test(\"Status code is 204\", function () {","    pm.response.to.have.status(204);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","id":"0c160a29-22e5-4f12-8391-9ab10d81eace"}}],"id":"7ed88753-8c8c-4e28-add7-0f7278ac756c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters/:hr_letter_id","description":"<p>This API end-point will delete the hr letter type in the branch by branch_id and hr_letter_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","hr_letters",":hr_letter_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"6c0caaf2-4dac-4816-8f7c-8a9266f80c96","type":"any","value":"","key":"branch_id"},{"id":"fae8df76-1249-43ff-83d0-737f407c30ac","type":"any","value":"{{hr_letter_id}}","key":"hr_letter_id"}]}},"response":[{"id":"2b91dfa1-bca3-4911-a849-0bbba30334d0","name":"Delete Hr Letter Template","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/hr_letters/:hr_letter_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","hr_letters",":hr_letter_id"],"variable":[{"key":"branch_id","value":""},{"key":"hr_letter_id","value":"{{hr_letter_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"5c65ce2d-2d5e-4f8a-b482-5cf628da2fa5"},{"key":"X-Runtime","value":"0.084463"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"7ed88753-8c8c-4e28-add7-0f7278ac756c"}],"id":"b3ceacd2-0925-4b6e-af13-b154174ef65c","_postman_id":"b3ceacd2-0925-4b6e-af13-b154174ef65c","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}}],"id":"014f318e-187e-4861-9877-05d5dd1765f9","_postman_id":"014f318e-187e-4861-9877-05d5dd1765f9","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Global Endpoints","item":[{"name":"Employees","item":[{"name":"Get Employee by GL_ID","id":"e8234e1f-62dd-4f51-9cde-e28427175816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/employee/:global_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","employee",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"861a8ad7-f3ae-470a-a62a-cf8ca9a5f331","type":"any","value":"","key":"branch_id"},{"id":"4b64022b-719f-427f-b225-bef561977013","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"eb2bb985-879c-441f-9377-37763b005cd7","name":"Get Employee by GL_ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/employee/:gl_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","integration_maps","employee",":gl_id"],"variable":[{"key":"branch_id","value":""},{"key":"gl_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"3abc5b5696c63a88abbd3b940323423f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b53bc450-b73a-4863-81e1-d79f23df3e09"},{"key":"X-Runtime","value":"1.106533"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1305"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1159,\n    \"branch_id\": 104,\n    \"employment_number\": \"23412111111111\",\n    \"email\": \"qatesting@zenhr.com\",\n    \"username\": \"a5\",\n    \"user\": {\n        \"id\": 1273,\n        \"short_name\": {\n            \"en\": \"Mazen Ziad\",\n            \"ar\": \"مازن زيد\"\n        },\n        \"name\": {\n            \"en\": {\n                \"last_name\": \"Ziad\",\n                \"first_name\": \"Mazen\",\n                \"third_name\": \"Atta\",\n                \"second_name\": \"Mohammad\"\n            },\n            \"ar\": {\n                \"last_name\": \"زيد\",\n                \"first_name\": \"مازن\",\n                \"third_name\": \"عطا\",\n                \"second_name\": \"محمد\"\n            }\n        },\n        \"picture\": {\n            \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/h0K9AFxoii-no-background.png\"\n        }\n    },\n    \"birthdate\": \"1998-01-10\",\n    \"hiring_date\": \"2022-01-10\",\n    \"fixing_date\": \"2022-10-10\",\n    \"termination_date\": null,\n    \"fixed\": true,\n    \"gender\": \"Male\",\n    \"marital_status\": \"Married\",\n    \"mobile_number\": \"778953440\",\n    \"number\": \"07 9121 2122\",\n    \"ext_number\": \"JO\",\n    \"personal_email\": \"issa@zen.comaaaaaaa\",\n    \"religion\": \"Christian\",\n    \"citizen\": false,\n    \"labour_card\": \"23423142\",\n    \"end_of_contract\": \"2026-01-01\",\n    \"mol_number\": \"21431432\",\n    \"resident_id\": \"100321\",\n    \"labour_card_expiry\": \"2026-01-01\",\n    \"passport_number\": \"234511\",\n    \"passport_issue_date\": \"2019-01-01\",\n    \"address\": \"WASedkowqer, ewqrkop\",\n    \"contract_type\": \"unlimited\",\n    \"contract_end_date\": \"2026-01-01\",\n    \"nationalities\": [],\n    \"national_id\": \"9912304521\",\n    \"active\": true,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"342reqaaaatest\"\n        }\n    ],\n    \"created_at\": \"2017-09-26T07:38:19.976Z\",\n    \"updated_at\": \"2024-05-29T11:28:46.897Z\"\n}"}],"_postman_id":"e8234e1f-62dd-4f51-9cde-e28427175816"},{"name":"Update Employee by GL_ID","id":"b29082af-c330-482f-aaee-98157127b23e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"hiring_date","value":"2022-01-10","type":"text"},{"key":"gender","value":"Male","type":"text"},{"key":"marital_status","value":"Married","type":"text"},{"key":"birthdate","value":"1998-01-10","type":"text"},{"key":"number","value":"07 9121 2122","type":"text"},{"key":"national_id","value":"9912304521","type":"text"},{"key":"mobile_number","value":"778953440","type":"text"},{"key":"ext_number","value":"JO","type":"text"},{"key":"personal_email","value":"issa@zen.comaaaaaaa","type":"text"},{"key":"religion","value":"Muslim","type":"text"},{"key":"nationality","value":"Jordanian","type":"text"},{"key":"card_id","value":"123445","type":"text"},{"key":"citizen","value":"Jordan","type":"text"},{"key":"labour_card","value":"23423142","type":"text"},{"key":"end_of_contract","value":"2026-01-01","type":"text"},{"key":"mol_number","value":"21431432","type":"text"},{"key":"labour_card_expiry","value":"2026-01-01","type":"text"},{"key":"passport_number","value":"234511","type":"text"},{"key":"roster_enabled","value":"false","type":"text"},{"key":"address","value":"WASedkowqer, ewqrkop","type":"text"},{"key":"resident_id","value":"100321","type":"text"},{"key":"passport_issue_date","value":"2019-01-01","type":"text"},{"key":"birth_country","value":"Jordan","type":"text"},{"key":"destination_employee_id","value":"10","type":"text"},{"key":"payment_method","value":"Cash","type":"text"},{"key":"ss_number","value":"2143214","type":"text"},{"key":"tax_number","value":"341341321","type":"text"},{"key":"gl_account_number","value":"43214314","type":"text"},{"key":"bank_account_id","value":"79090","type":"text"},{"key":"ancestry","value":"83","type":"text"},{"key":"number_of_levels","value":"3","type":"text"},{"key":"mobile_number_country_code","value":"JO","type":"text"},{"key":"phone_number_country_code","value":"JO","type":"text"},{"key":"employment_number","value":"23412111111111","type":"text"},{"key":"phone_number","value":"07 9121 2122","type":"text"},{"key":"email","value":"issaa@isssssa.comaaa","type":"text"},{"key":"integration_id","value":"1342123","type":"text"},{"key":"salary_slip_name[en]","value":"test1","type":"text"},{"key":"salary_slip_name[ar]","value":"test1","type":"text"},{"key":"fixed","value":"true","type":"text"},{"key":"fixing_date","value":"2022-10-10","type":"text"},{"key":"contract_type","value":"1","type":"text"},{"key":"global_id","value":"test1","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/employee/:global_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","employee",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"00873a44-8f6b-4e8d-8a83-326e0a1c61a0","type":"any","value":"","key":"branch_id"},{"id":"7700e0ae-f9c7-43e8-a849-ca32fe25fbb0","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"e31e553d-47f4-45af-9f78-9edf8b522c96","name":"Update Employee by GL_ID","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"hiring_date","value":"2022-01-10","type":"text"},{"key":"gender","value":"Male","type":"text"},{"key":"marital_status","value":"Married","type":"text"},{"key":"birthdate","value":"1998-01-10","type":"text"},{"key":"number","value":"07 9121 2122","type":"text"},{"key":"national_id","value":"9912304521","type":"text"},{"key":"mobile_number","value":"778953440","type":"text"},{"key":"ext_number","value":"JO","type":"text"},{"key":"personal_email","value":"issa@zen.comaaaaaaa","type":"text"},{"key":"religion","value":"Muslim","type":"text"},{"key":"nationality","value":"Jordanian","type":"text"},{"key":"card_id","value":"123445","type":"text"},{"key":"citizen","value":"Jordan","type":"text"},{"key":"labour_card","value":"23423142","type":"text"},{"key":"end_of_contract","value":"2026-01-01","type":"text"},{"key":"mol_number","value":"21431432","type":"text"},{"key":"labour_card_expiry","value":"2026-01-01","type":"text"},{"key":"passport_number","value":"234511","type":"text"},{"key":"roster_enabled","value":"false","type":"text"},{"key":"address","value":"WASedkowqer, ewqrkop","type":"text"},{"key":"resident_id","value":"100321","type":"text"},{"key":"passport_issue_date","value":"2019-01-01","type":"text"},{"key":"birth_country","value":"Jordan","type":"text"},{"key":"destination_employee_id","value":"10","type":"text"},{"key":"payment_method","value":"Cash","type":"text"},{"key":"ss_number","value":"2143214","type":"text"},{"key":"tax_number","value":"341341321","type":"text"},{"key":"gl_account_number","value":"43214314","type":"text"},{"key":"bank_account_id","value":"79090","type":"text"},{"key":"ancestry","value":"83","type":"text"},{"key":"number_of_levels","value":"3","type":"text"},{"key":"mobile_number_country_code","value":"JO","type":"text"},{"key":"phone_number_country_code","value":"JO","type":"text"},{"key":"employment_number","value":"23412111111111","type":"text"},{"key":"phone_number","value":"07 9121 2122","type":"text"},{"key":"email","value":"issaa@isssssa.comaaa","type":"text"},{"key":"integration_id","value":"1342123","type":"text"},{"key":"salary_slip_name[en]","value":"test1","type":"text"},{"key":"salary_slip_name[ar]","value":"test1","type":"text"},{"key":"fixed","value":"true","type":"text"},{"key":"fixing_date","value":"2022-10-10","type":"text"},{"key":"contract_type","value":"1","type":"text"},{"key":"gl_id","value":"test1","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/integration_maps/employee/342reqaaaatest"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"1b4314793a6aab26700d86204a484fd3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a56bc871-c26f-484e-86f4-2ae02d183cc7"},{"key":"X-Runtime","value":"3.483340"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1292"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1159,\n    \"branch_id\": 104,\n    \"employment_number\": \"23412111111111\",\n    \"email\": \"qatesting@zenhr.com\",\n    \"username\": \"a5\",\n    \"user\": {\n        \"id\": 1273,\n        \"short_name\": {\n            \"en\": \"Mazen Ziad\",\n            \"ar\": \"مازن زيد\"\n        },\n        \"name\": {\n            \"en\": {\n                \"last_name\": \"Ziad\",\n                \"first_name\": \"Mazen\",\n                \"third_name\": \"Atta\",\n                \"second_name\": \"Mohammad\"\n            },\n            \"ar\": {\n                \"last_name\": \"زيد\",\n                \"first_name\": \"مازن\",\n                \"third_name\": \"عطا\",\n                \"second_name\": \"محمد\"\n            }\n        },\n        \"picture\": {\n            \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/h0K9AFxoii-no-background.png\"\n        }\n    },\n    \"birthdate\": \"1998-01-10\",\n    \"hiring_date\": \"2022-01-10\",\n    \"fixing_date\": \"2022-10-10\",\n    \"termination_date\": null,\n    \"fixed\": true,\n    \"gender\": \"Male\",\n    \"marital_status\": \"Married\",\n    \"mobile_number\": \"778953440\",\n    \"number\": \"07 9121 2122\",\n    \"ext_number\": \"JO\",\n    \"personal_email\": \"issa@zen.comaaaaaaa\",\n    \"religion\": \"Muslim\",\n    \"citizen\": true,\n    \"labour_card\": \"23423142\",\n    \"end_of_contract\": \"2026-01-01\",\n    \"mol_number\": \"21431432\",\n    \"resident_id\": \"100321\",\n    \"labour_card_expiry\": \"2026-01-01\",\n    \"passport_number\": \"234511\",\n    \"passport_issue_date\": \"2019-01-01\",\n    \"address\": \"WASedkowqer, ewqrkop\",\n    \"contract_type\": \"unlimited\",\n    \"contract_end_date\": \"2026-01-01\",\n    \"nationalities\": [],\n    \"national_id\": \"9912304521\",\n    \"active\": true,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2017-09-26T07:38:19.976Z\",\n    \"updated_at\": \"2024-05-29T13:36:46.260Z\"\n}"}],"_postman_id":"b29082af-c330-482f-aaee-98157127b23e"}],"id":"a7211fe4-b6ce-4123-890e-e8380eb9d684","_postman_id":"a7211fe4-b6ce-4123-890e-e8380eb9d684","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Financial Transaction Types","item":[{"name":"Get Financial Transaction Type","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"amount\": { \"type\": [\"null\", \"number\"] },","            \"payroll_status\": { \"type\": \"string\" },","            \"is_fixed\": { \"type\": \"boolean\" },","            \"one_time\": { \"type\": \"boolean\" },","            \"direction\": { \"type\": \"string\" },","            \"min\": { \"type\": [\"null\", \"number\"] },","            \"max\": { \"type\": [\"null\", \"number\"] },","            \"exempted\": { \"type\": \"boolean\" },","            \"pro_rata\": { \"type\": \"boolean\" },","            \"mandatory_notes\": { \"type\": \"boolean\" },","            \"hiring_termination_pro_rata\": { \"type\": \"boolean\" },","            \"include_in_fixed_income\": { \"type\": \"boolean\" },","            \"included_in_ss\": { \"type\": \"boolean\" },","            \"active\": { \"type\": \"boolean\" },","            \"gl_account_number\": { \"type\": [\"string\", \"null\"] },","            \"clearance_account\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\",\"gl_account_number\", \"clearance_account\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"12fa4226-5f44-4460-9bbb-989b97608fae"}}],"id":"d9817879-1ac8-4b11-8830-bc932e672e0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/financial_transaction_type/:global_id","description":"<p>This API end-point will show a financial transaction type in branch by branch_id and financial_transaction_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","financial_transaction_type",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"e8cb68b6-8fdc-40bb-a8bb-39a4148b6f24","type":"any","value":"","key":"branch_id"},{"id":"67359345-5418-4a52-b0d2-ea289c8bd1a8","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"233428fa-1759-497e-852e-670aeebbf2c3","name":"Get Financial Transaction Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/financial_transaction_type/test1","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","integration_maps","financial_transaction_type","test1"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"83a305afb20ae5d3c0ebea1e36e0e099\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e51a102b-2750-48ba-94ae-9ae4f06ce536"},{"key":"X-Runtime","value":"0.110729"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"528"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44579,\n    \"name\": {\n        \"ar\": \"kaman test \",\n        \"en\": \"tets\"\n    },\n    \"amount\": null,\n    \"payroll_status\": \"in_payroll\",\n    \"is_fixed\": true,\n    \"one_time\": true,\n    \"direction\": \"incomes\",\n    \"min\": null,\n    \"max\": null,\n    \"exempted\": false,\n    \"pro_rata\": false,\n    \"mandatory_notes\": false,\n    \"hiring_termination_pro_rata\": true,\n    \"include_in_fixed_income\": true,\n    \"included_in_ss\": false,\n    \"active\": true,\n    \"gl_account_number\": null,\n    \"clearance_account\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        },\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T14:08:11.766Z\",\n    \"updated_at\": \"2024-05-30T14:08:11.766Z\"\n}"}],"_postman_id":"d9817879-1ac8-4b11-8830-bc932e672e0b"},{"name":"Update Financial Transaction Type Copy 3","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"amount\": { \"type\": [\"null\", \"number\"] },","            \"payroll_status\": { \"type\": \"string\" },","            \"is_fixed\": { \"type\": \"boolean\" },","            \"one_time\": { \"type\": \"boolean\" },","            \"direction\": { \"type\": \"string\" },","            \"min\": { \"type\": [\"null\", \"number\"] },","            \"max\": { \"type\": [\"null\", \"number\"] },","            \"exempted\": { \"type\": \"boolean\" },","            \"pro_rata\": { \"type\": \"boolean\" },","            \"mandatory_notes\": { \"type\": \"boolean\" },","            \"hiring_termination_pro_rata\": { \"type\": \"boolean\" },","            \"include_in_fixed_income\": { \"type\": \"boolean\" },","            \"included_in_ss\": { \"type\": \"boolean\" },","            \"active\": { \"type\": \"boolean\" },","            \"gl_account_number\": { \"type\": [\"string\", \"null\"] },","            \"clearance_account\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\",\"gl_account_number\", \"clearance_account\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"c636a6ae-683e-467b-bff2-2efa7d39e347"}}],"id":"1c2d07b7-51a2-4d95-a150-d7e7e1fe815b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name[en]","value":"tets","type":"text"},{"key":"name[ar]","value":"kaman test ","type":"text"},{"key":"direction","value":"1","type":"text"},{"key":"is_fixed","value":"true","type":"text"},{"key":"one_time","value":"true","type":"text"},{"key":"global_id","value":"test1238","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/integration_maps/financial_transaction_type/:global_id","description":"<p>This API end-point will show a financial transaction type in branch by branch_id and financial_transaction_type_id</p>\n<p>you can pass page, and limit parameters ex:</p>\n<p>https://app.zenhr.com/api/v3/branches/:branch_id/financial_transaction_types/:financial_transaction_type_id?page=3&amp;limit=2</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","integration_maps","financial_transaction_type",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"9327f1f4-6f5b-40a1-b8ad-feca45afe446","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"e9c44b64-86f9-4662-bcf0-a5bb55672948","name":"Update Financial Transaction Type Copy 3","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name[en]","value":"tets","type":"text"},{"key":"name[ar]","value":"kaman test ","type":"text"},{"key":"direction","value":"1","type":"text"},{"key":"is_fixed","value":"true","type":"text"},{"key":"one_time","value":"true","type":"text"},{"key":"global_id","value":"test123891","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/integration_maps/financial_transaction_type/test1238"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"d67c350e215a053e92a97f8634edbb34\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"51df7c39-18ba-4fbd-8390-3c36727e1e39"},{"key":"X-Runtime","value":"0.181803"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"533"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44579,\n    \"name\": {\n        \"ar\": \"kaman test \",\n        \"en\": \"tets\"\n    },\n    \"amount\": null,\n    \"payroll_status\": \"in_payroll\",\n    \"is_fixed\": true,\n    \"one_time\": true,\n    \"direction\": \"incomes\",\n    \"min\": null,\n    \"max\": null,\n    \"exempted\": false,\n    \"pro_rata\": false,\n    \"mandatory_notes\": false,\n    \"hiring_termination_pro_rata\": true,\n    \"include_in_fixed_income\": true,\n    \"included_in_ss\": false,\n    \"active\": true,\n    \"gl_account_number\": null,\n    \"clearance_account\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        },\n        {\n            \"global_id\": \"test123891\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T14:08:11.766Z\",\n    \"updated_at\": \"2024-05-30T14:08:11.766Z\"\n}"}],"_postman_id":"1c2d07b7-51a2-4d95-a150-d7e7e1fe815b"}],"id":"665d29f7-dfab-4cc9-a8e4-22541325a0ac","_postman_id":"665d29f7-dfab-4cc9-a8e4-22541325a0ac","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Financial Transactions","item":[{"name":"Get Financial Transactions","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                }","            },","            \"amount\": { \"type\": [\"null\", \"number\"] },","            \"payroll_status\": { \"type\": \"string\" },","            \"is_fixed\": { \"type\": \"boolean\" },","            \"one_time\": { \"type\": \"boolean\" },","            \"direction\": { \"type\": \"string\" },","            \"min\": { \"type\": [\"null\", \"number\"] },","            \"max\": { \"type\": [\"null\", \"number\"] },","            \"exempted\": { \"type\": \"boolean\" },","            \"pro_rata\": { \"type\": \"boolean\" },","            \"mandatory_notes\": { \"type\": \"boolean\" },","            \"hiring_termination_pro_rata\": { \"type\": \"boolean\" },","            \"include_in_fixed_income\": { \"type\": \"boolean\" },","            \"included_in_ss\": { \"type\": \"boolean\" },","            \"active\": { \"type\": \"boolean\" },","            \"gl_account_number\": { \"type\": [\"string\", \"null\"] },","            \"clearance_account\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"name\", \"amount\", \"payroll_status\", \"is_fixed\", \"one_time\", \"direction\", \"min\", \"max\", \"exempted\", \"pro_rata\", \"mandatory_notes\", \"hiring_termination_pro_rata\", \"include_in_fixed_income\", \"included_in_ss\", \"active\",\"gl_account_number\", \"clearance_account\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"433ff942-16b3-4f9b-9555-513e69be0fbf"}}],"id":"0409b87e-5fe6-4ecb-a69e-7797bdc03571","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/financial_transaction/:global_id","description":"<p>This API end-point will show a financial transaction type in branch by branch_id and financial_transaction_type_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","financial_transaction",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"f447481a-2a82-46ed-993e-b3a80d433e0b","type":"any","value":"","key":"branch_id"},{"id":"8aa7a76d-a57c-422b-bbbe-65b365f4547a","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"e8583b99-55be-4afd-98ad-479dc62a670b","name":"Get Financial Transactions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/financial_transaction/test121","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","integration_maps","financial_transaction","test121"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"0d4189ec9bcc8294d728fd9fb3777b3a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b7353995-62e6-492c-9232-673fd98807e0"},{"key":"X-Runtime","value":"0.115846"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"418"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1216969,\n    \"financial_transaction_type\": {\n        \"id\": 44258\n    },\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"transaction_status\": \"pending\",\n    \"direction\": \"income\",\n    \"out_of_payroll\": false,\n    \"amount\": {\n        \"amount\": 10,\n        \"currency\": \"JOD\"\n    },\n    \"notes\": \"test\",\n    \"effective_date\": \"2025-01-01\",\n    \"cancel_requested\": false,\n    \"cancel_requested_on\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test121\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T13:40:15.509Z\",\n    \"updated_at\": \"2024-05-30T13:40:15.509Z\"\n}"}],"_postman_id":"0409b87e-5fe6-4ecb-a69e-7797bdc03571"},{"name":"Edit Financial Transaction Copy","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"financial_transaction_type\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"transaction_status\": { \"type\": \"string\" },","            \"direction\": { \"type\": \"string\" },","            \"out_of_payroll\": { \"type\": \"boolean\" },","            \"amount\": {","                \"type\": \"object\",","                \"properties\": {","                    \"amount\": { \"type\": \"number\" },","                    \"currency\": { \"type\": \"string\" }","                },","                \"required\": [\"amount\", \"currency\"]","            },","            \"notes\": { \"type\": \"string\" },","            \"effective_date\": { \"type\": \"string\" },","            \"cancel_requested\": { \"type\": \"boolean\" },","            \"cancel_requested_on\": { \"type\": [\"string\", \"null\"] },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [\"id\", \"financial_transaction_type\", \"employee\", \"transaction_status\", \"direction\", \"out_of_payroll\", \"amount\", \"notes\", \"effective_date\", \"cancel_requested\", \"cancel_requested_on\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"8dd674ae-cf43-46d1-9c5b-9e1513d7ce62"}}],"id":"f34dd45e-37cf-4314-b820-c6b7023ace82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"financial_transaction_type_id","value":"33274","type":"text"},{"key":"amount_fils","value":"15999","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2024-06-01","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"due_date","value":"2024-06-02","type":"text"},{"key":"paid_cash","value":"true","type":"text"},{"key":"deduct_tax_from_transaction","value":"false","type":"text"},{"key":"worth_amount_fils","value":"19000","type":"text"},{"key":"worth_amount_currency","value":"JOD","type":"text"},{"key":"tax_amount_fils","value":"","type":"text"},{"key":"tax_amount_currency","value":"","type":"text"},{"key":"tax_id","value":"","type":"text"},{"key":"sent_to_netsuite_date","value":"false","type":"text"},{"key":"object_id","value":"","type":"text"},{"key":"object_type","value":"","type":"text"},{"key":"transaction_amount_type","value":"","type":"text"},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/financial_transaction/:global_id","description":"<p>This API end-point will show financial transaction by branch_id, and financial_transaction_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","financial_transaction",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"2bd20e60-fa1e-4954-bf0e-ba37a94082bd","type":"any","value":"","key":"branch_id"},{"id":"8e648554-72d8-4d68-9e95-39cea00a2fba","type":"any","value":"","key":"global_id"}]}},"response":[],"_postman_id":"f34dd45e-37cf-4314-b820-c6b7023ace82"}],"id":"12ce11df-f3cd-48d1-b7e4-0ab00bc4054d","_postman_id":"12ce11df-f3cd-48d1-b7e4-0ab00bc4054d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Loan Types","item":[{"name":"Get Loan Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": \"string\" },","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"branch\": { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"number\" } }, \"required\": [\"id\"] },","                        \"cut_holidays\": { \"type\": [\"boolean\", \"null\"] },","                        \"cut_days_off\": { \"type\": [\"boolean\", \"null\"] },","                        \"exceed_balance\": { \"type\": [\"boolean\", \"null\"] },","                        \"accumulative\": { \"type\": [\"boolean\", \"null\"] },","                        \"class_name\": { \"type\": \"string\" },","                        \"deduction_type\": { \"type\": \"number\" },","                        \"deduction_amount\": { \"type\": \"number\" },","                        \"is_sick_vacation\": { \"type\": \"boolean\" },","                        \"allowed_min\": { \"type\": [\"null\", \"number\"] },","                        \"pro_rata\": { \"type\": \"boolean\" },","                        \"ability_to_non_deduct\": { \"type\": \"boolean\" },","                        \"exceed_end_of_year_balance\": { \"type\": \"boolean\" },","                        \"grace_period_amount\": { \"type\": [\"null\", \"number\"] },","                        \"grace_period_interval\": { \"type\": [\"null\", \"string\"] },","                        \"number_of_minutes_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_minutes_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"auto_move_balances\": { \"type\": \"boolean\" },","                        \"accumulative_balance_cap\": { \"type\": \"boolean\" },","                        \"maximum_cap_days\": { \"type\": \"number\" },","                        \"link_with_probation\": { \"type\": \"boolean\" },","                        \"balances_effective_dates\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"allowed_min\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the timeoff_id from the response","var responseJson = pm.response.json();","var timeoffId = responseJson.data[0].id;","","// Set the timeoff_id as an environment variable","pm.environment.set(\"timeoff_id\", timeoffId);"],"type":"text/javascript","packages":{},"id":"c820f8b0-9481-489e-8968-98a564d75732"}}],"id":"ac893ab6-edd2-4ec6-a74d-f44ea7ae3ec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/loan_type/:global_id","description":"<p>This API end-point will list all timeoffs in a brnch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","loan_type",":global_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"imit","value":"3"},{"disabled":true,"key":"include","value":"loan_types.financial_transaction_type"}],"variable":[{"id":"3216587f-9fe9-477d-9bb3-3afe9efd2e4c","type":"any","value":"","key":"branch_id"},{"id":"8fa3cd70-c0ca-429f-bad9-1174f0bde731","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"7944a431-4228-43d9-a472-94583c223b3c","name":"Get Loan Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/loan_type/test1","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","integration_maps","loan_type","test1"],"query":[{"key":"page","value":"1","description":"page number","disabled":true},{"key":"imit","value":"3","description":"records limit per page","disabled":true},{"key":"include","value":"loan_types.financial_transaction_type","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"29f0934ae289bc9868151641443bd042\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"f55e437e-bbd7-4b87-90a5-6a1287269c24"},{"key":"X-Runtime","value":"0.154998"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"902"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4460,\n    \"name\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen112345\"\n    },\n    \"description\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"branch_id\": 104,\n    \"allowed_after\": 2025,\n    \"allowed_after_type\": null,\n    \"allowed_times\": 56,\n    \"allowed_every\": 1,\n    \"allowed_every_type\": \"every_day\",\n    \"min_loan_fils\": 100000,\n    \"min_loan_currency\": \"JOD\",\n    \"max_loan_fils\": 3000000,\n    \"max_loan_currency\": \"JOD\",\n    \"min_instalment_fils\": 50000,\n    \"min_instalment_currency\": \"JOD\",\n    \"max_instalment_fils\": 100000,\n    \"max_instalment_currency\": \"JOD\",\n    \"max_payments\": 20,\n    \"eligible_employees\": \"both\",\n    \"requestable\": true,\n    \"gl_identifier\": \"\",\n    \"clearance_account\": \"\",\n    \"loan_amount_exceed\": null,\n    \"loan_payment_amount_exceed\": null,\n    \"loan_payment_financial_transactions_ids\": [],\n    \"financial_transaction_type\": {\n        \"financial_transaction_type_id\": 9138\n    },\n    \"deafult_payment_type\": \"out_of_payroll\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T10:22:41.433Z\",\n    \"updated_at\": \"2024-05-30T10:24:47.900Z\"\n}"}],"_postman_id":"ac893ab6-edd2-4ec6-a74d-f44ea7ae3ec1"},{"name":"Edit Loan Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function() {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function() {","    var jsonData = pm.response.json();","","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": \"string\" },","                                \"en\": { \"type\": \"string\" }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"branch\": { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"number\" } }, \"required\": [\"id\"] },","                        \"cut_holidays\": { \"type\": [\"boolean\", \"null\"] },","                        \"cut_days_off\": { \"type\": [\"boolean\", \"null\"] },","                        \"exceed_balance\": { \"type\": [\"boolean\", \"null\"] },","                        \"accumulative\": { \"type\": [\"boolean\", \"null\"] },","                        \"class_name\": { \"type\": \"string\" },","                        \"deduction_type\": { \"type\": \"number\" },","                        \"deduction_amount\": { \"type\": \"number\" },","                        \"is_sick_vacation\": { \"type\": \"boolean\" },","                        \"allowed_min\": { \"type\": [\"null\", \"number\"] },","                        \"pro_rata\": { \"type\": \"boolean\" },","                        \"ability_to_non_deduct\": { \"type\": \"boolean\" },","                        \"exceed_end_of_year_balance\": { \"type\": \"boolean\" },","                        \"grace_period_amount\": { \"type\": [\"null\", \"number\"] },","                        \"grace_period_interval\": { \"type\": [\"null\", \"string\"] },","                        \"number_of_minutes_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_minutes_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed\": { \"type\": [\"null\", \"number\"] },","                        \"number_of_transactions_allowed_type\": { \"type\": [\"null\", \"number\"] },","                        \"auto_move_balances\": { \"type\": \"boolean\" },","                        \"accumulative_balance_cap\": { \"type\": \"boolean\" },","                        \"maximum_cap_days\": { \"type\": \"number\" },","                        \"link_with_probation\": { \"type\": \"boolean\" },","                        \"balances_effective_dates\": { \"type\": [\"null\", \"string\"] },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"branch\", \"cut_holidays\", \"cut_days_off\", \"exceed_balance\", \"accumulative\", \"class_name\", \"deduction_type\", \"deduction_amount\", \"is_sick_vacation\", \"allowed_min\", \"pro_rata\", \"ability_to_non_deduct\", \"exceed_end_of_year_balance\", \"grace_period_amount\", \"grace_period_interval\", \"number_of_minutes_allowed\", \"number_of_minutes_allowed_type\", \"number_of_transactions_allowed\", \"number_of_transactions_allowed_type\", \"auto_move_balances\", \"accumulative_balance_cap\", \"maximum_cap_days\", \"link_with_probation\", \"balances_effective_dates\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the timeoff_id from the response","var responseJson = pm.response.json();","var timeoffId = responseJson.data[0].id;","","// Set the timeoff_id as an environment variable","pm.environment.set(\"timeoff_id\", timeoffId);"],"type":"text/javascript","packages":{},"id":"fec5cf51-ea4f-4722-a934-63a554289b30"}}],"id":"9db26db1-5075-45d5-a206-a6c4d7a7b5c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test_zen112345","type":"text"},{"key":"name[ar]","value":"test_zen","type":"text"},{"key":"description[en]","value":"test_zen","type":"text"},{"key":"description[ar]","value":"test_zen","type":"text"},{"key":"allowed_after","value":"2025-01-01","type":"text"},{"key":"allowed_after_type","value":"","type":"text"},{"key":"allowed_times","value":"56","type":"text"},{"key":"allowed_every","value":"1","type":"text"},{"key":"allowed_every_type","value":"every_day","type":"text"},{"key":"min_loan_fils","value":"100000","type":"text"},{"key":"min_loan_currency","value":"JOD","type":"text"},{"key":"max_loan_fils","value":"3000000","type":"text"},{"key":"max_loan_currency","value":"JOD","type":"text"},{"key":"min_instalment_fils","value":"50000","type":"text"},{"key":"min_instalment_currency","value":"JOD","type":"text"},{"key":"max_instalment_fils","value":"100000","type":"text"},{"key":"max_instalment_currency","value":"JOD","type":"text"},{"key":"max_payments","value":"20","type":"text"},{"key":"eligible_employees","value":"both","type":"text"},{"key":"requestable","value":"true","type":"text"},{"key":"loan_payment_financial_transactions_ids","value":"","type":"text"},{"key":"financial_transaction_type_id","value":"9138","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"clearance_account","value":"","type":"text"},{"key":"deduct_from_extra_salaries","value":"","type":"text"},{"key":"loan_amount_exceed","value":"","type":"text"},{"key":"loan_payment_amount_exceed","value":"","type":"text"},{"key":"loan_financial_transaction_ids","value":"2314","type":"text"},{"key":"deafult_payment_type","value":"","type":"text","disabled":true},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch/integration_maps/loan_type/:global_id","description":"<p>This API end-point will list all timeoffs in a brnch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch","integration_maps","loan_type",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"c43d12dc-250d-49a6-9adc-f66ad2a71a36","type":"any","value":"","key":"branch"},{"id":"eaafb9a1-a882-427f-bf9c-19ff2e08dc1c","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"bd519a31-0b7e-408a-9db2-5779866c86e3","name":"Edit Loan Type","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test_zen112345","type":"text"},{"key":"name[ar]","value":"test_zen","type":"text"},{"key":"description[en]","value":"test_zen","type":"text"},{"key":"description[ar]","value":"test_zen","type":"text"},{"key":"allowed_after","value":"2025-01-01","type":"text"},{"key":"allowed_after_type","value":"","type":"text"},{"key":"allowed_times","value":"56","type":"text"},{"key":"allowed_every","value":"1","type":"text"},{"key":"allowed_every_type","value":"every_day","type":"text"},{"key":"min_loan_fils","value":"100000","type":"text"},{"key":"min_loan_currency","value":"JOD","type":"text"},{"key":"max_loan_fils","value":"3000000","type":"text"},{"key":"max_loan_currency","value":"JOD","type":"text"},{"key":"min_instalment_fils","value":"50000","type":"text"},{"key":"min_instalment_currency","value":"JOD","type":"text"},{"key":"max_instalment_fils","value":"100000","type":"text"},{"key":"max_instalment_currency","value":"JOD","type":"text"},{"key":"max_payments","value":"20","type":"text"},{"key":"eligible_employees","value":"both","type":"text"},{"key":"requestable","value":"true","type":"text"},{"key":"loan_payment_financial_transactions_ids","value":"","type":"text"},{"key":"financial_transaction_type_id","value":"9138","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"clearance_account","value":"","type":"text"},{"key":"deduct_from_extra_salaries","value":"","type":"text"},{"key":"loan_amount_exceed","value":"","type":"text"},{"key":"loan_payment_amount_exceed","value":"","type":"text"},{"key":"loan_financial_transaction_ids","value":"2314","type":"text"},{"key":"deafult_payment_type","value":"","type":"text","disabled":true},{"key":"global_id","value":"test1","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/104/integration_maps/loan_type/test1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"29f0934ae289bc9868151641443bd042\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"4cad1a29-3950-406a-bdcf-40613f4fc611"},{"key":"X-Runtime","value":"0.117611"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"902"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4460,\n    \"name\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen112345\"\n    },\n    \"description\": {\n        \"ar\": \"test_zen\",\n        \"en\": \"test_zen\"\n    },\n    \"branch_id\": 104,\n    \"allowed_after\": 2025,\n    \"allowed_after_type\": null,\n    \"allowed_times\": 56,\n    \"allowed_every\": 1,\n    \"allowed_every_type\": \"every_day\",\n    \"min_loan_fils\": 100000,\n    \"min_loan_currency\": \"JOD\",\n    \"max_loan_fils\": 3000000,\n    \"max_loan_currency\": \"JOD\",\n    \"min_instalment_fils\": 50000,\n    \"min_instalment_currency\": \"JOD\",\n    \"max_instalment_fils\": 100000,\n    \"max_instalment_currency\": \"JOD\",\n    \"max_payments\": 20,\n    \"eligible_employees\": \"both\",\n    \"requestable\": true,\n    \"gl_identifier\": \"\",\n    \"clearance_account\": \"\",\n    \"loan_amount_exceed\": null,\n    \"loan_payment_amount_exceed\": null,\n    \"loan_payment_financial_transactions_ids\": [],\n    \"financial_transaction_type\": {\n        \"financial_transaction_type_id\": 9138\n    },\n    \"deafult_payment_type\": \"out_of_payroll\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-30T10:22:41.433Z\",\n    \"updated_at\": \"2024-05-30T10:24:47.900Z\"\n}"}],"_postman_id":"9db26db1-5075-45d5-a206-a6c4d7a7b5c8"}],"id":"e6eeb80b-a415-4d8a-b218-32dd786ddb06","_postman_id":"e6eeb80b-a415-4d8a-b218-32dd786ddb06","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Loans","item":[{"name":"Get Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"765353be-7ee6-4d3f-865c-3aae688ce4cc"}}],"id":"c78a043b-c915-48d7-8047-23327d9eae9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/loan/:global_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","loan",":global_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include","value":"loan.employee"},{"disabled":true,"key":"include","value":"loan.loan_type"}],"variable":[{"id":"7473399c-627c-4c3e-94d2-287673d2db7a","type":"any","value":"","key":"branch_id"},{"id":"8419aa2b-9ab4-4d74-8f8b-49c60af7e320","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"6daf3234-6b1e-49ea-8dce-9e449e4f003b","name":"Get Loan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/integration_maps/loan/test1","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","integration_maps","loan","test1"],"query":[{"key":"include","value":"loan.employee","disabled":true},{"key":"include","value":"loan.loan_type","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a3508a72c8a2963010731be13246bd46\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8a2bada3-7676-4854-a048-341513a2ecd5"},{"key":"X-Runtime","value":"0.207356"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"431"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 67899,\n    \"employee\": {\n        \"employee_id\": 1159\n    },\n    \"amount_fils\": 1000000,\n    \"amount_currency\": \"JOD\",\n    \"effective_date\": \"2025-01-01\",\n    \"number_of_payments\": 4,\n    \"name\": {\n        \"ar\": \"test\",\n        \"en\": \"test\"\n    },\n    \"loan_type\": {\n        \"loan_type_id\": 63\n    },\n    \"cancel_requested_on\": null,\n    \"notes\": \"test\",\n    \"out_of_payroll\": false,\n    \"status\": 4,\n    \"installment_date\": null,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-29T08:15:11.106Z\",\n    \"updated_at\": \"2024-05-29T08:15:11.106Z\"\n}"}],"_postman_id":"c78a043b-c915-48d7-8047-23327d9eae9c"},{"name":"Edit Loan","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response is a valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Response matches the expected schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"name\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"ar\": { \"type\": [\"string\", \"null\"] },","                                \"en\": { \"type\": [\"string\", \"null\"] }","                            },","                            \"required\": [\"ar\", \"en\"]","                        },","                        \"job_description\": { \"type\": \"string\" },","                        \"position_type\": { \"type\": \"string\" },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","// Retrieve the first position id from the response","var responseBody = pm.response.json();","var firstPosition = responseBody.data[0];","var positionId = firstPosition.id;","pm.environment.set(\"position_id\", positionId);"],"type":"text/javascript","packages":{},"id":"e56ec16a-cded-4be1-8f7f-1629f216672c"}}],"id":"74034b4b-1717-40ab-80d3-7b0d935eefba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"","type":"text"},{"key":"loan_type_id","value":"63","type":"text"},{"key":"status","value":"4","type":"text"},{"key":"amount_fils","value":"1000000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"effective_date","value":"2025-01-01","type":"text"},{"key":"number_of_payments","value":"4","type":"text"},{"key":"name[ar]","value":"test","type":"text"},{"key":"name[en]","value":"test","type":"text"},{"key":"instalment_fils","value":"250000","type":"text"},{"key":"instalment_currency","value":"JOD","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"notes","value":"test213","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"installment_date","value":"","type":"text"},{"key":"global_id","value":"","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/loan/:global_id","description":"<p>This API end-point will list all positions in under a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","loan",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"f11c6f04-362f-420c-8a51-5a5a2c01c176","type":"any","value":"","key":"branch_id"},{"id":"023c9a50-568d-4b6b-8208-a1e3c50f34d1","type":"any","value":"","key":"global_id"}]}},"response":[],"_postman_id":"74034b4b-1717-40ab-80d3-7b0d935eefba"}],"id":"43932d9f-5c97-4f28-a47f-3b73df6a456e","_postman_id":"43932d9f-5c97-4f28-a47f-3b73df6a456e","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Overtime Types","item":[{"name":"Get Overtime Type","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"job_description\": {\"type\": \"string\"},","            \"position_type\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"44f8df84-2915-4abf-9afc-612f7838b7f8"}}],"id":"ee28217c-23f2-4cb8-97f5-33c76afbec29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/overtime_type/:global_id","description":"<p>This API end-point will show a position in a branch by branch_id and position_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","overtime_type",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"120075b5-9391-48e1-9724-7bf7dd557547","type":"any","value":"","key":"branch_id"},{"id":"cdd6ebee-5982-4f11-bb63-0e6d5cea9363","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"14a20e4b-6037-4e07-bb76-db8ccc27fcbf","name":"Get Overtime Type","originalRequest":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/104/integration_maps/overtime_type/test13"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"e5d4cc8ce4fa6aa3ba86ee326dc8bd9e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"96ab9628-d511-466e-a0a6-879bb650105e"},{"key":"X-Runtime","value":"0.183586"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"351"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 19141,\n    \"branch_id\": 104,\n    \"name\": {\n        \"ar\": \"asdasd\",\n        \"en\": \"asdasdasfdsgfdg\"\n    },\n    \"rule\": null,\n    \"rate\": 1.6,\n    \"minimum_hours\": 3,\n    \"ability_to_request\": false,\n    \"mandatory_attachment\": false,\n    \"mandatory_notes\": false,\n    \"default\": true,\n    \"gl_identifier\": \"\",\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test13\"\n        }\n    ],\n    \"created_at\": \"2024-05-22T09:05:45.519Z\",\n    \"updated_at\": \"2024-05-29T09:33:03.665Z\"\n}"}],"_postman_id":"ee28217c-23f2-4cb8-97f5-33c76afbec29"},{"name":"Edit Overtime Type","id":"e0d10236-7d96-4ed8-8332-a7a6932306eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[ar]","value":"asdasd","type":"text"},{"key":"name[en]","value":"asdasdasfdsgfdg","type":"text"},{"key":"rule","value":"","type":"text"},{"key":"minimum_hours","value":"3","type":"text"},{"key":"ability_to_request","value":"false","type":"text"},{"key":"mandatory_attachment","value":"false","type":"text"},{"key":"mandatory_notes","value":"false","type":"text"},{"key":"default","value":"true","type":"text"},{"key":"gl_identifier","value":"","type":"text"},{"key":"rate","value":"1.6","type":"text"},{"key":"global_id","value":"test14","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/overtime_type/:global_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","overtime_type",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"a050f852-3529-4f4b-a1a6-354fdd3b793c","type":"any","value":"","key":"branch_id"},{"id":"ceea2281-819a-44f2-a91b-170209588266","type":"any","value":"","key":"global_id"}]}},"response":[],"_postman_id":"e0d10236-7d96-4ed8-8332-a7a6932306eb"}],"id":"62f39eb3-7c28-455f-bd27-669a7ea40db0","_postman_id":"62f39eb3-7c28-455f-bd27-669a7ea40db0","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Overtimes","item":[{"name":"Get Overtime","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": {\"type\": \"number\"},","            \"name\": {","                \"type\": \"object\",","                \"properties\": {","                    \"ar\": { \"type\": [\"string\", \"null\"] },","                    \"en\": { \"type\": [\"string\", \"null\"] }","                },","                \"required\": [\"ar\", \"en\"]","            },","            \"job_description\": {\"type\": \"string\"},","            \"position_type\": {\"type\": \"string\"},","            \"created_at\": {\"type\": \"string\"},","            \"updated_at\": {\"type\": \"string\"}","        },","        \"required\": [\"id\", \"name\", \"job_description\", \"position_type\", \"created_at\", \"updated_at\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});"],"type":"text/javascript","packages":{},"id":"f3ef0472-4f6b-4600-9026-5407ab6dcbd7"}}],"id":"164108c7-d1e5-4a06-8c98-bd4ba828e289","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/overtime/:global_id","description":"<p>This API end-point will show a position in a branch by branch_id and position_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","overtime",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"7530e204-690c-4797-8b28-76caf8f1d946","type":"any","value":"","key":"branch_id"},{"id":"116dd920-262e-4cb1-8483-7d9861d1d8f1","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"7a6db3a2-6777-4cbc-bc74-700e7a5577be","name":"Get Overtime","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes/66","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes","66"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"35b93d3c3ea38d5439e6d5f34bfd3d83\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8f3e0fc4-9b1f-4053-90b7-c00b40a2e51e"},{"key":"X-Runtime","value":"0.141032"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"444"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 66,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2017-09-12T15:00:00.000Z\",\n    \"to\": \"2017-09-12T17:00:00.000Z\",\n    \"amount_fils\": 23958,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2017-09-26\",\n    \"duration\": 120,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": 0,\n    \"notes\": null,\n    \"calculated_total_hours\": 2,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"66\"\n        }\n    ],\n    \"created_at\": \"2017-09-26T10:22:41.140Z\",\n    \"updated_at\": \"2023-03-08T15:23:16.450Z\"\n}"}],"_postman_id":"164108c7-d1e5-4a06-8c98-bd4ba828e289"},{"name":"Edit Overtime","id":"855f1c3b-7d4a-4de3-8346-2bd5ee3a99ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"global_id","value":"","type":"text","disabled":true}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/overtime/:global_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","integration_maps","overtime",":global_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"4c8ad399-9de2-4880-b2c8-840f9168fd28","type":"any","value":"","key":"branch_id"},{"id":"0cd42037-9dd6-4b61-9e7f-11718d6853f7","type":"any","value":"","key":"global_id"}]}},"response":[{"id":"4811e7e7-04e0-4ef4-ae84-c21f799028e2","name":"Edit Overtime","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"employee_id","value":"1159","type":"text"},{"key":"overtime_type_id","value":"91","type":"text"},{"key":"from","value":"2022-01-01","type":"text"},{"key":"to","value":"2022-01-02","type":"text"},{"key":"amount_fils","value":"10000","type":"text"},{"key":"amount_currency","value":"JOD","type":"text"},{"key":"status","value":"6","type":"text"},{"key":"effective_date","value":"2022-01-01","type":"text"},{"key":"duration","value":"120","type":"text"},{"key":"cancel_requested_on","value":"","type":"text"},{"key":"out_of_payroll","value":"false","type":"text"},{"key":"deducted_duration","value":"","type":"text"},{"key":"notes","value":"test123","type":"text"},{"key":"gl_id","value":"","type":"text","disabled":true}]},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/overtimes/787800","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","overtimes","787800"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"f02a60a4d54f17b1b2111e6f80452836\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c270adf0-6667-4cfa-b6a3-61d130b6bf2f"},{"key":"X-Runtime","value":"0.805032"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"472"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 787800,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"overtime_type\": {\n        \"id\": 91\n    },\n    \"from\": \"2022-01-01T00:00:00.000Z\",\n    \"to\": \"2022-01-02T00:00:00.000Z\",\n    \"amount_fils\": 10000,\n    \"amount_currency\": \"JOD\",\n    \"status\": 6,\n    \"effective_date\": \"2022-01-01\",\n    \"duration\": 120,\n    \"cancel_requested_on\": null,\n    \"out_of_payroll\": false,\n    \"deducted_duration\": null,\n    \"notes\": \"test123\",\n    \"calculated_total_hours\": 24,\n    \"integration_maps\": [\n        {\n            \"global_id\": \"test1\"\n        }\n    ],\n    \"created_at\": \"2024-05-29T11:33:00.789Z\",\n    \"updated_at\": \"2024-05-29T11:33:28.834Z\"\n}"}],"_postman_id":"855f1c3b-7d4a-4de3-8346-2bd5ee3a99ea"}],"id":"4d3ccbef-3e32-49f4-b47b-f44d567bc712","_postman_id":"4d3ccbef-3e32-49f4-b47b-f44d567bc712","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}}],"id":"9b264c94-14b2-4db2-b05a-79eb782d9186","_postman_id":"9b264c94-14b2-4db2-b05a-79eb782d9186","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Miscellaneous Requests","item":[{"name":"List Employees Miscellaneous Requests","id":"9c5c7759-ba6f-41ab-bc55-23211c780f64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/miscellaneous_requests","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","miscellaneous_requests"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"include","value":"miscellaneous_request.employee"},{"disabled":true,"key":"include","value":"miscellaneous_request.miscellaneous_type"},{"disabled":true,"key":"filter[id][]","value":"2562"},{"disabled":true,"key":"filter[miscellaneous_type_id][]","value":"7"},{"disabled":true,"key":"filter[effective_date][from]","value":"2023-09-09"},{"disabled":true,"key":"filter[effective_date][to]","value":"2023-09-11"},{"disabled":true,"key":"filter[created_at][from]","value":"2023-09-09"},{"disabled":true,"key":"filter[created_at][to]","value":"2023-09-09"},{"disabled":true,"key":"order[]","value":"{ column: id,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: effective_date,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: employee_id,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: miscellaneous_type_id,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: created_at,dir: asc }"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"5d139779-23ab-4327-8dc8-264ecd508a39","name":"List Employees Miscellaneous Requests","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/miscellaneous_requests","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","miscellaneous_requests"],"query":[{"key":"page","value":"2","type":"text","disabled":true},{"key":"limit","value":"3","type":"text","disabled":true},{"key":"include","value":"miscellaneous_request.employee","type":"text","disabled":true},{"key":"include","value":"miscellaneous_request.miscellaneous_type","type":"text","disabled":true},{"key":"filter[id][]","value":"2562","type":"text","disabled":true},{"key":"filter[miscellaneous_type_id][]","value":"7","type":"text","disabled":true},{"key":"filter[effective_date][from]","value":"2023-09-09","type":"text","disabled":true},{"key":"filter[effective_date][to]","value":"2023-09-11","type":"text","disabled":true},{"key":"filter[created_at][from]","value":"2023-09-09","type":"text","disabled":true},{"key":"filter[created_at][to]","value":"2023-09-09","type":"text","disabled":true},{"key":"order[]","value":"{ column: id,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: effective_date,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: employee_id,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: miscellaneous_type_id,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: created_at,dir: asc }","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"5772"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-iRfsdoIfndEqhpWzGA6PsQ=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"6d711bb3f2f975da4eae473aae2e219b\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"c7567574-a60d-4c88-93fc-6be5c83f3ef7"},{"key":"X-Runtime","value":"0.116131"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 08:57:32 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 233,\n        \"total_pages\": 10\n    },\n    \"data\": [\n        {\n            \"id\": 109,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-01-24\",\n            \"status\": 2,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-01-24T11:01:42.524Z\",\n            \"updated_at\": \"2021-08-02T11:35:29.861Z\"\n        },\n        {\n            \"id\": 145,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 78\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:05:49.731Z\",\n            \"updated_at\": \"2019-03-06T10:06:57.455Z\"\n        },\n        {\n            \"id\": 146,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"test\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:07:28.029Z\",\n            \"updated_at\": \"2019-03-06T10:08:31.638Z\"\n        },\n        {\n            \"id\": 147,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:09:00.844Z\",\n            \"updated_at\": \"2019-03-06T10:09:43.527Z\"\n        },\n        {\n            \"id\": 148,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-06\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-06T10:10:08.440Z\",\n            \"updated_at\": \"2019-05-16T11:16:32.012Z\"\n        },\n        {\n            \"id\": 165,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-20\",\n            \"status\": 1,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-20T14:53:19.878Z\",\n            \"updated_at\": \"2019-03-20T14:53:19.878Z\"\n        },\n        {\n            \"id\": 166,\n            \"employee\": {\n                \"id\": 15043\n            },\n            \"miscellaneous_type\": {\n                \"id\": 62\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-20\",\n            \"status\": 1,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-20T14:53:41.061Z\",\n            \"updated_at\": \"2019-03-20T14:53:41.061Z\"\n        },\n        {\n            \"id\": 167,\n            \"employee\": {\n                \"id\": 13482\n            },\n            \"miscellaneous_type\": {\n                \"id\": 149\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-03-20\",\n            \"status\": 1,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-03-20T14:54:51.790Z\",\n            \"updated_at\": \"2019-03-20T14:54:51.790Z\"\n        },\n        {\n            \"id\": 205,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"miscellaneous_type\": {\n                \"id\": 62\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-04-09\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-04-09T08:42:25.805Z\",\n            \"updated_at\": \"2019-04-09T08:42:32.016Z\"\n        },\n        {\n            \"id\": 216,\n            \"employee\": {\n                \"id\": 16300\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-04-11\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-04-11T14:23:07.078Z\",\n            \"updated_at\": \"2019-04-11T14:23:10.800Z\"\n        },\n        {\n            \"id\": 301,\n            \"employee\": {\n                \"id\": 17646\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-12\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-12T10:57:10.574Z\",\n            \"updated_at\": \"2022-06-27T12:58:28.652Z\"\n        },\n        {\n            \"id\": 322,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 78\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T08:53:35.051Z\",\n            \"updated_at\": \"2019-05-15T08:53:44.388Z\"\n        },\n        {\n            \"id\": 323,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T08:54:07.130Z\",\n            \"updated_at\": \"2019-05-15T08:54:17.540Z\"\n        },\n        {\n            \"id\": 324,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:04:17.090Z\",\n            \"updated_at\": \"2019-05-15T09:14:34.803Z\"\n        },\n        {\n            \"id\": 326,\n            \"employee\": {\n                \"id\": 17625\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:30:52.095Z\",\n            \"updated_at\": \"2019-05-15T09:31:07.700Z\"\n        },\n        {\n            \"id\": 327,\n            \"employee\": {\n                \"id\": 17823\n            },\n            \"miscellaneous_type\": {\n                \"id\": 137\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:31:42.203Z\",\n            \"updated_at\": \"2019-05-15T09:31:59.745Z\"\n        },\n        {\n            \"id\": 328,\n            \"employee\": {\n                \"id\": 17823\n            },\n            \"miscellaneous_type\": {\n                \"id\": 149\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-15\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-15T09:32:34.863Z\",\n            \"updated_at\": \"2019-05-15T09:32:41.773Z\"\n        },\n        {\n            \"id\": 339,\n            \"employee\": {\n                \"id\": 17531\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"test\\r\\n\",\n            \"effective_date\": \"2019-05-20\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-20T11:15:57.090Z\",\n            \"updated_at\": \"2019-05-20T11:17:33.551Z\"\n        },\n        {\n            \"id\": 344,\n            \"employee\": {\n                \"id\": 18042\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-21\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-21T09:46:32.681Z\",\n            \"updated_at\": \"2019-05-21T09:47:46.557Z\"\n        },\n        {\n            \"id\": 345,\n            \"employee\": {\n                \"id\": 18042\n            },\n            \"miscellaneous_type\": {\n                \"id\": 71\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-21\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-21T09:48:25.227Z\",\n            \"updated_at\": \"2019-05-21T09:48:39.454Z\"\n        },\n        {\n            \"id\": 355,\n            \"employee\": {\n                \"id\": 18142\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-27\",\n            \"status\": 2,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-27T09:38:36.453Z\",\n            \"updated_at\": \"2022-06-27T13:42:32.761Z\"\n        },\n        {\n            \"id\": 358,\n            \"employee\": {\n                \"id\": 18143\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"test\",\n            \"effective_date\": \"2019-05-27\",\n            \"status\": 4,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-27T10:56:29.124Z\",\n            \"updated_at\": \"2019-05-27T10:57:50.609Z\"\n        },\n        {\n            \"id\": 359,\n            \"employee\": {\n                \"id\": 18143\n            },\n            \"miscellaneous_type\": {\n                \"id\": 63\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-05-27\",\n            \"status\": 2,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-05-27T10:58:01.816Z\",\n            \"updated_at\": \"2022-06-27T13:42:36.260Z\"\n        },\n        {\n            \"id\": 461,\n            \"employee\": {\n                \"id\": 19906\n            },\n            \"miscellaneous_type\": {\n                \"id\": 62\n            },\n            \"notes\": \"\",\n            \"effective_date\": \"2019-07-02\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-07-02T15:48:36.104Z\",\n            \"updated_at\": \"2019-07-02T15:48:47.263Z\"\n        },\n        {\n            \"id\": 482,\n            \"employee\": {\n                \"id\": 20069\n            },\n            \"miscellaneous_type\": {\n                \"id\": 7\n            },\n            \"notes\": \"afda - Rejected On Termination Process\",\n            \"effective_date\": \"2019-07-06\",\n            \"status\": 3,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2019-07-04T13:56:27.578Z\",\n            \"updated_at\": \"2019-07-04T13:56:27.578Z\"\n        }\n    ]\n}"}],"_postman_id":"9c5c7759-ba6f-41ab-bc55-23211c780f64"},{"name":"Show Employees Miscellaneous Request","id":"01d095f1-4675-428a-878d-da05c915b9be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/miscellaneous_requests/:miscellaneous_request_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","miscellaneous_requests",":miscellaneous_request_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"miscellaneous_request_id"}]}},"response":[{"id":"e027e048-c3c6-4f5d-8bfd-7ea01c85d785","name":"Show Employees Miscellaneous Request","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/miscellaneous_requests/109"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"223"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-rqnjgK0wDF4KCUBMFqaiMw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"8b81c459160f08a948dc1b18ed080390\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"b00071f7-d233-4b7e-b411-b8a5dc211db8"},{"key":"X-Runtime","value":"0.035368"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 08:58:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 109,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"miscellaneous_type\": {\n        \"id\": 71\n    },\n    \"notes\": \"\",\n    \"effective_date\": \"2019-01-24\",\n    \"status\": 2,\n    \"cancel_requested_on\": null,\n    \"created_at\": \"2019-01-24T11:01:42.524Z\",\n    \"updated_at\": \"2021-08-02T11:35:29.861Z\"\n}"}],"_postman_id":"01d095f1-4675-428a-878d-da05c915b9be"}],"id":"2d0af6b0-e656-48b6-9e07-ce0e4a4fcfc9","_postman_id":"2d0af6b0-e656-48b6-9e07-ce0e4a4fcfc9","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Miscellaneous Types","item":[{"name":"List Miscellaneous Types","id":"5800d337-ee4b-4e7d-b4fe-8e581de615eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/miscellaneous_types","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","miscellaneous_types"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"filter[id][]","value":"7"},{"disabled":true,"key":"filter[ability_to_request]","value":"true"},{"disabled":true,"key":"filter[mandatory_notes]","value":"true"},{"disabled":true,"key":"filter[mandatory_attachment]","value":"true"},{"disabled":true,"key":"order[]","value":"{ column: id, dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: created_at, dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: ability_to_request,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: mandatory_notes,dir: asc }"},{"disabled":true,"key":"order[]","value":"{ column: mandatory_attachment,dir: asc }"}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"c96695fb-719a-440f-b107-35c0ef42bcbb","name":"List Miscellaneous Types","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/miscellaneous_types","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","miscellaneous_types"],"query":[{"key":"page","value":"2","type":"text","disabled":true},{"key":"limit","value":"3","type":"text","disabled":true},{"key":"filter[id][]","value":"7","type":"text","disabled":true},{"key":"filter[ability_to_request]","value":"true","type":"text","disabled":true},{"key":"filter[mandatory_notes]","value":"true","type":"text","disabled":true},{"key":"filter[mandatory_attachment]","value":"true","type":"text","disabled":true},{"key":"order[]","value":"{ column: id, dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: created_at, dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: ability_to_request,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: mandatory_notes,dir: asc }","type":"text","disabled":true},{"key":"order[]","value":"{ column: mandatory_attachment,dir: asc }","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"6417"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-QWAn0DTJoZDtzhyj0q+xgQ=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"f5d0916f6a6b779502f4ae5abb430000\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"b81234fe-b73f-4c16-ad52-29bef6bf5d8a"},{"key":"X-Runtime","value":"0.058576"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:00:42 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 23,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 801,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Upgrade Miscellaneous\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"123\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2020-11-11T11:38:16.747Z\",\n            \"updated_at\": \"2020-11-11T11:38:42.390Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 7,\n            \"name\": {\n                \"ar\": \"xx\",\n                \"en\": \"المشتريات \"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"test\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2018-08-01T08:39:51.920Z\",\n            \"updated_at\": \"2018-08-25T08:27:26.260Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 62,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"test4\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"testtest\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2018-10-29T13:26:56.212Z\",\n            \"updated_at\": \"2018-10-29T13:27:08.134Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 63,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Business Card Requestsssd\"\n            },\n            \"description\": {\n                \"ar\": \"ما سبب حجز غرفة الاجتماعات\",\n                \"en\": \"ss\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2018-10-29T13:27:55.959Z\",\n            \"updated_at\": \"2024-01-25T08:49:50.537Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 71,\n            \"name\": {\n                \"ar\": \"طلب شراء لابتوب\",\n                \"en\": \"طلب شراء لابتوب\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2018-11-05T09:51:00.182Z\",\n            \"updated_at\": \"2018-11-05T09:51:00.182Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 78,\n            \"name\": {\n                \"ar\": \"طلب شراء لابتوب\",\n                \"en\": \"طلب شراء لابتوب\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2018-11-08T10:29:53.045Z\",\n            \"updated_at\": \"2018-11-08T10:29:53.045Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 137,\n            \"name\": {\n                \"ar\": \"طلب سيارة الشركة\",\n                \"en\": \"Use Company Car\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2019-02-07T10:33:08.158Z\",\n            \"updated_at\": \"2019-02-07T10:33:08.158Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 149,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TEST2\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2019-03-20T14:54:26.716Z\",\n            \"updated_at\": \"2019-03-20T14:54:26.716Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 656,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"MiscellaneousActivity 123\"\n            },\n            \"description\": {\n                \"ar\": \"test\",\n                \"en\": \"test\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2020-08-11T18:28:56.496Z\",\n            \"updated_at\": \"2020-08-27T11:21:14.158Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 1251,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Miscellaneous - Date\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"test\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2021-08-18T16:46:19.581Z\",\n            \"updated_at\": \"2021-08-18T16:46:19.581Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 1252,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Miscellaneous - dropdown\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"test12\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2021-08-18T16:46:35.668Z\",\n            \"updated_at\": \"2021-10-24T10:56:44.128Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 1978,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"SabaMisType\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"Hello new type for miscellaneous\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2022-02-16T09:18:27.747Z\",\n            \"updated_at\": \"2022-02-16T09:18:27.747Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 1988,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"TestMiscJamokha\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2022-02-21T09:29:32.514Z\",\n            \"updated_at\": \"2022-02-21T09:29:32.514Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 2120,\n            \"name\": {\n                \"ar\": \"rr\",\n                \"en\": \"dgffdg\"\n            },\n            \"description\": {\n                \"ar\": \"fgf\",\n                \"en\": \"fgfg\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2022-03-09T07:58:00.304Z\",\n            \"updated_at\": \"2022-03-09T07:58:00.304Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 3227,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"vvvv\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2022-08-30T12:17:00.247Z\",\n            \"updated_at\": \"2022-08-30T12:17:00.247Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 4402,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Parking Card\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"For employees with more than one year of employment\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2022-12-27T09:13:35.996Z\",\n            \"updated_at\": \"2022-12-27T09:13:35.996Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 6784,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Miscellaneous testtt Naheel\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"tetsttst\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2023-07-18T15:11:21.236Z\",\n            \"updated_at\": \"2023-07-18T15:11:21.236Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 6831,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Test naheeeeeeeeeel\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"hhhhhh\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2023-07-23T17:08:07.242Z\",\n            \"updated_at\": \"2023-07-23T17:08:07.242Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 9688,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"description\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"descriptiondescriptiondescriptiondescriptiondescriptiondescription\"\n            },\n            \"ability_to_request\": false,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2024-01-22T11:46:43.574Z\",\n            \"updated_at\": \"2024-01-22T11:46:43.574Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 9755,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Leen Type\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"Hiiii all\"\n            },\n            \"ability_to_request\": false,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2024-01-25T08:33:31.329Z\",\n            \"updated_at\": \"2024-01-25T08:33:44.744Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 9756,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"d\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": false,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2024-01-25T08:34:49.008Z\",\n            \"updated_at\": \"2024-01-25T08:34:49.008Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 9936,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"\"\n            },\n            \"ability_to_request\": false,\n            \"mandatory_notes\": true,\n            \"mandatory_attachment\": true,\n            \"created_at\": \"2024-02-08T06:08:09.880Z\",\n            \"updated_at\": \"2024-02-08T06:08:09.880Z\",\n            \"branch_id\": 104\n        },\n        {\n            \"id\": 12618,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Testing\"\n            },\n            \"description\": {\n                \"ar\": \"\",\n                \"en\": \"This is an automated message.\"\n            },\n            \"ability_to_request\": true,\n            \"mandatory_notes\": false,\n            \"mandatory_attachment\": false,\n            \"created_at\": \"2024-08-26T13:37:48.747Z\",\n            \"updated_at\": \"2024-08-26T13:37:48.747Z\",\n            \"branch_id\": 104\n        }\n    ]\n}"}],"_postman_id":"5800d337-ee4b-4e7d-b4fe-8e581de615eb"},{"name":"Create Miscellaneous Type","id":"baf266c8-2379-46e6-b531-9282c492d799","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name[en]","value":"test","type":"text"},{"key":"name[ar]","value":"test1","type":"text"},{"key":"description[en]","value":"description test","type":"text"},{"key":"description[ar]","value":"description test 1","type":"text"},{"key":"mandatory_notes","value":"true","type":"text"},{"key":"mandatory_attachment","value":"false","type":"text"},{"key":"ability_to_request","value":"true","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/miscellaneous_types","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","miscellaneous_types"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"013899be-c9ae-448b-87b3-971443151cc0","name":"Create Miscellaneous Type Copy","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/miscellaneous_types/801"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"264"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-3Dg3WYuAFGk17n5Z5i8gtg=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"073b56fbbfd001b5e7393283bc642fd6\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"c4d4afa6-b7c9-4e7f-82e0-52c6996ea507"},{"key":"X-Runtime","value":"0.029993"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:01:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 801,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Upgrade Miscellaneous\"\n    },\n    \"description\": {\n        \"ar\": \"\",\n        \"en\": \"123\"\n    },\n    \"ability_to_request\": true,\n    \"mandatory_notes\": true,\n    \"mandatory_attachment\": true,\n    \"created_at\": \"2020-11-11T11:38:16.747Z\",\n    \"updated_at\": \"2020-11-11T11:38:42.390Z\",\n    \"branch_id\": 104\n}"}],"_postman_id":"baf266c8-2379-46e6-b531-9282c492d799"},{"name":"Show Miscellaneous Type","id":"d43bdb8b-2ad9-4ef0-b6bc-0a7a8f914cbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/miscellaneous_types/:miscellaneous_type_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","miscellaneous_types",":miscellaneous_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"miscellaneous_type_id"}]}},"response":[{"id":"4dc5417a-f7aa-4b6a-a662-bc4445d77814","name":"Show Miscellaneous Type","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/miscellaneous_types/801"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"264"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-3Dg3WYuAFGk17n5Z5i8gtg=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"073b56fbbfd001b5e7393283bc642fd6\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"c4d4afa6-b7c9-4e7f-82e0-52c6996ea507"},{"key":"X-Runtime","value":"0.029993"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:01:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 801,\n    \"name\": {\n        \"ar\": \"\",\n        \"en\": \"Upgrade Miscellaneous\"\n    },\n    \"description\": {\n        \"ar\": \"\",\n        \"en\": \"123\"\n    },\n    \"ability_to_request\": true,\n    \"mandatory_notes\": true,\n    \"mandatory_attachment\": true,\n    \"created_at\": \"2020-11-11T11:38:16.747Z\",\n    \"updated_at\": \"2020-11-11T11:38:42.390Z\",\n    \"branch_id\": 104\n}"}],"_postman_id":"d43bdb8b-2ad9-4ef0-b6bc-0a7a8f914cbe"},{"name":"Delete Miscellaneous Type","id":"058e9602-8458-49ae-a94c-e8e3a01fd282","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/miscellaneous_types/:miscellaneous_type_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","miscellaneous_types",":miscellaneous_type_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"},{"type":"any","value":"","key":"miscellaneous_type_id"}]}},"response":[],"_postman_id":"058e9602-8458-49ae-a94c-e8e3a01fd282"}],"id":"f2b8211a-8e15-4776-9ad2-c7adfcc0068c","_postman_id":"f2b8211a-8e15-4776-9ad2-c7adfcc0068c","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Governmental Information","item":[{"name":"List Branch Governmental Information","id":"7064c552-099f-4d58-947b-8fd1d14d41ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/governmental_informations","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","governmental_informations"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"9a2c5914-e9d3-44bf-b010-5a2d7b909305","name":"List Branch Governmental Information","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/governmental_informations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"288"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-avsZg40TTzvS9XUPjkmLQA=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"7fc7eed8b9c8a8598a1e769a1b064c84\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"722d9e4a-171f-44ac-8c19-308c9f260483"},{"key":"X-Runtime","value":"0.073500"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:04:40 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 3341,\n            \"establishment_name\": \"Zenhr\",\n            \"establishment_number\": \"16777400\",\n            \"ss_governance_location\": null,\n            \"tax_number\": null,\n            \"address\": \"Zahran 10\",\n            \"po_box\": \"Test\",\n            \"zip_code\": \"Test1\",\n            \"mol_number\": null\n        }\n    ]\n}"}],"_postman_id":"7064c552-099f-4d58-947b-8fd1d14d41ec"},{"name":"Show Branch Governmental Information","id":"7cf84bd6-1acf-4c44-9bdf-96e2bb21c2d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/104/governmental_informations/:governmental_information_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","governmental_informations",":governmental_information_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"governmental_information_id"}]}},"response":[{"id":"d4c106d0-6bea-4965-a486-810c829ba7f4","name":"Show Branch Governmental Information","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/governmental_informations/3341"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"197"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-bqGEd8D1xMBAGw5eWwabHA=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"685135d1f117ca4265a9f38e062b90eb\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"a4234ab6-8bb1-4f68-9e5a-5f54467f32af"},{"key":"X-Runtime","value":"0.027138"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:05:19 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3341,\n    \"establishment_name\": \"Zenhr\",\n    \"establishment_number\": \"16777400\",\n    \"ss_governance_location\": null,\n    \"tax_number\": null,\n    \"address\": \"Zahran 10\",\n    \"po_box\": \"Test\",\n    \"zip_code\": \"Test1\",\n    \"mol_number\": null\n}"}],"_postman_id":"7cf84bd6-1acf-4c44-9bdf-96e2bb21c2d5"}],"id":"e851c86f-161c-4c80-b50b-dddd2d0fe1ff","_postman_id":"e851c86f-161c-4c80-b50b-dddd2d0fe1ff","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Countries","item":[{"name":"List Countries","id":"742d6377-d1bb-4b98-a7ad-603673d0f9b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/countries","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","countries"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"country.cities"}],"variable":[]}},"response":[{"id":"4020b305-2380-46c0-866c-d28d89a07002","name":"List Countries","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"3041"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-OIV0cga0CxcxOcco2JMWYw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"e8959775f9d9cdc0455ca4775035f498\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"572663ed-9379-455b-bb9b-02587e1c6a83"},{"key":"X-Runtime","value":"0.081458"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:06:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 259,\n        \"total_pages\": 11\n    },\n    \"data\": [\n        {\n            \"id\": 2,\n            \"name\": {\n                \"ar\": \"جزر اللاند\",\n                \"en\": \"Aland Islands\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 29,\n            \"name\": {\n                \"ar\": \"جزيرة بوفيت\",\n                \"en\": \"Bouvet Island\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 77,\n            \"name\": {\n                \"ar\": \"المقاطعات الفرنسية الجنوبية\",\n                \"en\": \"French Southern Territories\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 95,\n            \"name\": {\n                \"ar\": \"جزر هيرد ومكدونالدز\",\n                \"en\": \"Heard and McDonald Islands\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 115,\n            \"name\": {\n                \"ar\": \"كوريا الجنوبية\",\n                \"en\": \"Korea, Democratic People's Republic of\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 116,\n            \"name\": {\n                \"ar\": \"كوريا الشمالية\",\n                \"en\": \"Korea, Republic of\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 119,\n            \"name\": {\n                \"ar\": \"لاوس\",\n                \"en\": \"Lao People's Democratic Republic\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 203,\n            \"name\": {\n                \"ar\": \"جورجيا الجنوبية وجزر السندويتش الجنوبية\",\n                \"en\": \"South Georgia and the South Sandwich Islands\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 232,\n            \"name\": {\n                \"ar\": \"الجزر الصغرى الولايات المتحدة الأمريكية\",\n                \"en\": \"United States Minor Outlying Islands\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 239,\n            \"name\": {\n                \"ar\": \"الجزر العذراء\",\n                \"en\": \"Virgin Islands\"\n            },\n            \"country_code\": null,\n            \"region\": null\n        },\n        {\n            \"id\": 5,\n            \"name\": {\n                \"ar\": \"ساموا الأمريكي\",\n                \"en\": \"American Samoa\"\n            },\n            \"country_code\": \"AS\",\n            \"region\": null\n        },\n        {\n            \"id\": 8,\n            \"name\": {\n                \"ar\": \"أنغويلا\",\n                \"en\": \"Anguilla\"\n            },\n            \"country_code\": \"AI\",\n            \"region\": null\n        },\n        {\n            \"id\": 9,\n            \"name\": {\n                \"ar\": \"أنتاركتيكا\",\n                \"en\": \"Antarctica\"\n            },\n            \"country_code\": \"AQ\",\n            \"region\": null\n        },\n        {\n            \"id\": 10,\n            \"name\": {\n                \"ar\": \"أنتيغوا وبربودا\",\n                \"en\": \"Antigua and Barbuda\"\n            },\n            \"country_code\": \"AG\",\n            \"region\": null\n        },\n        {\n            \"id\": 13,\n            \"name\": {\n                \"ar\": \"أروبه\",\n                \"en\": \"Aruba\"\n            },\n            \"country_code\": \"AW\",\n            \"region\": null\n        },\n        {\n            \"id\": 19,\n            \"name\": {\n                \"ar\": \"بربادوس\",\n                \"en\": \"Barbados\"\n            },\n            \"country_code\": \"BB\",\n            \"region\": null\n        },\n        {\n            \"id\": 24,\n            \"name\": {\n                \"ar\": \"جزر برمودا\",\n                \"en\": \"Bermuda\"\n            },\n            \"country_code\": \"BM\",\n            \"region\": null\n        },\n        {\n            \"id\": 31,\n            \"name\": {\n                \"ar\": \"المقاطعة البريطانية في المحيط الهندي\",\n                \"en\": \"British Indian Ocean Territory\"\n            },\n            \"country_code\": \"IO\",\n            \"region\": null\n        },\n        {\n            \"id\": 32,\n            \"name\": {\n                \"ar\": \"الجزر العذراء البريطانية\",\n                \"en\": \"British Virgin Islands\"\n            },\n            \"country_code\": \"VG\",\n            \"region\": null\n        },\n        {\n            \"id\": 41,\n            \"name\": {\n                \"ar\": \"جزر كايمان\",\n                \"en\": \"Cayman Islands\"\n            },\n            \"country_code\": \"KY\",\n            \"region\": null\n        },\n        {\n            \"id\": 46,\n            \"name\": {\n                \"ar\": \"جزيرة كريسماس\",\n                \"en\": \"Christmas Island\"\n            },\n            \"country_code\": \"CX\",\n            \"region\": null\n        },\n        {\n            \"id\": 56,\n            \"name\": {\n                \"ar\": \"كوبا\",\n                \"en\": \"Cuba\"\n            },\n            \"country_code\": \"CU\",\n            \"region\": null\n        },\n        {\n            \"id\": 62,\n            \"name\": {\n                \"ar\": \"الجمهورية الدومينيكية\",\n                \"en\": \"Dominican Republic\"\n            },\n            \"country_code\": \"1-829\",\n            \"region\": null\n        },\n        {\n            \"id\": 71,\n            \"name\": {\n                \"ar\": \"جزر فارو\",\n                \"en\": \"Faroe Islands\"\n            },\n            \"country_code\": \"FO\",\n            \"region\": null\n        },\n        {\n            \"id\": 76,\n            \"name\": {\n                \"ar\": \"بولينيزيا الفرنسية\",\n                \"en\": \"French Polynesia\"\n            },\n            \"country_code\": \"PF\",\n            \"region\": null\n        }\n    ]\n}"}],"_postman_id":"742d6377-d1bb-4b98-a7ad-603673d0f9b9"},{"name":"Show Country","id":"c52745e4-bebd-4303-b6d9-4e425794735c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/countries/:country_id?include[]=country.cities","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","countries",":country_id"],"host":["app.zenhr.com"],"query":[{"key":"include[]","value":"country.cities"}],"variable":[{"type":"any","value":"","key":"country_id"}]}},"response":[{"id":"00eae82b-7a1b-4a2c-869e-b90e098b54fe","name":"Show Country","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/countries/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"99"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-gyxDdKjcCIlm4w1ceWhjvw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"3847a7a7b0605936c41635f6eaa2b551\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"23dee9cf-5b39-4e2f-8fa9-2e20016fed78"},{"key":"X-Runtime","value":"0.028395"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:06:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"name\": {\n        \"ar\": \"جزر اللاند\",\n        \"en\": \"Aland Islands\"\n    },\n    \"country_code\": null,\n    \"region\": null\n}"}],"_postman_id":"c52745e4-bebd-4303-b6d9-4e425794735c"}],"id":"ef340fac-5d65-47b2-91b8-6b271baa9f88","_postman_id":"ef340fac-5d65-47b2-91b8-6b271baa9f88","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Banks","item":[{"name":"Bank Branches","item":[{"name":"List Bank Branches","id":"05038176-bc59-4abc-9c98-f975a5b64a61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/banks/:bank_id/bank_branches/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","banks",":bank_id","bank_branches",""],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"bank_id"}]}},"response":[{"id":"9d115844-a2be-4c24-b23d-86c6c0fa2fd8","name":"List Bank Branches","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/banks/11/bank_branches/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"290"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-TeUQjhYxykapRE6o0ZWCNA=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"76119e42645eceef0e4664439a7334c0\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"18c805b8-e0f4-4c6f-a2e3-a3b9b269014a"},{"key":"X-Runtime","value":"0.039007"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:08:45 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 2,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 12,\n            \"bank\": {\n                \"id\": 11\n            },\n            \"swift_code\": \"\",\n            \"name\": {\n                \"ar\": \"الشميساني\",\n                \"en\": \"Shmeisani\"\n            }\n        },\n        {\n            \"id\": 614,\n            \"bank\": {\n                \"id\": 11\n            },\n            \"swift_code\": \"\",\n            \"name\": {\n                \"ar\": \"الفرع الرئيسي\",\n                \"en\": \"Main Branch\"\n            }\n        }\n    ]\n}"}],"_postman_id":"05038176-bc59-4abc-9c98-f975a5b64a61"},{"name":"Show Bank Branches","id":"45320f50-1e21-4954-b8e0-82eb90f28672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/banks/:bank_id/bank_branches/:bank_branch_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","banks",":bank_id","bank_branches",":bank_branch_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"bank_id"},{"type":"any","value":"","key":"bank_branch_id"}]}},"response":[{"id":"55555914-e800-4a89-b961-7d8c3adb94bd","name":"Show Bank Branches","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/banks/11/bank_branches/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"94"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-k4no4BtPJl5q1Kkhlfbfew=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"c885fb0f08f60b20c37894b59617c5de\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"00541c6d-d9a3-4f2b-bd86-9e54fac48a87"},{"key":"X-Runtime","value":"0.041043"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:09:14 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"bank\": {\n        \"id\": 11\n    },\n    \"swift_code\": \"\",\n    \"name\": {\n        \"ar\": \"الشميساني\",\n        \"en\": \"Shmeisani\"\n    }\n}"}],"_postman_id":"45320f50-1e21-4954-b8e0-82eb90f28672"}],"id":"b42c1674-d8d5-4c66-b399-9cba9b50a1ba","_postman_id":"b42c1674-d8d5-4c66-b399-9cba9b50a1ba","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"List Banks","id":"e9536871-5d36-4c37-8e56-bf44dd969c5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/banks","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","banks"],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"9a3c7135-5918-416d-9165-17147058ba76","name":"List Banks","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/banks"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"4350"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-j0xbJh2KMrs1dtIU888fMA=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"4f17ce4da0bc1c0c21fd69dad71ed217\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"7577509f-8b84-4347-9eeb-748b317a2f6e"},{"key":"X-Runtime","value":"0.051536"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:07:42 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 433,\n        \"total_pages\": 18\n    },\n    \"data\": [\n        {\n            \"id\": 11,\n            \"name\": {\n                \"ar\": \"بنك ابو ظبي الوطني\",\n                \"en\": \"National Bank of Abu Dhabi\"\n            },\n            \"country\": {\n                \"country_id\": 111\n            },\n            \"routing_id\": \"49\",\n            \"short_code\": \"\",\n            \"swift_code\": null\n        },\n        {\n            \"id\": 1,\n            \"name\": {\n                \"ar\": \"البنك العربي\",\n                \"en\": \"Arab Bank\"\n            },\n            \"country\": {\n                \"country_id\": 111\n            },\n            \"routing_id\": \"10\",\n            \"short_code\": null,\n            \"swift_code\": \"ARABJOAXXXX\"\n        },\n        {\n            \"id\": 50,\n            \"name\": {\n                \"ar\": \"بنك كاليون\",\n                \"en\": \"Calyon Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": null,\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 43,\n            \"name\": {\n                \"ar\": \"البنك العربي\",\n                \"en\": \"Arab Bank PLC\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"000910101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 39,\n            \"name\": {\n                \"ar\": \"مصرف الرافدين\",\n                \"en\": \"Al Rafidain Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"400510101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 42,\n            \"name\": {\n                \"ar\": \"البنك العربي للاستثمار والتجارة الخارجية\",\n                \"en\": \"Arab Bank For Investment And Foreign Trade\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"100810101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 40,\n            \"name\": {\n                \"ar\": \"مصرف الهلال\",\n                \"en\": \"Al Hilal Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"105310101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 47,\n            \"name\": {\n                \"ar\": \"بنك صادرات ايران\",\n                \"en\": \"Bank Saderat Iran\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"901320124\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 49,\n            \"name\": {\n                \"ar\": \"بنك القاهرة\",\n                \"en\": \"Banque Du Caire\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"001510102\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 51,\n            \"name\": {\n                \"ar\": \"الخليجي فرنسا\",\n                \"en\": \"Al Khaliji France\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"201720101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 54,\n            \"name\": {\n                \"ar\": \"سيتي بانك\",\n                \"en\": \"CitiBank NA\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"102120101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 55,\n            \"name\": {\n                \"ar\": \"البنك التجاري الدولي\",\n                \"en\": \"Commercial Bank International\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"002220101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 58,\n            \"name\": {\n                \"ar\": \"مصرف دبي\",\n                \"en\": \"Dubai Bank PJSC\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"005120101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 63,\n            \"name\": {\n                \"ar\": \"حبيب بنك المحدود\",\n                \"en\": \"Habib Bank Limited\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"102820111\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 64,\n            \"name\": {\n                \"ar\": \"حبيب بنك ايه جي زيوريخ\",\n                \"en\": \"Habib Bank AG Zurich\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"302920101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 65,\n            \"name\": {\n                \"ar\": \"بنك الاستثمار\",\n                \"en\": \"Invest Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"503030102\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 66,\n            \"name\": {\n                \"ar\": \"بنك جاناتا\",\n                \"en\": \"Janata Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"103110110\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 59,\n            \"name\": {\n                \"ar\": \"بنك النيلين\",\n                \"en\": \"El Nilein Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"002510101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 45,\n            \"name\": {\n                \"ar\": \"بنك برودا - دبي\",\n                \"en\": \"Bank of Baroda - Dubai\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"801120101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 44,\n            \"name\": {\n                \"ar\": \"بنك ملي ايران\",\n                \"en\": \"Bank Melli Iran\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"201020102\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 79,\n            \"name\": {\n                \"ar\": \"البنك العربي المتحد\",\n                \"en\": \"United Arab Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"904630101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 77,\n            \"name\": {\n                \"ar\": \"بنك ستاندرد تشارترد\",\n                \"en\": \"Standard Chartered Bank\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"504420120\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 75,\n            \"name\": {\n                \"ar\": \"نور بنك\",\n                \"en\": \"Noor Islamic Bank PJSC\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"905220101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 74,\n            \"name\": {\n                \"ar\": \"بنك أم القيوين\",\n                \"en\": \"National Bank of UAQ\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"104251001\",\n            \"short_code\": null,\n            \"swift_code\": null\n        },\n        {\n            \"id\": 73,\n            \"name\": {\n                \"ar\": \"بنك رأس الخيمة الوطني\",\n                \"en\": \"National Bank of RAK\"\n            },\n            \"country\": {\n                \"country_id\": 228\n            },\n            \"routing_id\": \"804020101\",\n            \"short_code\": null,\n            \"swift_code\": null\n        }\n    ]\n}"}],"_postman_id":"e9536871-5d36-4c37-8e56-bf44dd969c5b"},{"name":"Show Bank","id":"4f66cefb-e31a-440b-b423-7f647715065f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/banks/:bank_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","banks",":bank_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"bank_id"}]}},"response":[{"id":"693dbf55-8f1a-4e79-8526-ff3a8eec3107","name":"Show Bank","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/banks/11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"174"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-g+/C8Dz8/UqO3BHzEPd6Tg=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"70c89aa725e53f87c3072689e2ad5f89\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"ae8312ce-f7cd-45f2-bb77-6edbe1c6c0c2"},{"key":"X-Runtime","value":"0.032655"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:07:53 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11,\n    \"name\": {\n        \"ar\": \"بنك ابو ظبي الوطني\",\n        \"en\": \"National Bank of Abu Dhabi\"\n    },\n    \"country\": {\n        \"country_id\": 111\n    },\n    \"routing_id\": \"49\",\n    \"short_code\": \"\",\n    \"swift_code\": null\n}"}],"_postman_id":"4f66cefb-e31a-440b-b423-7f647715065f"}],"id":"e77c1f47-8e70-4a99-b363-301967d061f7","_postman_id":"e77c1f47-8e70-4a99-b363-301967d061f7","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Bank Accounts","item":[{"name":"List Bank Branch Accounts","id":"3678cd17-c8a4-4661-8ee3-59523e36f8f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/branch_bank_accounts","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","branch_bank_accounts"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"77274ae3-107a-4dc4-9cb2-27a9a423aaf0","name":"List Bank Branch Accounts","originalRequest":{"method":"GET","header":[],"url":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/branch_bank_accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"636"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-IcQytgtuj+OLpxg8SQkvQw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"4d985007471a99800ceb8926ea054e21\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"3e7a1167-b443-4b79-a059-f50ecffa1ce1"},{"key":"X-Runtime","value":"0.036733"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:13:01 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 224387,\n            \"owner_id\": 104,\n            \"owner_type\": \"Branch\",\n            \"bank_branch\": {\n                \"bank_branch_id\": 1679,\n                \"id\": 1679,\n                \"bank\": {\n                    \"id\": 425,\n                    \"name\": {\n                        \"ar\": \"INECOBANK CJSC\",\n                        \"en\": \"INECOBANK CJSC\"\n                    },\n                    \"country\": {\n                        \"country_id\": 12,\n                        \"id\": 12,\n                        \"name\": {\n                            \"ar\": \"أرمينيا\",\n                            \"en\": \"Armenia\"\n                        },\n                        \"country_code\": \"AM\",\n                        \"region\": \"europe\"\n                    },\n                    \"routing_id\": null,\n                    \"short_code\": null,\n                    \"swift_code\": null\n                },\n                \"swift_code\": null,\n                \"name\": {\n                    \"ar\": \"Main Branch\",\n                    \"en\": \"Main Branch\"\n                }\n            },\n            \"iban\": \"\",\n            \"bank_account_number\": \"sadf\",\n            \"percent_transfer\": null,\n            \"related_establishment_number\": \"\",\n            \"swift_code\": null,\n            \"exchange_account\": \"\"\n        }\n    ]\n}"}],"_postman_id":"3678cd17-c8a4-4661-8ee3-59523e36f8f7"}],"id":"2de18827-fe7d-4b37-a207-465ef42273e4","_postman_id":"2de18827-fe7d-4b37-a207-465ef42273e4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Request Events","item":[{"name":"List Request Events","id":"4b5b60d8-bc11-46e8-b31b-1c6e6e9c6b1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/request_events","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","request_events"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"filter[resources_type][]","value":"offcycle_journal_entry"},{"disabled":true,"key":"filter[status][]","value":""}],"variable":[{"type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"63010e4a-3d6b-41ce-bddf-12caf594a9f9","name":"List Request Events","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zenhr-pr-12461.staging.devops.zenhr.com/api/v3/branches/104/request_events","protocol":"https","host":["zenhr-pr-12461","staging","devops","zenhr","com"],"path":["api","v3","branches","104","request_events"],"query":[{"key":"filter[resources_type][]","value":"offcycle_journal_entry","type":"text","disabled":true},{"key":"filter[status][]","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Length","value":"9372"},{"key":"Content-Security-Policy","value":"default-src 'self' https://*.demo.zenhr.com/ https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ wss://www.zenhr.com/ wss://app.zenhr.com/ wss://sa.zenhr.com/ https://www.google-analytics.com/ https://stats.g.doubleclick.net/ https://analytics.google.com/ https://stats.g.doubleclick.net/ https://region1.analytics.google.com/ https://calendly.com/ https://connect.facebook.net/ https://forms-eu1.hsforms.com/ https://hubspot-forms-static-embed-eu1.s3.amazonaws.com/ https://www.google.com/ https://cdn.linkedin.oribi.io/ https://app.pendo.io/ https://leadbooster-chat.pipedrive.com/ https://www.recaptcha.net/ https://api-eu1.hubspot.com/ https://forms-eu1.hscollectedforms.net/ https://api-eu1.hubapi.com/ https://www.facebook.com/ https://adservice.google.com/ https://www.google.jo/ https://www.google.sa/ https://www.google.ae/ https://www.google.qa/ https://www.google.eg/ https://www.google.iq/ https://www.google.fr/ https://www.google.ps/ https://www.google.co.in/ https://www.google.co.id/ https://www.google.com.kh/ https://www.google.com.pk/ https://www.google.com.ph/ https://www.google.com.ly/ https://www.google.com.sa/ https://www.google.com.jo/ https://www.google.com.kw/ https://www.google.com.eg/ https://www.google.com.qa/ https://maps.googleapis.com/ https://pagead2.googlesyndication.com/ https://stats.g.doubleclick.net/ https://a.omappapi.com https://idx.liadm.com/ https://api.omappapi.com/ https://inapp.planhat.com/ https://tr.snapchat.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://widget.freshworks.com/widgetBase/locales/ https://zenhrsolutions.freshdesk.com/api/widget/solutions/ https://zenhrsolutions.freshdesk.com/api/widget/ticket-forms https://zenhrsolutions.freshdesk.com/api/widget/ https://zenhrsolutions.freshdesk.com/api/widget/ticket_fields https://zenhrstage.freshdesk.com/api/widget/solutions/ https://zenhrstage.freshdesk.com/api/widget/ticket-forms https://zenhrstage.freshdesk.com/api/widget/ https://zenhrstage.freshdesk.com/api/widget/ticket_fields https://cta-eu1.hubspot.com/ https://analytics.tiktok.com https://px.ads.linkedin.com/ https://tr6.snapchat.com/ https://app.clearbit.com/ https://in.hotjar.com/; font-src 'self' data: https://fonts.gstatic.com/ https://*.cloudfront.net https://leadbooster-chat.pipedrive.com; img-src 'self' data: blob: *; script-src 'self' 'unsafe-eval' https://*.hotjar.com/ https://tag.clearbitscripts.com/ https://analytics.tiktok.com/ https://widget.freshworks.com/widgets/ https://widget.freshworks.com/ https://*.planhat.com/ https://www.googletagmanager.com/gtm.js https://www.googletagmanager.com/gtag/js https://cdn.pendo.io/agent/static/efab39c9-e1e5-4c7c-6c69-7dc38b1f1a78/pendo.js https://www.googleoptimize.com/optimize.js https://cdnjs.cloudflare.com/ajax/libs/jQuery.dotdotdot/4.1.0/dotdotdot.js https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.9/simplebar.min.js https://cdn.jsdelivr.net/npm/simplebar@v5.3.9/dist/simplebar.min.js https://www.google-analytics.com/analytics.js https://www.google-analytics.com/gtm/optimize.js https://sc.lfeeder.com/lftracker_v1_3P1w24d0GMB4mY5n.js https://app.pendo.io/ https://gyrocode.github.io/jquery-datatables-checkboxes/1.2.11/js/dataTables.checkboxes.min.js https://assets.calendly.com/assets/external/widget.js https://js-eu1.hsforms.net/forms/embed/v2.js https://www.google.com/recaptcha/enterprise.js https://www.gstatic.com/recaptcha/releases/ https://snap.licdn.com/li.lms-analytics/insight.min.js https://connect.facebook.net/en_US/fbevents.js https://leadbooster-chat.pipedrive.com/assets/ https://connect.facebook.net/signals/config/ https://www.recaptcha.net/recaptcha/api.js https://d2is554mdy16bu.cloudfront.net/ https://d1v5zwup7m7403.cloudfront.net/ https://cdn.tiny.cloud/1/no-api-key/tinymce/ https://js-eu1.hs-scripts.com/26849107.js https://js-eu1.hscollectedforms.net/ https://js-eu1.hsadspixel.net/ https://js-eu1.hs-analytics.net/ https://js-eu1.hs-banner.com/ https://js-eu1.usemessages.com/ https://www.gstatic.com/charts https://googleads.g.doubleclick.net/pagead/viewthroughconversion/852064174/ https://connect.facebook.net/ https://connect.facebook.net/en_US/fbevents.js https://www.googleadservices.com/pagead/conversion.js https://ct.capterra.com/ https://a.omappapi.com/ https://a.omappapi.com/app/js/api.min.js https://maps.googleapis.com/maps/api/staticmap/ https://maps.googleapis.com/maps/api/js https://maps.googleapis.com/maps-api-v3/ https://maps.googleapis.com/maps/vt https://secure.leadforensics.com/ https://idx.liadm.com/ https://snap.licdn.com/li.lms-analytics/insight.old.min.js https://optimize.google.com/optimize/inject/inject.js https://sc-static.net/ https://tr.snapchat.com/ https://js-eu1.hubspot.com/ https://x.clearbitjs.com/v2/ https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.3/ https://cdn.kiflo.com/ 'nonce-p872Y0GKmllSnzh08VV0bw=='; style-src 'self' 'unsafe-inline' https://widget.freshworks.com/widgetBase/static/media/ https://cdn.jsdelivr.net/ https://fonts.googleapis.com/ https://*.cloudfront.net/ https://cdnjs.cloudflare.com/ https://www.gstatic.com/ https://cdn.tiny.cloud/ https://a.omappapi.com/; frame-src 'self' https://*.staging.devops.zenhr.com/ https://*.staging5.devops.zenhr.com/ https://ax9r1jxevzyn.compat.objectstorage.me-jeddah-1.oraclecloud.com/ https://www.facebook.com/ https://www.recaptcha.net/ https://calendly.com/ https://app-eu1.hubspot.com/ https://forms-eu1.hsforms.com/ https://td.doubleclick.net/ https://s3.eu-central-1.amazonaws.com/ https://tr.snapchat.com/; report-uri /en/api/v1/csp_reports"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin; path=/"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin; path=/"},{"key":"Etag","value":"W/\"b02624b115d328e99a83aabbf35c5ea6\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Strict-Transport-Security","value":"max-age=2678400"},{"key":"Vary","value":"Accept, Origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"d6508bcc-0576-4370-a912-7681f080eccf"},{"key":"X-Runtime","value":"0.141805"},{"key":"X-Xss-Protection","value":"0"},{"key":"Date","value":"Sun, 08 Dec 2024 09:13:55 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 61037,\n        \"total_pages\": 2442\n    },\n    \"data\": [\n        {\n            \"id\": 5117812,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049212,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:05:16.446Z\",\n            \"updated_at\": \"2024-09-15T14:05:26.783Z\"\n        },\n        {\n            \"id\": 5117884,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049284,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:07:14.512Z\",\n            \"updated_at\": \"2024-09-15T14:07:25.879Z\"\n        },\n        {\n            \"id\": 5117886,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049286,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:07:15.345Z\",\n            \"updated_at\": \"2024-09-15T14:07:34.939Z\"\n        },\n        {\n            \"id\": 5117887,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049287,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:07:15.621Z\",\n            \"updated_at\": \"2024-09-15T14:07:35.897Z\"\n        },\n        {\n            \"id\": 5117888,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049288,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:07:15.905Z\",\n            \"updated_at\": \"2024-09-15T14:07:36.265Z\"\n        },\n        {\n            \"id\": 5117982,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049382,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:09:14.327Z\",\n            \"updated_at\": \"2024-09-15T14:09:18.024Z\"\n        },\n        {\n            \"id\": 5117984,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049384,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:09:15.278Z\",\n            \"updated_at\": \"2024-09-15T14:09:18.278Z\"\n        },\n        {\n            \"id\": 5117985,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049385,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:09:15.526Z\",\n            \"updated_at\": \"2024-09-15T14:09:20.567Z\"\n        },\n        {\n            \"id\": 5117986,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049386,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:09:15.825Z\",\n            \"updated_at\": \"2024-09-15T14:09:21.096Z\"\n        },\n        {\n            \"id\": 5118066,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049466,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:11:14.454Z\",\n            \"updated_at\": \"2024-09-15T14:11:21.525Z\"\n        },\n        {\n            \"id\": 5118110,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049510,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:12:14.244Z\",\n            \"updated_at\": \"2024-09-15T14:12:26.774Z\"\n        },\n        {\n            \"id\": 5118210,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049610,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:14:14.508Z\",\n            \"updated_at\": \"2024-09-15T14:14:18.914Z\"\n        },\n        {\n            \"id\": 5118295,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049695,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:16:14.330Z\",\n            \"updated_at\": \"2024-09-15T14:16:15.355Z\"\n        },\n        {\n            \"id\": 5118375,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049775,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:18:14.611Z\",\n            \"updated_at\": \"2024-09-15T14:18:15.701Z\"\n        },\n        {\n            \"id\": 5118475,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049875,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:20:14.362Z\",\n            \"updated_at\": \"2024-09-15T14:20:14.675Z\"\n        },\n        {\n            \"id\": 5118551,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5049951,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:22:14.406Z\",\n            \"updated_at\": \"2024-09-15T14:22:16.851Z\"\n        },\n        {\n            \"id\": 5118610,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050009,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:24:12.772Z\",\n            \"updated_at\": \"2024-09-15T14:24:15.429Z\"\n        },\n        {\n            \"id\": 5118624,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050023,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:24:36.664Z\",\n            \"updated_at\": \"2024-09-15T14:24:42.471Z\"\n        },\n        {\n            \"id\": 5118643,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050042,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:25:03.705Z\",\n            \"updated_at\": \"2024-09-15T14:25:10.827Z\"\n        },\n        {\n            \"id\": 5118654,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050053,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:25:30.658Z\",\n            \"updated_at\": \"2024-09-15T14:25:31.243Z\"\n        },\n        {\n            \"id\": 5118674,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050073,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:25:55.419Z\",\n            \"updated_at\": \"2024-09-15T14:25:57.396Z\"\n        },\n        {\n            \"id\": 5118685,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050084,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:26:23.674Z\",\n            \"updated_at\": \"2024-09-15T14:26:24.453Z\"\n        },\n        {\n            \"id\": 5118686,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050085,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:26:23.708Z\",\n            \"updated_at\": \"2024-09-15T14:26:35.501Z\"\n        },\n        {\n            \"id\": 5118687,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050086,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:26:23.999Z\",\n            \"updated_at\": \"2024-09-15T14:26:43.744Z\"\n        },\n        {\n            \"id\": 5118705,\n            \"branch_id\": 104,\n            \"setup_id\": 11,\n            \"setup_type\": \"NetsuiteSetup\",\n            \"resources_ids\": \"[1159]\",\n            \"resources_type\": \"employee\",\n            \"resources_class\": \"Employee\",\n            \"response_code\": \"404\",\n            \"response\": null,\n            \"date\": null,\n            \"request_event_batch_id\": 5050104,\n            \"extra_info\": null,\n            \"request_body\": null,\n            \"method\": null,\n            \"created_at\": \"2024-09-15T14:26:50.569Z\",\n            \"updated_at\": \"2024-09-15T14:26:56.859Z\"\n        }\n    ]\n}"}],"_postman_id":"4b5b60d8-bc11-46e8-b31b-1c6e6e9c6b1a"}],"id":"64d923db-c9d2-412f-a00a-6efa9626aeb4","_postman_id":"64d923db-c9d2-412f-a00a-6efa9626aeb4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Branch Employee Shifts","item":[{"name":"List Branch Employee Shifts","id":"04a9033c-f954-4c51-8db4-1a829d89278c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"20749c12-3915-44e0-9dda-ba95a521535b","name":"List Branch Emoloyees Shifts","originalRequest":{"method":"GET","header":[],"url":""},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"04a9033c-f954-4c51-8db4-1a829d89278c"},{"name":"Show Branch Employee Shifts","id":"6d82ae92-59b1-461b-b845-38e6c6c5740c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"025654b0-1318-4a97-a7e2-47eef1e6d263","name":"Show Branch Employee Shifts","originalRequest":{"method":"GET","header":[],"url":""},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6d82ae92-59b1-461b-b845-38e6c6c5740c"},{"name":"Create Employee Shift","id":"852dd542-c965-4464-bd77-dacaf3f8fcce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"cf032b20-8369-484b-ad82-44e4e73abd7a","name":"Create Employee Shift","originalRequest":{"method":"POST","header":[],"url":""},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"852dd542-c965-4464-bd77-dacaf3f8fcce"},{"name":"Update Employee Shift","id":"43fc3f8c-5065-4aca-8ecb-2ef33e450a56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"95eb36fb-2851-4fdd-a152-fa615be107fb","name":"Create Employee Shift","originalRequest":{"method":"PATCH","header":[],"url":""},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"43fc3f8c-5065-4aca-8ecb-2ef33e450a56"},{"name":"Delete Employee Shift","id":"39dcd0dd-e5e7-41a4-8476-9015cabb9f74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"39dcd0dd-e5e7-41a4-8476-9015cabb9f74"}],"id":"8eb6b4cc-39d8-44ae-aafe-78455f935ab2","_postman_id":"8eb6b4cc-39d8-44ae-aafe-78455f935ab2","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Work Shifts","item":[{"name":"List Branch Work Shift","id":"20194508-c8f9-4265-bf30-0b2f9cb1f017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/104/work_shifts","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","work_shifts"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: from_time, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: to_time, dir: asc}"},{"disabled":true,"key":"filter[id][]","value":"44546"},{"disabled":true,"key":"filter[from_time][]","value":"00:00"},{"disabled":true,"key":"filter[to_time][]","value":"00:00"},{"disabled":true,"key":"include[]","value":"work_shift.work_shift_intervals"}],"variable":[]}},"response":[{"id":"2b7e29f0-1e46-438e-9839-23ce1f90870b","name":"List Branch Work Shift","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/work_shifts","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","work_shifts"],"query":[{"key":"page","value":"2","disabled":true},{"key":"limit","value":"3","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","disabled":true},{"key":"order[]","value":"{column: from_time, dir: asc}","disabled":true},{"key":"order[]","value":"{column: to_time, dir: asc}","disabled":true},{"key":"filter[id][]","value":"44546","disabled":true},{"key":"filter[from_time][]","value":"00:00","disabled":true},{"key":"filter[to_time][]","value":"00:00","disabled":true},{"key":"include[]","value":"work_shift.work_shift_intervals","disabled":true},{"key":"include[]","value":"work_shift.work_shift_exceptions","disabled":true},{"key":"include[]","value":"work_shift.work_shift_transactions","disabled":true},{"key":"include[]","value":"work_shift.work_exceptions.work_exception_intervals","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"8563630c03cf30a57c5c85bc21f724b9\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"cee498ae-9484-448e-9ccf-e43fc7e20bc9"},{"key":"X-Runtime","value":"0.038249"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"11300"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 193,\n        \"total_pages\": 8\n    },\n    \"data\": [\n        {\n            \"id\": 44546,\n            \"name\": \"test\",\n            \"color\": \"#ffffff\",\n            \"type\": \"SplitRegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": true,\n            \"days_off\": [],\n            \"from_time\": \"00:00\",\n            \"to_time\": \"03:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 45986,\n                    \"from_time\": \"00:00\",\n                    \"to_time\": \"01:00\",\n                    \"required_hours\": null\n                },\n                {\n                    \"id\": 45987,\n                    \"from_time\": \"02:00\",\n                    \"to_time\": \"03:00\",\n                    \"required_hours\": null\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 7242,\n            \"name\": \"test\",\n            \"color\": \"#ffffff\",\n            \"type\": \"FlexibleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [],\n            \"from_time\": \"00:00\",\n            \"to_time\": \"01:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5960,\n                    \"from_time\": \"00:00\",\n                    \"to_time\": \"01:00\",\n                    \"required_hours\": 1\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 7250,\n            \"name\": \"test\",\n            \"color\": \"#ffffff\",\n            \"type\": \"ScheduleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [],\n            \"from_time\": \"12:00\",\n            \"to_time\": \"14:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 6131,\n                    \"from_time\": \"12:00\",\n                    \"to_time\": \"14:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 7564,\n            \"name\": \"Reanalyze shift 1\",\n            \"color\": \"#1d8c9a\",\n            \"type\": \"ScheduleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [],\n            \"from_time\": \"22:00\",\n            \"to_time\": \"06:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 6404,\n                    \"from_time\": \"22:00\",\n                    \"to_time\": \"06:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 93,\n            \"name\": \"Testing\",\n            \"color\": \"#FFFFFF\",\n            \"type\": \"ScheduleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 15,\n            \"morning_leave_after\": 15,\n            \"early_out_leave_before\": 15,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [],\n            \"from_time\": \"06:00\",\n            \"to_time\": \"18:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5841,\n                    \"from_time\": \"06:00\",\n                    \"to_time\": \"18:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 130,\n            \"name\": \"Shift A\",\n            \"color\": \"#52ad62\",\n            \"type\": \"ScheduleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 10,\n            \"early_out_leave_before\": 10,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [],\n            \"from_time\": \"08:00\",\n            \"to_time\": \"17:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5807,\n                    \"from_time\": \"08:00\",\n                    \"to_time\": \"17:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 139,\n            \"name\": \"Off Day\",\n            \"color\": \"#dd0000\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 30,\n            \"morning_leave_after\": 10,\n            \"early_out_leave_before\": 10,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"08:00\",\n            \"to_time\": \"18:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 4876,\n                    \"from_time\": \"08:00\",\n                    \"to_time\": \"18:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 186,\n            \"name\": \"B Shift\",\n            \"color\": \"#8080ff\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 999,\n            \"morning_leave_after\": 6,\n            \"early_out_leave_before\": 7,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"0\"\n            ],\n            \"from_time\": \"01:00\",\n            \"to_time\": \"09:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5866,\n                    \"from_time\": \"01:00\",\n                    \"to_time\": \"09:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 187,\n            \"name\": \"A Shift\",\n            \"color\": \"#ff80c0\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 30,\n            \"morning_leave_after\": 30,\n            \"early_out_leave_before\": 30,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"09:00\",\n            \"to_time\": \"16:30\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5332,\n                    \"from_time\": \"09:00\",\n                    \"to_time\": \"16:30\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": [\n                {}\n            ]\n        },\n        {\n            \"id\": 229,\n            \"name\": \"December\",\n            \"color\": \"#004040\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"08:00\",\n            \"to_time\": \"18:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5896,\n                    \"from_time\": \"08:00\",\n                    \"to_time\": \"18:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 233,\n            \"name\": \"Ramadan Shift\",\n            \"color\": \"#ff6cf9\",\n            \"type\": \"FlexibleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"09:00\",\n            \"to_time\": \"16:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5834,\n                    \"from_time\": \"09:00\",\n                    \"to_time\": \"16:00\",\n                    \"required_hours\": 7\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 293,\n            \"name\": \"testt\",\n            \"color\": \"#8cbd42\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 11,\n            \"morning_leave_after\": 11,\n            \"early_out_leave_before\": 11,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"00:00\",\n            \"to_time\": \"07:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5296,\n                    \"from_time\": \"00:00\",\n                    \"to_time\": \"07:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 305,\n            \"name\": \"test2\",\n            \"color\": \"#6a6a6a\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"1\",\n                \"2\",\n                \"3\",\n                \"4\"\n            ],\n            \"from_time\": \"01:00\",\n            \"to_time\": \"13:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5297,\n                    \"from_time\": \"01:00\",\n                    \"to_time\": \"13:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2288,\n            \"name\": \"Day Off\",\n            \"color\": \"#FF0000\",\n            \"type\": \"ScheduleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"0\",\n                \"1\",\n                \"2\",\n                \"3\",\n                \"4\",\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"00:00\",\n            \"to_time\": \"23:59\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 2830,\n                    \"from_time\": \"00:00\",\n                    \"to_time\": \"23:59\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2762,\n            \"name\": \"Regular shift\",\n            \"color\": \"#000000\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 30,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": true,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"10:00\",\n            \"to_time\": \"17:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5843,\n                    \"from_time\": \"10:00\",\n                    \"to_time\": \"17:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2763,\n            \"name\": \"Testing\",\n            \"color\": \"#FFFFFF\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 15,\n            \"morning_leave_after\": 15,\n            \"early_out_leave_before\": 15,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"06:00\",\n            \"to_time\": \"18:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5840,\n                    \"from_time\": \"06:00\",\n                    \"to_time\": \"18:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2764,\n            \"name\": \"Shift A\",\n            \"color\": \"#52ad62\",\n            \"type\": \"FlexibleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"08:00\",\n            \"to_time\": \"17:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5839,\n                    \"from_time\": \"08:00\",\n                    \"to_time\": \"17:00\",\n                    \"required_hours\": 8\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2766,\n            \"name\": \"Shift C\",\n            \"color\": \"#d8e974\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 1,\n            \"morning_leave_after\": 1,\n            \"early_out_leave_before\": 1,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"00:00\",\n            \"to_time\": \"08:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5830,\n                    \"from_time\": \"00:00\",\n                    \"to_time\": \"08:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2767,\n            \"name\": \"Test1\",\n            \"color\": \"#400080\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 15,\n            \"morning_leave_after\": 15,\n            \"early_out_leave_before\": 15,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"08:00\",\n            \"to_time\": \"16:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5831,\n                    \"from_time\": \"08:00\",\n                    \"to_time\": \"16:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2769,\n            \"name\": \"Copy - flexible night shift\",\n            \"color\": \"#ffff00\",\n            \"type\": \"ScheduleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [],\n            \"from_time\": \"09:00\",\n            \"to_time\": \"12:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5894,\n                    \"from_time\": \"09:00\",\n                    \"to_time\": \"12:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2770,\n            \"name\": \"TestFadi''1''\",\n            \"color\": \"#ffffff\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\",\n                \"0\",\n                \"1\"\n            ],\n            \"from_time\": \"08:00\",\n            \"to_time\": \"16:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 31,\n                    \"from_time\": \"08:00\",\n                    \"to_time\": \"16:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 2771,\n            \"name\": \"TestFadi''2''\",\n            \"color\": \"#ffffff\",\n            \"type\": \"FlexibleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"3\"\n            ],\n            \"from_time\": \"09:00\",\n            \"to_time\": \"17:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5895,\n                    \"from_time\": \"09:00\",\n                    \"to_time\": \"17:00\",\n                    \"required_hours\": 7\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 3033,\n            \"name\": \"Test12Fadi\",\n            \"color\": \"#ffffff\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"0\",\n                \"1\",\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"08:30\",\n            \"to_time\": \"02:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5290,\n                    \"from_time\": \"08:30\",\n                    \"to_time\": \"02:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 7566,\n            \"name\": \"Reanalyze shift 2\",\n            \"color\": \"#ed0c0c\",\n            \"type\": \"ScheduleShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [],\n            \"from_time\": \"11:00\",\n            \"to_time\": \"17:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 6403,\n                    \"from_time\": \"11:00\",\n                    \"to_time\": \"17:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        },\n        {\n            \"id\": 3079,\n            \"name\": \"Regular Shift - FadiImportesr\",\n            \"color\": \"#ffffff\",\n            \"type\": \"RegularShift\",\n            \"flex_leave_after\": 0,\n            \"overtime_after\": 0,\n            \"morning_leave_after\": 0,\n            \"early_out_leave_before\": 0,\n            \"interval_margin_percentage\": 50,\n            \"exclude_transaction\": false,\n            \"apply_overtime_during_holidays\": false,\n            \"days_off\": [\n                \"5\",\n                \"6\"\n            ],\n            \"from_time\": \"08:00\",\n            \"to_time\": \"17:00\",\n            \"work_shift_interval\": [\n                {\n                    \"id\": 5838,\n                    \"from_time\": \"08:00\",\n                    \"to_time\": \"17:00\",\n                    \"required_hours\": 0\n                }\n            ],\n            \"work_shift_transactions\": []\n        }\n    ]\n}"}],"_postman_id":"20194508-c8f9-4265-bf30-0b2f9cb1f017"},{"name":"Show  Branch Work Shift","id":"a85187e2-3d68-466a-ac84-5aef58c43bd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/104/work_shifts/:work_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","work_shifts",":work_shift_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"work_shift.work_shift_intervals"}],"variable":[{"type":"any","value":"44546","key":"work_shift_id"}]}},"response":[{"id":"d00d18b6-7d35-4174-8c2a-78b679a1118c","name":"Show  Branch Work Shift","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/work_shifts/:work_shift_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","work_shifts",":work_shift_id"],"query":[{"key":"include[]","value":"work_shift.work_shift_intervals","disabled":true},{"key":"include[]","value":"work_shift.work_exceptions","disabled":true},{"key":"include[]","value":"work_shift.work_shift_transactions","disabled":true},{"key":"include[]","value":"work_shift.work_exceptions.work_exception_intervals","disabled":true}],"variable":[{"key":"work_shift_id","value":"44546"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"c4b5a6aed2bbd23943f2ecb3204187a0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"55261c7a-3c92-465c-9225-33d073b1fb60"},{"key":"X-Runtime","value":"0.072766"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"312"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44546,\n    \"name\": \"test\",\n    \"color\": \"#ffffff\",\n    \"type\": \"SplitRegularShift\",\n    \"flex_leave_after\": 0,\n    \"overtime_after\": 0,\n    \"morning_leave_after\": 0,\n    \"early_out_leave_before\": 0,\n    \"interval_margin_percentage\": 50,\n    \"exclude_transaction\": false,\n    \"apply_overtime_during_holidays\": true,\n    \"days_off\": [],\n    \"from_time\": \"00:00\",\n    \"to_time\": \"03:00\"\n}"}],"_postman_id":"a85187e2-3d68-466a-ac84-5aef58c43bd1"},{"name":"Create Branch Work Shift","id":"efc19b5d-7723-4602-9406-04130f8e2ab5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"type\": \"WorkShift\",                     // The type of the work shift   [\"regular\",\"flexible\",\"schedule\",\"split_regular\",\"split_flexible\",\"split_schedule\"] \n  \"morning_leave_after\": 1,                // \n  \"early_out_leave_before\": 1,             // The time before which early out leave is allowed.\n  \"overtime_after\": 1,                     // The time after which overtime is calculated.\n  \"interval_margin_percentage\": 10,        // The margin percentage between intervals to decide where to assign an employee punch\n  \"color\": \"#FF0000\",                      // Icon color for the shift\n  \"exclude_transaction\": false,            // Whether to exclude transactions for this shift.\n  \"flex_leave_after\": 1,                   // The time after which flexible leave is allowed.\n  \"apply_overtime_during_holidays\": true,  // Whether to apply overtime during holidays.\n  \"name\": {\n    \"en\": \"Morning Shift\", // The name of the shift in English\n    \"ar\": \"الدوام الصباحي\" // The name of the shift in Arabic\n  },\n  \"days_off\": [\"friday\", \"saturday\"], // The days off for the shift.\n  \"work_shift_intervals_attributes\": [\n    {\n      \"from_time\": \"09:00\", // Interval start time\n      \"to_time\": \"17:00\",   // Interval end time\n      \"required_hours\": 8,  // Interval required hours for flexible shifts\n      \"_destroy\": false     // \n    }\n  ],\n  \"work_exceptions_attributes\": [\n    {\n      \"day\": \"monday\",      //  Day where the exception occurs\n      \"from_time\": \"10:00\", // exception start time\n      \"to_time\": \"16:00\",   // exception end time\n      \"_destroy\": false,    //  \n      \"work_exception_intervals_attributes\": [\n        {\n          \"from_time\": \"10:00\", // The start time of the interval.\n          \"to_time\": \"16:00\",   // The end time of the interval.\n          \"_destroy\": false     //\n        }\n      ]\n    }\n  ],\n  \"work_shift_transactions_attributes\": [\n    {\n      \"attendance_transaction_id\": 948, // The ID of the attendance transaction.\n      \"from_time\": \"09:00\",             // The start time of the transaction.\n      \"to_time\": \"17:00\",               // The end time of the transaction.\n      \"_destroy\": false                 //\n    }\n  ],\n  \"overtime_exceptions_attributes\": [\n    {\n      \"day\": \"monday\",          // The day of the exception.\n      \"from_time\": \"17:00\",     // The start time of the exception.\n      \"to_time\": \"19:00\",       // The end time of the exception.\n      \"rate\": 1.5,              // The rate for the overtime.\n      \"allowances_rate\": 1.25,  // The allowances rate for the overtime.\n      \"_destroy\": false         //\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/104/work_shifts?include[]=work_shift.work_shift_intervals","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","work_shifts"],"host":["app.zenhr.com"],"query":[{"key":"include[]","value":"work_shift.work_shift_intervals"}],"variable":[]}},"response":[{"id":"ce231042-b956-4dac-ad14-24206bd63c2e","name":"Create Branch Work Shift","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"type\": \"WorkShift\",\n  \"morning_leave_after\": 1,\n  \"early_out_leave_before\": 1,\n  \"overtime_after\": 1,\n  \"interval_margin_percentage\": 10,\n  \"color\": \"#FF0000\",\n  \"exclude_transaction\": false,\n  \"flex_leave_after\": 1,\n  \"apply_overtime_during_holidays\": true,\n  \"name\": {\n    \"en\": \"Morning Shift\",\n    \"ar\": \"الدوام الصباحي\"\n  },\n  \"days_off\": [\"friday\", \"saturday\"],\n  \"work_shift_intervals_attributes\": [\n    {\n      \"from_time\": \"09:00\",\n      \"to_time\": \"17:00\",\n      \"required_hours\": 8,\n      \"_destroy\": false\n    }\n  ],\n  \"work_exceptions_attributes\": [\n    {\n      \"day\": \"monday\",\n      \"from_time\": \"10:00\",\n      \"to_time\": \"16:00\",\n      \"_destroy\": false,\n      \"work_exception_intervals_attributes\": [\n        {\n          \"from_time\": \"10:00\",\n          \"to_time\": \"16:00\",\n          \"_destroy\": false\n        }\n      ]\n    }\n  ],\n  \"work_shift_transactions_attributes\": [\n    {\n      \"attendance_transaction_id\": 948,\n      \"from_time\": \"09:00\",\n      \"to_time\": \"17:00\",\n      \"_destroy\": false\n    }\n  ],\n  \"overtime_exceptions_attributes\": [\n    {\n      \"day\": \"monday\",\n      \"from_time\": \"17:00\",\n      \"to_time\": \"19:00\",\n      \"rate\": 1.5,\n      \"allowances_rate\": 1.25,\n      \"_destroy\": false\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/work_shifts?include[]=work_shift.work_shift_intervals&include[]=work_shift.work_exceptions&include[]=work_shift.work_shift_transactions&include[]=work_shift.work_exceptions.work_exception_intervals","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","work_shifts"],"query":[{"key":"include[]","value":"work_shift.work_shift_intervals"},{"key":"include[]","value":"work_shift.work_exceptions"},{"key":"include[]","value":"work_shift.work_shift_transactions"},{"key":"include[]","value":"work_shift.work_exceptions.work_exception_intervals"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"d399338c81e17d8e278de9e5eb2e8318\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"96f41c7f-7ae8-4ddc-95a3-069899db5536"},{"key":"X-Runtime","value":"0.240904"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"645"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44550,\n    \"name\": \"Morning Shift\",\n    \"color\": \"#FF0000\",\n    \"type\": \"WorkShift\",\n    \"flex_leave_after\": 1,\n    \"overtime_after\": 1,\n    \"morning_leave_after\": 1,\n    \"early_out_leave_before\": 1,\n    \"interval_margin_percentage\": 10,\n    \"exclude_transaction\": false,\n    \"apply_overtime_during_holidays\": true,\n    \"days_off\": [\n        \"friday\",\n        \"saturday\"\n    ],\n    \"from_time\": \"09:00\",\n    \"to_time\": \"17:00\",\n    \"work_shift_interval\": [\n        {\n            \"id\": 45990,\n            \"from_time\": \"09:00\",\n            \"to_time\": \"17:00\",\n            \"required_hours\": 8\n        }\n    ],\n    \"work_exceptions\": [\n        {\n            \"id\": 3186,\n            \"day\": \"monday\",\n            \"from_time\": \"10:00\",\n            \"to_time\": \"16:00\",\n            \"work_exception_intervals\": [\n                {\n                    \"id\": 2690,\n                    \"from_time\": \"10:00\",\n                    \"to_time\": \"16:00\",\n                    \"required_hours\": null\n                }\n            ]\n        }\n    ],\n    \"work_shift_transactions\": [\n        {}\n    ]\n}"}],"_postman_id":"efc19b5d-7723-4602-9406-04130f8e2ab5"},{"name":"Update Branch Work Shift","id":"3d8adccf-f603-457c-8a08-f60ba541063a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"type\": \"WorkShift\",                     // The type of the work shift   [\"regular\",\"flexible\",\"schedule\",\"split_regular\",\"split_flexible\",\"split_schedule\"] \n  \"morning_leave_after\": 1,                // \n  \"early_out_leave_before\": 1,             // The time before which early out leave is allowed.\n  \"overtime_after\": 1,                     // The time after which overtime is calculated.\n  \"interval_margin_percentage\": 10,        // The margin percentage between intervals to decide where to assign an employee punch\n  \"color\": \"#FF0000\",                      // Icon color for the shift\n  \"exclude_transaction\": false,            // Whether to exclude transactions for this shift.\n  \"flex_leave_after\": 1,                   // The time after which flexible leave is allowed.\n  \"apply_overtime_during_holidays\": true,  // Whether to apply overtime during holidays.\n  \"name\": {\n    \"en\": \"Morning Shift\", // The name of the shift in English\n    \"ar\": \"الدوام الصباحي\" // The name of the shift in Arabic\n  },\n  \"days_off\": [\"friday\", \"saturday\"], // The days off for the shift.\n  \"work_shift_intervals_attributes\": [\n    {\n      \"from_time\": \"09:00\", // Interval start time\n      \"to_time\": \"17:00\",   // Interval end time\n      \"required_hours\": 8,  // Interval required hours for flexible shifts\n      \"_destroy\": false     // \n    }\n  ],\n  \"work_exceptions_attributes\": [\n    {\n      \"day\": \"monday\",      //  Day where the exception occurs\n      \"from_time\": \"10:00\", // exception start time\n      \"to_time\": \"16:00\",   // exception end time\n      \"_destroy\": false,    //  \n      \"work_exception_intervals_attributes\": [\n        {\n          \"from_time\": \"10:00\", // The start time of the interval.\n          \"to_time\": \"16:00\",   // The end time of the interval.\n          \"_destroy\": false     //\n        }\n      ]\n    }\n  ],\n  \"work_shift_transactions_attributes\": [\n    {\n      \"attendance_transaction_id\": 948, // The ID of the attendance transaction.\n      \"from_time\": \"09:00\",             // The start time of the transaction.\n      \"to_time\": \"17:00\",               // The end time of the transaction.\n      \"_destroy\": false                 //\n    }\n  ],\n  \"overtime_exceptions_attributes\": [\n    {\n      \"day\": \"monday\",          // The day of the exception.\n      \"from_time\": \"17:00\",     // The start time of the exception.\n      \"to_time\": \"19:00\",       // The end time of the exception.\n      \"rate\": 1.5,              // The rate for the overtime.\n      \"allowances_rate\": 1.25,  // The allowances rate for the overtime.\n      \"_destroy\": false         //\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/104/work_shifts/:work_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","work_shifts",":work_shift_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"work_shift.work_shift_intervals"}],"variable":[{"type":"any","value":"44550","key":"work_shift_id"}]}},"response":[{"id":"d2b0cf6f-88d1-42c0-852e-b65947f6823b","name":"Update Branch Work Shift","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"type\": \"WorkShift\",\n  \"morning_leave_after\": 3\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/work_shifts/:work_shift_id?include[]=work_shift.work_shift_intervals&include[]=work_shift.work_exceptions&include[]=work_shift.work_shift_transactions&include[]=work_shift.work_exceptions.work_exception_intervals","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","work_shifts",":work_shift_id"],"query":[{"key":"include[]","value":"work_shift.work_shift_intervals"},{"key":"include[]","value":"work_shift.work_exceptions"},{"key":"include[]","value":"work_shift.work_shift_transactions"},{"key":"include[]","value":"work_shift.work_exceptions.work_exception_intervals"}],"variable":[{"key":"work_shift_id","value":"44550"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"d10e32fee39783f2d334111956ddf4c0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ed715586-354e-498c-a462-f3f1efce5ea2"},{"key":"X-Runtime","value":"0.178810"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"645"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 44550,\n    \"name\": \"Morning Shift\",\n    \"color\": \"#FF0000\",\n    \"type\": \"WorkShift\",\n    \"flex_leave_after\": 1,\n    \"overtime_after\": 1,\n    \"morning_leave_after\": 3,\n    \"early_out_leave_before\": 1,\n    \"interval_margin_percentage\": 10,\n    \"exclude_transaction\": false,\n    \"apply_overtime_during_holidays\": true,\n    \"days_off\": [\n        \"friday\",\n        \"saturday\"\n    ],\n    \"from_time\": \"09:00\",\n    \"to_time\": \"17:00\",\n    \"work_shift_interval\": [\n        {\n            \"id\": 45990,\n            \"from_time\": \"09:00\",\n            \"to_time\": \"17:00\",\n            \"required_hours\": 8\n        }\n    ],\n    \"work_exceptions\": [\n        {\n            \"id\": 3186,\n            \"day\": \"monday\",\n            \"from_time\": \"10:00\",\n            \"to_time\": \"16:00\",\n            \"work_exception_intervals\": [\n                {\n                    \"id\": 2690,\n                    \"from_time\": \"10:00\",\n                    \"to_time\": \"16:00\",\n                    \"required_hours\": null\n                }\n            ]\n        }\n    ],\n    \"work_shift_transactions\": [\n        {}\n    ]\n}"}],"_postman_id":"3d8adccf-f603-457c-8a08-f60ba541063a"},{"name":"Destroy Branch Work Shift","id":"aea0ece9-8cf9-48db-ab06-1b69f8cd38ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches/104/work_shifts/:work_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","104","work_shifts",":work_shift_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"5dc980e8-d44c-4b99-9dd2-7d9ce92a1a10","type":"any","value":"44549","key":"work_shift_id"}]}},"response":[],"_postman_id":"aea0ece9-8cf9-48db-ab06-1b69f8cd38ec"}],"id":"1bcf5d9a-bbfa-467e-a416-4c14dbd5cfb5","_postman_id":"1bcf5d9a-bbfa-467e-a416-4c14dbd5cfb5","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Branch Employee Shifts","item":[{"name":"List Branch Employee Shifts","id":"1fa095e0-d9d3-439e-969b-0eba3ba15615","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//employee_shifts","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","employee_shifts"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"2"},{"disabled":true,"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"employee_shift.work_shift"},{"disabled":true,"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: work_shift_id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: from_date, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: to_date, dir: asc}"},{"disabled":true,"key":"filter[from_date][from]","value":"2024-10-20"},{"disabled":true,"key":"filter[from_date][to]","value":"2024-10-21"},{"disabled":true,"key":"filter[to_date][from]","value":"2024-10-20"}],"variable":[]}},"response":[{"id":"e2f53565-6436-479e-82e1-04e0c9918477","name":"List Branch Emoloyees Shifts","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employee_shifts","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employee_shifts"],"query":[{"key":"page","value":"2","disabled":true},{"key":"limit","value":"3","disabled":true},{"key":"include[]","value":"employee_shift.work_shift","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","disabled":true},{"key":"order[]","value":"{column: employee_id, dir: asc}","disabled":true},{"key":"order[]","value":"{column: work_shift_id, dir: asc}","disabled":true},{"key":"order[]","value":"{column: from_date, dir: asc}","disabled":true},{"key":"order[]","value":"{column: to_date, dir: asc}","disabled":true},{"key":"filter[from_date][from]","value":"2024-10-20","disabled":true},{"key":"filter[from_date][to]","value":"2024-10-21","disabled":true},{"key":"filter[to_date][from]","value":"2024-10-20","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5695f8df89ce6fae044a2fc6fca9cbc9\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bac0cb97-65fb-4590-9f20-90bfb4d4e7f1"},{"key":"X-Runtime","value":"0.529793"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"231"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 1,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 13304870,\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"work_shift\": {\n                \"id\": 13697\n            },\n            \"from_date\": \"2024-10-20T21:00:00.000Z\",\n            \"to_date\": \"2024-10-26T21:00:00.000Z\"\n        }\n    ]\n}"}],"_postman_id":"1fa095e0-d9d3-439e-969b-0eba3ba15615"},{"name":"Show Branch Employee Shifts","id":"44b57068-1e69-47b7-95a5-27c13850c209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches//employee_shifts/:work_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","employee_shifts",":work_shift_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"employee_shift.work_shift"}],"variable":[{"type":"any","value":"","key":"work_shift_id"}]}},"response":[{"id":"c3e23e1a-4155-44b1-b30d-1c23e758107e","name":"Show Branch Employee Shifts","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/employee_shifts/:work_shift_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","employee_shifts",":work_shift_id"],"query":[{"key":"include[]","value":"employee_shift.work_shift","disabled":true}],"variable":[{"key":"work_shift_id","value":"13304870"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6fe27af94580e943d9a570493d0d2f80\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"5d478277-5560-4a86-9bea-d64299119030"},{"key":"X-Runtime","value":"0.057781"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"140"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13304870,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"work_shift\": {\n        \"id\": 13697\n    },\n    \"from_date\": \"2024-10-20T21:00:00.000Z\",\n    \"to_date\": \"2024-10-26T21:00:00.000Z\"\n}"}],"_postman_id":"44b57068-1e69-47b7-95a5-27c13850c209"},{"name":"Create Employee Shift","id":"51d603ed-3bb5-4245-90cf-bda2e4764050","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,        // The ID of the employee\n    \"work_shift_id\": 44546,     // The ID of the work shift\n    \"from_date\": \"2024-11-11\",  // The start of the work shift date\n    \"to_date\": \"2024-12-11\"     // The end of the work shift date\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches//employee_shifts/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","employee_shifts",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"cc2a3ddb-3ce0-403f-b4cf-0c06553fb069","name":"Create Employee Shift","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,\n    \"work_shift_id\": 44546,\n    \"from_date\": \"2024-11-11\",\n    \"to_date\": \"2024-12-11\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/104/employee_shifts/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"80df4d98f2e59f9789e7820f89c8022e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"2303c693-8210-442b-a237-860d3a464207"},{"key":"X-Runtime","value":"0.425829"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"140"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13307347,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"work_shift\": {\n        \"id\": 44546\n    },\n    \"from_date\": \"2024-11-11T00:00:00.000Z\",\n    \"to_date\": \"2024-12-11T00:00:00.000Z\"\n}"}],"_postman_id":"51d603ed-3bb5-4245-90cf-bda2e4764050"},{"name":"Update Employee Shift","id":"90eb3650-44da-453f-8d59-2f3b1d1dfaad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,        // The ID of the employee\n    \"work_shift_id\": 44546,     // The ID of the work shift\n    \"from_date\": \"2024-11-11\",  // The start of the work shift date\n    \"to_date\": \"2024-12-11\"     // The end of the work shift date\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches//employee_shifts/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","employee_shifts",""],"host":["app.zenhr.com"],"query":[],"variable":[]}},"response":[{"id":"c6ffdf34-eb1b-4b28-abae-dac39c01f4ed","name":"Create Employee Shift","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 1159,\n    \"work_shift_id\": 44546,\n    \"from_date\": \"2024-11-11\",\n    \"to_date\": \"2024-12-11\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/104/employee_shifts/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"80df4d98f2e59f9789e7820f89c8022e\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"2303c693-8210-442b-a237-860d3a464207"},{"key":"X-Runtime","value":"0.425829"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"140"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13307347,\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"work_shift\": {\n        \"id\": 44546\n    },\n    \"from_date\": \"2024-11-11T00:00:00.000Z\",\n    \"to_date\": \"2024-12-11T00:00:00.000Z\"\n}"}],"_postman_id":"90eb3650-44da-453f-8d59-2f3b1d1dfaad"},{"name":"Delete Employee Shift","id":"9cefea5e-05a5-4f1f-a0af-bf240185ab84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.zenhr.com/api/v3/branches//employee_shifts/:employee_shift_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","employee_shifts",":employee_shift_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"type":"any","value":"","key":"employee_shift_id"}]}},"response":[],"_postman_id":"9cefea5e-05a5-4f1f-a0af-bf240185ab84"}],"id":"0564bba5-5646-4829-96b0-d4c6601fba15","_postman_id":"0564bba5-5646-4829-96b0-d4c6601fba15","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Attendance Details","item":[{"name":"Create Attendance Details","id":"7504a1c6-407a-4b3e-a9c0-7325e5ebafb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \"employee_id\": 1159, // ID of the employee\n  \"request_time\": \"2024-12-05 08:00:00\", // Clocking time\n  \"request_type\": \"in\", // Clocking :in or :out\n  \"attendance_transaction_id\": 786, // Attendance transaction defined on the branch\n  \"latitude\": 37.7749, // Clocking location latitude\n  \"longitude\": -122.4194 // Clocking location longitude\n}","options":{"raw":{"language":"json"}}},"url":"https://aiapi.zenhr.com/api/v3/branches//attendance_details","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","attendance_details"],"host":["aiapi","zenhr","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7504a1c6-407a-4b3e-a9c0-7325e5ebafb5"},{"name":"Bulk Insert Attendance Details","id":"2b25a137-cd67-4313-9f63-af12ba8da032","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance_details\": [ // This list has a maximum limit of 5000 attendance details\n        {\n            \"request_time\": \"2024-12-23 23:57:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n            \"request_type\": 0,                           // Clocking type: [0-> in, 1-> out]\n            \"employee_id\": 390630,                       // ID of the employee\n            \"attendance_transaction_id\": 8854,           // Attendance transaction defined on the branch (defaults to clocking function if not set)\n            \"added_by\": 2,                               // Optional: Added by whom (defaults to 0/hr) [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n            \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n            \"longitude\": -122.4194                       // Optional:  Clocking location longitude\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://aiapi.zenhr.com/api/v3/branches//attendance_details/bulk_insert","description":"<h1 id=\"bulk-insert-attendance-details\">Bulk Insert Attendance Details</h1>\n<p><strong>Auth &amp; Scopes</strong></p>\n<ul>\n<li><p>OAuth 2.0 Bearer token (Authorization Code) <a href=\"https://api-docs.zenhr.com/\">ZenHR APIs Documentation</a></p>\n</li>\n<li><p>Required scopes: <code>read:employee</code>, <code>read:branch</code>, <code>bulk_insert:attendance_detail</code>. <a href=\"https://api-docs.zenhr.com/\">ZenHR APIs Documentation</a></p>\n</li>\n</ul>\n<h2 id=\"environment-selection-important\">Environment Selection (Important)</h2>\n<p>Your <strong>Base URL</strong> depends on the ZenHR server you log into:</p>\n<ul>\n<li><p><strong>If you log in using</strong> <code>sa.zenhr.com</code> (KSA server):<br />  <strong>Use Base URL:</strong> <code>https://aiapisa.zenhr.com</code></p>\n</li>\n<li><p><strong>If you log in using</strong> <code>app.zenhr.com</code> (Global server):<br />  <strong>Use Base URL:</strong> <code>https://aiapi.zenhr.com</code></p>\n</li>\n</ul>\n<p>If the UI is accessed via <strong>sa.zenhr.com</strong>, all API calls must use <strong>aiapisa.zenhr.com</strong>.<br />If the UI is accessed via <strong>app.zenhr.com</strong>, all API calls must use <strong>aiapi.zenhr.com</strong>.</p>\n<h2 id=\"what-you-need-before-calling\">What you need before calling</h2>\n<ol>\n<li><p><strong>Access token</strong><br /> Follow the OAuth flow in the ZenHR API intro to obtain a bearer token. <a href=\"https://api-docs.zenhr.com/\">ZenHR APIs Documentation</a></p>\n</li>\n<li><p><strong>Branch ID (<strong><strong><code>:branch_id</code></strong></strong>)</strong><br /> Call “List Branches” and pick the target branch <code>id</code>. <a href=\"https://api-docs.zenhr.com/#82d6050b-5b67-4f85-8433-535c60d01b44\">https://api-docs.zenhr.com/#82d6050b-5b67-4f85-8433-535c60d01b44</a><br /> Example: <code>GET /api/v3/branches</code></p>\n</li>\n<li><p><strong>Employee ID (<strong><strong><code>employee_id</code></strong></strong>)</strong><br /> From “Employee Master Data (List Employees)”, select the internal <code>id</code> of each employee you are clocking. (Not the <strong>Employment number</strong>) <a href=\"https://api-docs.zenhr.com/#69ae83c8-75b9-431f-9650-4728e630001c\">https://api-docs.zenhr.com/#69ae83c8-75b9-431f-9650-4728e630001c</a></p>\n</li>\n<li><p><strong>Attendance Transaction ID (<strong><strong><code>attendance_transaction_id</code></strong></strong>)</strong><br /> From ZenHR UI:<br /> System Preferences → search <strong>Functions</strong> → open the desired function (e.g., Clocking / Overtime function) → copy the <strong>ID</strong> from the page URL.</p>\n</li>\n</ol>\n<blockquote>\n<p>This ID identifies which function the punch is recorded against. </p>\n</blockquote>\n<h2 id=\"request-body\">Request body</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Top-level field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>attendance_details</code></td>\n<td>array</td>\n<td>yes</td>\n<td>Array of up to <strong>5,000</strong> items per request (recommended batching).</td>\n</tr>\n</tbody>\n</table>\n</div><p>Each <code>attendance_detail</code> object:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>request_time</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Clocking timestamp. Format: <code>\"%Y-%m-%d %H:%M:%S %z\"</code>. If you omit <code>%z</code>, timezone defaults to <strong>UTC</strong>.</td>\n</tr>\n<tr>\n<td><code>request_type</code></td>\n<td>integer</td>\n<td>yes</td>\n<td><code>0</code> = in, <code>1</code> = out.</td>\n</tr>\n<tr>\n<td><code>employee_id</code></td>\n<td>integer</td>\n<td>yes</td>\n<td>From Employee Master Data list.</td>\n</tr>\n<tr>\n<td><code>attendance_transaction_id</code></td>\n<td>integer</td>\n<td>yes</td>\n<td>From ZenHR UI (Functions) as described above.</td>\n</tr>\n<tr>\n<td><code>added_by</code></td>\n<td>integer</td>\n<td>no</td>\n<td>Source tag. Typical values include: <code>2</code> file import, <code>4</code> auto_generated, <code>5</code> missing_punch, <code>6</code> native_integration. (If omitted, treated as system default.)</td>\n</tr>\n<tr>\n<td><code>latitude</code></td>\n<td>number</td>\n<td>no</td>\n<td>Optional punch latitude.</td>\n</tr>\n<tr>\n<td><code>longitude</code></td>\n<td>number</td>\n<td>no</td>\n<td>Optional punch longitude.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"behavior-limits-and-best-practices\">Behavior, limits, and best practices</h2>\n<ul>\n<li><p><strong>Asynchronous processing:</strong> API returns <code>202 Accepted</code> while records are queued and applied shortly after.</p>\n</li>\n<li><p><strong>Batch size:</strong> Hard cap per call is enforced. Keep batches ≤ <strong>5,000</strong>. If you exceed, you’ll get a limit error (see below).</p>\n</li>\n<li><p><strong>Clocking pairs:</strong> It’s your responsibility to send valid <code>in/out</code> sequences per employee and day.</p>\n</li>\n<li><p><strong>Timezones:</strong> Always include the <code>%z</code> offset; if omitted, UTC is assumed.</p>\n</li>\n<li><p><strong>Deduplication:</strong> Prevent duplicate punches on your side (idempotency key is not provided). A safe guard is to avoid resending the same <code>(employee_id, request_time, request_type)</code> combination.</p>\n</li>\n<li><p><strong>Throttling:</strong> If ingesting large volumes, pace requests and parallelize by branch while respecting rate limits.</p>\n</li>\n</ul>\n<h2 id=\"common-responses--errors\">Common responses &amp; errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>When</th>\n<th>Body (abridged)</th>\n<th>Action</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>202 Accepted</td>\n<td>Batch queued</td>\n<td><code>{\"message\":\"Processing\",\"details\":\"…being processed…\"}</code></td>\n<td>No action; allow time to reflect.</td>\n</tr>\n<tr>\n<td>400 Bad Request</td>\n<td>Validation error</td>\n<td><code>{\"error\":{\"status\":\"bad_request\",\"message\":\"Validation error\",\"errors\":{\"en\":[\"request_type must be an integer\"]}}}</code></td>\n<td>Fix types/values; re-submit only failed records.</td>\n</tr>\n<tr>\n<td>401/403 Unauthorized</td>\n<td>Missing/invalid token or scope</td>\n<td><code>{\"error\":\"Access Denied\"}</code></td>\n<td>Ensure token is valid and includes <code>read:employee read:branch bulk_insert:attendance_detail</code>. <a href=\"https://api-docs.zenhr.com/\">ZenHR APIs Documentation</a></td>\n</tr>\n<tr>\n<td>413/422/429 Limit exceeded</td>\n<td>Too many records</td>\n<td><code>{\"message\":\"Request limit exceeded\",\"details\":\"The number of records…exceeds the limit\"}</code></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","attendance_details","bulk_insert"],"host":["aiapi","zenhr","com"],"query":[],"variable":[]}},"response":[{"id":"51c42aa0-bbb8-4205-8e94-3005a6e2e4d5","name":"Accepted Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance_details\": [ // This list has a maximum limit of 5000 attendance details\n        {\n            \"request_time\": \"2024-12-23 23:57:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n            \"request_type\": 0,                           // Clocking type: [0-> in, 1-> out]\n            \"employee_id\": 390630,                       // ID of the employee\n            \"attendance_transaction_id\": 8854,           // Optional: Attendance transaction defined on the branch (defaults to clocking function if not set)\n            \"added_by\": 2,                               // Optional: Added by whom (defaults to 0/hr) [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n            \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n            \"longitude\": -122.4194                       // Optional:  Clocking location longitude\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/aiapi/v3/branches/:branch_id/attendance_details/bulk_insert","protocol":"https","host":["app.zenhr.com"],"path":["aiapi","v3","branches",":branch_id","attendance_details","bulk_insert"],"variable":[{"key":"branch_id","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Processing\",\n    \"details\": \"1 records are being processed, it may take some time to reflect in the system\"\n}"},{"id":"25c4fb2b-55bb-4ada-a5b7-f8d62107069c","name":"Request Limit Exceeded","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance_details\": [ // This list has a maximum limit of 5000 attendance details\n        {\n            \"request_time\": \"2024-12-23 23:57:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n            \"request_type\": 0,                           // Clocking type: [0-> in, 1-> out]\n            \"employee_id\": 390630,                       // ID of the employee\n            \"attendance_transaction_id\": 8854,           // Optional: Attendance transaction defined on the branch (defaults to clocking function if not set)\n            \"added_by\": 2,                               // Optional: Added by whom (defaults to 0/hr) [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n            \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n            \"longitude\": -122.4194                       // Optional:  Clocking location longitude\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/aiapi/v3/branches/:branch_id/attendance_details/bulk_insert","protocol":"https","host":["app.zenhr.com"],"path":["aiapi","v3","branches",":branch_id","attendance_details","bulk_insert"],"variable":[{"key":"branch_id","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request limit exceeded\",\n    \"details\": \"The number of records being inserted exceeds the limit of 1\"\n}"},{"id":"08299a79-47b2-401d-8c2a-1ed24c251c9a","name":"Access Denied","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance_details\": [ // This list has a maximum limit of 5000 attendance details\n        {\n            \"request_time\": \"2024-12-23 23:57:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n            \"request_type\": 0,                           // Clocking type: [0-> in, 1-> out]\n            \"employee_id\": 390630,                       // ID of the employee\n            \"attendance_transaction_id\": 8854,           // Optional: Attendance transaction defined on the branch (defaults to clocking function if not set)\n            \"added_by\": 2,                               // Optional: Added by whom (defaults to 0/hr) [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n            \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n            \"longitude\": -122.4194                       // Optional:  Clocking location longitude\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/aiapi/v3/branches/:branch_id/attendance_details/bulk_insert","protocol":"https","host":["app.zenhr.com"],"path":["aiapi","v3","branches",":branch_id","attendance_details","bulk_insert"],"variable":[{"key":"branch_id","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Access Denied\"\n}"},{"id":"af4ef36b-773c-41d4-a5ef-9cd0d5a5c9ca","name":"Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"attendance_details\": [ // This list has a maximum limit of 5000 attendance details\n        {\n            \"request_time\": \"2024-12-23 23:57:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n            \"request_type\": 0,                           // Clocking type: [0-> in, 1-> out]\n            \"employee_id\": 390630,                       // ID of the employee\n            \"attendance_transaction_id\": 8854,           // Optional: Attendance transaction defined on the branch (defaults to clocking function if not set)\n            \"added_by\": 2,                               // Optional: Added by whom (defaults to 0/hr) [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n            \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n            \"longitude\": -122.4194                       // Optional:  Clocking location longitude\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/aiapi/v3/branches/:branch_id/attendance_details/bulk_insert","protocol":"https","host":["app.zenhr.com"],"path":["aiapi","v3","branches",":branch_id","attendance_details","bulk_insert"],"variable":[{"key":"branch_id","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": \"bad_request\",\n        \"message\": \"Validation error\",\n        \"errors\": {\n            \"ar\": [\n                \"request_type يجب أن يكون عددًا صحيحًا\"\n            ],\n            \"en\": [\n                \"request_type must be an integer\"\n            ]\n        },\n        \"object\": null\n    }\n}"}],"_postman_id":"2b25a137-cd67-4313-9f63-af12ba8da032"},{"name":"Latest Attendance Details Create","id":"e78d9314-bdf7-42f4-8a8f-8d8553dc0f02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 390630,           // ID of the employee\n    \"attendance_date\": \"2024-12-24\", // Optional: Clocking date, format: \"%Y-%m-%d\"\n    \"attendance_detail\": {\n        \"request_time\": \"2024-11-04 23:59:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n        \"request_type\": 1,                           // Clocking type: [0-> in, 1-> out]\n        \"attendance_transaction_id\": 9765,           // Attendance transaction defined on the branch\n        \"added_by\": 2,                               // Added by whom [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n        \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n        \"longitude\": -122.4194                       // Optional: Clocking location longitude\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://aiapi.zenhr.com/api/v3/branches//attendance_details","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches","","attendance_details"],"host":["aiapi","zenhr","com"],"query":[],"variable":[]}},"response":[{"id":"75ec76bc-347a-4c02-b8ac-6e023bc99a93","name":"Accepted Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 390630,           // ID of the employee\n    \"attendance_date\": \"2024-12-24\", // Optional: Clocking date, format: \"%Y-%m-%d\"\n    \"attendance_detail\": {\n        \"request_time\": \"2024-11-04 23:59:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n        \"request_type\": 1,                           // Clocking type: [0-> in, 1-> out]\n        \"attendance_transaction_id\": 9765,           // Attendance transaction defined on the branch\n        \"added_by\": 2,                               // Added by whom [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n        \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n        \"longitude\": -122.4194                       // Optional: Clocking location longitude\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/aiapi/api/v3/branches/:branch_id/attendance_details","protocol":"https","host":["app.zenhr.com"],"path":["aiapi","api","v3","branches",":branch_id","attendance_details"],"variable":[{"key":"branch_id","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"3|408049|1730750802000000\",\n    \"request_time\": 1730750802000000,\n    \"request_type\": \"in\",\n    \"attendance_transaction_id\": 10129,\n    \"latitude\": \"21.59476884730252\",\n    \"longitude\": \"39.22940816065002\",\n    \"suspicious\": true,\n    \"added_by\": \"employee_mobile\",\n    \"interval_type\": null,\n    \"interval_id\": null,\n    \"created_at\": 1734939805499928,\n    \"updated_at\": 1734939805585829\n}"},{"id":"7892de95-377b-4fa3-91b7-e148d7e4ca4b","name":"Business Error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 390630,           // ID of the employee\n    \"attendance_date\": \"2024-12-24\", // Optional: Clocking date, format: \"%Y-%m-%d\"\n    \"attendance_detail\": {\n        \"request_time\": \"2024-11-04 23:59:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n        \"request_type\": 1,                           // Clocking type: [0-> in, 1-> out]\n        \"attendance_transaction_id\": 9765,           // Attendance transaction defined on the branch\n        \"added_by\": 2,                               // Added by whom [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n        \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n        \"longitude\": -122.4194                       // Optional: Clocking location longitude\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/aiapi/api/v3/branches/:branch_id/attendance_details","protocol":"https","host":["app.zenhr.com"],"path":["aiapi","api","v3","branches",":branch_id","attendance_details"],"variable":[{"key":"branch_id","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Validation error\",\n    \"errors\": {\n        \"messages\": [\n            \"Cannot proceed without closing the previous transaction\"\n        ]\n    },\n    \"status\": \"bad_request\"\n}"},{"id":"0923e2c8-ef40-4d4e-bb58-de4c2ede2fe1","name":"Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"employee_id\": 390630,           // ID of the employee\n    \"attendance_date\": \"2024-12-24\", // Optional: Clocking date, format: \"%Y-%m-%d\"\n    \"attendance_detail\": {\n        \"request_time\": \"2024-11-04 23:59:42 +0300\", // Clocking time, format: \"%Y-%m-%d %H:%M:%S %z\" note: if sent without %z timezone defaults to UTC\n        \"request_type\": 1,                           // Clocking type: [0-> in, 1-> out]\n        \"attendance_transaction_id\": 9765,           // Attendance transaction defined on the branch\n        \"added_by\": 2,                               // Added by whom [0-> hr, 1-> employee_web, 2->machine, 3->employee_mobile, 4->auto_generated, 5->missing_punch, 6->native_integration]\n        \"latitude\": 37.7749,                         // Optional: Clocking location latitude\n        \"longitude\": -122.4194                       // Optional: Clocking location longitude\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/aiapi/api/v3/branches/:branch_id/attendance_details","protocol":"https","host":["app.zenhr.com"],"path":["aiapi","api","v3","branches",":branch_id","attendance_details"],"variable":[{"key":"branch_id","value":""}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"status\": \"bad_request\",\n        \"message\": \"Validation error\",\n        \"errors\": {\n            \"ar\": [\n                \"request_time is missing\",\n                \"added_by is missing\"\n            ],\n            \"en\": [\n                \"request_time مفقود\",\n                \"added_by مفقود\"\n            ]\n        },\n        \"object\": {\n            \"attendance_record_id\": null,\n            \"request_time\": null,\n            \"request_type\": 0,\n            \"created_at\": null,\n            \"updated_at\": null,\n            \"attendance_transaction_id\": 10129,\n            \"latitude\": \"21.59476884730252\",\n            \"longitude\": \"39.22940816065002\",\n            \"suspicious\": \"false\",\n            \"added_by\": \"0\",\n            \"interval_type\": null,\n            \"interval_id\": null,\n            \"version\": null,\n            \"__deleted\": null,\n            \"work_location_id\": null,\n            \"uuid\": null,\n            \"id\": null\n        }\n    }\n}"}],"_postman_id":"e78d9314-bdf7-42f4-8a8f-8d8553dc0f02"},{"name":"List Attendance Records","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","pm.test(\"Validate the response against the schema\", function () {","    var jsonData = pm.response.json();","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"pagination\": {","                \"type\": \"object\",","                \"properties\": {","                    \"current_page\": { \"type\": \"number\" },","                    \"per_page\": { \"type\": \"number\" },","                    \"total_entries\": { \"type\": \"number\" },","                    \"total_pages\": { \"type\": \"number\" }","                },","                \"required\": [\"current_page\", \"per_page\", \"total_entries\", \"total_pages\"]","            },","            \"data\": {","                \"type\": \"array\",","                \"items\": {","                    \"type\": \"object\",","                    \"properties\": {","                        \"id\": { \"type\": \"number\" },","                        \"employee\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" },","                                \"employment_number\": { \"type\": [\"number\", \"null\"] }","                            },","                            \"required\": [\"id\", \"employment_number\"]","                        },","                        \"attendance_machine\": {","                            \"type\": \"object\",","                            \"properties\": {","                                \"id\": { \"type\": \"number\" }","                            },","                            \"required\": [\"id\"]","                        },","                        \"attendance_date\": { \"type\": \"string\" },","                        \"entry_time\": { \"type\": [\"string\", \"null\"] },","                        \"exit_time\": { \"type\": [\"string\", \"null\"] },","                        \"card_id\": { \"type\": \"string\" },","                        \"work_shift_id\": { \"type\": [\"number\", \"null\"] },","                        \"suspicious\": { \"type\": \"boolean\" },","                        \"clocking_times\": { \"type\": [\"array\", \"null\"] },","                        \"missing_status\": { \"type\": \"string\" },","                        \"number_of_missings\": { \"type\": \"number\" },","            \"first_in\": {","                \"type\":[\"object\", \"null\"],","                \"properties\": {","                    \"single_interval\": { \"type\": \"string\" }","                },","                \"required\": [\"single_interval\"]","            },","            \"last_out\": {","                \"type\": [\"object\", \"null\"],","                \"properties\": {","                    \"single_interval\": { \"type\": \"string\" }","                },","                \"required\": [\"single_interval\"]","            },","                        \"created_at\": { \"type\": \"string\" },","                        \"updated_at\": { \"type\": \"string\" }","                    },","                    \"required\": [\"id\", \"employee\", \"attendance_machine\", \"attendance_date\", \"entry_time\", \"exit_time\", \"card_id\", \"suspicious\", \"missing_status\", \"number_of_missings\", \"created_at\", \"updated_at\"]","                }","            }","        },","        \"required\": [\"pagination\", \"data\"]","    };","","    pm.expect(jsonData).to.be.jsonSchema(schema);","});","","var jsonData = pm.response.json();","var attendanceRecordId = jsonData.data[0].id;","pm.environment.set(\"attendance_record_id\", attendanceRecordId);"],"type":"text/javascript","id":"3b4f2458-f27c-43d1-be03-06d323dd43bc"}}],"id":"a33e4ca2-f367-4521-9c75-eb2642eef0c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/attendance_records","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","attendance_records"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"2"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"attendance_record.attendance_details"},{"disabled":true,"key":"include[]","value":"attendance_record.attendance_machine"},{"disabled":true,"key":"filter[id][]","value":"1"},{"disabled":true,"key":"filter[employee_id][]","value":"1154"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[attendance_date][from]","value":"2022-12-11"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[attendance_date][to]","value":"2022-12-30"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][from]","value":"2022-12-30"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[created_at][to]","value":"2022-12-30"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][from]","value":"2022-12-30"},{"disabled":true,"description":{"content":"<p>format YYYY-MM-DD</p>\n","type":"text/plain"},"key":"filter[updated_at][to]","value":"2022-12-30"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: attendance_date, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: entry_time, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: exit_time, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: employee_id, dir: desc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: card_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: work_shift_id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: attendance_machine_id, dir: asc}"}],"variable":[{"id":"c20b3090-c0ba-4358-bc44-a30b8b5d677c","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"6d59fcbb-b3f0-40e2-8e4f-4623c9a8ad18","name":"List Attendance Records","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/attendance_records?from_date=2018-01-01&to_date=2020-01-01","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","attendance_records"],"query":[{"key":"from_date","value":"2018-01-01"},{"key":"to_date","value":"2020-01-01"},{"key":"include","value":"attendance_record.attendance_details, attendance_record.attendance_machine","disabled":true},{"key":"include","value":"attendance_record.attendance_machine, attendance_record.attendance_details","disabled":true},{"key":"attendance_details[attendance_transaction_id]","value":"786","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"33bebb0ba8f7c38a8e527d2acfbce1d0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"84e71e03-7ac0-41e9-8522-6388d04a739a"},{"key":"X-Runtime","value":"0.169680"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"11119"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 18003,\n        \"total_pages\": 721\n    },\n    \"data\": [\n        {\n            \"id\": 1,\n            \"employee\": {\n                \"id\": 1152,\n                \"employment_number\": 8\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-12-03\",\n            \"entry_time\": \"2018-12-03T06:00:00.000Z\",\n            \"exit_time\": \"2018-12-03T17:00:00.000Z\",\n            \"card_id\": \"8\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-12-03T18:27:33.684Z\",\n            \"updated_at\": \"2021-12-14T05:52:40.553Z\"\n        },\n        {\n            \"id\": 3,\n            \"employee\": {\n                \"id\": 1154,\n                \"employment_number\": 3\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-12-03\",\n            \"entry_time\": \"2018-12-03T07:00:00.000Z\",\n            \"exit_time\": \"2018-12-03T16:00:00.000Z\",\n            \"card_id\": \"3\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-12-03T18:43:12.427Z\",\n            \"updated_at\": \"2021-12-13T18:36:29.212Z\"\n        },\n        {\n            \"id\": 232,\n            \"employee\": {\n                \"id\": 1152,\n                \"employment_number\": 8\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2017-11-01\",\n            \"entry_time\": \"2017-11-01T07:40:00.000Z\",\n            \"exit_time\": \"2017-11-01T16:45:00.000Z\",\n            \"card_id\": \"8\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2017-11-07T15:44:37.543Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.021Z\"\n        },\n        {\n            \"id\": 233,\n            \"employee\": {\n                \"id\": 1154,\n                \"employment_number\": 3\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2017-11-07\",\n            \"entry_time\": \"2017-11-07T08:55:00.000Z\",\n            \"exit_time\": \"2017-11-07T17:55:00.000Z\",\n            \"card_id\": \"3\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2017-11-07T15:58:03.243Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.038Z\"\n        },\n        {\n            \"id\": 238,\n            \"employee\": {\n                \"id\": 1155,\n                \"employment_number\": null\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2017-11-15\",\n            \"entry_time\": \"2017-11-15T06:55:00.000Z\",\n            \"exit_time\": \"2017-11-15T15:25:00.000Z\",\n            \"card_id\": \"4\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2017-11-15T21:46:00.906Z\",\n            \"updated_at\": \"2018-12-03T16:24:05.119Z\"\n        },\n        {\n            \"id\": 1222,\n            \"employee\": {\n                \"id\": 12237,\n                \"employment_number\": 147\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-12-02\",\n            \"entry_time\": \"2018-12-02T07:00:00.000Z\",\n            \"exit_time\": \"2018-12-02T15:00:00.000Z\",\n            \"card_id\": \"6121\",\n            \"work_shift_id\": 25873,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-12-06T14:56:53.768Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.188Z\"\n        },\n        {\n            \"id\": 1223,\n            \"employee\": {\n                \"id\": 12237,\n                \"employment_number\": 147\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-12-03\",\n            \"entry_time\": null,\n            \"exit_time\": null,\n            \"card_id\": \"6121\",\n            \"work_shift_id\": 25873,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-12-06T15:01:59.885Z\",\n            \"updated_at\": \"2023-04-25T14:06:36.277Z\"\n        },\n        {\n            \"id\": 12799,\n            \"employee\": {\n                \"id\": 1152,\n                \"employment_number\": 8\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-04-12\",\n            \"entry_time\": \"2018-04-12T05:00:00.000Z\",\n            \"exit_time\": \"2018-04-12T13:00:00.000Z\",\n            \"card_id\": \"8\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-04-12T14:58:42.936Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.072Z\"\n        },\n        {\n            \"id\": 68174,\n            \"employee\": {\n                \"id\": 1152,\n                \"employment_number\": 8\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-11-12\",\n            \"entry_time\": \"2018-11-12T07:00:00.000Z\",\n            \"exit_time\": \"2018-11-12T12:00:00.000Z\",\n            \"card_id\": \"8\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-11-12T12:25:04.893Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.091Z\"\n        },\n        {\n            \"id\": 75563,\n            \"employee\": {\n                \"id\": 10732,\n                \"employment_number\": 127\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-11-01\",\n            \"entry_time\": \"2018-11-01T19:00:00.000Z\",\n            \"exit_time\": \"2018-11-02T06:00:00.000Z\",\n            \"card_id\": \"20\",\n            \"work_shift_id\": 187,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-11-19T12:12:17.215Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.111Z\"\n        },\n        {\n            \"id\": 75564,\n            \"employee\": {\n                \"id\": 10564,\n                \"employment_number\": 124\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-12-02\",\n            \"entry_time\": \"2018-12-02T06:03:00.000Z\",\n            \"exit_time\": \"2018-12-02T18:12:00.000Z\",\n            \"card_id\": \"258\",\n            \"work_shift_id\": 25873,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-11-19T12:17:16.751Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.128Z\"\n        },\n        {\n            \"id\": 75565,\n            \"employee\": {\n                \"id\": 11490,\n                \"employment_number\": 137\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2018-11-20\",\n            \"entry_time\": \"2018-11-20T06:00:00.000Z\",\n            \"exit_time\": \"2018-11-20T13:00:00.000Z\",\n            \"card_id\": \"1\",\n            \"work_shift_id\": 25873,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2018-11-19T12:20:00.984Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.145Z\"\n        },\n        {\n            \"id\": 161781,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-04\",\n            \"entry_time\": \"2019-02-04T13:08:52.910Z\",\n            \"exit_time\": \"2019-02-04T13:09:47.610Z\",\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"incomplete\",\n            \"number_of_missings\": 5,\n            \"first_in\": {\n                \"single_interval\": \"2019-02-04 15:08:52 +0200\"\n            },\n            \"last_out\": {\n                \"single_interval\": \"nil\"\n            },\n            \"created_at\": \"2019-02-04T11:41:17.462Z\",\n            \"updated_at\": \"2023-08-30T13:06:23.946Z\"\n        },\n        {\n            \"id\": 164753,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-06\",\n            \"entry_time\": \"2023-08-26T21:00:00.000Z\",\n            \"exit_time\": null,\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"incomplete\",\n            \"number_of_missings\": 0,\n            \"first_in\": {\n                \"single_interval\": \"2023-08-27 00:00:00 +0300\"\n            },\n            \"last_out\": {\n                \"single_interval\": \"nil\"\n            },\n            \"created_at\": \"2019-02-06T09:24:07.231Z\",\n            \"updated_at\": \"2023-08-27T15:39:38.768Z\"\n        },\n        {\n            \"id\": 165038,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-07\",\n            \"entry_time\": \"2019-02-07T10:10:01.651Z\",\n            \"exit_time\": \"2019-02-07T12:43:17.158Z\",\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-07T10:10:01.665Z\",\n            \"updated_at\": \"2021-12-13T21:28:54.068Z\"\n        },\n        {\n            \"id\": 165042,\n            \"employee\": {\n                \"id\": 14249,\n                \"employment_number\": 162\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-07\",\n            \"entry_time\": \"2019-02-07T12:54:27.530Z\",\n            \"exit_time\": \"2019-02-07T12:54:30.420Z\",\n            \"card_id\": \"3111\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-07T12:54:27.537Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.229Z\"\n        },\n        {\n            \"id\": 169639,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-11\",\n            \"entry_time\": null,\n            \"exit_time\": \"2019-02-11T20:04:05.439Z\",\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-11T20:02:08.486Z\",\n            \"updated_at\": \"2023-04-03T10:46:41.128Z\"\n        },\n        {\n            \"id\": 176297,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-12\",\n            \"entry_time\": null,\n            \"exit_time\": \"2019-02-12T08:56:53.616Z\",\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-12T08:55:53.484Z\",\n            \"updated_at\": \"2023-04-10T12:33:34.403Z\"\n        },\n        {\n            \"id\": 177402,\n            \"employee\": {\n                \"id\": 11490,\n                \"employment_number\": 137\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-12\",\n            \"entry_time\": \"2019-02-12T06:00:00.000Z\",\n            \"exit_time\": \"2019-02-12T17:00:00.000Z\",\n            \"card_id\": \"1\",\n            \"work_shift_id\": 25873,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-12T15:16:06.265Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.267Z\"\n        },\n        {\n            \"id\": 177474,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-13\",\n            \"entry_time\": null,\n            \"exit_time\": null,\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-13T10:51:23.842Z\",\n            \"updated_at\": \"2023-05-16T11:48:28.594Z\"\n        },\n        {\n            \"id\": 178721,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-18\",\n            \"entry_time\": \"2019-02-18T10:39:20.395Z\",\n            \"exit_time\": \"2019-02-18T10:44:40.569Z\",\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": true,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-18T10:39:20.403Z\",\n            \"updated_at\": \"2022-12-26T11:57:58.060Z\"\n        },\n        {\n            \"id\": 178941,\n            \"employee\": {\n                \"id\": 3161,\n                \"employment_number\": 20\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-19\",\n            \"entry_time\": \"2019-02-19T12:00:28.241Z\",\n            \"exit_time\": \"2019-02-19T12:04:10.356Z\",\n            \"card_id\": \"15154\",\n            \"work_shift_id\": null,\n            \"suspicious\": true,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-19T12:00:28.248Z\",\n            \"updated_at\": \"2022-12-06T12:06:35.532Z\"\n        },\n        {\n            \"id\": 182825,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-14\",\n            \"entry_time\": \"2019-02-19T13:07:28.728Z\",\n            \"exit_time\": \"2019-02-19T14:05:12.309Z\",\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": true,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-19T13:07:28.736Z\",\n            \"updated_at\": \"2023-01-12T08:00:19.204Z\"\n        },\n        {\n            \"id\": 187654,\n            \"employee\": {\n                \"id\": 14816,\n                \"employment_number\": 170\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-01-09\",\n            \"entry_time\": \"2019-01-09T06:04:00.000Z\",\n            \"exit_time\": \"2019-01-09T11:26:00.000Z\",\n            \"card_id\": \"2021\",\n            \"work_shift_id\": 2764,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-20T15:08:11.577Z\",\n            \"updated_at\": \"2023-06-08T09:31:09.314Z\"\n        },\n        {\n            \"id\": 187808,\n            \"employee\": {\n                \"id\": 1159,\n                \"employment_number\": 9\n            },\n            \"attendance_machine\": {\n                \"id\": 1664\n            },\n            \"attendance_date\": \"2019-02-21\",\n            \"entry_time\": \"2019-02-21T09:25:59.319Z\",\n            \"exit_time\": \"2019-02-21T17:00:00.000Z\",\n            \"card_id\": \"9\",\n            \"work_shift_id\": null,\n            \"suspicious\": false,\n            \"clocking_times\": null,\n            \"missing_status\": \"complete\",\n            \"number_of_missings\": 0,\n            \"first_in\": null,\n            \"last_out\": null,\n            \"created_at\": \"2019-02-21T09:25:59.326Z\",\n            \"updated_at\": \"2023-03-14T08:05:46.743Z\"\n        }\n    ]\n}"}],"_postman_id":"a33e4ca2-f367-4521-9c75-eb2642eef0c1"},{"name":"Get Attendance Record","event":[{"listen":"test","script":{"exec":["// Test 1: Status code is 200","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","// Test 2: Response time is less than 200ms","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","// Test 3: Response should be valid JSON","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Test 4: Test for schema validity","pm.test(\"Test for schema validity\", function () {","    var schema = {","        \"type\": \"object\",","        \"properties\": {","            \"id\": { \"type\": \"number\" },","            \"employee\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" },","                    \"employment_number\": { \"type\": \"number\" }","                },","                \"required\": [\"id\", \"employment_number\"]","            },","            \"attendance_machine\": {","                \"type\": \"object\",","                \"properties\": {","                    \"id\": { \"type\": \"number\" }","                },","                \"required\": [\"id\"]","            },","            \"attendance_date\": { \"type\": \"string\" },","            \"entry_time\": { \"type\": \"string\" },","            \"exit_time\": { \"type\": \"string\" },","            \"card_id\": { \"type\": \"string\" },","            \"work_shift_id\": { \"type\": [\"null\", \"number\"] },","            \"suspicious\": { \"type\": \"boolean\" },","            \"clocking_times\": { \"type\": [\"null\", \"array\"] },","            \"missing_status\": { \"type\": \"string\" },","            \"number_of_missings\": { \"type\": \"number\" },","            \"first_in\": {","                \"type\": [\"object\", \"null\"],","                \"properties\": {","                    \"single_interval\": { \"type\": \"string\" }","                },","                \"required\": [\"single_interval\"]","            },","            \"last_out\": {","                \"type\": [\"object\", \"null\"],","                \"properties\": {","                    \"single_interval\": { \"type\": \"string\" }","                },","                \"required\": [\"single_interval\"]","            },","            \"created_at\": { \"type\": \"string\" },","            \"updated_at\": { \"type\": \"string\" }","        },","        \"required\": [","            \"id\",","            \"employee\",","            \"attendance_machine\",","            \"attendance_date\",","            \"entry_time\",","            \"exit_time\",","            \"card_id\",","            \"work_shift_id\",","            \"suspicious\",","            \"clocking_times\",","            \"missing_status\",","            \"number_of_missings\",","            \"first_in\",","            \"last_out\",","            \"created_at\",","            \"updated_at\"","        ]","    };","","    pm.expect(pm.response.json()).to.be.jsonSchema(schema);","});"],"type":"text/javascript","id":"e2fcbe40-90a8-4850-a830-4c69a5af2027"}}],"id":"23a9a586-26ed-4a11-8c5f-446d8eca0ac5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/attendance_records/:attendance_record_id","description":"<p>This API end-point will show an attendance record by branch_id and attendance record_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","attendance_records",":attendance_record_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"attendance_record.attendance_details"},{"disabled":true,"key":"include[]","value":"attendance_record.attendance_machine"}],"variable":[{"id":"f62dabde-2545-487b-9a47-85221acdeccf","type":"any","value":"","key":"branch_id"},{"id":"0fd5bc66-ee66-44d5-8fa1-74106f2c8af7","type":"any","value":"{{attendance_record_id}}","key":"attendance_record_id"}]}},"response":[{"id":"b53b7c0e-80ab-4201-b28b-9e1f87dbd52d","name":"Get Attendance Record","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/attendance_records/:attendance_record_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","attendance_records",":attendance_record_id"],"variable":[{"key":"branch_id","value":""},{"key":"attendance_record_id","value":"{{attendance_record_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"b9bf897797bb2a184bd08108563984ae\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d8de3079-c294-49e9-bedb-f3349ecbb647"},{"key":"X-Runtime","value":"0.055149"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"435"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"employee\": {\n        \"id\": 1152,\n        \"employment_number\": 8\n    },\n    \"attendance_machine\": {\n        \"id\": 1664\n    },\n    \"attendance_date\": \"2018-12-03\",\n    \"entry_time\": \"2018-12-03T06:00:00.000Z\",\n    \"exit_time\": \"2018-12-03T17:00:00.000Z\",\n    \"card_id\": \"8\",\n    \"work_shift_id\": null,\n    \"suspicious\": false,\n    \"clocking_times\": null,\n    \"missing_status\": \"complete\",\n    \"number_of_missings\": 0,\n    \"first_in\": null,\n    \"last_out\": null,\n    \"created_at\": \"2018-12-03T18:27:33.684Z\",\n    \"updated_at\": \"2021-12-14T05:52:40.553Z\"\n}"}],"_postman_id":"23a9a586-26ed-4a11-8c5f-446d8eca0ac5"}],"id":"86192f05-e639-4fbb-894b-a8cdeb637f9d","_postman_id":"86192f05-e639-4fbb-894b-a8cdeb637f9d","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Termination Setup","item":[{"name":"List Branch Termination Setups","id":"ae8b9afd-c025-4358-bd0d-cce0c852f6db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/termination_setups","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","termination_setups"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"3"},{"disabled":true,"key":"limit","value":"2"}],"variable":[{"id":"571e3014-49cb-4865-8cd4-3a7751ccf8d2","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"5e6e71c9-45b8-4f5b-a3aa-8dae8eac4390","name":"List Branch Termination Setups","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/termination_setups","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","termination_setups"],"query":[{"key":"page","value":"3","disabled":true},{"key":"limit","value":"2","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"641b9fa8a972d758003abcff41856b02\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"15cd8b76-9af1-4f00-a5ac-5720cb44f886"},{"key":"X-Runtime","value":"0.108869"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"3314"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 18,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 45421,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"created_at\": \"2024-12-01T10:16:30.354Z\",\n            \"updated_at\": \"2024-12-01T10:16:30.354Z\"\n        },\n        {\n            \"id\": 45422,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": 0,\n            \"name\": {\n                \"ar\": \"asd\",\n                \"en\": \"isdd\"\n            },\n            \"created_at\": \"2024-12-01T10:17:28.574Z\",\n            \"updated_at\": \"2024-12-01T10:17:28.574Z\"\n        },\n        {\n            \"id\": 45423,\n            \"category\": \"resign\",\n            \"branch_id\": 104,\n            \"ss_code\": 34522,\n            \"name\": {\n                \"ar\": \"asdd\",\n                \"en\": \"isddd\"\n            },\n            \"created_at\": \"2024-12-01T10:17:37.270Z\",\n            \"updated_at\": \"2024-12-01T10:18:25.375Z\"\n        },\n        {\n            \"id\": 382,\n            \"category\": \"resign\",\n            \"branch_id\": 104,\n            \"ss_code\": 2,\n            \"name\": {\n                \"ar\": \"استقالة\",\n                \"en\": \"resignation\"\n            },\n            \"created_at\": \"2017-09-26T07:01:52.256Z\",\n            \"updated_at\": \"2017-09-26T07:01:52.256Z\"\n        },\n        {\n            \"id\": 383,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": 2,\n            \"name\": {\n                \"ar\": \"إنهاء الخدمة\",\n                \"en\": \"termination\"\n            },\n            \"created_at\": \"2017-09-26T07:01:52.270Z\",\n            \"updated_at\": \"2017-09-26T07:01:52.270Z\"\n        },\n        {\n            \"id\": 384,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": 1,\n            \"name\": {\n                \"ar\": \"الموت\",\n                \"en\": \"death\"\n            },\n            \"created_at\": \"2017-09-26T07:01:52.282Z\",\n            \"updated_at\": \"2017-09-26T07:01:52.282Z\"\n        },\n        {\n            \"id\": 385,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": 7,\n            \"name\": {\n                \"ar\": \"أخرى\",\n                \"en\": \"other\"\n            },\n            \"created_at\": \"2017-09-26T07:01:52.294Z\",\n            \"updated_at\": \"2017-09-26T07:01:52.294Z\"\n        },\n        {\n            \"id\": 386,\n            \"category\": \"retire\",\n            \"branch_id\": 104,\n            \"ss_code\": 5,\n            \"name\": {\n                \"ar\": \"التقاعد المبكر\",\n                \"en\": \"early retirement\"\n            },\n            \"created_at\": \"2017-09-26T07:01:52.306Z\",\n            \"updated_at\": \"2017-09-26T07:01:52.306Z\"\n        },\n        {\n            \"id\": 387,\n            \"category\": \"retire\",\n            \"branch_id\": 104,\n            \"ss_code\": 5,\n            \"name\": {\n                \"ar\": \"تقاعد\",\n                \"en\": \"retirement\"\n            },\n            \"created_at\": \"2017-09-26T07:01:52.318Z\",\n            \"updated_at\": \"2017-09-26T07:01:52.318Z\"\n        },\n        {\n            \"id\": 6694,\n            \"category\": \"resign\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"requir\"\n            },\n            \"created_at\": \"2019-02-10T09:23:24.249Z\",\n            \"updated_at\": \"2019-02-10T09:23:44.618Z\"\n        },\n        {\n            \"id\": 19138,\n            \"category\": \"retire\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": \"m\",\n                \"en\": \"lkll\"\n            },\n            \"created_at\": \"2022-01-18T10:49:07.540Z\",\n            \"updated_at\": \"2022-01-18T10:49:07.540Z\"\n        },\n        {\n            \"id\": 20376,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"kjl\"\n            },\n            \"created_at\": \"2022-03-23T14:51:32.363Z\",\n            \"updated_at\": \"2022-03-23T14:51:32.363Z\"\n        },\n        {\n            \"id\": 22570,\n            \"category\": \"retire\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"It's Time to Relaxation\"\n            },\n            \"created_at\": \"2022-08-09T12:41:12.935Z\",\n            \"updated_at\": \"2022-08-09T12:41:12.935Z\"\n        },\n        {\n            \"id\": 45424,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": 3452,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"created_at\": \"2024-12-02T14:28:36.681Z\",\n            \"updated_at\": \"2024-12-02T14:28:36.681Z\"\n        },\n        {\n            \"id\": 45425,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": 3452,\n            \"name\": {\n                \"ar\": \"asd\",\n                \"en\": \"isdd\"\n            },\n            \"created_at\": \"2024-12-02T14:29:08.154Z\",\n            \"updated_at\": \"2024-12-02T14:29:08.154Z\"\n        },\n        {\n            \"id\": 29127,\n            \"category\": \"transfer\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Reason2\"\n            },\n            \"created_at\": \"2023-04-19T12:34:38.231Z\",\n            \"updated_at\": \"2023-04-19T12:34:38.231Z\"\n        },\n        {\n            \"id\": 39318,\n            \"category\": \"transfer\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"95129603\"\n            },\n            \"created_at\": \"2024-04-15T13:13:16.362Z\",\n            \"updated_at\": \"2024-04-15T13:13:16.362Z\"\n        },\n        {\n            \"id\": 45426,\n            \"category\": \"end\",\n            \"branch_id\": 104,\n            \"ss_code\": null,\n            \"name\": {\n                \"ar\": null,\n                \"en\": null\n            },\n            \"created_at\": \"2024-12-02T14:30:23.001Z\",\n            \"updated_at\": \"2024-12-02T14:30:23.001Z\"\n        }\n    ]\n}"}],"_postman_id":"ae8b9afd-c025-4358-bd0d-cce0c852f6db"},{"name":"Show Branch Termination Setup","id":"71e749fa-2442-4200-b3ab-ad88e313b5c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/termination_setups/:termination_setup_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","termination_setups",":termination_setup_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"65693131-e1b4-4525-8308-b2565731433f","type":"any","value":"","key":"branch_id"},{"id":"74b70e6d-b81e-4ff4-afae-c22e9a54856d","type":"any","value":"","key":"termination_setup_id"}]}},"response":[{"id":"2584660e-4213-438a-b066-c0f8bafba6a0","name":"Show Branch Termination Setup","originalRequest":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/104/termination_setups/382"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"bdf6a100f50511c14ab53b7918642d30\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"44e9c6f4-78ba-425d-ad6b-cade16b5ff5f"},{"key":"X-Runtime","value":"0.020960"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"188"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 382,\n    \"category\": \"resign\",\n    \"branch_id\": 104,\n    \"ss_code\": 2,\n    \"name\": {\n        \"ar\": \"استقالة\",\n        \"en\": \"resignation\"\n    },\n    \"created_at\": \"2017-09-26T07:01:52.256Z\",\n    \"updated_at\": \"2017-09-26T07:01:52.256Z\"\n}"}],"_postman_id":"71e749fa-2442-4200-b3ab-ad88e313b5c0"},{"name":"Create Branch Termination Setup","id":"cdde0c17-146b-477a-917c-d573917faa7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"category","value":"end","description":"<p>end retire resign transfer</p>\n","type":"text"},{"key":"ss_code","value":"3452","description":"<p>integer</p>\n","type":"text"},{"key":"name[en]","value":"isdd","description":"<p>string</p>\n","type":"text"},{"key":"name[ar]","value":"asd","description":"<p>string</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/termination_setups/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","termination_setups",""],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"30acfa81-b6e4-45ff-b940-dcd278c2151d","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"1c6d63e9-97f4-4b57-b509-e7fde1e0a7e4","name":"Create Branch Termination Setup","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"category","value":"end","description":"end retire resign transfer","type":"text"},{"key":"ss_code","value":"3452","description":"integer","type":"text"},{"key":"name[en]","value":"isdd","description":"string","type":"text"},{"key":"name[ar]","value":"asd","description":"string","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/termination_setups/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"c712c50e2839a2bba0482de696d335c6\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"33d52967-002c-4329-be02-f89143c665c9"},{"key":"X-Runtime","value":"0.098552"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"172"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 45427,\n    \"category\": \"end\",\n    \"branch_id\": 104,\n    \"ss_code\": 3452,\n    \"name\": {\n        \"ar\": \"asd\",\n        \"en\": \"isdd\"\n    },\n    \"created_at\": \"2024-12-08T12:30:20.779Z\",\n    \"updated_at\": \"2024-12-08T12:30:20.779Z\"\n}"}],"_postman_id":"cdde0c17-146b-477a-917c-d573917faa7e"}],"id":"b8cbdc3f-7566-48c7-8be4-8538798c994a","_postman_id":"b8cbdc3f-7566-48c7-8be4-8538798c994a","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Terminations","item":[{"name":"List Branch Terminations","id":"4926fa4b-d989-4df6-8597-6d25715034bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/terminations","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","terminations"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"page","value":"3"},{"disabled":true,"key":"limit","value":"5"},{"disabled":true,"key":"include[]","value":"termination.termination_setup"},{"disabled":true,"key":"include[]","value":"termination.employee"}],"variable":[{"id":"d9ba7d3a-5b3a-4263-b237-c4790a099f88","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"8b01a878-a2ff-44e7-b87d-2485117d276d","name":"List Branch Terminations","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/terminations","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","terminations"],"query":[{"key":"page","value":"3","disabled":true},{"key":"limit","value":"5","disabled":true},{"key":"include[]","value":"termination.termination_setup","disabled":true},{"key":"include[]","value":"termination.employee","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a40670f8f60e7da7ca903b4115a6aed7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d6dab235-7b6b-4634-b1f2-7c2f9ee92563"},{"key":"X-Runtime","value":"0.109131"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"6799"}],"cookie":[],"responseTime":null,"body":"{\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 348,\n        \"total_pages\": 14\n    },\n    \"data\": [\n        {\n            \"id\": 38429,\n            \"employee\": {\n                \"employee_id\": 98220\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2022-05-16\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": 1876188,\n            \"created_at\": \"2022-05-16T12:13:08.449Z\",\n            \"updated_at\": \"2022-05-16T12:13:20.353Z\"\n        },\n        {\n            \"id\": 273,\n            \"employee\": {\n                \"employee_id\": 2094\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2017-12-07\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2017-12-03T09:29:27.821Z\",\n            \"updated_at\": \"2017-12-03T09:29:27.821Z\"\n        },\n        {\n            \"id\": 9221,\n            \"employee\": {\n                \"employee_id\": 31576\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2020-03-06\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2020-02-26T14:54:02.964Z\",\n            \"updated_at\": \"2020-02-26T14:54:02.964Z\"\n        },\n        {\n            \"id\": 94887,\n            \"employee\": {\n                \"employee_id\": 243363\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 382\n            },\n            \"termination_date\": \"2022-12-31\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": 4518585,\n            \"created_at\": \"2023-08-21T12:04:40.649Z\",\n            \"updated_at\": \"2023-08-21T12:04:52.473Z\"\n        },\n        {\n            \"id\": 106113,\n            \"employee\": {\n                \"employee_id\": 15924\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2023-10-04\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": 4961543,\n            \"created_at\": \"2023-10-02T16:42:41.285Z\",\n            \"updated_at\": \"2023-10-02T16:42:52.938Z\"\n        },\n        {\n            \"id\": 112210,\n            \"employee\": {\n                \"employee_id\": 262671\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2023-11-01\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2023-11-06T12:35:17.978Z\",\n            \"updated_at\": \"2023-11-06T12:35:17.978Z\"\n        },\n        {\n            \"id\": 110846,\n            \"employee\": {\n                \"employee_id\": 259329\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 384\n            },\n            \"termination_date\": \"2023-10-30\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": 5191761,\n            \"created_at\": \"2023-10-30T16:42:59.966Z\",\n            \"updated_at\": \"2023-10-30T16:43:08.768Z\"\n        },\n        {\n            \"id\": 110556,\n            \"employee\": {\n                \"employee_id\": 260220\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2023-10-12\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2023-10-29T12:55:34.533Z\",\n            \"updated_at\": \"2023-10-29T12:55:34.533Z\"\n        },\n        {\n            \"id\": 6314,\n            \"employee\": {\n                \"employee_id\": 23114\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2019-10-02\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2019-09-30T11:45:20.571Z\",\n            \"updated_at\": \"2019-09-30T11:45:20.571Z\"\n        },\n        {\n            \"id\": 2124,\n            \"employee\": {\n                \"employee_id\": 11522\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2018-11-11\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2018-11-11T10:46:55.364Z\",\n            \"updated_at\": \"2018-11-11T10:47:02.917Z\"\n        },\n        {\n            \"id\": 60035,\n            \"employee\": {\n                \"employee_id\": 152892\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2023-01-11\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2022-12-22T08:20:15.925Z\",\n            \"updated_at\": \"2022-12-22T08:20:15.925Z\"\n        },\n        {\n            \"id\": 849,\n            \"employee\": {\n                \"employee_id\": 6838\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2018-07-31\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2018-07-01T12:41:40.379Z\",\n            \"updated_at\": \"2018-07-01T12:44:01.864Z\"\n        },\n        {\n            \"id\": 1905,\n            \"employee\": {\n                \"employee_id\": 10294\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 385\n            },\n            \"termination_date\": \"2018-10-22\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2018-10-22T07:48:54.066Z\",\n            \"updated_at\": \"2018-10-22T07:48:54.066Z\"\n        },\n        {\n            \"id\": 770,\n            \"employee\": {\n                \"employee_id\": 7735\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 385\n            },\n            \"termination_date\": \"2018-06-05\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2018-06-05T15:24:52.750Z\",\n            \"updated_at\": \"2018-06-05T15:24:52.750Z\"\n        },\n        {\n            \"id\": 66441,\n            \"employee\": {\n                \"employee_id\": 168476\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2023-02-01\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2023-02-13T11:56:57.380Z\",\n            \"updated_at\": \"2023-02-13T11:58:48.331Z\"\n        },\n        {\n            \"id\": 37364,\n            \"employee\": {\n                \"employee_id\": 94524\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 382\n            },\n            \"termination_date\": \"2022-06-17\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2022-04-21T13:06:23.149Z\",\n            \"updated_at\": \"2022-04-21T13:06:23.149Z\"\n        },\n        {\n            \"id\": 8823,\n            \"employee\": {\n                \"employee_id\": 28730\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2020-02-13\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2020-02-12T11:30:31.558Z\",\n            \"updated_at\": \"2020-02-12T11:30:31.558Z\"\n        },\n        {\n            \"id\": 29045,\n            \"employee\": {\n                \"employee_id\": 73804\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2021-12-01\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": 1388896,\n            \"created_at\": \"2021-12-14T13:25:29.358Z\",\n            \"updated_at\": \"2021-12-14T13:25:38.303Z\"\n        },\n        {\n            \"id\": 14508,\n            \"employee\": {\n                \"employee_id\": 39539\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 386\n            },\n            \"termination_date\": \"2020-11-03\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2020-11-03T08:50:55.124Z\",\n            \"updated_at\": \"2020-11-03T08:50:55.124Z\"\n        },\n        {\n            \"id\": 23385,\n            \"employee\": {\n                \"employee_id\": 66944\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2021-09-01\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2021-09-13T14:48:41.563Z\",\n            \"updated_at\": \"2021-09-13T14:48:56.068Z\"\n        },\n        {\n            \"id\": 3652,\n            \"employee\": {\n                \"employee_id\": 15925\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 385\n            },\n            \"termination_date\": \"2019-04-04\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2019-04-04T11:58:09.062Z\",\n            \"updated_at\": \"2019-04-04T11:58:09.062Z\"\n        },\n        {\n            \"id\": 556,\n            \"employee\": {\n                \"employee_id\": 3212\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 385\n            },\n            \"termination_date\": \"2018-04-30\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2018-04-01T08:23:31.000Z\",\n            \"updated_at\": \"2018-04-01T08:24:29.063Z\"\n        },\n        {\n            \"id\": 4116,\n            \"employee\": {\n                \"employee_id\": 17614\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 385\n            },\n            \"termination_date\": \"2019-05-09\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": 189651,\n            \"created_at\": \"2019-05-09T11:55:33.655Z\",\n            \"updated_at\": \"2019-05-09T11:55:57.271Z\"\n        },\n        {\n            \"id\": 9599,\n            \"employee\": {\n                \"employee_id\": 32549\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 383\n            },\n            \"termination_date\": \"2020-05-20\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": 408761,\n            \"created_at\": \"2020-03-17T16:22:36.798Z\",\n            \"updated_at\": \"2020-03-17T16:22:47.206Z\"\n        },\n        {\n            \"id\": 161,\n            \"employee\": {\n                \"employee_id\": 1497\n            },\n            \"termination_setup\": {\n                \"termination_setup_id\": 384\n            },\n            \"termination_date\": \"2017-10-11\",\n            \"financial_transaction_ids\": null,\n            \"notes\": \"\",\n            \"salary_id\": null,\n            \"created_at\": \"2017-10-11T13:18:05.108Z\",\n            \"updated_at\": \"2017-10-11T13:18:05.108Z\"\n        }\n    ]\n}"}],"_postman_id":"4926fa4b-d989-4df6-8597-6d25715034bc"},{"name":"Show Branch Termination","id":"36e60840-3b9d-4523-8890-44feb7571f0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/terminations/:termination_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","terminations",":termination_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"termination.termination_setup"},{"disabled":true,"key":"include[]","value":"termination.employee"}],"variable":[{"id":"2f8075d4-703b-4049-b3c2-fc3d0e1d2caf","type":"any","value":"","key":"branch_id"},{"id":"0ff1a50f-3429-4820-97a4-3409a2fce7b5","type":"any","value":"","key":"termination_id"}]}},"response":[{"id":"771de731-19a4-47d9-a138-dee6749e8eec","name":"Show Branch Termination","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.zenhr.com/api/v3/branches/104/terminations/161","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches","104","terminations","161"],"query":[{"key":"include[]","value":"termination.termination_setup","disabled":true},{"key":"include[]","value":"termination.employee","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"420c6019df549557eeaff56a682283c0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a1ae94b7-eeb4-4b0f-88e0-b176ea947081"},{"key":"X-Runtime","value":"0.017315"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"264"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 161,\n    \"employee\": {\n        \"employee_id\": 1497\n    },\n    \"termination_setup\": {\n        \"termination_setup_id\": 384\n    },\n    \"termination_date\": \"2017-10-11\",\n    \"financial_transaction_ids\": null,\n    \"notes\": \"\",\n    \"salary_id\": null,\n    \"created_at\": \"2017-10-11T13:18:05.108Z\",\n    \"updated_at\": \"2017-10-11T13:18:05.108Z\"\n}"}],"_postman_id":"36e60840-3b9d-4523-8890-44feb7571f0e"},{"name":"Delete Termination","id":"c179cf04-8163-4a15-95f7-12c33a9d8907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"410314","type":"text"},{"key":"termination_setup_id","value":"45423","type":"text"},{"key":"termination_date","value":"2024-12-01","description":"<p>date</p>\n","type":"text"},{"key":"notes","value":"test","description":"<p>string</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/terminations/:termination_id","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","terminations",":termination_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"13684d85-bbff-4025-b087-0823a3bf365f","type":"any","value":"","key":"branch_id"},{"id":"65674e6e-7775-4c91-bf21-c269b93926c1","type":"any","value":"","key":"termination_id"}]}},"response":[],"_postman_id":"c179cf04-8163-4a15-95f7-12c33a9d8907"},{"name":"Create Termination","id":"6ddaafab-f3d1-47f3-8dbe-f44cd7b30046","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"1497","type":"text"},{"key":"termination_setup_id","value":"45423","type":"text"},{"key":"termination_date","value":"2024-12-01","description":"<p>date</p>\n","type":"text"},{"key":"notes","value":"test","description":"<p>string</p>\n","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/terminations","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","terminations"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"9391f726-185e-4f5c-ae36-c7fef4493906","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"108bca1e-ec3b-4c41-900f-47ee79d501db","name":"Create Termination","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"employee_id","value":"1497","type":"text"},{"key":"termination_setup_id","value":"45423","type":"text"},{"key":"termination_date","value":"2024-12-01","description":"date","type":"text"},{"key":"notes","value":"test","description":"string","type":"text"}]},"url":"https://app.zenhr.com/api/v3/branches/104/terminations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a9436a8a63a0321750163dbe6f659d50\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"24f398e1-004d-427b-971c-2082b09f1177"},{"key":"X-Runtime","value":"0.550791"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"273"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 191128,\n    \"employee\": {\n        \"employee_id\": 1497\n    },\n    \"termination_setup\": {\n        \"termination_setup_id\": 45423\n    },\n    \"termination_date\": \"2024-12-01\",\n    \"financial_transaction_ids\": null,\n    \"notes\": \"test\",\n    \"salary_id\": null,\n    \"created_at\": \"2024-12-08T12:33:58.742Z\",\n    \"updated_at\": \"2024-12-08T12:33:58.742Z\"\n}"}],"_postman_id":"6ddaafab-f3d1-47f3-8dbe-f44cd7b30046"}],"id":"90880145-e403-4b2c-9b27-df0a5b31308c","_postman_id":"90880145-e403-4b2c-9b27-df0a5b31308c","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Business Trips","item":[{"name":"1. View All Business Trips","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"a8f85456-6289-4bad-a344-37e07d8f6a6e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"46f59a3b-808b-4813-a4dd-7121098a6228"}}],"id":"ab75792e-86db-434b-8785-4909c3f32ec6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"100"},{"disabled":true,"key":"include[]","value":"business_trip.employee"},{"disabled":true,"key":"include[]","value":"business_trip.departure_city"},{"disabled":true,"key":"include[]","value":"business_trip.arrival_city"},{"disabled":true,"key":"include[]","value":"business_trip.business_travel_destination"},{"disabled":true,"key":"include[]","value":"business_trip.associated_business_travel_destination"},{"disabled":true,"key":"include[]","value":"business_trip.extra_expenses"},{"disabled":true,"key":"include[]","value":"business_trip.attachments"},{"disabled":true,"key":"filter[id][]","value":"1"},{"disabled":true,"key":"filter[employee_id][]","value":"1159"},{"disabled":true,"key":"filter[departure_city_id][]","value":"146"},{"disabled":true,"key":"filter[arrival_city_id][]","value":"474"},{"disabled":true,"key":"filter[business_travel_destination_id][]","value":"1"},{"disabled":true,"key":"filter[created_at][from]","value":"2023-01-01"},{"disabled":true,"key":"fiilter[created_at][to]","value":"2023-01-01"},{"disabled":true,"key":"filter[updated_at][from]","value":"2023-01-01"},{"disabled":true,"key":"filter[updated_at][to]","value":"2025-01-01"},{"disabled":true,"key":"filter[start_date][from]","value":"2023-01-01"},{"disabled":true,"key":"filter[start_date][to]","value":"2026-01-01"},{"disabled":true,"key":"filter[end_date][from]","value":"2023-01-01"},{"disabled":true,"key":"filter[end_date][to]","value":"2026-01-01"},{"disabled":true,"key":"filter[travel_type][]","value":"flights"},{"disabled":true,"key":"filter[with_accommodation][]","value":"true"},{"disabled":true,"key":"filter[status][]","value":"2"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: created_at, dir: desc}"},{"disabled":true,"key":"order[]","value":"{column: updated_at, dir: desc}"},{"disabled":true,"key":"order[]","value":"{column: start_date, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: end_date, dir: desc}"},{"disabled":true,"key":"order[]","value":"{column: employee_id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: departure_city_id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: arrival_city_id, dir: asc}"},{"disabled":true,"key":"order[]","value":"{column: business_travel_destination_id, dir: asc}"}],"variable":[{"id":"2ef00c41-03ec-449b-aa5b-d01c12f9e918","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"ede16111-aadb-4dd7-88b8-569dadeb008c","name":"1. View All Business Trips","originalRequest":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips?page=1&limit=100&include[]=business_trip.employee&include[]=business_trip.departure_city&include[]=business_trip.arrival_city&include[]=business_trip.business_travel_destination&include[]=business_trip.associated_business_travel_destination&include[]=business_trip.extra_expenses&include[]=business_trip.attachments&filter[id][]=1&filter[employee_id][]=1159&filter[departure_city_id][]=146&filter[arrival_city_id][]=474&filter[business_travel_destination_id][]=1&filter[created_at][from]=2023-01-01&fiilter[created_at][to]=2023-01-01&filter[updated_at][from]=2023-01-01&filter[updated_at][to]=2025-01-01&filter[start_date][from]=2023-01-01&filter[start_date][to]=2026-01-01&filter[end_date][from]=2023-01-01&filter[end_date][to]=2026-01-01&filter[travel_type][]=flights&filter[with_accommodation][]=true&filter[status][]=2&order[]={column: id, dir: asc}&order[]={column: created_at, dir: desc}&order[]={column: updated_at, dir: desc}&order[]={column: start_date, dir: asc}&order[]={column: end_date, dir: desc}&order[]={column: employee_id, dir: asc}&order[]={column: departure_city_id, dir: asc}&order[]={column: arrival_city_id, dir: asc}&order[]={column: business_travel_destination_id, dir: asc}","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips"],"query":[{"key":"page","value":"1","description":"page number"},{"key":"limit","value":"100","description":"records limit per page"},{"key":"include[]","value":"business_trip.employee"},{"key":"include[]","value":"business_trip.departure_city"},{"key":"include[]","value":"business_trip.arrival_city"},{"key":"include[]","value":"business_trip.business_travel_destination"},{"key":"include[]","value":"business_trip.associated_business_travel_destination"},{"key":"include[]","value":"business_trip.extra_expenses"},{"key":"include[]","value":"business_trip.attachments"},{"key":"filter[id][]","value":"1"},{"key":"filter[employee_id][]","value":"1159"},{"key":"filter[departure_city_id][]","value":"146"},{"key":"filter[arrival_city_id][]","value":"474"},{"key":"filter[business_travel_destination_id][]","value":"1"},{"key":"filter[created_at][from]","value":"2023-01-01"},{"key":"fiilter[created_at][to]","value":"2023-01-01"},{"key":"filter[updated_at][from]","value":"2023-01-01"},{"key":"filter[updated_at][to]","value":"2025-01-01"},{"key":"filter[start_date][from]","value":"2023-01-01"},{"key":"filter[start_date][to]","value":"2026-01-01"},{"key":"filter[end_date][from]","value":"2023-01-01"},{"key":"filter[end_date][to]","value":"2026-01-01"},{"key":"filter[travel_type][]","value":"flights"},{"key":"filter[with_accommodation][]","value":"true"},{"key":"filter[status][]","value":"2"},{"key":"order[]","value":"{column: id, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]"},{"key":"order[]","value":"{column: created_at, dir: desc}"},{"key":"order[]","value":"{column: updated_at, dir: desc}"},{"key":"order[]","value":"{column: start_date, dir: asc}"},{"key":"order[]","value":"{column: end_date, dir: desc}"},{"key":"order[]","value":"{column: employee_id, dir: asc}"},{"key":"order[]","value":"{column: departure_city_id, dir: asc}"},{"key":"order[]","value":"{column: arrival_city_id, dir: asc}"},{"key":"order[]","value":"{column: business_travel_destination_id, dir: asc}"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"5b2f79fb717e59aa4a87ad4f46486b46\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1c6e6fd4-29fb-4afd-9129-0e261c7db9d3"},{"key":"X-Runtime","value":"0.729116"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"98414"}],"cookie":[],"responseTime":null,"body":"{\n    \"allowed_actions\": [],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 100,\n        \"total_entries\": 33,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 1,\n            \"start_date\": \"2024-05-05\",\n            \"end_date\": \"2024-05-05\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-05T16:35:37.808Z\",\n            \"updated_at\": \"2024-05-05T16:35:37.913Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 474,\n                \"name\": {\n                    \"ar\": \"منطقة كجالاجادي\",\n                    \"en\": \"Kgalagadi District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1383114,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"approved\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 22,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": \"\",\n                    \"effective_date\": \"2024-05-05\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-05-05T16:35:52.801Z\",\n                    \"updated_at\": \"2024-05-05T16:35:52.873Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 3,\n            \"start_date\": \"2024-05-05\",\n            \"end_date\": \"2024-05-05\",\n            \"status\": 4,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-05T17:01:50.071Z\",\n            \"updated_at\": \"2024-05-05T17:02:19.079Z\",\n            \"employee\": {\n                \"id\": 149626,\n                \"branch_id\": 104,\n                \"employment_number\": \"65\",\n                \"email\": \"lean+061222@zenhr.com\",\n                \"username\": \"lean+061222@zenhr.com\",\n                \"user\": {\n                    \"id\": 166939,\n                    \"short_name\": {\n                        \"en\": \"Leen Employee\",\n                        \"ar\": \"Leen Employee\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/166939/pictures/mazen.png\"\n                    }\n                },\n                \"birthdate\": \"1990-06-14\",\n                \"hiring_date\": \"2022-01-15\",\n                \"fixing_date\": \"2022-04-14\",\n                \"termination_date\": \"2024-07-12\",\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"\",\n                \"mobile_number\": \"07 9543 6398\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Muslim\",\n                \"citizen\": true,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"1234\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Jordanian\"\n                ],\n                \"national_id\": \"\",\n                \"active\": false,\n                \"sponsor_id\": null,\n                \"sponsor_name\": null,\n                \"created_at\": \"2022-12-06T12:01:43.046Z\",\n                \"updated_at\": \"2024-07-25T06:05:24.101Z\"\n            },\n            \"departure_city\": {\n                \"id\": 541,\n                \"name\": {\n                    \"ar\": \"مقاطعة بالي\",\n                    \"en\": \"Balé Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 599,\n                \"name\": {\n                    \"ar\": \"مقاطعة بوجومبورا ميري\",\n                    \"en\": \"Bujumbura Mairie Province\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 3,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 22000,\n                    \"currency_iso\": \"JOD\"\n                },\n                \"per_diem_currency\": \"JOD\",\n                \"departure_location\": {\n                    \"country\": [\n                        35\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        36\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 3,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_airticket_cost_currency\": \"JOD\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_travel_cost_currency\": \"JOD\"\n                },\n                \"accommodation\": {\n                    \"id\": 3,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 4,\n            \"start_date\": \"2024-05-20\",\n            \"end_date\": \"2024-05-20\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-05T17:02:37.973Z\",\n            \"updated_at\": \"2024-05-05T17:02:47.532Z\",\n            \"employee\": {\n                \"id\": 149626,\n                \"branch_id\": 104,\n                \"employment_number\": \"65\",\n                \"email\": \"lean+061222@zenhr.com\",\n                \"username\": \"lean+061222@zenhr.com\",\n                \"user\": {\n                    \"id\": 166939,\n                    \"short_name\": {\n                        \"en\": \"Leen Employee\",\n                        \"ar\": \"Leen Employee\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/166939/pictures/mazen.png\"\n                    }\n                },\n                \"birthdate\": \"1990-06-14\",\n                \"hiring_date\": \"2022-01-15\",\n                \"fixing_date\": \"2022-04-14\",\n                \"termination_date\": \"2024-07-12\",\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"\",\n                \"mobile_number\": \"07 9543 6398\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Muslim\",\n                \"citizen\": true,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"1234\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Jordanian\"\n                ],\n                \"national_id\": \"\",\n                \"active\": false,\n                \"sponsor_id\": null,\n                \"sponsor_name\": null,\n                \"created_at\": \"2022-12-06T12:01:43.046Z\",\n                \"updated_at\": \"2024-07-25T06:05:24.101Z\"\n            },\n            \"departure_city\": {\n                \"id\": 556,\n                \"name\": {\n                    \"ar\": \"مقاطعة جانزوركو\",\n                    \"en\": \"Ganzourgou Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 615,\n                \"name\": {\n                    \"ar\": \"مقاطعة رويجي\",\n                    \"en\": \"Ruyigi Province\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 3,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 22000,\n                    \"currency_iso\": \"JOD\"\n                },\n                \"per_diem_currency\": \"JOD\",\n                \"departure_location\": {\n                    \"country\": [\n                        35\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        36\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 3,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_airticket_cost_currency\": \"JOD\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_travel_cost_currency\": \"JOD\"\n                },\n                \"accommodation\": {\n                    \"id\": 3,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1383758,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 149626\n                    },\n                    \"transaction_status\": \"approved\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 111.2,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": \"\",\n                    \"effective_date\": \"2024-05-06\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-05-06T09:36:58.390Z\",\n                    \"updated_at\": \"2024-05-06T09:36:58.520Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 5,\n            \"start_date\": \"2024-05-21\",\n            \"end_date\": \"2024-05-21\",\n            \"status\": 3,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-05T17:03:06.468Z\",\n            \"updated_at\": \"2024-05-05T17:03:57.454Z\",\n            \"employee\": {\n                \"id\": 149626,\n                \"branch_id\": 104,\n                \"employment_number\": \"65\",\n                \"email\": \"lean+061222@zenhr.com\",\n                \"username\": \"lean+061222@zenhr.com\",\n                \"user\": {\n                    \"id\": 166939,\n                    \"short_name\": {\n                        \"en\": \"Leen Employee\",\n                        \"ar\": \"Leen Employee\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/166939/pictures/mazen.png\"\n                    }\n                },\n                \"birthdate\": \"1990-06-14\",\n                \"hiring_date\": \"2022-01-15\",\n                \"fixing_date\": \"2022-04-14\",\n                \"termination_date\": \"2024-07-12\",\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"\",\n                \"mobile_number\": \"07 9543 6398\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Muslim\",\n                \"citizen\": true,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"1234\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Jordanian\"\n                ],\n                \"national_id\": \"\",\n                \"active\": false,\n                \"sponsor_id\": null,\n                \"sponsor_name\": null,\n                \"created_at\": \"2022-12-06T12:01:43.046Z\",\n                \"updated_at\": \"2024-07-25T06:05:24.101Z\"\n            },\n            \"departure_city\": {\n                \"id\": 561,\n                \"name\": {\n                    \"ar\": \"مقاطعة إيوبا\",\n                    \"en\": \"Ioba Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 613,\n                \"name\": {\n                    \"ar\": \"مقاطعة رومونج\",\n                    \"en\": \"Rumonge Province\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 3,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 22000,\n                    \"currency_iso\": \"JOD\"\n                },\n                \"per_diem_currency\": \"JOD\",\n                \"departure_location\": {\n                    \"country\": [\n                        35\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        36\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 3,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_airticket_cost_currency\": \"JOD\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_travel_cost_currency\": \"JOD\"\n                },\n                \"accommodation\": {\n                    \"id\": 3,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1383131,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 149626\n                    },\n                    \"transaction_status\": \"rejected\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 33,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-05-21\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-05-05T17:03:06.472Z\",\n                    \"updated_at\": \"2024-05-05T17:03:57.466Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 6,\n            \"start_date\": \"2024-05-06\",\n            \"end_date\": \"2025-07-01\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-06T09:39:56.720Z\",\n            \"updated_at\": \"2024-06-05T15:03:40.957Z\",\n            \"employee\": {\n                \"id\": 149626,\n                \"branch_id\": 104,\n                \"employment_number\": \"65\",\n                \"email\": \"lean+061222@zenhr.com\",\n                \"username\": \"lean+061222@zenhr.com\",\n                \"user\": {\n                    \"id\": 166939,\n                    \"short_name\": {\n                        \"en\": \"Leen Employee\",\n                        \"ar\": \"Leen Employee\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Leen\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/166939/pictures/mazen.png\"\n                    }\n                },\n                \"birthdate\": \"1990-06-14\",\n                \"hiring_date\": \"2022-01-15\",\n                \"fixing_date\": \"2022-04-14\",\n                \"termination_date\": \"2024-07-12\",\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"\",\n                \"mobile_number\": \"07 9543 6398\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Muslim\",\n                \"citizen\": true,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"1234\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Jordanian\"\n                ],\n                \"national_id\": \"\",\n                \"active\": false,\n                \"sponsor_id\": null,\n                \"sponsor_name\": null,\n                \"created_at\": \"2022-12-06T12:01:43.046Z\",\n                \"updated_at\": \"2024-07-25T06:05:24.101Z\"\n            },\n            \"departure_city\": {\n                \"id\": 542,\n                \"name\": {\n                    \"ar\": \"مقاطعة بم\",\n                    \"en\": \"Bam Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 605,\n                \"name\": {\n                    \"ar\": \"مقاطعة كاروزي\",\n                    \"en\": \"Karuzi Province\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 3,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 22000,\n                    \"currency_iso\": \"JOD\"\n                },\n                \"per_diem_currency\": \"JOD\",\n                \"departure_location\": {\n                    \"country\": [\n                        35\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        36\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 3,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_airticket_cost_currency\": \"JOD\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_travel_cost_currency\": \"JOD\"\n                },\n                \"accommodation\": {\n                    \"id\": 3,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 13,\n            \"start_date\": \"2024-05-07\",\n            \"end_date\": \"2024-05-07\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-07T12:35:54.466Z\",\n            \"updated_at\": \"2024-05-07T12:35:54.583Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 474,\n                \"name\": {\n                    \"ar\": \"منطقة كجالاجادي\",\n                    \"en\": \"Kgalagadi District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 14,\n            \"start_date\": \"2024-05-31\",\n            \"end_date\": \"2024-05-31\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-07T12:36:39.499Z\",\n            \"updated_at\": \"2024-05-07T12:36:39.695Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 147,\n                \"name\": {\n                    \"ar\": \"مقاطعة بنجويلا\",\n                    \"en\": \"Benguela Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 480,\n                \"name\": {\n                    \"ar\": \"المنطقة الجنوبية الشرقية\",\n                    \"en\": \"South-East District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 17,\n            \"start_date\": \"2024-05-08\",\n            \"end_date\": \"2024-05-09\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-08T13:25:14.889Z\",\n            \"updated_at\": \"2024-05-08T13:25:15.014Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 473,\n                \"name\": {\n                    \"ar\": \"منطقة غانزي\",\n                    \"en\": \"Ghanzi District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 36,\n            \"start_date\": \"2024-05-02\",\n            \"end_date\": \"2024-05-15\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-15T16:26:23.288Z\",\n            \"updated_at\": \"2024-05-15T16:26:23.383Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1458870,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 1198,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-05-02\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-06-05T10:16:35.485Z\",\n                    \"updated_at\": \"2024-06-05T10:17:51.733Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 50,\n            \"start_date\": \"2024-05-21\",\n            \"end_date\": \"2024-05-21\",\n            \"status\": 6,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-21T12:40:35.073Z\",\n            \"updated_at\": \"2024-05-21T12:40:35.073Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1417093,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 444,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": \"\",\n                    \"effective_date\": \"2024-05-21\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-05-26T08:28:32.013Z\",\n                    \"updated_at\": \"2024-05-26T11:13:59.413Z\"\n                },\n                {\n                    \"id\": 1417096,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 333,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": \"\",\n                    \"effective_date\": \"2024-05-21\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-05-26T08:29:16.879Z\",\n                    \"updated_at\": \"2024-05-26T11:13:59.312Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 53,\n            \"start_date\": \"2024-05-28\",\n            \"end_date\": \"2024-05-29\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-28T12:07:36.854Z\",\n            \"updated_at\": \"2024-05-28T12:07:36.980Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 54,\n            \"start_date\": \"2024-05-30\",\n            \"end_date\": \"2024-05-31\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-05-30T14:02:58.333Z\",\n            \"updated_at\": \"2024-05-30T14:02:58.457Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 60,\n            \"start_date\": \"2024-06-03\",\n            \"end_date\": \"2024-06-04\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-06-03T14:54:16.956Z\",\n            \"updated_at\": \"2024-11-21T06:16:16.742Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 1,\n                \"name\": {\n                    \"ar\": \"بدخشان\",\n                    \"en\": \"Badakhshan\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 4,\n                \"name\": {\n                    \"ar\": \"بلخ\",\n                    \"en\": \"Balkh\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"per_diem\": {\n                    \"cents\": 1100,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"city\": [\n                        1,\n                        3,\n                        4\n                    ],\n                    \"country\": \"1\"\n                },\n                \"arrival_location\": {\n                    \"city\": [\n                        1,\n                        2,\n                        4\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 2,\n                    \"travel_type\": [\n                        0,\n                        1,\n                        2,\n                        3\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 2,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"domestic\",\n                \"per_diem_fils\": 1100,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0,\n                        2\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [\n                        {\n                            \"travel_type\": 0,\n                            \"financial_transaction_type_id\": 4667,\n                            \"financial_transaction_amount_fils\": 5000,\n                            \"financial_transaction_amount_currency\": \"SAR\"\n                        },\n                        {\n                            \"travel_type\": 2,\n                            \"financial_transaction_type_id\": 29795,\n                            \"financial_transaction_amount_fils\": 5800,\n                            \"financial_transaction_amount_currency\": \"SAR\"\n                        }\n                    ],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 61,\n            \"start_date\": \"2024-06-05\",\n            \"end_date\": \"2024-06-10\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-06-05T11:22:52.400Z\",\n            \"updated_at\": \"2024-06-05T15:02:26.102Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 63,\n            \"start_date\": \"2024-06-06\",\n            \"end_date\": \"2024-06-09\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-06-06T10:35:18.937Z\",\n            \"updated_at\": \"2024-06-06T10:35:19.108Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 147,\n                \"name\": {\n                    \"ar\": \"مقاطعة بنجويلا\",\n                    \"en\": \"Benguela Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 64,\n            \"start_date\": \"2024-06-09\",\n            \"end_date\": \"2024-06-11\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-06-06T14:40:53.890Z\",\n            \"updated_at\": \"2024-06-06T14:40:53.986Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": null,\n                \"per_diem_fils\": null,\n                \"per_diem_currency\": null,\n                \"business_travel_accommodation\": null,\n                \"business_travel_transportation\": null\n            }\n        },\n        {\n            \"id\": 72,\n            \"start_date\": \"2024-06-21\",\n            \"end_date\": \"2024-06-21\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"Test the flight \",\n            \"created_at\": \"2024-06-24T11:03:19.564Z\",\n            \"updated_at\": \"2024-06-24T11:03:19.719Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 150,\n                \"name\": {\n                    \"ar\": \"(مقاطعة كواندو كوبانغو).\",\n                    \"en\": \"Cuando Cubango Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 476,\n                \"name\": {\n                    \"ar\": \"منطقة كوينينج\",\n                    \"en\": \"Kweneng District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1479870,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 5,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-06-21\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-06-24T11:03:19.573Z\",\n                    \"updated_at\": \"2024-06-24T11:03:19.724Z\"\n                },\n                {\n                    \"id\": 1479871,\n                    \"financial_transaction_type\": {\n                        \"id\": 15751\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 69,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-06-21\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-06-24T11:03:19.609Z\",\n                    \"updated_at\": \"2024-06-24T11:03:19.748Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 22000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 74,\n            \"start_date\": \"2024-06-25\",\n            \"end_date\": \"2024-06-27\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-06-25T11:47:42.411Z\",\n            \"updated_at\": \"2024-06-25T11:47:42.579Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 473,\n                \"name\": {\n                    \"ar\": \"منطقة غانزي\",\n                    \"en\": \"Ghanzi District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 22000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 139,\n            \"start_date\": \"2024-07-01\",\n            \"end_date\": \"2024-07-08\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"tested\",\n            \"created_at\": \"2024-07-01T10:32:44.049Z\",\n            \"updated_at\": \"2025-02-13T14:33:02.865Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 22000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 144,\n            \"start_date\": \"2024-07-02\",\n            \"end_date\": \"2024-07-02\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-07-02T14:13:20.896Z\",\n            \"updated_at\": \"2024-07-02T14:13:21.041Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 473,\n                \"name\": {\n                    \"ar\": \"منطقة غانزي\",\n                    \"en\": \"Ghanzi District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 22000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 149,\n            \"start_date\": \"2024-07-07\",\n            \"end_date\": \"2024-07-15\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-07-04T09:58:15.786Z\",\n            \"updated_at\": \"2024-11-21T06:17:26.634Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 473,\n                \"name\": {\n                    \"ar\": \"منطقة غانزي\",\n                    \"en\": \"Ghanzi District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 22000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 165,\n            \"start_date\": \"2024-07-08\",\n            \"end_date\": \"2024-07-09\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": false,\n            \"notes\": \"\",\n            \"created_at\": \"2024-07-08T08:55:47.737Z\",\n            \"updated_at\": \"2024-07-08T08:55:47.826Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 147,\n                \"name\": {\n                    \"ar\": \"مقاطعة بنجويلا\",\n                    \"en\": \"Benguela Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 22000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 233,\n            \"start_date\": \"2024-07-25\",\n            \"end_date\": \"2024-07-26\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-07-24T16:01:39.820Z\",\n            \"updated_at\": \"2024-07-24T16:01:40.035Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 1,\n                \"name\": {\n                    \"ar\": \"بدخشان\",\n                    \"en\": \"Badakhshan\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 4,\n                \"name\": {\n                    \"ar\": \"بلخ\",\n                    \"en\": \"Balkh\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"per_diem\": {\n                    \"cents\": 1100,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"city\": [\n                        1,\n                        3,\n                        4\n                    ],\n                    \"country\": \"1\"\n                },\n                \"arrival_location\": {\n                    \"city\": [\n                        1,\n                        2,\n                        4\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 2,\n                    \"travel_type\": [\n                        0,\n                        1,\n                        2,\n                        3\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 2,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1542004,\n                    \"financial_transaction_type\": {\n                        \"id\": 4667\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"pending\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 50,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-07-25\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-07-24T16:01:39.830Z\",\n                    \"updated_at\": \"2024-07-24T16:01:39.830Z\"\n                },\n                {\n                    \"id\": 1726447,\n                    \"financial_transaction_type\": {\n                        \"id\": 9138\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"approved\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 99,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": \"\",\n                    \"effective_date\": \"2024-10-02\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-10-02T10:12:05.226Z\",\n                    \"updated_at\": \"2024-10-02T10:12:05.407Z\"\n                },\n                {\n                    \"id\": 1726448,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"approved\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 9,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": \"\",\n                    \"effective_date\": \"2024-10-02\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-10-02T10:12:05.259Z\",\n                    \"updated_at\": \"2024-10-02T10:12:05.649Z\"\n                },\n                {\n                    \"id\": 1727525,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"approved\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 6,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": \"\",\n                    \"effective_date\": \"2024-10-03\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-10-03T06:35:58.440Z\",\n                    \"updated_at\": \"2024-10-03T06:35:58.674Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"domestic\",\n                \"per_diem_fils\": 11000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0,\n                        2\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [\n                        {\n                            \"travel_type\": 0,\n                            \"financial_transaction_type_id\": 4667,\n                            \"financial_transaction_amount_fils\": 50000,\n                            \"financial_transaction_amount_currency\": \"JOD\"\n                        },\n                        {\n                            \"travel_type\": 2,\n                            \"financial_transaction_type_id\": 29795,\n                            \"financial_transaction_amount_fils\": 58000,\n                            \"financial_transaction_amount_currency\": \"JOD\"\n                        }\n                    ],\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 234,\n            \"start_date\": \"2024-07-27\",\n            \"end_date\": \"2024-07-28\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-07-24T16:07:01.758Z\",\n            \"updated_at\": \"2024-07-24T16:07:01.873Z\",\n            \"employee\": {\n                \"id\": 104273,\n                \"branch_id\": 104,\n                \"employment_number\": \"500134871226\",\n                \"email\": \"f.nasser+4372@boundlessdrop.com\",\n                \"username\": \"f.nasser+4372@boundlessdrop.com\",\n                \"user\": {\n                    \"id\": 117213,\n                    \"short_name\": {\n                        \"en\": \"Ayham Khair Ayham\",\n                        \"ar\": \"Ayham Khair Ayham\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"KhairAyham\",\n                            \"first_name\": \"Ayham\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"KhairAyham\",\n                            \"first_name\": \"Ayham\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                    }\n                },\n                \"birthdate\": \"1994-07-06\",\n                \"hiring_date\": \"2022-01-01\",\n                \"fixing_date\": \"2022-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"3333\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"Naelahmad@gmail.com\",\n                \"religion\": \"Other\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"2222\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"1111\",\n                \"active\": true,\n                \"sponsor_id\": null,\n                \"sponsor_name\": null,\n                \"created_at\": \"2022-06-08T09:19:53.097Z\",\n                \"updated_at\": \"2024-11-19T10:11:48.271Z\"\n            },\n            \"departure_city\": {\n                \"id\": 1,\n                \"name\": {\n                    \"ar\": \"بدخشان\",\n                    \"en\": \"Badakhshan\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 4,\n                \"name\": {\n                    \"ar\": \"بلخ\",\n                    \"en\": \"Balkh\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"per_diem\": {\n                    \"cents\": 1100,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"city\": [\n                        1,\n                        3,\n                        4\n                    ],\n                    \"country\": \"1\"\n                },\n                \"arrival_location\": {\n                    \"city\": [\n                        1,\n                        2,\n                        4\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 2,\n                    \"travel_type\": [\n                        0,\n                        1,\n                        2,\n                        3\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 2,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1542014,\n                    \"financial_transaction_type\": {\n                        \"id\": 4667\n                    },\n                    \"employee\": {\n                        \"id\": 104273\n                    },\n                    \"transaction_status\": \"pending\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 50,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-07-27\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-07-24T16:07:01.764Z\",\n                    \"updated_at\": \"2024-07-24T16:07:01.764Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"domestic\",\n                \"per_diem_fils\": 11000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0,\n                        2\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [\n                        {\n                            \"travel_type\": 0,\n                            \"financial_transaction_type_id\": 4667,\n                            \"financial_transaction_amount_fils\": 50000,\n                            \"financial_transaction_amount_currency\": \"JOD\"\n                        },\n                        {\n                            \"travel_type\": 2,\n                            \"financial_transaction_type_id\": 29795,\n                            \"financial_transaction_amount_fils\": 58000,\n                            \"financial_transaction_amount_currency\": \"JOD\"\n                        }\n                    ],\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 235,\n            \"start_date\": \"2024-07-30\",\n            \"end_date\": \"2024-07-31\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-07-24T16:08:33.586Z\",\n            \"updated_at\": \"2024-07-24T16:09:38.910Z\",\n            \"employee\": {\n                \"id\": 104273,\n                \"branch_id\": 104,\n                \"employment_number\": \"500134871226\",\n                \"email\": \"f.nasser+4372@boundlessdrop.com\",\n                \"username\": \"f.nasser+4372@boundlessdrop.com\",\n                \"user\": {\n                    \"id\": 117213,\n                    \"short_name\": {\n                        \"en\": \"Ayham Khair Ayham\",\n                        \"ar\": \"Ayham Khair Ayham\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"KhairAyham\",\n                            \"first_name\": \"Ayham\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"KhairAyham\",\n                            \"first_name\": \"Ayham\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"http://zenhr.local:3000/images/missing.png\"\n                    }\n                },\n                \"birthdate\": \"1994-07-06\",\n                \"hiring_date\": \"2022-01-01\",\n                \"fixing_date\": \"2022-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"3333\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"Naelahmad@gmail.com\",\n                \"religion\": \"Other\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"2222\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"1111\",\n                \"active\": true,\n                \"sponsor_id\": null,\n                \"sponsor_name\": null,\n                \"created_at\": \"2022-06-08T09:19:53.097Z\",\n                \"updated_at\": \"2024-11-19T10:11:48.271Z\"\n            },\n            \"departure_city\": {\n                \"id\": 1,\n                \"name\": {\n                    \"ar\": \"بدخشان\",\n                    \"en\": \"Badakhshan\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 4,\n                \"name\": {\n                    \"ar\": \"بلخ\",\n                    \"en\": \"Balkh\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"per_diem\": {\n                    \"cents\": 1100,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"city\": [\n                        1,\n                        3,\n                        4\n                    ],\n                    \"country\": \"1\"\n                },\n                \"arrival_location\": {\n                    \"city\": [\n                        1,\n                        2,\n                        4\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 2,\n                    \"travel_type\": [\n                        0,\n                        1,\n                        2,\n                        3\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 2,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1542018,\n                    \"financial_transaction_type\": {\n                        \"id\": 4667\n                    },\n                    \"employee\": {\n                        \"id\": 104273\n                    },\n                    \"transaction_status\": \"approved\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": false,\n                    \"amount\": {\n                        \"amount\": 50,\n                        \"currency\": \"JOD\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-07-30\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-07-24T16:08:33.594Z\",\n                    \"updated_at\": \"2024-07-24T16:08:33.594Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"domestic\",\n                \"per_diem_fils\": 11000,\n                \"per_diem_currency\": \"JOD\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"JOD\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0,\n                        2\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [\n                        {\n                            \"travel_type\": 0,\n                            \"financial_transaction_type_id\": 4667,\n                            \"financial_transaction_amount_fils\": 50000,\n                            \"financial_transaction_amount_currency\": \"JOD\"\n                        },\n                        {\n                            \"travel_type\": 2,\n                            \"financial_transaction_type_id\": 29795,\n                            \"financial_transaction_amount_fils\": 58000,\n                            \"financial_transaction_amount_currency\": \"JOD\"\n                        }\n                    ],\n                    \"max_travel_cost_currency\": \"JOD\",\n                    \"max_airticket_cost_currency\": \"JOD\"\n                }\n            }\n        },\n        {\n            \"id\": 598,\n            \"start_date\": \"2024-10-20\",\n            \"end_date\": \"2024-10-24\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-10-02T13:23:13.315Z\",\n            \"updated_at\": \"2024-10-02T13:23:45.721Z\",\n            \"employee\": {\n                \"id\": 3161,\n                \"branch_id\": 104,\n                \"employment_number\": \"20\",\n                \"email\": \"s.abdallat+000@zedsnhr.com\",\n                \"username\": \"employee@zenhrademo.com\",\n                \"user\": {\n                    \"id\": 3557,\n                    \"short_name\": {\n                        \"en\": \"Employee1  Employee\",\n                        \"ar\": \"موظف موظف\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Employee\",\n                            \"first_name\": \"Employee1-\",\n                            \"third_name\": \"Importer+301\",\n                            \"second_name\": \".\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"موظف\",\n                            \"first_name\": \"موظف\",\n                            \"third_name\": \"\",\n                            \"second_name\": \"\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/3557/pictures/download.jpg\"\n                    }\n                },\n                \"birthdate\": \"1989-11-07\",\n                \"hiring_date\": \"2018-01-01\",\n                \"fixing_date\": \"2018-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"07 9123 4523\",\n                \"number\": \"\",\n                \"ext_number\": \"1212\",\n                \"personal_email\": \"s.abdallat+909@zenhr.com\",\n                \"religion\": \"Christian\",\n                \"citizen\": true,\n                \"labour_card\": \"\",\n                \"end_of_contract\": \"2018-11-18\",\n                \"mol_number\": \"\",\n                \"resident_id\": \"\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"limited\",\n                \"contract_end_date\": \"2018-11-18\",\n                \"nationalities\": [\n                    \"Jordanian\"\n                ],\n                \"national_id\": \"****\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2018-02-11T08:24:22.293Z\",\n                \"updated_at\": \"2025-04-30T10:59:09.839Z\"\n            },\n            \"departure_city\": {\n                \"id\": 1,\n                \"name\": {\n                    \"ar\": \"بدخشان\",\n                    \"en\": \"Badakhshan\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 4,\n                \"name\": {\n                    \"ar\": \"بلخ\",\n                    \"en\": \"Balkh\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"per_diem\": {\n                    \"cents\": 1100,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"city\": [\n                        1,\n                        3,\n                        4\n                    ],\n                    \"country\": \"1\"\n                },\n                \"arrival_location\": {\n                    \"city\": [\n                        1,\n                        2,\n                        4\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 2,\n                    \"travel_type\": [\n                        0,\n                        1,\n                        2,\n                        3\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 2,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1726710,\n                    \"financial_transaction_type\": {\n                        \"id\": 4667\n                    },\n                    \"employee\": {\n                        \"id\": 3161\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 50,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-10-20\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-10-02T13:23:13.327Z\",\n                    \"updated_at\": \"2024-10-02T13:23:46.053Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"domestic\",\n                \"per_diem_fils\": 1100,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0,\n                        2\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [\n                        {\n                            \"travel_type\": 0,\n                            \"financial_transaction_type_id\": 4667,\n                            \"financial_transaction_amount_fils\": 5000,\n                            \"financial_transaction_amount_currency\": \"SAR\"\n                        },\n                        {\n                            \"travel_type\": 2,\n                            \"financial_transaction_type_id\": 29795,\n                            \"financial_transaction_amount_fils\": 5800,\n                            \"financial_transaction_amount_currency\": \"SAR\"\n                        }\n                    ],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 5045,\n            \"start_date\": \"2024-12-27\",\n            \"end_date\": \"2024-12-28\",\n            \"status\": 2,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"\",\n            \"created_at\": \"2024-12-27T15:36:41.388Z\",\n            \"updated_at\": \"2024-12-27T15:36:41.610Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 1940567,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 0,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2024-12-27\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2024-12-27T15:36:41.405Z\",\n                    \"updated_at\": \"2024-12-27T15:36:41.759Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 2200,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 9118,\n            \"start_date\": \"2025-02-14\",\n            \"end_date\": \"2025-02-16\",\n            \"status\": 6,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"tested\",\n            \"created_at\": \"2025-02-13T14:30:43.599Z\",\n            \"updated_at\": \"2025-02-13T14:30:43.599Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 146,\n                \"name\": {\n                    \"ar\": \"مقاطعة بينجو\",\n                    \"en\": \"Bengo Province\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 473,\n                \"name\": {\n                    \"ar\": \"منطقة غانزي\",\n                    \"en\": \"Ghanzi District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 2190372,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"added_by_hr\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 150,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-03-14\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-03-14T16:41:01.670Z\",\n                    \"updated_at\": \"2025-03-14T16:41:01.670Z\"\n                },\n                {\n                    \"id\": 2190373,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"added_by_hr\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 330,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-03-14\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-03-14T16:41:01.741Z\",\n                    \"updated_at\": \"2025-03-14T16:41:01.741Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 2200,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 18621,\n            \"start_date\": \"2025-06-29\",\n            \"end_date\": \"2025-06-29\",\n            \"status\": 6,\n            \"travel_type\": null,\n            \"with_accommodation\": true,\n            \"notes\": \"no notes\",\n            \"created_at\": \"2025-06-29T10:49:32.197Z\",\n            \"updated_at\": \"2025-06-29T10:49:32.197Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 1,\n                \"name\": {\n                    \"ar\": \"بدخشان\",\n                    \"en\": \"Badakhshan\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 4,\n                \"name\": {\n                    \"ar\": \"بلخ\",\n                    \"en\": \"Balkh\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"per_diem\": {\n                    \"cents\": 1100,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"city\": [\n                        1,\n                        3,\n                        4\n                    ],\n                    \"country\": \"1\"\n                },\n                \"arrival_location\": {\n                    \"city\": [\n                        1,\n                        2,\n                        4\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 2,\n                    \"travel_type\": [\n                        0,\n                        1,\n                        2,\n                        3\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 2,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 2375294,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 12.12,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-29\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T10:49:32.202Z\",\n                    \"updated_at\": \"2025-06-29T10:49:32.202Z\"\n                }\n            ],\n            \"attachments\": [\n                {\n                    \"id\": 3005482,\n                    \"name\": \"Screenshot_2025-05-15_at_9.30.05\\u202fAM.png\",\n                    \"uri\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development/attachments/3005482/Screenshot_2025-05-15_at_9.30.05%E2%80%AFAM.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQGBFZUWGR76IC632%2F20250630%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20250630T135537Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=af63ab2afd129f17acd26e63861b7fa0b82d0ad25c7deacabbd92a384343ba8f\"\n                }\n            ],\n            \"associated_business_travel_destination\": {\n                \"category\": \"domestic\",\n                \"per_diem_fils\": 1100,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 18622,\n            \"start_date\": \"2025-06-10\",\n            \"end_date\": \"2025-06-12\",\n            \"status\": 6,\n            \"travel_type\": null,\n            \"with_accommodation\": true,\n            \"notes\": \"no notes\",\n            \"created_at\": \"2025-06-29T11:27:45.069Z\",\n            \"updated_at\": \"2025-06-29T11:27:45.069Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 1,\n                \"name\": {\n                    \"ar\": \"بدخشان\",\n                    \"en\": \"Badakhshan\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 4,\n                \"name\": {\n                    \"ar\": \"بلخ\",\n                    \"en\": \"Balkh\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"per_diem\": {\n                    \"cents\": 1100,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"city\": [\n                        1,\n                        3,\n                        4\n                    ],\n                    \"country\": \"1\"\n                },\n                \"arrival_location\": {\n                    \"city\": [\n                        1,\n                        2,\n                        4\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 2,\n                    \"travel_type\": [\n                        0,\n                        1,\n                        2,\n                        3\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 2,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 2375296,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 12.12,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-10\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T11:27:45.074Z\",\n                    \"updated_at\": \"2025-06-29T11:27:45.074Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"domestic\",\n                \"per_diem_fils\": 1100,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 18623,\n            \"start_date\": \"2025-06-29\",\n            \"end_date\": \"2025-06-30\",\n            \"status\": 6,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"Ciao\",\n            \"created_at\": \"2025-06-29T11:35:11.080Z\",\n            \"updated_at\": \"2025-06-29T11:37:28.143Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 152,\n                \"name\": {\n                    \"ar\": \"كوانزا سول\",\n                    \"en\": \"Cuanza Sul\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 2375298,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 1200,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-17\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T11:35:11.084Z\",\n                    \"updated_at\": \"2025-06-29T11:35:11.084Z\"\n                },\n                {\n                    \"id\": 2375299,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 24000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-17\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T11:35:11.095Z\",\n                    \"updated_at\": \"2025-06-29T11:35:11.095Z\"\n                },\n                {\n                    \"id\": 2375300,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 4800000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-17\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T11:35:11.104Z\",\n                    \"updated_at\": \"2025-06-29T11:35:11.104Z\"\n                },\n                {\n                    \"id\": 2375301,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"added_by_hr\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 1200,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-29\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T11:37:28.159Z\",\n                    \"updated_at\": \"2025-06-29T11:37:28.159Z\"\n                },\n                {\n                    \"id\": 2375302,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"added_by_hr\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 24000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-29\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T11:37:28.175Z\",\n                    \"updated_at\": \"2025-06-29T11:37:28.175Z\"\n                },\n                {\n                    \"id\": 2375303,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"added_by_hr\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 4800000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-29\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T11:37:28.194Z\",\n                    \"updated_at\": \"2025-06-29T11:37:28.194Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 2200,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 18624,\n            \"start_date\": \"2025-06-17\",\n            \"end_date\": \"2025-06-18\",\n            \"status\": 6,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"Szia\",\n            \"created_at\": \"2025-06-29T15:17:54.731Z\",\n            \"updated_at\": \"2025-06-29T15:17:54.731Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 152,\n                \"name\": {\n                    \"ar\": \"كوانزا سول\",\n                    \"en\": \"Cuanza Sul\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 2375305,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 1200,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-17\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T15:17:54.737Z\",\n                    \"updated_at\": \"2025-06-29T15:17:54.737Z\"\n                },\n                {\n                    \"id\": 2375306,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 24000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-17\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T15:17:54.745Z\",\n                    \"updated_at\": \"2025-06-29T15:17:54.745Z\"\n                },\n                {\n                    \"id\": 2375307,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 4800000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-17\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-29T15:17:54.751Z\",\n                    \"updated_at\": \"2025-06-29T15:17:54.751Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 2200,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        },\n        {\n            \"id\": 18628,\n            \"start_date\": \"2025-06-30\",\n            \"end_date\": \"2025-06-30\",\n            \"status\": 6,\n            \"travel_type\": \"flights\",\n            \"with_accommodation\": true,\n            \"notes\": \"Szia\",\n            \"created_at\": \"2025-06-30T13:26:32.850Z\",\n            \"updated_at\": \"2025-06-30T13:26:32.850Z\",\n            \"employee\": {\n                \"id\": 1159,\n                \"branch_id\": 104,\n                \"employment_number\": \"09\",\n                \"email\": \"qatesting@zenhr.com\",\n                \"username\": \"a5\",\n                \"user\": {\n                    \"id\": 1273,\n                    \"short_name\": {\n                        \"en\": \"Mazen Ziad\",\n                        \"ar\": \"مازن زيد\"\n                    },\n                    \"name\": {\n                        \"en\": {\n                            \"last_name\": \"Ziad\",\n                            \"first_name\": \"Mazen\",\n                            \"third_name\": \"Atta\",\n                            \"second_name\": \"Mohammad\"\n                        },\n                        \"ar\": {\n                            \"last_name\": \"زيد\",\n                            \"first_name\": \"مازن\",\n                            \"third_name\": \"عطا\",\n                            \"second_name\": \"محمد\"\n                        }\n                    },\n                    \"picture\": {\n                        \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n                    }\n                },\n                \"birthdate\": \"1984-09-01\",\n                \"hiring_date\": \"2015-01-01\",\n                \"fixing_date\": \"2015-03-31\",\n                \"termination_date\": null,\n                \"fixed\": null,\n                \"gender\": \"Male\",\n                \"marital_status\": \"Single\",\n                \"mobile_number\": \"\",\n                \"number\": \"\",\n                \"ext_number\": \"\",\n                \"personal_email\": \"\",\n                \"religion\": \"Christian\",\n                \"citizen\": false,\n                \"labour_card\": \"\",\n                \"end_of_contract\": null,\n                \"mol_number\": \"\",\n                \"resident_id\": \"2311\",\n                \"labour_card_expiry\": null,\n                \"passport_number\": \"\",\n                \"passport_issue_date\": null,\n                \"address\": \"\",\n                \"contract_type\": \"unlimited\",\n                \"contract_end_date\": null,\n                \"nationalities\": [\n                    \"Afghan\"\n                ],\n                \"national_id\": \"9881097745541\",\n                \"active\": true,\n                \"sponsor_id\": \"\",\n                \"sponsor_name\": \"\",\n                \"created_at\": \"2017-09-26T07:38:19.976Z\",\n                \"updated_at\": \"2025-06-30T13:21:02.204Z\"\n            },\n            \"departure_city\": {\n                \"id\": 152,\n                \"name\": {\n                    \"ar\": \"كوانزا سول\",\n                    \"en\": \"Cuanza Sul\"\n                }\n            },\n            \"arrival_city\": {\n                \"id\": 472,\n                \"name\": {\n                    \"ar\": \"المقاطعة المركزية\",\n                    \"en\": \"Central District\"\n                }\n            },\n            \"business_travel_destination\": {\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": {\n                    \"cents\": 2200,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"per_diem_currency\": \"SAR\",\n                \"departure_location\": {\n                    \"country\": [\n                        7\n                    ]\n                },\n                \"arrival_location\": {\n                    \"country\": [\n                        28\n                    ]\n                },\n                \"transportation\": {\n                    \"id\": 1,\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_airticket_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_travel_cost_currency\": \"SAR\"\n                },\n                \"accommodation\": {\n                    \"id\": 1,\n                    \"hotel_tier\": [],\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                }\n            },\n            \"extra_expenses\": [\n                {\n                    \"id\": 2375335,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 1200,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-30\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-30T13:26:32.858Z\",\n                    \"updated_at\": \"2025-06-30T13:26:32.858Z\"\n                },\n                {\n                    \"id\": 2375336,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 24000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-30\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-30T13:26:32.870Z\",\n                    \"updated_at\": \"2025-06-30T13:26:32.870Z\"\n                },\n                {\n                    \"id\": 2375337,\n                    \"financial_transaction_type\": {\n                        \"id\": 1748\n                    },\n                    \"employee\": {\n                        \"id\": 1159\n                    },\n                    \"transaction_status\": \"dependent\",\n                    \"direction\": \"income\",\n                    \"out_of_payroll\": true,\n                    \"amount\": {\n                        \"amount\": 4800000,\n                        \"currency\": \"SAR\"\n                    },\n                    \"notes\": null,\n                    \"effective_date\": \"2025-06-30\",\n                    \"cancel_requested\": false,\n                    \"cancel_requested_on\": null,\n                    \"created_at\": \"2025-06-30T13:26:32.878Z\",\n                    \"updated_at\": \"2025-06-30T13:26:32.878Z\"\n                }\n            ],\n            \"attachments\": [],\n            \"associated_business_travel_destination\": {\n                \"category\": \"international\",\n                \"per_diem_fils\": 2200,\n                \"per_diem_currency\": \"SAR\",\n                \"business_travel_accommodation\": {\n                    \"hotel_tier\": [],\n                    \"max_accommodation_cost_fils\": 0,\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation\": {\n                    \"travel_type\": [\n                        0\n                    ],\n                    \"airticket_class\": [],\n                    \"max_travel_cost_fils\": 0,\n                    \"max_airticket_cost_fils\": 0,\n                    \"transportation_payments\": [],\n                    \"max_travel_cost_currency\": \"SAR\",\n                    \"max_airticket_cost_currency\": \"SAR\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"ab75792e-86db-434b-8785-4909c3f32ec6"},{"name":"2. View Business Trip","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"7ddea5d7-c7af-43a0-9e90-bf13cdff814e"}}],"id":"efbd3cdc-45fe-41ed-b4e8-3d113a2a495b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/:business_trip_id","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips",":business_trip_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"business_trip.employee"},{"disabled":true,"key":"include[]","value":"business_trip.departure_city"},{"disabled":true,"key":"include[]","value":"business_trip.arrival_city"},{"disabled":true,"key":"include[]","value":"business_trip.business_travel_destination"},{"disabled":true,"key":"include[]","value":"business_trip.associated_business_travel_destination"},{"disabled":true,"key":"include[]","value":"business_trip.attachments"}],"variable":[{"id":"57bfca5d-b17c-4284-bf72-3420cc9de2a9","type":"any","value":"","key":"branch_id"},{"id":"4443ef34-b7f9-442d-9f2d-abdd43add34a","type":"any","value":"{{business_trip_id}}","key":"business_trip_id"}]}},"response":[{"id":"a4ccd12c-ae47-478b-b329-750812974d00","name":"2. View Business Trip","originalRequest":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/:business_trip_id?include[]=business_trip.employee&include[]=business_trip.departure_city&include[]=business_trip.arrival_city&include[]=business_trip.business_travel_destination&include[]=business_trip.associated_business_travel_destination&include[]=business_trip.extra_expenses&include[]=business_trip.attachments","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips",":business_trip_id"],"query":[{"key":"include[]","value":"business_trip.employee"},{"key":"include[]","value":"business_trip.departure_city"},{"key":"include[]","value":"business_trip.arrival_city"},{"key":"include[]","value":"business_trip.business_travel_destination"},{"key":"include[]","value":"business_trip.associated_business_travel_destination"},{"key":"include[]","value":"business_trip.extra_expenses"},{"key":"include[]","value":"business_trip.attachments"}],"variable":[{"key":"branch_id","value":""},{"key":"business_trip_id","value":"{{business_trip_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"56b0e8b8614a49635bf79325da1553d8\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ccae297f-dfab-4877-aee1-7f9697bbe905"},{"key":"X-Runtime","value":"0.147399"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"4957"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 18623,\n    \"start_date\": \"2025-06-29\",\n    \"end_date\": \"2025-06-30\",\n    \"status\": 6,\n    \"travel_type\": \"flights\",\n    \"with_accommodation\": true,\n    \"notes\": \"Ciao\",\n    \"created_at\": \"2025-06-29T11:35:11.080Z\",\n    \"updated_at\": \"2025-06-29T11:37:28.143Z\",\n    \"employee\": {\n        \"id\": 1159,\n        \"branch_id\": 104,\n        \"employment_number\": \"09\",\n        \"email\": \"qatesting@zenhr.com\",\n        \"username\": \"a5\",\n        \"user\": {\n            \"id\": 1273,\n            \"short_name\": {\n                \"en\": \"Mazen Ziad\",\n                \"ar\": \"مازن زيد\"\n            },\n            \"name\": {\n                \"en\": {\n                    \"last_name\": \"Ziad\",\n                    \"first_name\": \"Mazen\",\n                    \"third_name\": \"Atta\",\n                    \"second_name\": \"Mohammad\"\n                },\n                \"ar\": {\n                    \"last_name\": \"زيد\",\n                    \"first_name\": \"مازن\",\n                    \"third_name\": \"عطا\",\n                    \"second_name\": \"محمد\"\n                }\n            },\n            \"picture\": {\n                \"url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/users/1273/pictures/Screenshot_2024-11-09_155738.png\"\n            }\n        },\n        \"birthdate\": \"1984-09-01\",\n        \"hiring_date\": \"2015-01-01\",\n        \"fixing_date\": \"2015-03-31\",\n        \"termination_date\": null,\n        \"fixed\": null,\n        \"gender\": \"Male\",\n        \"marital_status\": \"Single\",\n        \"mobile_number\": \"\",\n        \"number\": \"\",\n        \"ext_number\": \"\",\n        \"personal_email\": \"\",\n        \"religion\": \"Christian\",\n        \"citizen\": false,\n        \"labour_card\": \"\",\n        \"end_of_contract\": null,\n        \"mol_number\": \"\",\n        \"resident_id\": \"2311\",\n        \"labour_card_expiry\": null,\n        \"passport_number\": \"\",\n        \"passport_issue_date\": null,\n        \"address\": \"\",\n        \"contract_type\": \"unlimited\",\n        \"contract_end_date\": null,\n        \"nationalities\": [\n            \"Afghan\"\n        ],\n        \"national_id\": \"9881097745541\",\n        \"active\": true,\n        \"sponsor_id\": \"\",\n        \"sponsor_name\": \"\",\n        \"created_at\": \"2017-09-26T07:38:19.976Z\",\n        \"updated_at\": \"2025-06-29T06:32:47.673Z\"\n    },\n    \"departure_city\": {\n        \"id\": 152,\n        \"name\": {\n            \"ar\": \"كوانزا سول\",\n            \"en\": \"Cuanza Sul\"\n        }\n    },\n    \"arrival_city\": {\n        \"id\": 472,\n        \"name\": {\n            \"ar\": \"المقاطعة المركزية\",\n            \"en\": \"Central District\"\n        }\n    },\n    \"business_travel_destination\": {\n        \"id\": 1,\n        \"category\": \"international\",\n        \"per_diem\": {\n            \"cents\": 2200,\n            \"currency_iso\": \"SAR\"\n        },\n        \"per_diem_currency\": \"SAR\",\n        \"departure_location\": {\n            \"country\": [\n                7\n            ]\n        },\n        \"arrival_location\": {\n            \"country\": [\n                28\n            ]\n        },\n        \"transportation\": {\n            \"id\": 1,\n            \"travel_type\": [\n                0\n            ],\n            \"airticket_class\": [],\n            \"max_airticket_cost\": {\n                \"cents\": 0,\n                \"currency_iso\": \"SAR\"\n            },\n            \"max_airticket_cost_currency\": \"SAR\",\n            \"max_travel_cost\": {\n                \"cents\": 0,\n                \"currency_iso\": \"SAR\"\n            },\n            \"max_travel_cost_currency\": \"SAR\"\n        },\n        \"accommodation\": {\n            \"id\": 1,\n            \"hotel_tier\": [],\n            \"period_type\": \"night\",\n            \"max_accommodation_cost\": {\n                \"cents\": 0,\n                \"currency_iso\": \"SAR\"\n            },\n            \"max_accommodation_cost_currency\": \"SAR\"\n        }\n    },\n    \"extra_expenses\": [\n        {\n            \"id\": 2375298,\n            \"financial_transaction_type\": {\n                \"id\": 1748\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"dependent\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 1200,\n                \"currency\": \"SAR\"\n            },\n            \"notes\": null,\n            \"effective_date\": \"2025-06-17\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2025-06-29T11:35:11.084Z\",\n            \"updated_at\": \"2025-06-29T11:35:11.084Z\"\n        },\n        {\n            \"id\": 2375299,\n            \"financial_transaction_type\": {\n                \"id\": 1748\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"dependent\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 24000,\n                \"currency\": \"SAR\"\n            },\n            \"notes\": null,\n            \"effective_date\": \"2025-06-17\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2025-06-29T11:35:11.095Z\",\n            \"updated_at\": \"2025-06-29T11:35:11.095Z\"\n        },\n        {\n            \"id\": 2375300,\n            \"financial_transaction_type\": {\n                \"id\": 1748\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"dependent\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 4800000,\n                \"currency\": \"SAR\"\n            },\n            \"notes\": null,\n            \"effective_date\": \"2025-06-17\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2025-06-29T11:35:11.104Z\",\n            \"updated_at\": \"2025-06-29T11:35:11.104Z\"\n        },\n        {\n            \"id\": 2375301,\n            \"financial_transaction_type\": {\n                \"id\": 1748\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 1200,\n                \"currency\": \"SAR\"\n            },\n            \"notes\": null,\n            \"effective_date\": \"2025-06-29\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2025-06-29T11:37:28.159Z\",\n            \"updated_at\": \"2025-06-29T11:37:28.159Z\"\n        },\n        {\n            \"id\": 2375302,\n            \"financial_transaction_type\": {\n                \"id\": 1748\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 24000,\n                \"currency\": \"SAR\"\n            },\n            \"notes\": null,\n            \"effective_date\": \"2025-06-29\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2025-06-29T11:37:28.175Z\",\n            \"updated_at\": \"2025-06-29T11:37:28.175Z\"\n        },\n        {\n            \"id\": 2375303,\n            \"financial_transaction_type\": {\n                \"id\": 1748\n            },\n            \"employee\": {\n                \"id\": 1159\n            },\n            \"transaction_status\": \"added_by_hr\",\n            \"direction\": \"income\",\n            \"out_of_payroll\": true,\n            \"amount\": {\n                \"amount\": 4800000,\n                \"currency\": \"SAR\"\n            },\n            \"notes\": null,\n            \"effective_date\": \"2025-06-29\",\n            \"cancel_requested\": false,\n            \"cancel_requested_on\": null,\n            \"created_at\": \"2025-06-29T11:37:28.194Z\",\n            \"updated_at\": \"2025-06-29T11:37:28.194Z\"\n        }\n    ],\n    \"attachments\": [],\n    \"associated_business_travel_destination\": {\n        \"category\": \"international\",\n        \"per_diem_fils\": 2200,\n        \"per_diem_currency\": \"SAR\",\n        \"business_travel_accommodation\": {\n            \"hotel_tier\": [],\n            \"max_accommodation_cost_fils\": 0,\n            \"max_accommodation_cost_currency\": \"SAR\"\n        },\n        \"business_travel_transportation\": {\n            \"travel_type\": [\n                0\n            ],\n            \"airticket_class\": [],\n            \"max_travel_cost_fils\": 0,\n            \"max_airticket_cost_fils\": 0,\n            \"transportation_payments\": [],\n            \"max_travel_cost_currency\": \"SAR\",\n            \"max_airticket_cost_currency\": \"SAR\"\n        }\n    }\n}"}],"_postman_id":"efbd3cdc-45fe-41ed-b4e8-3d113a2a495b"},{"name":"3. Create Business Trip","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Parse the response and save id into environment variable","const response = pm.response.json();","pm.environment.set(\"business_trip_id\", response.id);",""],"type":"text/javascript","packages":{},"id":"22c108f2-8886-4fa4-81d6-5705a2bbcba6"}}],"id":"fb9c6363-e93c-40ca-be99-45c3b2a782c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_trip\": {\n    \"category\": \"international\",\n    \"employee_id\": 1159,\n    \"departure_city_id\": 152,\n    \"arrival_city_id\": 472,\n    \"start_date\": \"2025-06-17\",\n    \"end_date\": \"2025-06-18\",\n    \"with_accommodation\": true,\n    \"notes\": \"Szia\",\n    \"extra_expenses_attributes\": [\n      {\n        \"_destroy\": false,\n        \"amount\": 1200,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 24000,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 4800000,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"ce77c15d-f878-46f1-b106-af224453ec01","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"266c978a-ede3-427e-9923-38bcd47fdedb","name":"3. Update Business Trip","originalRequest":{"method":"POST","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_trip\": {\n    \"category\": \"international\",\n    \"employee_id\": 1159,\n    \"departure_city_id\": 152,\n    \"arrival_city_id\": 472,\n    \"start_date\": \"2025-06-17\",\n    \"end_date\": \"2025-06-18\",\n    \"with_accommodation\": true,\n    \"notes\": \"Szia\",\n    \"extra_expenses_attributes\": [\n      {\n        \"_destroy\": false,\n        \"amount\": 1200,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 24000,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 4800000,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"7df269645113b05e4b2f672f18112411\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"2082aaae-2368-498c-aa31-29fc0719bfaf"},{"key":"X-Runtime","value":"4.893681"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"415"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 18623,\n    \"start_date\": \"2025-06-17\",\n    \"end_date\": \"2025-06-18\",\n    \"status\": 6,\n    \"travel_type\": \"flights\",\n    \"with_accommodation\": true,\n    \"notes\": \"Szia\",\n    \"created_at\": \"2025-06-29T11:35:11.080Z\",\n    \"updated_at\": \"2025-06-29T11:35:11.080Z\",\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"departure_city\": {\n        \"id\": 152\n    },\n    \"arrival_city\": {\n        \"id\": 472\n    },\n    \"business_travel_destination\": {\n        \"id\": 1\n    },\n    \"extra_expenses\": [\n        {\n            \"id\": 2375298\n        },\n        {\n            \"id\": 2375299\n        },\n        {\n            \"id\": 2375300\n        }\n    ],\n    \"attachments\": []\n}"}],"_postman_id":"fb9c6363-e93c-40ca-be99-45c3b2a782c9"},{"name":"4. Update Business Trip","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Parse the response and save id into environment variable","const response = pm.response.json();","pm.environment.set(\"business_travel_policy_id\", response.id);",""],"type":"text/javascript","packages":{},"id":"4c9a080a-bcf7-4386-9cfe-468051fdcc24"}}],"id":"bf153e79-6e90-435c-a383-467dc2379307","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_trip\": {\n    \"category\": \"international\",\n    \"employee_id\": 1159,\n    \"departure_city_id\": 152,\n    \"arrival_city_id\": 472,\n    \"start_date\": \"2025-06-29\",\n    \"end_date\": \"2025-06-30\",\n    \"with_accommodation\": true,\n    \"notes\": \"Ciao\",\n    \"extra_expenses_attributes\": [\n      {\n        \"_destroy\": false,\n        \"amount\": 1200,\n        \"id\": 2375291, // id --> optional for modifying extra expenses / without id for adding additional expenses\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 24000,\n        \"id\": 2375288,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 4800000,\n        \"id\":  2375289,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/:business_trip_id","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips",":business_trip_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"cd19b535-e954-4bed-975d-cd2cf0b4de4f","type":"any","value":"","key":"branch_id"},{"id":"94a87ed8-25c2-446d-8b85-6763517dcb0e","type":"any","value":"{{business_trip_id}}","key":"business_trip_id"}]}},"response":[{"id":"4c380528-7b18-4a3f-8fe3-8634681b5346","name":"4. Update Business Trip","originalRequest":{"method":"PATCH","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_trip\": {\n    \"category\": \"international\",\n    \"employee_id\": 1159,\n    \"departure_city_id\": 152,\n    \"arrival_city_id\": 472,\n    \"start_date\": \"2025-06-29\",\n    \"end_date\": \"2025-06-30\",\n    \"with_accommodation\": true,\n    \"notes\": \"Ciao\",\n    \"extra_expenses_attributes\": [\n      {\n        \"_destroy\": false,\n        \"amount\": 1200,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 24000,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      },\n      {\n        \"_destroy\": false,\n        \"amount\": 4800000,\n        \"amount_currency\": \"SAR\",\n        \"financial_transaction_type_id\": 1748\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/:business_trip_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips",":business_trip_id"],"variable":[{"key":"branch_id","value":""},{"key":"business_trip_id","value":"{{business_trip_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"c305b24f0c80987bb9a859f3a763f437\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"02a1a2b3-518a-4289-8dfe-64d64913ff09"},{"key":"X-Runtime","value":"0.428996"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"460"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 18623,\n    \"start_date\": \"2025-06-29\",\n    \"end_date\": \"2025-06-30\",\n    \"status\": 6,\n    \"travel_type\": \"flights\",\n    \"with_accommodation\": true,\n    \"notes\": \"Ciao\",\n    \"created_at\": \"2025-06-29T11:35:11.080Z\",\n    \"updated_at\": \"2025-06-29T11:37:28.143Z\",\n    \"employee\": {\n        \"id\": 1159\n    },\n    \"departure_city\": {\n        \"id\": 152\n    },\n    \"arrival_city\": {\n        \"id\": 472\n    },\n    \"business_travel_destination\": {\n        \"id\": 1\n    },\n    \"extra_expenses\": [\n        {\n            \"id\": 2375298\n        },\n        {\n            \"id\": 2375299\n        },\n        {\n            \"id\": 2375300\n        },\n        {\n            \"id\": 2375301\n        },\n        {\n            \"id\": 2375302\n        },\n        {\n            \"id\": 2375303\n        }\n    ],\n    \"attachments\": []\n}"}],"_postman_id":"bf153e79-6e90-435c-a383-467dc2379307"},{"name":"5. Delete Business Trip","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"aaf44c90-edad-4c47-8bd3-b4f971e405ed"}}],"id":"94ee8566-8d9f-4544-9c8a-5cea96ca63b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/:business_trip_id","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips",":business_trip_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"8f7e69a1-87a8-4a3d-a4ba-219924433ff3","type":"any","value":"","key":"branch_id"},{"id":"811d2979-a45a-4f34-8d7c-f93774177f72","type":"any","value":"{{business_trip_id}}","key":"business_trip_id"}]}},"response":[{"id":"da39d9d1-44f3-4d5d-a9c0-0ad8659facb1","name":"5. Delete Business Travel Policy Copy","originalRequest":{"method":"DELETE","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/:business_trip_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips",":business_trip_id"],"variable":[{"key":"branch_id","value":""},{"key":"business_trip_id","value":"{{business_trip_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"5aeb102a-2a42-475f-a263-f7b199044666"},{"key":"X-Runtime","value":"5.209402"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"94ee8566-8d9f-4544-9c8a-5cea96ca63b2"},{"name":"6. View Available Travel Types","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"20e50e1b-24eb-4482-801b-9b02e1d3b18e"}}],"id":"767c9177-ffd5-4b8b-babe-d54268328974","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/travel_types?business_trip%5Bcategory%5D=domestic&business_trip%5Bdeparture_city%5D=1&business_trip%5Barrival_city%5D=4&employee_id=1159","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips","travel_types"],"host":["app.zenhr.com"],"query":[{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"business_trip%5Bcategory%5D","value":"domestic"},{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"business_trip%5Bdeparture_city%5D","value":"1"},{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"business_trip%5Barrival_city%5D","value":"4"},{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"employee_id","value":"1159"}],"variable":[{"id":"d3b88e74-87a2-423f-9fe1-4880fdc06dc9","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"e54db3d0-e740-4544-a58c-29fa5390f70a","name":"6. View Available Travel Types","originalRequest":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/travel_types?business_trip%5Bcategory%5D=domestic&business_trip%5Bdeparture_city%5D=1&business_trip%5Barrival_city%5D=4&employee_id=1159","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips","travel_types"],"query":[{"key":"business_trip%5Bcategory%5D","value":"domestic"},{"key":"business_trip%5Bdeparture_city%5D","value":"1"},{"key":"business_trip%5Barrival_city%5D","value":"4"},{"key":"employee_id","value":"1159"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a652db068fc74db4d292c0cdf57e0687\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7aa0613d-558a-4cd4-9c01-f65a6cac0be6"},{"key":"X-Runtime","value":"4.685457"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"73"}],"cookie":[],"responseTime":null,"body":"{\n    \"travel_types\": [\n        \"flights\",\n        \"public_transportation\",\n        \"car\",\n        \"train\",\n        \"none\"\n    ]\n}"}],"_postman_id":"767c9177-ffd5-4b8b-babe-d54268328974"},{"name":"7. View Available Destination Cities","id":"09ad0262-a27b-4182-94e8-51d9cc1dd3b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Pragma","value":"no-cache"},{"key":"Accept","value":"*/*"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Cache-Control","value":"no-cache"},{"key":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"},{"key":"Referer","value":"http://zenhr.local:3000/en/business_trips"},{"key":"Connection","value":"keep-alive"},{"key":"Cookie","value":"_fw_crm_v=697f78df-ca02-479e-efed-d874deb6650e; first_session=%7B%22visits%22%3A4655%2C%22start%22%3A1736684580764%2C%22last_visit%22%3A1751200059483%2C%22url%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fdashboard%22%2C%22path%22%3A%22%2Fen%2Fdashboard%22%2C%22referrer%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fusers%2Fsign_in%22%2C%22referrer_info%22%3A%7B%22host%22%3A%22zenhr.local%3A3000%22%2C%22path%22%3A%22%2Fen%2Fusers%2Fsign_in%22%2C%22protocol%22%3A%22http%3A%22%2C%22port%22%3A%223000%22%2C%22search%22%3A%22%22%2C%22query%22%3A%7B%7D%7D%2C%22search%22%3A%7B%22engine%22%3Anull%2C%22query%22%3Anull%7D%2C%22prev_visit%22%3A1751200041207%2C%22time_since_last_visit%22%3A18276%2C%22version%22%3A0.4%7D; zenhr_session_development=c110ae63e1778a8887b3f5fadb2d4a01; BetterErrors-has-used-console=true"},{"key":"X-Requested-With","value":"XMLHttpRequest"},{"key":"Priority","value":"u=3, i"},{"key":"X-CSRF-Token","value":"yeMxeXJgk0B7bqi2bAVdRlmK4Hwms-eWnWSLmjp9TzAVFvhMHTNDEq_XArYhWaZxCCMLE-O6asUGNXX3DzrIwg"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/destinations_cities?business_trip%5Bcategory%5D=international&employee_id=1159","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips","destinations_cities"],"host":["app.zenhr.com"],"query":[{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"business_trip%5Bcategory%5D","value":"international"},{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"employee_id","value":"1159"},{"disabled":true,"key":"locale","value":"en"}],"variable":[{"id":"f8829ff1-11cc-4490-91e2-c93943ebf7ad","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"ac80abca-de15-4273-9b5b-f8c9b95d25e5","name":"7. View Destination Cities","originalRequest":{"method":"GET","header":[{"key":"Pragma","value":"no-cache"},{"key":"Accept","value":"*/*"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Cache-Control","value":"no-cache"},{"key":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"},{"key":"Referer","value":"http://zenhr.local:3000/en/business_trips"},{"key":"Connection","value":"keep-alive"},{"key":"Cookie","value":"_fw_crm_v=697f78df-ca02-479e-efed-d874deb6650e; first_session=%7B%22visits%22%3A4655%2C%22start%22%3A1736684580764%2C%22last_visit%22%3A1751200059483%2C%22url%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fdashboard%22%2C%22path%22%3A%22%2Fen%2Fdashboard%22%2C%22referrer%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fusers%2Fsign_in%22%2C%22referrer_info%22%3A%7B%22host%22%3A%22zenhr.local%3A3000%22%2C%22path%22%3A%22%2Fen%2Fusers%2Fsign_in%22%2C%22protocol%22%3A%22http%3A%22%2C%22port%22%3A%223000%22%2C%22search%22%3A%22%22%2C%22query%22%3A%7B%7D%7D%2C%22search%22%3A%7B%22engine%22%3Anull%2C%22query%22%3Anull%7D%2C%22prev_visit%22%3A1751200041207%2C%22time_since_last_visit%22%3A18276%2C%22version%22%3A0.4%7D; zenhr_session_development=c110ae63e1778a8887b3f5fadb2d4a01; BetterErrors-has-used-console=true"},{"key":"X-Requested-With","value":"XMLHttpRequest"},{"key":"Priority","value":"u=3, i"},{"key":"X-CSRF-Token","value":"yeMxeXJgk0B7bqi2bAVdRlmK4Hwms-eWnWSLmjp9TzAVFvhMHTNDEq_XArYhWaZxCCMLE-O6asUGNXX3DzrIwg"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/destinations_cities?business_trip%5Bcategory%5D=international&employee_id=1159&locale=en","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips","destinations_cities"],"query":[{"key":"business_trip%5Bcategory%5D","value":"international"},{"key":"employee_id","value":"1159"},{"key":"locale","value":"en"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"602dd46da4fcba1da0edc67cf0739169\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"463af320-3cd3-4152-83a8-e01673797f77"},{"key":"X-Runtime","value":"0.185138"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1408"}],"cookie":[],"responseTime":null,"body":"{\n    \"departure_cities\": [\n        [\n            \"Angola\",\n            [\n                [\n                    \"Bengo Province\",\n                    146\n                ],\n                [\n                    \"Benguela Province\",\n                    147\n                ],\n                [\n                    \"Bié Province\",\n                    148\n                ],\n                [\n                    \"Cabinda Province\",\n                    149\n                ],\n                [\n                    \"Cuando Cubango Province\",\n                    150\n                ],\n                [\n                    \"Cuanza Norte Province\",\n                    151\n                ],\n                [\n                    \"Cuanza Sul\",\n                    152\n                ],\n                [\n                    \"Cunene Province\",\n                    153\n                ],\n                [\n                    \"Huambo Province\",\n                    154\n                ],\n                [\n                    \"Huíla Province\",\n                    155\n                ],\n                [\n                    \"Luanda Province\",\n                    156\n                ],\n                [\n                    \"Lunda Norte Province\",\n                    157\n                ],\n                [\n                    \"Lunda Sul Province\",\n                    158\n                ],\n                [\n                    \"Malanje Province\",\n                    159\n                ],\n                [\n                    \"Moxico Province\",\n                    160\n                ],\n                [\n                    \"Uíge Province\",\n                    161\n                ],\n                [\n                    \"Zaire Province\",\n                    162\n                ]\n            ]\n        ],\n        [\n            \"Benin\",\n            [\n                [\n                    \"Alibori Department\",\n                    410\n                ],\n                [\n                    \"Atakora Department\",\n                    411\n                ],\n                [\n                    \"Atlantique Department\",\n                    412\n                ],\n                [\n                    \"Borgou Department\",\n                    413\n                ],\n                [\n                    \"Collines Department\",\n                    414\n                ],\n                [\n                    \"Donga Department\",\n                    415\n                ],\n                [\n                    \"Kouffo Department\",\n                    416\n                ],\n                [\n                    \"Littoral Department\",\n                    417\n                ],\n                [\n                    \"Mono Department\",\n                    418\n                ],\n                [\n                    \"Ouémé Department\",\n                    419\n                ],\n                [\n                    \"Plateau Department\",\n                    420\n                ],\n                [\n                    \"Zou Department\",\n                    421\n                ]\n            ]\n        ]\n    ],\n    \"arrival_cities\": [\n        [\n            \"Benin\",\n            [\n                [\n                    \"Alibori Department\",\n                    410\n                ],\n                [\n                    \"Atakora Department\",\n                    411\n                ],\n                [\n                    \"Atlantique Department\",\n                    412\n                ],\n                [\n                    \"Borgou Department\",\n                    413\n                ],\n                [\n                    \"Collines Department\",\n                    414\n                ],\n                [\n                    \"Donga Department\",\n                    415\n                ],\n                [\n                    \"Kouffo Department\",\n                    416\n                ],\n                [\n                    \"Littoral Department\",\n                    417\n                ],\n                [\n                    \"Mono Department\",\n                    418\n                ],\n                [\n                    \"Ouémé Department\",\n                    419\n                ],\n                [\n                    \"Plateau Department\",\n                    420\n                ],\n                [\n                    \"Zou Department\",\n                    421\n                ]\n            ]\n        ],\n        [\n            \"Botswana\",\n            [\n                [\n                    \"Central District\",\n                    472\n                ],\n                [\n                    \"Ghanzi District\",\n                    473\n                ],\n                [\n                    \"Kgalagadi District\",\n                    474\n                ],\n                [\n                    \"Kgatleng District\",\n                    475\n                ],\n                [\n                    \"Kweneng District\",\n                    476\n                ],\n                [\n                    \"Ngamiland\",\n                    477\n                ],\n                [\n                    \"North-East District\",\n                    478\n                ],\n                [\n                    \"North-West District\",\n                    479\n                ],\n                [\n                    \"South-East District\",\n                    480\n                ],\n                [\n                    \"Southern District\",\n                    481\n                ]\n            ]\n        ]\n    ]\n}"}],"_postman_id":"09ad0262-a27b-4182-94e8-51d9cc1dd3b7"},{"name":"8. View Available Arrival Cities","id":"9d44b6b4-aa56-45e7-9e7d-ddcc05e7c207","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Pragma","value":"no-cache"},{"key":"Accept","value":"application/json, text/javascript, */*; q=0.01"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Cache-Control","value":"no-cache"},{"key":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"},{"key":"Referer","value":"http://zenhr.local:3000/en/business_trips"},{"key":"Connection","value":"keep-alive"},{"key":"Cookie","value":"_fw_crm_v=697f78df-ca02-479e-efed-d874deb6650e; first_session=%7B%22visits%22%3A4655%2C%22start%22%3A1736684580764%2C%22last_visit%22%3A1751200059483%2C%22url%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fdashboard%22%2C%22path%22%3A%22%2Fen%2Fdashboard%22%2C%22referrer%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fusers%2Fsign_in%22%2C%22referrer_info%22%3A%7B%22host%22%3A%22zenhr.local%3A3000%22%2C%22path%22%3A%22%2Fen%2Fusers%2Fsign_in%22%2C%22protocol%22%3A%22http%3A%22%2C%22port%22%3A%223000%22%2C%22search%22%3A%22%22%2C%22query%22%3A%7B%7D%7D%2C%22search%22%3A%7B%22engine%22%3Anull%2C%22query%22%3Anull%7D%2C%22prev_visit%22%3A1751200041207%2C%22time_since_last_visit%22%3A18276%2C%22version%22%3A0.4%7D; zenhr_session_development=c110ae63e1778a8887b3f5fadb2d4a01; BetterErrors-has-used-console=true"},{"key":"X-Requested-With","value":"XMLHttpRequest"},{"key":"Priority","value":"u=3, i"},{"key":"X-CSRF-Token","value":"yeMxeXJgk0B7bqi2bAVdRlmK4Hwms-eWnWSLmjp9TzAVFvhMHTNDEq_XArYhWaZxCCMLE-O6asUGNXX3DzrIwg"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/all_available_arrivals?departure_city_id=420&employee_id=1159&category=international","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips","all_available_arrivals"],"host":["app.zenhr.com"],"query":[{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"departure_city_id","value":"420"},{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"employee_id","value":"1159"},{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"category","value":"international"}],"variable":[{"id":"3266c480-59da-4721-877a-134465b7f7fd","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"f1f7e6c8-c82d-47e3-b250-389bdd16ce5d","name":"8. View Available Arrival Cities","originalRequest":{"method":"GET","header":[{"key":"Pragma","value":"no-cache"},{"key":"Accept","value":"application/json, text/javascript, */*; q=0.01"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Cache-Control","value":"no-cache"},{"key":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"},{"key":"Referer","value":"http://zenhr.local:3000/en/business_trips"},{"key":"Connection","value":"keep-alive"},{"key":"Cookie","value":"_fw_crm_v=697f78df-ca02-479e-efed-d874deb6650e; first_session=%7B%22visits%22%3A4655%2C%22start%22%3A1736684580764%2C%22last_visit%22%3A1751200059483%2C%22url%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fdashboard%22%2C%22path%22%3A%22%2Fen%2Fdashboard%22%2C%22referrer%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fusers%2Fsign_in%22%2C%22referrer_info%22%3A%7B%22host%22%3A%22zenhr.local%3A3000%22%2C%22path%22%3A%22%2Fen%2Fusers%2Fsign_in%22%2C%22protocol%22%3A%22http%3A%22%2C%22port%22%3A%223000%22%2C%22search%22%3A%22%22%2C%22query%22%3A%7B%7D%7D%2C%22search%22%3A%7B%22engine%22%3Anull%2C%22query%22%3Anull%7D%2C%22prev_visit%22%3A1751200041207%2C%22time_since_last_visit%22%3A18276%2C%22version%22%3A0.4%7D; zenhr_session_development=c110ae63e1778a8887b3f5fadb2d4a01; BetterErrors-has-used-console=true"},{"key":"X-Requested-With","value":"XMLHttpRequest"},{"key":"Priority","value":"u=3, i"},{"key":"X-CSRF-Token","value":"yeMxeXJgk0B7bqi2bAVdRlmK4Hwms-eWnWSLmjp9TzAVFvhMHTNDEq_XArYhWaZxCCMLE-O6asUGNXX3DzrIwg"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/all_available_arrivals?departure_city_id=420&employee_id=1159&category=international","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips","all_available_arrivals"],"query":[{"key":"departure_city_id","value":"420"},{"key":"employee_id","value":"1159"},{"key":"category","value":"international"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"8762fc7f8ee466b4126e3444bd1f69f7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1f57175d-3dfb-4e36-9932-73d5c2dba545"},{"key":"X-Runtime","value":"0.128477"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"350"}],"cookie":[],"responseTime":null,"body":"{\n    \"arrival_cities\": [\n        [\n            \"Benin\",\n            [\n                [\n                    \"Alibori Department\",\n                    410\n                ],\n                [\n                    \"Atakora Department\",\n                    411\n                ],\n                [\n                    \"Atlantique Department\",\n                    412\n                ],\n                [\n                    \"Borgou Department\",\n                    413\n                ],\n                [\n                    \"Collines Department\",\n                    414\n                ],\n                [\n                    \"Donga Department\",\n                    415\n                ],\n                [\n                    \"Kouffo Department\",\n                    416\n                ],\n                [\n                    \"Littoral Department\",\n                    417\n                ],\n                [\n                    \"Mono Department\",\n                    418\n                ],\n                [\n                    \"Ouémé Department\",\n                    419\n                ],\n                [\n                    \"Plateau Department\",\n                    420\n                ],\n                [\n                    \"Zou Department\",\n                    421\n                ]\n            ]\n        ]\n    ]\n}"}],"_postman_id":"9d44b6b4-aa56-45e7-9e7d-ddcc05e7c207"},{"name":"9. View Available Destinations","id":"143047ae-4815-4e77-8de4-09c74373ffaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Pragma","value":"no-cache"},{"key":"Accept","value":"application/json, text/javascript, */*; q=0.01"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Cache-Control","value":"no-cache"},{"key":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"},{"key":"Referer","value":"http://zenhr.local:3000/en/business_trips"},{"key":"Connection","value":"keep-alive"},{"key":"Cookie","value":"_fw_crm_v=697f78df-ca02-479e-efed-d874deb6650e; first_session=%7B%22visits%22%3A4655%2C%22start%22%3A1736684580764%2C%22last_visit%22%3A1751200059483%2C%22url%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fdashboard%22%2C%22path%22%3A%22%2Fen%2Fdashboard%22%2C%22referrer%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fusers%2Fsign_in%22%2C%22referrer_info%22%3A%7B%22host%22%3A%22zenhr.local%3A3000%22%2C%22path%22%3A%22%2Fen%2Fusers%2Fsign_in%22%2C%22protocol%22%3A%22http%3A%22%2C%22port%22%3A%223000%22%2C%22search%22%3A%22%22%2C%22query%22%3A%7B%7D%7D%2C%22search%22%3A%7B%22engine%22%3Anull%2C%22query%22%3Anull%7D%2C%22prev_visit%22%3A1751200041207%2C%22time_since_last_visit%22%3A18276%2C%22version%22%3A0.4%7D; zenhr_session_development=c110ae63e1778a8887b3f5fadb2d4a01; BetterErrors-has-used-console=true"},{"key":"X-Requested-With","value":"XMLHttpRequest"},{"key":"Priority","value":"u=3, i"},{"key":"X-CSRF-Token","value":"yeMxeXJgk0B7bqi2bAVdRlmK4Hwms-eWnWSLmjp9TzAVFvhMHTNDEq_XArYhWaZxCCMLE-O6asUGNXX3DzrIwg"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/destinations_data?employee_id=1159","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_trips","destinations_data"],"host":["app.zenhr.com"],"query":[{"description":{"content":"<p>mandatory</p>\n","type":"text/plain"},"key":"employee_id","value":"1159"}],"variable":[{"id":"45106ce0-8631-4b50-aeda-36ee5c686636","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"b8868d11-8def-4d09-ac84-6ededeb4bb1c","name":"9. View Available Destinations","originalRequest":{"method":"GET","header":[{"key":"Pragma","value":"no-cache"},{"key":"Accept","value":"application/json, text/javascript, */*; q=0.01"},{"key":"Accept-Language","value":"en-GB,en-US;q=0.9,en;q=0.8"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Cache-Control","value":"no-cache"},{"key":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"},{"key":"Referer","value":"http://zenhr.local:3000/en/business_trips"},{"key":"Connection","value":"keep-alive"},{"key":"Cookie","value":"_fw_crm_v=697f78df-ca02-479e-efed-d874deb6650e; first_session=%7B%22visits%22%3A4655%2C%22start%22%3A1736684580764%2C%22last_visit%22%3A1751200059483%2C%22url%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fdashboard%22%2C%22path%22%3A%22%2Fen%2Fdashboard%22%2C%22referrer%22%3A%22http%3A%2F%2Fzenhr.local%3A3000%2Fen%2Fusers%2Fsign_in%22%2C%22referrer_info%22%3A%7B%22host%22%3A%22zenhr.local%3A3000%22%2C%22path%22%3A%22%2Fen%2Fusers%2Fsign_in%22%2C%22protocol%22%3A%22http%3A%22%2C%22port%22%3A%223000%22%2C%22search%22%3A%22%22%2C%22query%22%3A%7B%7D%7D%2C%22search%22%3A%7B%22engine%22%3Anull%2C%22query%22%3Anull%7D%2C%22prev_visit%22%3A1751200041207%2C%22time_since_last_visit%22%3A18276%2C%22version%22%3A0.4%7D; zenhr_session_development=c110ae63e1778a8887b3f5fadb2d4a01; BetterErrors-has-used-console=true"},{"key":"X-Requested-With","value":"XMLHttpRequest"},{"key":"Priority","value":"u=3, i"},{"key":"X-CSRF-Token","value":"yeMxeXJgk0B7bqi2bAVdRlmK4Hwms-eWnWSLmjp9TzAVFvhMHTNDEq_XArYhWaZxCCMLE-O6asUGNXX3DzrIwg"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_trips/destinations_data?employee_id=1159","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_trips","destinations_data"],"query":[{"key":"employee_id","value":"1159"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"9e41723ad2003f0e1a1ae602902c4310\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"68731c4f-4647-4fb8-8ca2-f644d01734d2"},{"key":"X-Runtime","value":"4.410040"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"1736"}],"cookie":[],"responseTime":null,"body":"{\n    \"categories\": [\n        {\n            \"category\": \"international\",\n            \"destinations\": {\n                \"departure_cities\": [\n                    [\n                        \"Angola\",\n                        [\n                            [\n                                \"Bengo Province\",\n                                146\n                            ],\n                            [\n                                \"Benguela Province\",\n                                147\n                            ],\n                            [\n                                \"Bié Province\",\n                                148\n                            ],\n                            [\n                                \"Cabinda Province\",\n                                149\n                            ],\n                            [\n                                \"Cuando Cubango Province\",\n                                150\n                            ],\n                            [\n                                \"Cuanza Norte Province\",\n                                151\n                            ],\n                            [\n                                \"Cuanza Sul\",\n                                152\n                            ],\n                            [\n                                \"Cunene Province\",\n                                153\n                            ],\n                            [\n                                \"Huambo Province\",\n                                154\n                            ],\n                            [\n                                \"Huíla Province\",\n                                155\n                            ],\n                            [\n                                \"Luanda Province\",\n                                156\n                            ],\n                            [\n                                \"Lunda Norte Province\",\n                                157\n                            ],\n                            [\n                                \"Lunda Sul Province\",\n                                158\n                            ],\n                            [\n                                \"Malanje Province\",\n                                159\n                            ],\n                            [\n                                \"Moxico Province\",\n                                160\n                            ],\n                            [\n                                \"Uíge Province\",\n                                161\n                            ],\n                            [\n                                \"Zaire Province\",\n                                162\n                            ]\n                        ]\n                    ],\n                    [\n                        \"Benin\",\n                        [\n                            [\n                                \"Alibori Department\",\n                                410\n                            ],\n                            [\n                                \"Atakora Department\",\n                                411\n                            ],\n                            [\n                                \"Atlantique Department\",\n                                412\n                            ],\n                            [\n                                \"Borgou Department\",\n                                413\n                            ],\n                            [\n                                \"Collines Department\",\n                                414\n                            ],\n                            [\n                                \"Donga Department\",\n                                415\n                            ],\n                            [\n                                \"Kouffo Department\",\n                                416\n                            ],\n                            [\n                                \"Littoral Department\",\n                                417\n                            ],\n                            [\n                                \"Mono Department\",\n                                418\n                            ],\n                            [\n                                \"Ouémé Department\",\n                                419\n                            ],\n                            [\n                                \"Plateau Department\",\n                                420\n                            ],\n                            [\n                                \"Zou Department\",\n                                421\n                            ]\n                        ]\n                    ]\n                ],\n                \"arrival_cities\": [\n                    [\n                        \"Benin\",\n                        [\n                            [\n                                \"Alibori Department\",\n                                410\n                            ],\n                            [\n                                \"Atakora Department\",\n                                411\n                            ],\n                            [\n                                \"Atlantique Department\",\n                                412\n                            ],\n                            [\n                                \"Borgou Department\",\n                                413\n                            ],\n                            [\n                                \"Collines Department\",\n                                414\n                            ],\n                            [\n                                \"Donga Department\",\n                                415\n                            ],\n                            [\n                                \"Kouffo Department\",\n                                416\n                            ],\n                            [\n                                \"Littoral Department\",\n                                417\n                            ],\n                            [\n                                \"Mono Department\",\n                                418\n                            ],\n                            [\n                                \"Ouémé Department\",\n                                419\n                            ],\n                            [\n                                \"Plateau Department\",\n                                420\n                            ],\n                            [\n                                \"Zou Department\",\n                                421\n                            ]\n                        ]\n                    ],\n                    [\n                        \"Botswana\",\n                        [\n                            [\n                                \"Central District\",\n                                472\n                            ],\n                            [\n                                \"Ghanzi District\",\n                                473\n                            ],\n                            [\n                                \"Kgalagadi District\",\n                                474\n                            ],\n                            [\n                                \"Kgatleng District\",\n                                475\n                            ],\n                            [\n                                \"Kweneng District\",\n                                476\n                            ],\n                            [\n                                \"Ngamiland\",\n                                477\n                            ],\n                            [\n                                \"North-East District\",\n                                478\n                            ],\n                            [\n                                \"North-West District\",\n                                479\n                            ],\n                            [\n                                \"South-East District\",\n                                480\n                            ],\n                            [\n                                \"Southern District\",\n                                481\n                            ]\n                        ]\n                    ]\n                ]\n            }\n        },\n        {\n            \"category\": \"domestic\",\n            \"destinations\": {\n                \"departure_cities\": [\n                    [\n                        \"Afghanistan\",\n                        [\n                            [\n                                \"Badakhshan\",\n                                1\n                            ],\n                            [\n                                \"Baghlan\",\n                                3\n                            ],\n                            [\n                                \"Balkh\",\n                                4\n                            ]\n                        ]\n                    ],\n                    [\n                        \"Algeria\",\n                        [\n                            [\n                                \"Aïn Defla\",\n                                82\n                            ]\n                        ]\n                    ]\n                ],\n                \"arrival_cities\": [\n                    [\n                        \"Afghanistan\",\n                        [\n                            [\n                                \"Badakhshan\",\n                                1\n                            ],\n                            [\n                                \"Badghis\",\n                                2\n                            ],\n                            [\n                                \"Balkh\",\n                                4\n                            ]\n                        ]\n                    ],\n                    [\n                        \"Algeria\",\n                        [\n                            [\n                                \"Aïn Defla\",\n                                82\n                            ]\n                        ]\n                    ]\n                ]\n            }\n        }\n    ]\n}"}],"_postman_id":"143047ae-4815-4e77-8de4-09c74373ffaf"}],"id":"20255e6e-1aae-4b89-8dc0-b8e3bb437f8b","_postman_id":"20255e6e-1aae-4b89-8dc0-b8e3bb437f8b","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Business Travel Setup","item":[{"name":"1. Get Business Tavel Setup","id":"287f125d-ce27-41dd-807f-21af16f40ef9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Accept-Language","value":"en"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_setup","description":"<p>Generated from cURL: curl --location --globoff '<a href=\"http://zenhr.local:3000/api/v3/branches/104/business_travel_setup?include%5B%5D=business_travel_setup.perdiems_financial_transaction_type&amp;include%5B%5D=business_travel_setup.airticket_financial_transaction_type&amp;include%5B%5D=business_travel_setup.accommodation_financial_transaction_type\">http://zenhr.local:3000/api/v3/branches/104/business_travel_setup?include[]=business_travel_setup.perdiems_financial_transaction_type&amp;include[]=business_travel_setup.airticket_financial_transaction_type&amp;include[]=business_travel_setup.accommodation_financial_transaction_type</a>'\n--header 'accept: application/json'\n--header 'Content-Type: application/json'\n--header 'Accept-Language: en'</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_setup"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"business_travel_setup.perdiems_financial_transaction_type"},{"disabled":true,"key":"include[]","value":"business_travel_setup.airticket_financial_transaction_type"},{"disabled":true,"key":"include[]","value":"business_travel_setup.accommodation_financial_transaction_type"},{"disabled":true,"key":"include[]","value":"business_travel_setup.expenses_financial_transaction_types"}],"variable":[{"id":"6c53b407-b763-4c82-a26a-d5935e03bbb1","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"020d7d27-7509-4e02-80e3-52d367d720d3","name":"1. Get Business Tavel Setup","originalRequest":{"method":"GET","header":[{"key":"accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Accept-Language","value":"en"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_setup?include[]=business_travel_setup.perdiems_financial_transaction_type&include[]=business_travel_setup.airticket_financial_transaction_type&include[]=business_travel_setup.accommodation_financial_transaction_type&include[]=business_travel_setup.expenses_financial_transaction_types","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_travel_setup"],"query":[{"key":"include[]","value":"business_travel_setup.perdiems_financial_transaction_type"},{"key":"include[]","value":"business_travel_setup.airticket_financial_transaction_type"},{"key":"include[]","value":"business_travel_setup.accommodation_financial_transaction_type"},{"key":"include[]","value":"business_travel_setup.expenses_financial_transaction_types"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"35b05d7d98952c5c4aecddbec069e30b\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"d9648ac6-4809-41a5-ae40-d3b619ce26cf"},{"key":"X-Runtime","value":"0.188809"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"2314"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 980,\n    \"perdiems_financial_transaction_type\": {\n        \"id\": 30054,\n        \"name\": {\n            \"ar\": \"\",\n            \"en\": \"fatoora\"\n        },\n        \"amount\": null,\n        \"payroll_status\": \"in_payroll\",\n        \"is_fixed\": false,\n        \"one_time\": true,\n        \"direction\": \"incomes\",\n        \"min\": null,\n        \"max\": null,\n        \"ability_to_request\": false,\n        \"exempted\": false,\n        \"pro_rata\": false,\n        \"mandatory_notes\": false,\n        \"hiring_termination_pro_rata\": true,\n        \"include_in_fixed_income\": true,\n        \"included_in_ss\": false,\n        \"active\": true,\n        \"gl_account_number\": null,\n        \"clearance_account\": null,\n        \"created_at\": \"2023-05-04T08:09:56.202Z\",\n        \"updated_at\": \"2023-05-04T08:09:56.202Z\"\n    },\n    \"airticket_financial_transaction_type\": {\n        \"id\": 49940,\n        \"name\": {\n            \"ar\": \"\",\n            \"en\": \"Air Tickets Expense \"\n        },\n        \"amount\": null,\n        \"payroll_status\": \"in_payroll\",\n        \"is_fixed\": false,\n        \"one_time\": true,\n        \"direction\": \"company_expenses\",\n        \"min\": null,\n        \"max\": null,\n        \"ability_to_request\": false,\n        \"exempted\": true,\n        \"pro_rata\": false,\n        \"mandatory_notes\": false,\n        \"hiring_termination_pro_rata\": true,\n        \"include_in_fixed_income\": true,\n        \"included_in_ss\": false,\n        \"active\": true,\n        \"gl_account_number\": null,\n        \"clearance_account\": null,\n        \"created_at\": \"2024-07-09T11:48:12.512Z\",\n        \"updated_at\": \"2024-07-09T11:48:12.512Z\"\n    },\n    \"accommodation_financial_transaction_type\": {\n        \"id\": 49940,\n        \"name\": {\n            \"ar\": \"\",\n            \"en\": \"Air Tickets Expense \"\n        },\n        \"amount\": null,\n        \"payroll_status\": \"in_payroll\",\n        \"is_fixed\": false,\n        \"one_time\": true,\n        \"direction\": \"company_expenses\",\n        \"min\": null,\n        \"max\": null,\n        \"ability_to_request\": false,\n        \"exempted\": true,\n        \"pro_rata\": false,\n        \"mandatory_notes\": false,\n        \"hiring_termination_pro_rata\": true,\n        \"include_in_fixed_income\": true,\n        \"included_in_ss\": false,\n        \"active\": true,\n        \"gl_account_number\": null,\n        \"clearance_account\": null,\n        \"created_at\": \"2024-07-09T11:48:12.512Z\",\n        \"updated_at\": \"2024-07-09T11:48:12.512Z\"\n    },\n    \"payroll_status\": \"out_of_payroll\",\n    \"employee_reminder_days_before\": 1,\n    \"created_at\": \"2025-06-19T11:39:08.998Z\",\n    \"updated_at\": \"2025-06-19T11:39:37.613Z\",\n    \"expenses_financial_transaction_types\": [\n        {\n            \"id\": 1748,\n            \"name\": {\n                \"ar\": \"علاوة\",\n                \"en\": \"Allowance 2222\"\n            },\n            \"amount\": 50,\n            \"payroll_status\": \"in_payroll\",\n            \"is_fixed\": false,\n            \"one_time\": true,\n            \"direction\": \"incomes\",\n            \"min\": null,\n            \"max\": null,\n            \"ability_to_request\": false,\n            \"exempted\": false,\n            \"pro_rata\": false,\n            \"mandatory_notes\": false,\n            \"hiring_termination_pro_rata\": true,\n            \"include_in_fixed_income\": false,\n            \"included_in_ss\": false,\n            \"active\": true,\n            \"gl_account_number\": null,\n            \"clearance_account\": null,\n            \"created_at\": \"2018-07-22T12:28:36.713Z\",\n            \"updated_at\": \"2023-02-01T13:39:05.209Z\"\n        }\n    ]\n}"}],"_postman_id":"287f125d-ce27-41dd-807f-21af16f40ef9"},{"name":"2. Update Business Travel Setup","id":"b62c9d99-1e20-41eb-b225-d1b9585f3198","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Accept-Language","value":"en"}],"body":{"mode":"raw","raw":"{\n    \"perdiems_financial_transaction_type_id\": 30054,\n    \"airticket_financial_transaction_type_id\": 49940,\n    \"accommodation_financial_transaction_type_id\": 49940,\n    \"payroll_status\": \"out_of_payroll\",\n    \"employee_reminder_days_before\": 1,\n    \"expenses_financial_transaction_types\": [\n        1748\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_setup","description":"<p>Generated from cURL: curl --location --request PUT '<a href=\"http://zenhr.local:3000/api/v3/branches/104/business_travel_setup\">http://zenhr.local:3000/api/v3/branches/104/business_travel_setup</a>'\n--header 'accept: application/json'\n--header 'Content-Type: application/json'\n--header 'Accept-Language: en'\n--header 'Authorization: eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwOi8vemVuaHIubG9jYWw6MzAwMCIsImFwcCI6IkJ1c2luZXNzIFRyYXZlbCBBUElzIiwiYXBwX2lkIjo4OSwiaWF0IjoxNzUwNjY3MzMyLCJhdWQiOiJhSGdBdjhPdnpMakZJUWNCM3drbmVZOEJQcmFpZXlfLTVzdF9rdzRMSHBJIiwianRpIjoiZWU4YWNjYWYtYzI3ZS00NjZmLWE2M2QtMDFiMzEwYTNiM2IyIiwic3ViIjpudWxsLCJzY29wZXMiOlsicmVhZDpidXNpbmVzc190cmF2ZWxfc2V0dXAiLCJ1cGRhdGU6YnVzaW5lc3NfdHJhdmVsX3NldHVwIiwicmVhZDphdHRlbmRhbmNlX3JlY29yZCIsInJlYWQ6YnJhbmNoIiwiY3JlYXRlOmF0dGVuZGFuY2VfZGV0YWlsIiwicmVhZDplbXBsb3llZSIsInJlYWQ6YXR0ZW5kYW5jZV90cmFuc2FjdGlvbiIsInJlYWQ6ZW1wbG95ZWVfc2hpZnQiLCJyZWFkOndvcmtfc2hpZnQiLCJxcl9jbG9ja2luZzphdHRlbmRhbmNlX2RldGFpbCIsImJ1bGtfaW5zZXJ0OmF0dGVuZGFuY2VfZGV0YWlsIiwicmVhZDpmaW5hbmNpYWxfdHJhbnNhY3Rpb24iXSwicmVzb3VyY2UiOnsidHlwZSI6IkJyYW5jaCIsImlkIjoxMDR9LCJwcm9wcyI6eyJhY2Nlc3NlZF9icmFuY2hlc19pZHMiOltdLCJjb21wYW55X2lkIjo3MiwiYnJhbmNoX2lkIjpudWxsLCJ1c2VyX2lkIjpudWxsLCJlbXBsb3llZV9pZCI6bnVsbCwibmFtZSI6IkpvcmRhbiBCcmFuY2giLCJlbWFpbCI6bnVsbCwiY29uZmlybWVkX2F0IjpudWxsLCJ1bmxvY2tfdG9rZW4iOm51bGwsImFjdGl2ZSI6dHJ1ZX0sImV4cCI6MTc1MDY3MDkzMiwiYnJhbmNoX2lkcyI6bnVsbH0.L6WUTVbDDZ1qylvKNMSlQSqXMmDVxT4MpfSDyhGXHmPA2cibkZnMYHGxBLTDPoVasCFj90NRAwfVJ8ydQ6oK6OcSx2Vm3BQht39K3UEA38AcMCEjPfnKSmvks-uzEiiYpDaz7D8PaMTB8_v4OHqzgJAao3R7Qq5f2QKCq7xr6eDsRHfn75-c-m9lLYxRrhnIiskdSp80z2qR54qR7gTCsnQBbvzloUJ7gyV1XtfLN_WZILItPNZTYk3m4yRV4JnmtFMlGBb49ysBNXDS1oGZfgqA7Z3ji5hj7ot1PwqQsaORO3N0jnjqz57DstcTx_ImIQJ5dlM4iZeXuj4Yq1JIgg'\n--data '{ \"perdiems_financial_transaction_type_id\": 30054, \"airticket_financial_transaction_type_id\": 49940, \"accommodation_financial_transaction_type_id\": 49940, \"payroll_status\": \"out_of_payroll\", \"employee_reminder_days_before\": 1, \"expenses_financial_transaction_types\": [1748] }' Response: { \"id\": 980, \"perdiems_financial_transaction_type\": { \"id\": 30054 }, \"airticket_financial_transaction_type\": { \"id\": 49940 }, \"accommodation_financial_transaction_type\": { \"id\": 49940 }, \"expenses_financial_transaction_types\": [ { \"id\": 1748, \"name_en\": \"Allowance 2222\", \"name_ar\": \"علاوة\" } ], \"payroll_status\": \"out_of_payroll\", \"employee_reminder_days_before\": 1, \"created_at\": \"2025-06-19T11:39:08.998Z\", \"updated_at\": \"2025-06-19T11:39:37.613Z\" } 2.b Unprocessable Entity Request: with non existing financial_transaction_type</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_setup"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"4fa8491f-df60-4832-90ee-05012808988b","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"5ba8a0c4-a0e5-4af8-afcf-0e8e222ae96d","name":"2. Update Business Travel Setup","originalRequest":{"method":"PATCH","header":[{"key":"accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Accept-Language","value":"en"},{"key":"Authorization","value":"eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwOi8vemVuaHIubG9jYWw6MzAwMCIsImFwcCI6IkJ1c2luZXNzIFRyYXZlbCBBUElzIiwiYXBwX2lkIjo4OSwiaWF0IjoxNzUwNjY3MzMyLCJhdWQiOiJhSGdBdjhPdnpMakZJUWNCM3drbmVZOEJQcmFpZXlfLTVzdF9rdzRMSHBJIiwianRpIjoiZWU4YWNjYWYtYzI3ZS00NjZmLWE2M2QtMDFiMzEwYTNiM2IyIiwic3ViIjpudWxsLCJzY29wZXMiOlsicmVhZDpidXNpbmVzc190cmF2ZWxfc2V0dXAiLCJ1cGRhdGU6YnVzaW5lc3NfdHJhdmVsX3NldHVwIiwicmVhZDphdHRlbmRhbmNlX3JlY29yZCIsInJlYWQ6YnJhbmNoIiwiY3JlYXRlOmF0dGVuZGFuY2VfZGV0YWlsIiwicmVhZDplbXBsb3llZSIsInJlYWQ6YXR0ZW5kYW5jZV90cmFuc2FjdGlvbiIsInJlYWQ6ZW1wbG95ZWVfc2hpZnQiLCJyZWFkOndvcmtfc2hpZnQiLCJxcl9jbG9ja2luZzphdHRlbmRhbmNlX2RldGFpbCIsImJ1bGtfaW5zZXJ0OmF0dGVuZGFuY2VfZGV0YWlsIiwicmVhZDpmaW5hbmNpYWxfdHJhbnNhY3Rpb24iXSwicmVzb3VyY2UiOnsidHlwZSI6IkJyYW5jaCIsImlkIjoxMDR9LCJwcm9wcyI6eyJhY2Nlc3NlZF9icmFuY2hlc19pZHMiOltdLCJjb21wYW55X2lkIjo3MiwiYnJhbmNoX2lkIjpudWxsLCJ1c2VyX2lkIjpudWxsLCJlbXBsb3llZV9pZCI6bnVsbCwibmFtZSI6IkpvcmRhbiBCcmFuY2giLCJlbWFpbCI6bnVsbCwiY29uZmlybWVkX2F0IjpudWxsLCJ1bmxvY2tfdG9rZW4iOm51bGwsImFjdGl2ZSI6dHJ1ZX0sImV4cCI6MTc1MDY3MDkzMiwiYnJhbmNoX2lkcyI6bnVsbH0.L6WUTVbDDZ1qylvKNMSlQSqXMmDVxT4MpfSDyhGXHmPA2cibkZnMYHGxBLTDPoVasCFj90NRAwfVJ8ydQ6oK6OcSx2Vm3BQht39K3UEA38AcMCEjPfnKSmvks-uzEiiYpDaz7D8PaMTB8_v4OHqzgJAao3R7Qq5f2QKCq7xr6eDsRHfn75-c-m9lLYxRrhnIiskdSp80z2qR54qR7gTCsnQBbvzloUJ7gyV1XtfLN_WZILItPNZTYk3m4yRV4JnmtFMlGBb49ysBNXDS1oGZfgqA7Z3ji5hj7ot1PwqQsaORO3N0jnjqz57DstcTx_ImIQJ5dlM4iZeXuj4Yq1JIgg"}],"body":{"mode":"raw","raw":"{\n    \"perdiems_financial_transaction_type_id\": 30054,\n    \"airticket_financial_transaction_type_id\": 49940,\n    \"accommodation_financial_transaction_type_id\": 49940,\n    \"payroll_status\": \"out_of_payroll\",\n    \"employee_reminder_days_before\": 1,\n    \"expenses_financial_transaction_types\": [\n        1748\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://zenhr.local:3000/api/v3/branches/:branch_id/business_travel_setup","protocol":"http","host":["zenhr","local"],"port":"3000","path":["api","v3","branches",":branch_id","business_travel_setup"],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"89fc01fa219efb80c33926ad6b8b5f4d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"393037f9-f013-4f4c-ba16-114971b50b72"},{"key":"X-Runtime","value":"0.106085"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"420"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 980,\n    \"perdiems_financial_transaction_type\": {\n        \"id\": 30054\n    },\n    \"airticket_financial_transaction_type\": {\n        \"id\": 49940\n    },\n    \"accommodation_financial_transaction_type\": {\n        \"id\": 49940\n    },\n    \"expenses_financial_transaction_types\": [\n        {\n            \"id\": 1748,\n            \"name_en\": \"Allowance 2222\",\n            \"name_ar\": \"علاوة\"\n        }\n    ],\n    \"payroll_status\": \"out_of_payroll\",\n    \"employee_reminder_days_before\": 1,\n    \"created_at\": \"2025-06-19T11:39:08.998Z\",\n    \"updated_at\": \"2025-06-19T11:39:37.613Z\"\n}"}],"_postman_id":"b62c9d99-1e20-41eb-b225-d1b9585f3198"}],"id":"479fba5d-2ea4-4d06-972f-9d962d611904","_postman_id":"479fba5d-2ea4-4d06-972f-9d962d611904","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Business Travel Policies","item":[{"name":"1. View All Business Travel Policies","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"1252c485-537f-4afc-a186-1a59fa96d834"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"b2aa78d5-7a62-441e-9afd-ca60eba5277d"}}],"id":"329aeb2e-2607-4b84-968f-08e707445f32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_policies"],"host":["app.zenhr.com"],"query":[{"disabled":true,"description":{"content":"<p>page number</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>records limit per page</p>\n","type":"text/plain"},"key":"limit","value":"3"},{"disabled":true,"key":"include[]","value":"business_travel_policy.branch"},{"disabled":true,"key":"include[]","value":"business_travel_policy.business_travel_positions"},{"disabled":true,"key":"include[]","value":"business_travel_policy.business_travel_destinations"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: id, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: created_at, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: updated_at, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->en, dir: asc}"},{"disabled":true,"description":{"content":"<p>format {column: column_name, dir: direction}\navailable directions: [asc, desc]</p>\n","type":"text/plain"},"key":"order[]","value":"{column: name->ar, dir: asc}"}],"variable":[{"id":"f19f3645-6a74-4381-9e15-324c154c732a","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"7eee48f0-297c-4433-86c7-76b94a17bae6","name":"1. View Business Travel Policies","originalRequest":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies?include[]=business_travel_policy.branch&include[]=business_travel_policy.business_travel_positions&include[]=business_travel_policy.business_travel_destinations","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_travel_policies"],"query":[{"key":"page","value":"2","description":"page number","disabled":true},{"key":"limit","value":"3","description":"records limit per page","disabled":true},{"key":"include[]","value":"business_travel_policy.branch"},{"key":"include[]","value":"business_travel_policy.business_travel_positions"},{"key":"include[]","value":"business_travel_policy.business_travel_destinations"},{"key":"filter[id][]","value":"1","disabled":true},{"key":"filter[created_at][from]","value":"2022-12-30","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[created_at][to]","value":"2022-12-30","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][from]","value":"2022-12-30","description":"format YYYY-MM-DD","disabled":true},{"key":"filter[updated_at][to]","value":"2022-12-30","description":"format YYYY-MM-DD","disabled":true},{"key":"order[]","value":"{column: id, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: attendance_date, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: entry_time, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: exit_time, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: employee_id, dir: desc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: card_id, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: work_shift_id, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true},{"key":"order[]","value":"{column: attendance_machine_id, dir: asc}","description":"format {column: column_name, dir: direction}\navailable directions: [asc, desc]","disabled":true}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"a57fb42c81a2c503c0eba6f7c27c88fc\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"56d7cf20-8c91-411d-a06e-5aae58a7f2b9"},{"key":"X-Runtime","value":"0.185660"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"12738"}],"cookie":[],"responseTime":null,"body":"{\n    \"allowed_actions\": [],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"per_page\": 25,\n        \"total_entries\": 5,\n        \"total_pages\": 1\n    },\n    \"data\": [\n        {\n            \"id\": 2,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"BT2\"\n            },\n            \"created_at\": \"2024-05-05T16:59:57.793Z\",\n            \"updated_at\": \"2024-05-05T16:59:57.793Z\",\n            \"branch\": {\n                \"id\": 104,\n                \"name\": {\n                    \"ar\": \"فرع الأردن\",\n                    \"en\": \"Jordan Branch\"\n                },\n                \"probation_period\": {\n                    \"type\": \"Month\",\n                    \"period\": \"3\"\n                },\n                \"working_hours\": 8,\n                \"cut_off_date\": 20,\n                \"working_days\": 30,\n                \"days_off\": [],\n                \"timezone\": \"Amman\",\n                \"currency_currency\": \"SAR\",\n                \"country\": {\n                    \"country_id\": 111,\n                    \"name\": {\n                        \"ar\": \"الأردن\",\n                        \"en\": \"Jordan\"\n                    },\n                    \"country_code\": \"JO\"\n                },\n                \"governmental_information\": {\n                    \"id\": 3341\n                },\n                \"establishment_number\": \"1010476663\",\n                \"governance_location\": \"مديرية لواء بني عبيد \",\n                \"social_security_governance_location\": null,\n                \"social_security_number\": null,\n                \"tax_number\": null,\n                \"address\": \"Zahran 10\",\n                \"po_box\": \"Test\",\n                \"zip_code\": \"Test1\",\n                \"mol_number\": null,\n                \"date_format\": \"%Y-%m-%d\",\n                \"time_format\": \"%I:%M %P\",\n                \"show_who_is_off_type\": true,\n                \"week_start_day\": 1,\n                \"fiscal_day\": 1,\n                \"fiscal_month\": 1,\n                \"whos_off_type\": 2,\n                \"whos_off_interval\": 30,\n                \"subsidiary_id\": \"usrt\",\n                \"created_at\": \"2017-09-26T07:01:51.620Z\",\n                \"updated_at\": \"2025-03-11T08:35:53.122Z\",\n                \"qr_code_expiry\": 60000,\n                \"logo_url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/branch_logos/104/ZenHR_Logo.png\",\n                \"clocking_with_qr_code_enabled\": true\n            },\n            \"business_travel_positions\": [\n                {\n                    \"id\": 55741,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"QA\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2022-10-20T07:08:11.462Z\",\n                    \"updated_at\": \"2022-10-20T07:08:11.462Z\"\n                },\n                {\n                    \"id\": 57678,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"QA\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2022-11-09T10:21:11.115Z\",\n                    \"updated_at\": \"2022-11-09T10:21:11.115Z\"\n                }\n            ],\n            \"business_travel_destinations\": [\n                {\n                    \"id\": 3,\n                    \"category\": \"international\",\n                    \"per_diem\": {\n                        \"cents\": 22000,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"per_diem_currency\": \"JOD\",\n                    \"departure_location\": {\n                        \"country\": [\n                            35\n                        ]\n                    },\n                    \"arrival_location\": {\n                        \"country\": [\n                            36\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 3,\n                        \"travel_type\": [\n                            0\n                        ],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"JOD\"\n                        },\n                        \"max_airticket_cost_currency\": \"JOD\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"JOD\"\n                        },\n                        \"max_travel_cost_currency\": \"JOD\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 3,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"JOD\"\n                        },\n                        \"max_accommodation_cost_currency\": \"JOD\"\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": 142,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"fdvf\"\n            },\n            \"created_at\": \"2024-08-28T09:49:15.926Z\",\n            \"updated_at\": \"2024-08-28T09:49:15.926Z\",\n            \"branch\": {\n                \"id\": 104,\n                \"name\": {\n                    \"ar\": \"فرع الأردن\",\n                    \"en\": \"Jordan Branch\"\n                },\n                \"probation_period\": {\n                    \"type\": \"Month\",\n                    \"period\": \"3\"\n                },\n                \"working_hours\": 8,\n                \"cut_off_date\": 20,\n                \"working_days\": 30,\n                \"days_off\": [],\n                \"timezone\": \"Amman\",\n                \"currency_currency\": \"SAR\",\n                \"country\": {\n                    \"country_id\": 111,\n                    \"name\": {\n                        \"ar\": \"الأردن\",\n                        \"en\": \"Jordan\"\n                    },\n                    \"country_code\": \"JO\"\n                },\n                \"governmental_information\": {\n                    \"id\": 3341\n                },\n                \"establishment_number\": \"1010476663\",\n                \"governance_location\": \"مديرية لواء بني عبيد \",\n                \"social_security_governance_location\": null,\n                \"social_security_number\": null,\n                \"tax_number\": null,\n                \"address\": \"Zahran 10\",\n                \"po_box\": \"Test\",\n                \"zip_code\": \"Test1\",\n                \"mol_number\": null,\n                \"date_format\": \"%Y-%m-%d\",\n                \"time_format\": \"%I:%M %P\",\n                \"show_who_is_off_type\": true,\n                \"week_start_day\": 1,\n                \"fiscal_day\": 1,\n                \"fiscal_month\": 1,\n                \"whos_off_type\": 2,\n                \"whos_off_interval\": 30,\n                \"subsidiary_id\": \"usrt\",\n                \"created_at\": \"2017-09-26T07:01:51.620Z\",\n                \"updated_at\": \"2025-03-11T08:35:53.122Z\",\n                \"qr_code_expiry\": 60000,\n                \"logo_url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/branch_logos/104/ZenHR_Logo.png\",\n                \"clocking_with_qr_code_enabled\": true\n            },\n            \"business_travel_positions\": [\n                {\n                    \"id\": 85829,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Acc-update\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2023-06-14T11:56:29.032Z\",\n                    \"updated_at\": \"2023-06-14T11:56:29.032Z\"\n                }\n            ],\n            \"business_travel_destinations\": [\n                {\n                    \"id\": 325,\n                    \"category\": \"international\",\n                    \"per_diem\": {\n                        \"cents\": 2145000,\n                        \"currency_iso\": \"JOD\"\n                    },\n                    \"per_diem_currency\": \"JOD\",\n                    \"departure_location\": {\n                        \"country\": [\n                            7\n                        ]\n                    },\n                    \"arrival_location\": {\n                        \"country\": [\n                            7\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 325,\n                        \"travel_type\": [\n                            0\n                        ],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 510000,\n                            \"currency_iso\": \"JOD\"\n                        },\n                        \"max_airticket_cost_currency\": \"JOD\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"JOD\"\n                        },\n                        \"max_travel_cost_currency\": \"JOD\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 325,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 200000,\n                            \"currency_iso\": \"JOD\"\n                        },\n                        \"max_accommodation_cost_currency\": \"JOD\"\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": 257,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"mena africa\"\n            },\n            \"created_at\": \"2024-10-27T09:31:23.235Z\",\n            \"updated_at\": \"2024-10-27T09:31:23.235Z\",\n            \"branch\": {\n                \"id\": 104,\n                \"name\": {\n                    \"ar\": \"فرع الأردن\",\n                    \"en\": \"Jordan Branch\"\n                },\n                \"probation_period\": {\n                    \"type\": \"Month\",\n                    \"period\": \"3\"\n                },\n                \"working_hours\": 8,\n                \"cut_off_date\": 20,\n                \"working_days\": 30,\n                \"days_off\": [],\n                \"timezone\": \"Amman\",\n                \"currency_currency\": \"SAR\",\n                \"country\": {\n                    \"country_id\": 111,\n                    \"name\": {\n                        \"ar\": \"الأردن\",\n                        \"en\": \"Jordan\"\n                    },\n                    \"country_code\": \"JO\"\n                },\n                \"governmental_information\": {\n                    \"id\": 3341\n                },\n                \"establishment_number\": \"1010476663\",\n                \"governance_location\": \"مديرية لواء بني عبيد \",\n                \"social_security_governance_location\": null,\n                \"social_security_number\": null,\n                \"tax_number\": null,\n                \"address\": \"Zahran 10\",\n                \"po_box\": \"Test\",\n                \"zip_code\": \"Test1\",\n                \"mol_number\": null,\n                \"date_format\": \"%Y-%m-%d\",\n                \"time_format\": \"%I:%M %P\",\n                \"show_who_is_off_type\": true,\n                \"week_start_day\": 1,\n                \"fiscal_day\": 1,\n                \"fiscal_month\": 1,\n                \"whos_off_type\": 2,\n                \"whos_off_interval\": 30,\n                \"subsidiary_id\": \"usrt\",\n                \"created_at\": \"2017-09-26T07:01:51.620Z\",\n                \"updated_at\": \"2025-03-11T08:35:53.122Z\",\n                \"qr_code_expiry\": 60000,\n                \"logo_url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/branch_logos/104/ZenHR_Logo.png\",\n                \"clocking_with_qr_code_enabled\": true\n            },\n            \"business_travel_positions\": [\n                {\n                    \"id\": 31208,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Accountant\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2021-10-24T11:57:12.343Z\",\n                    \"updated_at\": \"2022-01-31T09:04:17.155Z\"\n                }\n            ],\n            \"business_travel_destinations\": [\n                {\n                    \"id\": 598,\n                    \"category\": \"international\",\n                    \"per_diem\": {\n                        \"cents\": 66600,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"per_diem_currency\": \"SAR\",\n                    \"departure_location\": {\n                        \"country\": [\n                            7\n                        ]\n                    },\n                    \"arrival_location\": {\n                        \"country\": [\n                            7\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 598,\n                        \"travel_type\": [\n                            0\n                        ],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_airticket_cost_currency\": \"SAR\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_travel_cost_currency\": \"SAR\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 598,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_accommodation_cost_currency\": \"SAR\"\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": 342,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Top Management\"\n            },\n            \"created_at\": \"2025-01-27T15:02:04.970Z\",\n            \"updated_at\": \"2025-01-27T15:02:04.970Z\",\n            \"branch\": {\n                \"id\": 104,\n                \"name\": {\n                    \"ar\": \"فرع الأردن\",\n                    \"en\": \"Jordan Branch\"\n                },\n                \"probation_period\": {\n                    \"type\": \"Month\",\n                    \"period\": \"3\"\n                },\n                \"working_hours\": 8,\n                \"cut_off_date\": 20,\n                \"working_days\": 30,\n                \"days_off\": [],\n                \"timezone\": \"Amman\",\n                \"currency_currency\": \"SAR\",\n                \"country\": {\n                    \"country_id\": 111,\n                    \"name\": {\n                        \"ar\": \"الأردن\",\n                        \"en\": \"Jordan\"\n                    },\n                    \"country_code\": \"JO\"\n                },\n                \"governmental_information\": {\n                    \"id\": 3341\n                },\n                \"establishment_number\": \"1010476663\",\n                \"governance_location\": \"مديرية لواء بني عبيد \",\n                \"social_security_governance_location\": null,\n                \"social_security_number\": null,\n                \"tax_number\": null,\n                \"address\": \"Zahran 10\",\n                \"po_box\": \"Test\",\n                \"zip_code\": \"Test1\",\n                \"mol_number\": null,\n                \"date_format\": \"%Y-%m-%d\",\n                \"time_format\": \"%I:%M %P\",\n                \"show_who_is_off_type\": true,\n                \"week_start_day\": 1,\n                \"fiscal_day\": 1,\n                \"fiscal_month\": 1,\n                \"whos_off_type\": 2,\n                \"whos_off_interval\": 30,\n                \"subsidiary_id\": \"usrt\",\n                \"created_at\": \"2017-09-26T07:01:51.620Z\",\n                \"updated_at\": \"2025-03-11T08:35:53.122Z\",\n                \"qr_code_expiry\": 60000,\n                \"logo_url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/branch_logos/104/ZenHR_Logo.png\",\n                \"clocking_with_qr_code_enabled\": true\n            },\n            \"business_travel_positions\": [\n                {\n                    \"id\": 36948,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Adminstrator\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2022-02-14T13:45:45.371Z\",\n                    \"updated_at\": \"2022-02-14T13:45:45.371Z\"\n                }\n            ],\n            \"business_travel_destinations\": [\n                {\n                    \"id\": 3765,\n                    \"category\": \"domestic\",\n                    \"per_diem\": {\n                        \"cents\": 0,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"per_diem_currency\": \"SAR\",\n                    \"departure_location\": {\n                        \"city\": [\n                            1073\n                        ],\n                        \"country\": \"64\"\n                    },\n                    \"arrival_location\": {\n                        \"city\": [\n                            1073\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 3765,\n                        \"travel_type\": [],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_airticket_cost_currency\": \"SAR\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_travel_cost_currency\": \"SAR\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 3765,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_accommodation_cost_currency\": \"SAR\"\n                    }\n                }\n            ]\n        },\n        {\n            \"id\": 1,\n            \"name\": {\n                \"ar\": \"بي تي\",\n                \"en\": \"bt\"\n            },\n            \"created_at\": \"2024-05-05T16:35:18.623Z\",\n            \"updated_at\": \"2025-06-24T07:48:39.432Z\",\n            \"branch\": {\n                \"id\": 104,\n                \"name\": {\n                    \"ar\": \"فرع الأردن\",\n                    \"en\": \"Jordan Branch\"\n                },\n                \"probation_period\": {\n                    \"type\": \"Month\",\n                    \"period\": \"3\"\n                },\n                \"working_hours\": 8,\n                \"cut_off_date\": 20,\n                \"working_days\": 30,\n                \"days_off\": [],\n                \"timezone\": \"Amman\",\n                \"currency_currency\": \"SAR\",\n                \"country\": {\n                    \"country_id\": 111,\n                    \"name\": {\n                        \"ar\": \"الأردن\",\n                        \"en\": \"Jordan\"\n                    },\n                    \"country_code\": \"JO\"\n                },\n                \"governmental_information\": {\n                    \"id\": 3341\n                },\n                \"establishment_number\": \"1010476663\",\n                \"governance_location\": \"مديرية لواء بني عبيد \",\n                \"social_security_governance_location\": null,\n                \"social_security_number\": null,\n                \"tax_number\": null,\n                \"address\": \"Zahran 10\",\n                \"po_box\": \"Test\",\n                \"zip_code\": \"Test1\",\n                \"mol_number\": null,\n                \"date_format\": \"%Y-%m-%d\",\n                \"time_format\": \"%I:%M %P\",\n                \"show_who_is_off_type\": true,\n                \"week_start_day\": 1,\n                \"fiscal_day\": 1,\n                \"fiscal_month\": 1,\n                \"whos_off_type\": 2,\n                \"whos_off_interval\": 30,\n                \"subsidiary_id\": \"usrt\",\n                \"created_at\": \"2017-09-26T07:01:51.620Z\",\n                \"updated_at\": \"2025-03-11T08:35:53.122Z\",\n                \"qr_code_expiry\": 60000,\n                \"logo_url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/branch_logos/104/ZenHR_Logo.png\",\n                \"clocking_with_qr_code_enabled\": true\n            },\n            \"business_travel_positions\": [\n                {\n                    \"id\": 811,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"HR Manager\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2017-09-26T07:38:27.792Z\",\n                    \"updated_at\": \"2018-11-18T14:54:35.416Z\"\n                },\n                {\n                    \"id\": 42569,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Developer\"\n                    },\n                    \"job_description\": \"<p>qejgnpKS D;VBwrbv</p>\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2022-05-23T11:39:47.090Z\",\n                    \"updated_at\": \"2022-05-23T11:39:47.090Z\"\n                },\n                {\n                    \"id\": 58816,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Developer\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2022-11-22T07:46:32.488Z\",\n                    \"updated_at\": \"2022-11-22T07:46:32.488Z\"\n                },\n                {\n                    \"id\": 58806,\n                    \"name\": {\n                        \"ar\": \"\",\n                        \"en\": \"Acc\"\n                    },\n                    \"job_description\": \"\",\n                    \"position_type\": \"regular\",\n                    \"created_at\": \"2022-11-22T06:52:49.023Z\",\n                    \"updated_at\": \"2022-11-22T06:52:49.023Z\"\n                }\n            ],\n            \"business_travel_destinations\": [\n                {\n                    \"id\": 1,\n                    \"category\": \"international\",\n                    \"per_diem\": {\n                        \"cents\": 2200,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"per_diem_currency\": \"SAR\",\n                    \"departure_location\": {\n                        \"country\": [\n                            7\n                        ]\n                    },\n                    \"arrival_location\": {\n                        \"country\": [\n                            28\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 1,\n                        \"travel_type\": [\n                            0\n                        ],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_airticket_cost_currency\": \"SAR\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_travel_cost_currency\": \"SAR\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 1,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_accommodation_cost_currency\": \"SAR\"\n                    }\n                },\n                {\n                    \"id\": 516,\n                    \"category\": \"international\",\n                    \"per_diem\": {\n                        \"cents\": 400,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"per_diem_currency\": \"SAR\",\n                    \"departure_location\": {\n                        \"country\": [\n                            23\n                        ]\n                    },\n                    \"arrival_location\": {\n                        \"country\": [\n                            23\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 516,\n                        \"travel_type\": [\n                            0\n                        ],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_airticket_cost_currency\": \"SAR\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_travel_cost_currency\": \"SAR\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 516,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_accommodation_cost_currency\": \"SAR\"\n                    }\n                },\n                {\n                    \"id\": 2,\n                    \"category\": \"domestic\",\n                    \"per_diem\": {\n                        \"cents\": 1100,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"per_diem_currency\": \"SAR\",\n                    \"departure_location\": {\n                        \"city\": [\n                            1\n                        ],\n                        \"country\": 1\n                    },\n                    \"arrival_location\": {\n                        \"city\": [\n                            4\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 2,\n                        \"travel_type\": [],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_airticket_cost_currency\": \"SAR\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_travel_cost_currency\": \"SAR\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 2,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_accommodation_cost_currency\": \"SAR\"\n                    }\n                },\n                {\n                    \"id\": 622,\n                    \"category\": \"domestic\",\n                    \"per_diem\": {\n                        \"cents\": 69900,\n                        \"currency_iso\": \"SAR\"\n                    },\n                    \"per_diem_currency\": \"SAR\",\n                    \"departure_location\": {\n                        \"city\": [\n                            82\n                        ],\n                        \"country\": 4\n                    },\n                    \"arrival_location\": {\n                        \"city\": [\n                            82\n                        ]\n                    },\n                    \"transportation\": {\n                        \"id\": 622,\n                        \"travel_type\": [],\n                        \"airticket_class\": [],\n                        \"max_airticket_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_airticket_cost_currency\": \"SAR\",\n                        \"max_travel_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_travel_cost_currency\": \"SAR\"\n                    },\n                    \"accommodation\": {\n                        \"id\": 622,\n                        \"hotel_tier\": [],\n                        \"period_type\": \"night\",\n                        \"max_accommodation_cost\": {\n                            \"cents\": 0,\n                            \"currency_iso\": \"SAR\"\n                        },\n                        \"max_accommodation_cost_currency\": \"SAR\"\n                    }\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"329aeb2e-2607-4b84-968f-08e707445f32"},{"name":"2. View Business Travel Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"5c710b39-b77e-460b-a3d7-bd39aae6064d"}}],"id":"d22271d4-b113-43af-8c9f-f1f420dc3a22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/:business_travel_policy_id","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_policies",":business_travel_policy_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"business_travel_policy.branch"},{"disabled":true,"key":"include[]","value":"business_travel_policy.business_travel_positions"},{"disabled":true,"key":"include[]","value":"business_travel_policy.business_travel_destinations"}],"variable":[{"id":"5358cc65-21e9-493d-b29e-72bdfa3a4ddd","type":"any","value":"","key":"branch_id"},{"id":"4483f296-3f10-412c-a2dc-9a0f2bf79254","type":"any","value":"{{business_travel_policy_id}}","key":"business_travel_policy_id"}]}},"response":[{"id":"034206df-2384-4408-a6dd-cd68c286bc0b","name":"2. View Business Travel Policy","originalRequest":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/1?include[]=business_travel_policy.branch&include[]=business_travel_policy.business_travel_positions&include[]=business_travel_policy.business_travel_destinations","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_travel_policies","1"],"query":[{"key":"include[]","value":"business_travel_policy.branch"},{"key":"include[]","value":"business_travel_policy.business_travel_positions"},{"key":"include[]","value":"business_travel_policy.business_travel_destinations"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae311a14e89e5b8d4f202d640ea6f062\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1f46e0fc-7fa2-4035-a69e-1930014d9125"},{"key":"X-Runtime","value":"0.122919"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"4339"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": {\n        \"ar\": \"بي تي\",\n        \"en\": \"bt\"\n    },\n    \"created_at\": \"2024-05-05T16:35:18.623Z\",\n    \"updated_at\": \"2025-06-24T07:48:39.432Z\",\n    \"branch\": {\n        \"id\": 104,\n        \"name\": {\n            \"ar\": \"فرع الأردن\",\n            \"en\": \"Jordan Branch\"\n        },\n        \"probation_period\": {\n            \"type\": \"Month\",\n            \"period\": \"3\"\n        },\n        \"working_hours\": 8,\n        \"cut_off_date\": 20,\n        \"working_days\": 30,\n        \"days_off\": [],\n        \"timezone\": \"Amman\",\n        \"currency_currency\": \"SAR\",\n        \"country\": {\n            \"country_id\": 111,\n            \"name\": {\n                \"ar\": \"الأردن\",\n                \"en\": \"Jordan\"\n            },\n            \"country_code\": \"JO\"\n        },\n        \"governmental_information\": {\n            \"id\": 3341\n        },\n        \"establishment_number\": \"1010476663\",\n        \"governance_location\": \"مديرية لواء بني عبيد \",\n        \"social_security_governance_location\": null,\n        \"social_security_number\": null,\n        \"tax_number\": null,\n        \"address\": \"Zahran 10\",\n        \"po_box\": \"Test\",\n        \"zip_code\": \"Test1\",\n        \"mol_number\": null,\n        \"date_format\": \"%Y-%m-%d\",\n        \"time_format\": \"%I:%M %P\",\n        \"show_who_is_off_type\": true,\n        \"week_start_day\": 1,\n        \"fiscal_day\": 1,\n        \"fiscal_month\": 1,\n        \"whos_off_type\": 2,\n        \"whos_off_interval\": 30,\n        \"subsidiary_id\": \"usrt\",\n        \"created_at\": \"2017-09-26T07:01:51.620Z\",\n        \"updated_at\": \"2025-03-11T08:35:53.122Z\",\n        \"qr_code_expiry\": 60000,\n        \"logo_url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/branch_logos/104/ZenHR_Logo.png\",\n        \"clocking_with_qr_code_enabled\": true\n    },\n    \"business_travel_positions\": [\n        {\n            \"id\": 811,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"HR Manager\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:38:27.792Z\",\n            \"updated_at\": \"2018-11-18T14:54:35.416Z\"\n        },\n        {\n            \"id\": 42569,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Developer\"\n            },\n            \"job_description\": \"<p>qejgnpKS D;VBwrbv</p>\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2022-05-23T11:39:47.090Z\",\n            \"updated_at\": \"2022-05-23T11:39:47.090Z\"\n        },\n        {\n            \"id\": 58816,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Developer\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2022-11-22T07:46:32.488Z\",\n            \"updated_at\": \"2022-11-22T07:46:32.488Z\"\n        },\n        {\n            \"id\": 58806,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Acc\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2022-11-22T06:52:49.023Z\",\n            \"updated_at\": \"2022-11-22T06:52:49.023Z\"\n        }\n    ],\n    \"business_travel_destinations\": [\n        {\n            \"id\": 1,\n            \"category\": \"international\",\n            \"per_diem\": {\n                \"cents\": 2200,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"country\": [\n                    7\n                ]\n            },\n            \"arrival_location\": {\n                \"country\": [\n                    28\n                ]\n            },\n            \"transportation\": {\n                \"id\": 1,\n                \"travel_type\": [\n                    0\n                ],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 1,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        },\n        {\n            \"id\": 516,\n            \"category\": \"international\",\n            \"per_diem\": {\n                \"cents\": 400,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"country\": [\n                    23\n                ]\n            },\n            \"arrival_location\": {\n                \"country\": [\n                    23\n                ]\n            },\n            \"transportation\": {\n                \"id\": 516,\n                \"travel_type\": [\n                    0\n                ],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 516,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        },\n        {\n            \"id\": 2,\n            \"category\": \"domestic\",\n            \"per_diem\": {\n                \"cents\": 1100,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"city\": [\n                    1\n                ],\n                \"country\": 1\n            },\n            \"arrival_location\": {\n                \"city\": [\n                    4\n                ]\n            },\n            \"transportation\": {\n                \"id\": 2,\n                \"travel_type\": [],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 2,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        },\n        {\n            \"id\": 622,\n            \"category\": \"domestic\",\n            \"per_diem\": {\n                \"cents\": 69900,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"city\": [\n                    82\n                ],\n                \"country\": 4\n            },\n            \"arrival_location\": {\n                \"city\": [\n                    82\n                ]\n            },\n            \"transportation\": {\n                \"id\": 622,\n                \"travel_type\": [],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 622,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        }\n    ]\n}"}],"_postman_id":"d22271d4-b113-43af-8c9f-f1f420dc3a22"},{"name":"3. Update Business Travel Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"d983f946-3319-43a0-bdb4-da2b609a0544"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"f1064dee-d82e-49c8-8e26-fc54560ef28a"}}],"id":"7507052e-3dab-4e14-928a-b9e5205ece2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"business_travel_policy\": {\n        \"name\": {\n            \"ar\": \"بي تي\",\n            \"en\": \"bt\"\n        },\n        \"position_ids\": [\n            \"811\",\n            \"42569\",\n            \"58816\",\n            \"58806\"\n        ],\n        \"business_travel_destinations_attributes\": {\n            \"0\": {\n                \"_destroy\": false,\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": \"22.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [\n                    7\n                ],\n                \"departure_city\": [\n                    \"\"\n                ],\n                \"arrival_country\": [\n                    28\n                ],\n                \"arrival_city\": [\n                    \"\"\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 1,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false,\n                        \"4\": false,\n                        \"5\": false\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 1,\n                    \"airticket_class\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            },\n            \"1\": {\n                \"_destroy\": false,\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"country\": 1,\n                \"per_diem\": \"11.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [],\n                \"departure_city\": [\n                    \"\",\n                    1\n                ],\n                \"arrival_country\": [],\n                \"arrival_city\": [\n                    \"\",\n                    4\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 2,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false,\n                        \"4\": false,\n                        \"5\": false\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 2,\n                    \"airticket_class\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": true,\n                        \"1\": false,\n                        \"2\": true,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            },\n            \"2\": {\n                \"_destroy\": false,\n                \"id\": 516,\n                \"category\": \"international\",\n                \"per_diem\": \"4.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [\n                    23\n                ],\n                \"departure_city\": [\n                    \"\"\n                ],\n                \"arrival_country\": [\n                    23\n                ],\n                \"arrival_city\": [\n                    \"\"\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 516,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": true,\n                        \"4\": false,\n                        \"5\": true\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 516,\n                    \"airticket_class\": {\n                        \"0\": true,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            },\n            \"3\": {\n                \"_destroy\": false,\n                \"id\": 622,\n                \"category\": \"domestic\",\n                \"country\": 4,\n                \"per_diem\": \"699.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [],\n                \"departure_city\": [\n                    \"\",\n                    82\n                ],\n                \"arrival_country\": [],\n                \"arrival_city\": [\n                    \"\",\n                    82\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 622,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false,\n                        \"4\": false,\n                        \"5\": false\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 622,\n                    \"airticket_class\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/:business_travel_policy_id","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_policies",":business_travel_policy_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"d8549da6-3dde-4baf-8ce2-b703caf2123a","type":"any","value":"","key":"branch_id"},{"id":"eea419cd-8ae8-48a5-b408-12e27dd71c2a","type":"any","value":"{{business_travel_policy_id}}","key":"business_travel_policy_id"}]}},"response":[{"id":"e56a4283-ef71-4d67-88e3-5c7d39115861","name":"1. Create Business Travel Policy","originalRequest":{"method":"PUT","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"business_travel_policy\": {\n        \"name\": {\n            \"ar\": \"بي تي\",\n            \"en\": \"bt\"\n        },\n        \"position_ids\": [\n            \"811\",\n            \"42569\",\n            \"58816\",\n            \"58806\"\n        ],\n        \"business_travel_destinations_attributes\": {\n            \"0\": {\n                \"_destroy\": false,\n                \"id\": 1,\n                \"category\": \"international\",\n                \"per_diem\": \"22.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [\n                    7\n                ],\n                \"departure_city\": [\n                    \"\"\n                ],\n                \"arrival_country\": [\n                    28\n                ],\n                \"arrival_city\": [\n                    \"\"\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 1,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false,\n                        \"4\": false,\n                        \"5\": false\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 1,\n                    \"airticket_class\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            },\n            \"1\": {\n                \"_destroy\": false,\n                \"id\": 2,\n                \"category\": \"domestic\",\n                \"country\": 1,\n                \"per_diem\": \"11.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [],\n                \"departure_city\": [\n                    \"\",\n                    1\n                ],\n                \"arrival_country\": [],\n                \"arrival_city\": [\n                    \"\",\n                    4\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 2,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false,\n                        \"4\": false,\n                        \"5\": false\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 2,\n                    \"airticket_class\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": true,\n                        \"1\": false,\n                        \"2\": true,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            },\n            \"2\": {\n                \"_destroy\": false,\n                \"id\": 516,\n                \"category\": \"international\",\n                \"per_diem\": \"4.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [\n                    23\n                ],\n                \"departure_city\": [\n                    \"\"\n                ],\n                \"arrival_country\": [\n                    23\n                ],\n                \"arrival_city\": [\n                    \"\"\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 516,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": true,\n                        \"4\": false,\n                        \"5\": true\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 516,\n                    \"airticket_class\": {\n                        \"0\": true,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            },\n            \"3\": {\n                \"_destroy\": false,\n                \"id\": 622,\n                \"category\": \"domestic\",\n                \"country\": 4,\n                \"per_diem\": \"699.00\",\n                \"per_diem_currency\": \"SAR\",\n                \"departure_country\": [],\n                \"departure_city\": [\n                    \"\",\n                    82\n                ],\n                \"arrival_country\": [],\n                \"arrival_city\": [\n                    \"\",\n                    82\n                ],\n                \"business_travel_accommodation_attributes\": {\n                    \"id\": 622,\n                    \"hotel_tier\": {\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false,\n                        \"4\": false,\n                        \"5\": false\n                    },\n                    \"period_type\": \"night\",\n                    \"max_accommodation_cost\": \"\",\n                    \"max_accommodation_cost_currency\": \"SAR\"\n                },\n                \"business_travel_transportation_attributes\": {\n                    \"id\": 622,\n                    \"airticket_class\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false\n                    },\n                    \"travel_type\": {\n                        \"0\": false,\n                        \"1\": false,\n                        \"2\": false,\n                        \"3\": false\n                    },\n                    \"max_airticket_cost\": \"\",\n                    \"max_airticket_cost_currency\": \"SAR\",\n                    \"max_travel_cost\": \"\",\n                    \"max_travel_cost_currency\": \"SAR\"\n                }\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/:business_travel_policy_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_travel_policies",":business_travel_policy_id"],"variable":[{"key":"branch_id","value":""},{"key":"business_travel_policy_id","value":"{{business_travel_policy_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"9f8a8ba2249ecae76411e01a40dbdd53\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7e35a980-369c-48d6-ade6-bffea9998ffc"},{"key":"X-Runtime","value":"0.523667"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"297"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": {\n        \"en\": \"bt\",\n        \"ar\": \"بي تي\"\n    },\n    \"created_at\": \"2024-05-05T16:35:18.623Z\",\n    \"updated_at\": \"2025-06-24T07:48:39.432Z\",\n    \"branch\": {\n        \"id\": 104\n    },\n    \"business_travel_positions\": [\n        {\n            \"id\": 58806\n        },\n        {\n            \"id\": 811\n        },\n        {\n            \"id\": 42569\n        },\n        {\n            \"id\": 58816\n        }\n    ],\n    \"business_travel_destinations\": [\n        {\n            \"id\": 1\n        },\n        {\n            \"id\": 516\n        },\n        {\n            \"id\": 2\n        },\n        {\n            \"id\": 622\n        }\n    ]\n}"}],"_postman_id":"7507052e-3dab-4e14-928a-b9e5205ece2b"},{"name":"4. Create Business Travel Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});","","// Parse the response and save id into environment variable","const response = pm.response.json();","pm.environment.set(\"business_travel_policy_id\", response.id);",""],"type":"text/javascript","packages":{},"id":"465f7f9f-1cca-42ec-96be-aebbb5dca673"}}],"id":"d5a8f86b-9444-42e9-918d-1f16261e1fd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_travel_policy\": {\n    \"name\": {\n      \"ar\": \"3 قيس\",\n      \"en\": \"Qais 3\"\n    },\n    \"position_ids\": [\n      \"166606\"\n    ],\n    \"business_travel_destinations_attributes\": {\n      \"0\": {\n        \"_destroy\": false,\n        \"category\": \"domestic\",\n        \"country\": 4,\n        \"per_diem\": \"12.23\",\n        \"per_diem_currency\": \"SAR\",\n        \"departure_country\": [],\n        \"departure_city\": [\n          \"\",\n          82\n        ],\n        \"arrival_country\": [],\n        \"arrival_city\": [\n          \"\",\n          82\n        ],\n        \"business_travel_accommodation_attributes\": {\n          \"hotel_tier\": {\n            \"1\": false,\n            \"2\": false,\n            \"3\": false,\n            \"4\": true,\n            \"5\": true\n          },\n          \"period_type\": \"night\",\n          \"max_accommodation_cost\": \"1220.00\",\n          \"max_accommodation_cost_currency\": \"SAR\"\n        },\n        \"business_travel_transportation_attributes\": {\n          \"airticket_class\": {\n            \"0\": false,\n            \"1\": false,\n            \"2\": false\n          },\n          \"travel_type\": {\n            \"0\": true,\n            \"1\": true,\n            \"2\": true,\n            \"3\": true\n          },\n          \"max_airticket_cost\": \"1200.00\",\n          \"max_airticket_cost_currency\": \"SAR\",\n          \"max_travel_cost\": \"1200.00\",\n          \"max_travel_cost_currency\": \"SAR\",\n          \"transportation_payments_attributes\": [\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"12.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 9139,\n              \"travel_type\": 0\n            },\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"12.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 12116,\n              \"travel_type\": 1\n            },\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"230.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 9139,\n              \"travel_type\": 2\n            },\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"200.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 29795,\n              \"travel_type\": 3\n            }\n          ]\n        }\n      },\n      \"1\": {\n        \"_destroy\": false,\n        \"category\": \"international\",\n        \"per_diem\": \"1200.00\",\n        \"per_diem_currency\": \"SAR\",\n        \"departure_country\": [\n          7\n        ],\n        \"departure_city\": [],\n        \"arrival_country\": [\n          35\n        ],\n        \"arrival_city\": [],\n        \"business_travel_accommodation_attributes\": {\n          \"hotel_tier\": {\n            \"1\": false,\n            \"2\": true,\n            \"3\": false,\n            \"4\": true,\n            \"5\": false\n          },\n          \"period_type\": \"night\",\n          \"max_accommodation_cost\": \"1200.00\",\n          \"max_accommodation_cost_currency\": \"SAR\"\n        },\n        \"business_travel_transportation_attributes\": {\n          \"airticket_class\": {\n            \"0\": false,\n            \"1\": true,\n            \"2\": true\n          },\n          \"travel_type\": {\n            \"0\": false,\n            \"1\": false,\n            \"2\": false,\n            \"3\": false\n          },\n          \"max_airticket_cost\": \"12300.00\",\n          \"max_airticket_cost_currency\": \"SAR\",\n          \"max_travel_cost\": \"\",\n          \"max_travel_cost_currency\": \"SAR\"\n        }\n      }\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_policies"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"988cd401-ecac-4953-a375-6d8243a708ef","type":"any","value":"","key":"branch_id"}]}},"response":[{"id":"f19b099d-afce-4bbf-8ea0-bdb0bb43588a","name":"4. Create Business Travel Policy","originalRequest":{"method":"POST","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"business_travel_policy\": {\n    \"name\": {\n      \"ar\": \"3 قيس\",\n      \"en\": \"Qais 3\"\n    },\n    \"position_ids\": [\n      \"166606\"\n    ],\n    \"business_travel_destinations_attributes\": {\n      \"0\": {\n        \"_destroy\": false,\n        \"category\": \"domestic\",\n        \"country\": 4,\n        \"per_diem\": \"12.23\",\n        \"per_diem_currency\": \"SAR\",\n        \"departure_country\": [],\n        \"departure_city\": [\n          \"\",\n          82\n        ],\n        \"arrival_country\": [],\n        \"arrival_city\": [\n          \"\",\n          82\n        ],\n        \"business_travel_accommodation_attributes\": {\n          \"hotel_tier\": {\n            \"1\": false,\n            \"2\": false,\n            \"3\": false,\n            \"4\": true,\n            \"5\": true\n          },\n          \"period_type\": \"night\",\n          \"max_accommodation_cost\": \"1220.00\",\n          \"max_accommodation_cost_currency\": \"SAR\"\n        },\n        \"business_travel_transportation_attributes\": {\n          \"airticket_class\": {\n            \"0\": false,\n            \"1\": false,\n            \"2\": false\n          },\n          \"travel_type\": {\n            \"0\": true,\n            \"1\": true,\n            \"2\": true,\n            \"3\": true\n          },\n          \"max_airticket_cost\": \"1200.00\",\n          \"max_airticket_cost_currency\": \"SAR\",\n          \"max_travel_cost\": \"1200.00\",\n          \"max_travel_cost_currency\": \"SAR\",\n          \"transportation_payments_attributes\": [\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"12.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 9139,\n              \"travel_type\": 0\n            },\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"12.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 12116,\n              \"travel_type\": 1\n            },\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"230.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 9139,\n              \"travel_type\": 2\n            },\n            {\n              \"_destroy\": false,\n              \"financial_transaction_amount\": \"200.00\",\n              \"financial_transaction_amount_currency\": \"SAR\",\n              \"financial_transaction_type_id\": 29795,\n              \"travel_type\": 3\n            }\n          ]\n        }\n      },\n      \"1\": {\n        \"_destroy\": false,\n        \"category\": \"international\",\n        \"per_diem\": \"1200.00\",\n        \"per_diem_currency\": \"SAR\",\n        \"departure_country\": [\n          7\n        ],\n        \"departure_city\": [],\n        \"arrival_country\": [\n          35\n        ],\n        \"arrival_city\": [],\n        \"business_travel_accommodation_attributes\": {\n          \"hotel_tier\": {\n            \"1\": false,\n            \"2\": true,\n            \"3\": false,\n            \"4\": true,\n            \"5\": false\n          },\n          \"period_type\": \"night\",\n          \"max_accommodation_cost\": \"1200.00\",\n          \"max_accommodation_cost_currency\": \"SAR\"\n        },\n        \"business_travel_transportation_attributes\": {\n          \"airticket_class\": {\n            \"0\": false,\n            \"1\": true,\n            \"2\": true\n          },\n          \"travel_type\": {\n            \"0\": false,\n            \"1\": false,\n            \"2\": false,\n            \"3\": false\n          },\n          \"max_airticket_cost\": \"12300.00\",\n          \"max_airticket_cost_currency\": \"SAR\",\n          \"max_travel_cost\": \"\",\n          \"max_travel_cost_currency\": \"SAR\"\n        }\n      }\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_travel_policies"],"variable":[{"key":"branch_id","value":""}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"6638dc6a4664b77240b81fa9e5f139f8\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e1210ced-644d-4bba-a41a-5fd02a076ba9"},{"key":"X-Runtime","value":"3.223781"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"279"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 528,\n    \"name\": {\n        \"en\": \"Qais 3\",\n        \"ar\": \"3 قيس\"\n    },\n    \"created_at\": \"2025-06-24T13:19:59.629Z\",\n    \"updated_at\": \"2025-06-24T13:19:59.629Z\",\n    \"branch\": {\n        \"id\": 104\n    },\n    \"business_travel_positions\": [\n        {\n            \"id\": 166606\n        }\n    ],\n    \"business_travel_destinations\": [\n        {\n            \"id\": 9748\n        },\n        {\n            \"id\": 9749\n        }\n    ],\n    \"is_a?\": \"Debase::Breakpoint\"\n}"}],"_postman_id":"d5a8f86b-9444-42e9-918d-1f16261e1fd9"},{"name":"5. Delete Business Travel Policy","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"8ba6cba2-7a88-469c-84b3-146d539fbe22"}}],"id":"523b2073-41f8-4095-b779-c631c676a4fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/:business_travel_policy_id","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_policies",":business_travel_policy_id"],"host":["app.zenhr.com"],"query":[],"variable":[{"id":"6e48ebc7-da34-4c37-95a7-8d4131eeaae4","type":"any","value":"","key":"branch_id"},{"id":"8ceb5017-4c9b-47e7-85f3-3dd50f6789d9","type":"any","value":"{{business_travel_policy_id}}","key":"business_travel_policy_id"}]}},"response":[{"id":"33c8ebbf-6276-4f02-8252-a4fafb8880da","name":"5. Delete Business Travel Policy","originalRequest":{"method":"DELETE","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/:business_travel_policy_id","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_travel_policies",":business_travel_policy_id"],"variable":[{"key":"branch_id","value":""},{"key":"business_travel_policy_id","value":"{{business_travel_policy_id}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"61bbecf2-e1e7-42e0-ae0b-37ce0750d4e0"},{"key":"X-Runtime","value":"0.202400"},{"key":"vary","value":"Origin"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"523b2073-41f8-4095-b779-c631c676a4fb"},{"name":"6. Retrieve Available Business Travel Positions","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});","","pm.test(\"Response should be valid JSON\", function () {","    pm.response.to.be.json;","});",""],"type":"text/javascript","packages":{},"id":"683a44ba-b483-4c55-93ab-9ae8fed306c6"}}],"id":"968f51b6-0161-469a-a3c8-af755b59a353","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/:business_travel_policy_id","description":"<p>This API end-point will list all attendance records in a branch by branch_id</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v3","branches",":branch_id","business_travel_policies",":business_travel_policy_id"],"host":["app.zenhr.com"],"query":[{"disabled":true,"key":"include[]","value":"business_travel_policy.branch"},{"disabled":true,"key":"include[]","value":"business_travel_policy.business_travel_positions"},{"disabled":true,"key":"include[]","value":"business_travel_policy.business_travel_destinations"}],"variable":[{"id":"aa87f4f6-13e3-41c8-b5cc-1d12096c2c34","type":"any","value":"","key":"branch_id"},{"id":"2385bf06-ae06-494c-a09b-24d194fac00d","type":"any","value":"{{business_travel_policy_id}}","key":"business_travel_policy_id"}]}},"response":[{"id":"bdc6366d-8d7a-48d7-ba12-147c695c82b4","name":"2. View Business Travel Policy","originalRequest":{"method":"GET","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"en","type":"text"}],"url":{"raw":"https://app.zenhr.com/api/v3/branches/:branch_id/business_travel_policies/1?include[]=business_travel_policy.branch&include[]=business_travel_policy.business_travel_positions&include[]=business_travel_policy.business_travel_destinations","protocol":"https","host":["app.zenhr.com"],"path":["api","v3","branches",":branch_id","business_travel_policies","1"],"query":[{"key":"include[]","value":"business_travel_policy.branch"},{"key":"include[]","value":"business_travel_policy.business_travel_positions"},{"key":"include[]","value":"business_travel_policy.business_travel_destinations"}],"variable":[{"key":"branch_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"ETag","value":"W/\"ae311a14e89e5b8d4f202d640ea6f062\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"1f46e0fc-7fa2-4035-a69e-1930014d9125"},{"key":"X-Runtime","value":"0.122919"},{"key":"vary","value":"Accept, Origin"},{"key":"Content-Length","value":"4339"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": {\n        \"ar\": \"بي تي\",\n        \"en\": \"bt\"\n    },\n    \"created_at\": \"2024-05-05T16:35:18.623Z\",\n    \"updated_at\": \"2025-06-24T07:48:39.432Z\",\n    \"branch\": {\n        \"id\": 104,\n        \"name\": {\n            \"ar\": \"فرع الأردن\",\n            \"en\": \"Jordan Branch\"\n        },\n        \"probation_period\": {\n            \"type\": \"Month\",\n            \"period\": \"3\"\n        },\n        \"working_hours\": 8,\n        \"cut_off_date\": 20,\n        \"working_days\": 30,\n        \"days_off\": [],\n        \"timezone\": \"Amman\",\n        \"currency_currency\": \"SAR\",\n        \"country\": {\n            \"country_id\": 111,\n            \"name\": {\n                \"ar\": \"الأردن\",\n                \"en\": \"Jordan\"\n            },\n            \"country_code\": \"JO\"\n        },\n        \"governmental_information\": {\n            \"id\": 3341\n        },\n        \"establishment_number\": \"1010476663\",\n        \"governance_location\": \"مديرية لواء بني عبيد \",\n        \"social_security_governance_location\": null,\n        \"social_security_number\": null,\n        \"tax_number\": null,\n        \"address\": \"Zahran 10\",\n        \"po_box\": \"Test\",\n        \"zip_code\": \"Test1\",\n        \"mol_number\": null,\n        \"date_format\": \"%Y-%m-%d\",\n        \"time_format\": \"%I:%M %P\",\n        \"show_who_is_off_type\": true,\n        \"week_start_day\": 1,\n        \"fiscal_day\": 1,\n        \"fiscal_month\": 1,\n        \"whos_off_type\": 2,\n        \"whos_off_interval\": 30,\n        \"subsidiary_id\": \"usrt\",\n        \"created_at\": \"2017-09-26T07:01:51.620Z\",\n        \"updated_at\": \"2025-03-11T08:35:53.122Z\",\n        \"qr_code_expiry\": 60000,\n        \"logo_url\": \"https://s3.eu-central-1.amazonaws.com/zenhr-development-public/branch_logos/104/ZenHR_Logo.png\",\n        \"clocking_with_qr_code_enabled\": true\n    },\n    \"business_travel_positions\": [\n        {\n            \"id\": 811,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"HR Manager\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2017-09-26T07:38:27.792Z\",\n            \"updated_at\": \"2018-11-18T14:54:35.416Z\"\n        },\n        {\n            \"id\": 42569,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Developer\"\n            },\n            \"job_description\": \"<p>qejgnpKS D;VBwrbv</p>\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2022-05-23T11:39:47.090Z\",\n            \"updated_at\": \"2022-05-23T11:39:47.090Z\"\n        },\n        {\n            \"id\": 58816,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Developer\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2022-11-22T07:46:32.488Z\",\n            \"updated_at\": \"2022-11-22T07:46:32.488Z\"\n        },\n        {\n            \"id\": 58806,\n            \"name\": {\n                \"ar\": \"\",\n                \"en\": \"Acc\"\n            },\n            \"job_description\": \"\",\n            \"position_type\": \"regular\",\n            \"created_at\": \"2022-11-22T06:52:49.023Z\",\n            \"updated_at\": \"2022-11-22T06:52:49.023Z\"\n        }\n    ],\n    \"business_travel_destinations\": [\n        {\n            \"id\": 1,\n            \"category\": \"international\",\n            \"per_diem\": {\n                \"cents\": 2200,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"country\": [\n                    7\n                ]\n            },\n            \"arrival_location\": {\n                \"country\": [\n                    28\n                ]\n            },\n            \"transportation\": {\n                \"id\": 1,\n                \"travel_type\": [\n                    0\n                ],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 1,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        },\n        {\n            \"id\": 516,\n            \"category\": \"international\",\n            \"per_diem\": {\n                \"cents\": 400,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"country\": [\n                    23\n                ]\n            },\n            \"arrival_location\": {\n                \"country\": [\n                    23\n                ]\n            },\n            \"transportation\": {\n                \"id\": 516,\n                \"travel_type\": [\n                    0\n                ],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 516,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        },\n        {\n            \"id\": 2,\n            \"category\": \"domestic\",\n            \"per_diem\": {\n                \"cents\": 1100,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"city\": [\n                    1\n                ],\n                \"country\": 1\n            },\n            \"arrival_location\": {\n                \"city\": [\n                    4\n                ]\n            },\n            \"transportation\": {\n                \"id\": 2,\n                \"travel_type\": [],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 2,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        },\n        {\n            \"id\": 622,\n            \"category\": \"domestic\",\n            \"per_diem\": {\n                \"cents\": 69900,\n                \"currency_iso\": \"SAR\"\n            },\n            \"per_diem_currency\": \"SAR\",\n            \"departure_location\": {\n                \"city\": [\n                    82\n                ],\n                \"country\": 4\n            },\n            \"arrival_location\": {\n                \"city\": [\n                    82\n                ]\n            },\n            \"transportation\": {\n                \"id\": 622,\n                \"travel_type\": [],\n                \"airticket_class\": [],\n                \"max_airticket_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_airticket_cost_currency\": \"SAR\",\n                \"max_travel_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_travel_cost_currency\": \"SAR\"\n            },\n            \"accommodation\": {\n                \"id\": 622,\n                \"hotel_tier\": [],\n                \"period_type\": \"night\",\n                \"max_accommodation_cost\": {\n                    \"cents\": 0,\n                    \"currency_iso\": \"SAR\"\n                },\n                \"max_accommodation_cost_currency\": \"SAR\"\n            }\n        }\n    ]\n}"}],"_postman_id":"968f51b6-0161-469a-a3c8-af755b59a353"}],"id":"36afe512-c29c-44bc-8f7e-e7c8da55e944","_postman_id":"36afe512-c29c-44bc-8f7e-e7c8da55e944","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Document Types","item":[{"name":"List Document Types for a branch","id":"9860d587-37d4-4ff0-93b8-a0493bceb4f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/api/v3/branches/:branch_id/document_types?search=string&owner_type=string&active=false","urlObject":{"path":["api","v3","branches",":branch_id","document_types"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>Search term</p>\n","type":"text/plain"},"key":"search","value":"string"},{"key":"owner_type","value":"string"},{"key":"active","value":"false"}],"variable":[{"id":"d9aebef1-35de-43e0-80d4-4889edac04d5","description":{"content":"<p>ID of the branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"}]}},"response":[{"id":"3f05ab28-6239-4eaa-9c5c-431214b4d2d0","name":"successful","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/document_types?search=string&owner_type=string&active=false","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","document_types"],"query":[{"description":"Search term","key":"search","value":"string"},{"key":"owner_type","value":"string"},{"key":"active","value":"false"}],"variable":[{"key":"branch_id","value":"4886","description":"ID of the branch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": 2205,\n      \"name\": {\n        \"ar\": \"string\",\n        \"en\": \"string\"\n      },\n      \"owner_type\": \"string\",\n      \"active\": false,\n      \"deletable\": true\n    },\n    {\n      \"id\": 9369,\n      \"name\": {\n        \"ar\": \"string\",\n        \"en\": \"string\"\n      },\n      \"owner_type\": \"string\",\n      \"active\": false,\n      \"deletable\": true\n    }\n  ],\n  \"pagination\": {\n    \"current_page\": 5691,\n    \"per_page\": 8135,\n    \"total_entries\": 5669,\n    \"total_pages\": 7250\n  }\n}"}],"_postman_id":"9860d587-37d4-4ff0-93b8-a0493bceb4f6"},{"name":"Create Document Type","id":"6bb021ab-35db-4f18-a215-92294c06b3f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": {\n    \"en\": \"Type 1\",\n    \"ar\": \"ar Type 1\"\n  },\n  \"owner_type\": \"string\",\n  \"active\": true,\n  \"branch_ids\": [\n    1\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/api/v3/branches/:branch_id/document_types","urlObject":{"path":["api","v3","branches",":branch_id","document_types"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"4beb1071-4297-42c7-8832-4e8bd88a80a0","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"}]}},"response":[{"id":"8d581408-ffef-456e-be2b-38fc9ba56c09","name":"successful","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": {\n    \"en\": \"Type 1\",\n    \"ar\": \"ar Type 1\"\n  },\n  \"owner_type\": \"string\",\n  \"active\": true,\n  \"branch_ids\": [\n    1\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/document_types","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","document_types"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"}]}},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6bb021ab-35db-4f18-a215-92294c06b3f9"},{"name":"Get Document Type","id":"5cdd117f-3d39-43bc-abe6-b3753e78ff87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/api/v3/branches/:branch_id/document_types/:id","urlObject":{"path":["api","v3","branches",":branch_id","document_types",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"466eb425-fed2-4aa8-b246-3520856796a8","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"},{"id":"21bf8f4d-8661-4c29-914d-de22f37294d1","description":{"content":"<p>ID of the Document Type</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"id"}]}},"response":[{"id":"77ce5b1c-df7b-412d-b859-9896882937f1","name":"successful","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/document_types/:id","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","document_types",":id"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"},{"key":"id","value":"4886","description":"ID of the Document Type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 4259,\n  \"name\": {\n    \"ar\": \"string\",\n    \"en\": \"string\"\n  },\n  \"owner_type\": \"string\",\n  \"active\": true,\n  \"deletable\": false\n}"}],"_postman_id":"5cdd117f-3d39-43bc-abe6-b3753e78ff87"},{"name":"Update Document Type","id":"0b84b7fa-6431-4d7d-982c-765997aeaee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": {\n    \"en\": \"Type 2\",\n    \"ar\": \"ar Type 2\"\n  },\n  \"owner_type\": \"string\",\n  \"active\": true\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/api/v3/branches/:branch_id/document_types/:id","urlObject":{"path":["api","v3","branches",":branch_id","document_types",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"d97b8d28-ebf9-4f17-a931-47f19e26c223","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"},{"id":"2d86ecf5-a2b5-411e-895b-6773dd3ed047","description":{"content":"<p>ID of the Document Type</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"id"}]}},"response":[{"id":"8f81092d-5cfc-4a24-8c7a-d9e20189cbe7","name":"Update Document Type","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": {\n    \"en\": \"Type 2\",\n    \"ar\": \"ar Type 2\"\n  },\n  \"owner_type\": \"string\",\n  \"active\": true\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/document_types/:id","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","document_types",":id"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"},{"key":"id","value":"4886","description":"ID of the Document Type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 4259,\n  \"name\": {\n    \"ar\": \"string\",\n    \"en\": \"string\"\n  },\n  \"owner_type\": \"string\",\n  \"active\": true,\n  \"deletable\": false\n}"}],"_postman_id":"0b84b7fa-6431-4d7d-982c-765997aeaee1"},{"name":"Delete Document Type","id":"712025cf-4830-4ebf-9dd9-cec052bfe985","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{baseUrl}}/api/v3/branches/:branch_id/document_types/:id","urlObject":{"path":["api","v3","branches",":branch_id","document_types",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"724eb260-9f88-47d0-99ab-1727d91b956f","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"},{"id":"73c020f4-caa7-4a15-9a81-c762b061c656","description":{"content":"<p>ID of the Document Type</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"id"}]}},"response":[{"id":"4ae39973-e70f-434c-891d-7d76f663287e","name":"successful","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/document_types/:id","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","document_types",":id"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"},{"key":"id","value":"4886","description":"ID of the Document Type"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"712025cf-4830-4ebf-9dd9-cec052bfe985"}],"id":"0e9ffab7-5440-4939-b3ab-5508eadc9b20","_postman_id":"0e9ffab7-5440-4939-b3ab-5508eadc9b20","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}},{"name":"Documents","item":[{"name":"List Documents for a branch","id":"2eaf2d61-90ad-4fa3-be2a-db453d187522","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/api/v3/branches/:branch_id/documents?search=string&owner_type=string&owner_id=5933&document_type_id=606&status=string&professional_datum=[object Object]","urlObject":{"path":["api","v3","branches",":branch_id","documents"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>Search term</p>\n","type":"text/plain"},"key":"search","value":"string"},{"key":"owner_type","value":"string"},{"key":"owner_id","value":"5933"},{"key":"document_type_id","value":"606"},{"key":"status","value":"string"},{"key":"professional_datum","value":"[object Object]"}],"variable":[{"id":"89435f84-6e79-4411-a9dc-ce40626ff24f","description":{"content":"<p>ID of the branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"}]}},"response":[{"id":"7b0ec4bf-f320-4f1d-beab-7838a4368a77","name":"successful","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/documents?search=string&owner_type=string&owner_id=5933&document_type_id=606&status=string&professional_datum=[object Object]","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","documents"],"query":[{"description":"Search term","key":"search","value":"string"},{"key":"owner_type","value":"string"},{"key":"owner_id","value":"5933"},{"key":"document_type_id","value":"606"},{"key":"status","value":"string"},{"key":"professional_datum","value":"[object Object]"}],"variable":[{"key":"branch_id","value":"4886","description":"ID of the branch"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": 580,\n      \"name\": \"string\",\n      \"created_at\": \"1962-08-05T10:56:46.907Z\",\n      \"expiry_date\": null,\n      \"created_by\": \"string\",\n      \"admin_only\": true,\n      \"document_type\": {\n        \"id\": 5299,\n        \"name\": \"string\"\n      },\n      \"owner\": {\n        \"id\": 7405,\n        \"name\": \"string\",\n        \"type\": \"string\"\n      },\n      \"attachments\": [\n        {\n          \"id\": 1950,\n          \"attachment_expiring_url\": \"string\",\n          \"attachment_file_name\": \"string\",\n          \"attachment_content_type\": null,\n          \"attachment_file_size\": 2027\n        },\n        {\n          \"id\": 3342,\n          \"attachment_expiring_url\": \"string\",\n          \"attachment_file_name\": \"string\",\n          \"attachment_content_type\": null,\n          \"attachment_file_size\": null\n        }\n      ]\n    },\n    {\n      \"id\": 7339,\n      \"name\": \"string\",\n      \"created_at\": \"2019-12-20T13:02:23.693Z\",\n      \"expiry_date\": \"2009-08-15\",\n      \"created_by\": null,\n      \"admin_only\": false,\n      \"document_type\": {\n        \"id\": 1153,\n        \"name\": \"string\"\n      },\n      \"owner\": {\n        \"id\": 1386,\n        \"name\": \"string\",\n        \"type\": \"string\"\n      },\n      \"attachments\": [\n        {\n          \"id\": 1067,\n          \"attachment_expiring_url\": \"string\",\n          \"attachment_file_name\": null,\n          \"attachment_content_type\": null,\n          \"attachment_file_size\": 7771\n        },\n        {\n          \"id\": 2184,\n          \"attachment_expiring_url\": \"string\",\n          \"attachment_file_name\": \"string\",\n          \"attachment_content_type\": \"string\",\n          \"attachment_file_size\": null\n        }\n      ]\n    }\n  ],\n  \"pagination\": {\n    \"current_page\": 5135,\n    \"per_page\": 2548,\n    \"total_entries\": 6481,\n    \"total_pages\": 9282\n  }\n}"}],"_postman_id":"2eaf2d61-90ad-4fa3-be2a-db453d187522"},{"name":"Create Document","id":"becfb934-1682-4251-9ecc-5a9003ccd877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"string\",\n  \"document_type_id\": 1,\n  \"owner_type\": \"string\",\n  \"owner_id\": 1,\n  \"admin_only\": false,\n  \"expiry_date\": \"string\",\n  \"attachments_attributes\": [\n    {\n      \"attachment\": \"string\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/api/v3/branches/:branch_id/documents","urlObject":{"path":["api","v3","branches",":branch_id","documents"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"6026b105-9653-4f32-86d4-e6a4f730c2de","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"}]}},"response":[{"id":"13fabe5a-5232-4197-9d2d-3c50ebff20a9","name":"Create Document","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"string\",\n  \"document_type_id\": 1,\n  \"owner_type\": \"string\",\n  \"owner_id\": 1,\n  \"admin_only\": false,\n  \"expiry_date\": \"string\",\n  \"attachments_attributes\": [\n    {\n      \"attachment\": \"string\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/documents","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","documents"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 6417,\n  \"name\": \"string\",\n  \"created_at\": \"1970-02-03T07:22:27.270Z\",\n  \"expiry_date\": \"2014-04-21\",\n  \"created_by\": \"string\",\n  \"admin_only\": false,\n  \"allowed_actions\": [],\n  \"document_type\": {\n    \"id\": 4771,\n    \"name\": \"string\"\n  },\n  \"owner\": {\n    \"id\": 9097,\n    \"name\": \"string\",\n    \"type\": \"string\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 813,\n      \"attachment_expiring_url\": \"string\",\n      \"attachment_file_name\": null,\n      \"attachment_content_type\": \"string\",\n      \"attachment_file_size\": 8982\n    },\n    {\n      \"id\": 6966,\n      \"attachment_expiring_url\": \"string\",\n      \"attachment_file_name\": \"string\",\n      \"attachment_content_type\": \"string\",\n      \"attachment_file_size\": null\n    }\n  ]\n}"}],"_postman_id":"becfb934-1682-4251-9ecc-5a9003ccd877"},{"name":"Get Document","id":"056bd81f-08a7-4302-b020-0cc672b913ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"{{baseUrl}}/api/v3/branches/:branch_id/documents/:document_id","urlObject":{"path":["api","v3","branches",":branch_id","documents",":document_id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"0835172f-b42d-411f-aa8e-973b94cf2451","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"},{"id":"64a73395-78cf-427e-9a34-68b258f4e268","description":{"content":"<p>ID of the Document</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"document_id"}]}},"response":[{"id":"89372e0e-b018-4d8e-a521-e0392161b7f1","name":"successful","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/documents/:document_id","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","documents",":document_id"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"},{"key":"document_id","value":"4886","description":"ID of the Document"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 6417,\n  \"name\": \"string\",\n  \"created_at\": \"1970-02-03T07:22:27.270Z\",\n  \"expiry_date\": \"2014-04-21\",\n  \"created_by\": \"string\",\n  \"admin_only\": false,\n  \"allowed_actions\": [],\n  \"document_type\": {\n    \"id\": 4771,\n    \"name\": \"string\"\n  },\n  \"owner\": {\n    \"id\": 9097,\n    \"name\": \"string\",\n    \"type\": \"string\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 813,\n      \"attachment_expiring_url\": \"string\",\n      \"attachment_file_name\": null,\n      \"attachment_content_type\": \"string\",\n      \"attachment_file_size\": 8982\n    },\n    {\n      \"id\": 6966,\n      \"attachment_expiring_url\": \"string\",\n      \"attachment_file_name\": \"string\",\n      \"attachment_content_type\": \"string\",\n      \"attachment_file_size\": null\n    }\n  ]\n}"}],"_postman_id":"056bd81f-08a7-4302-b020-0cc672b913ce"},{"name":"Edit Document","id":"4d978e6e-9b0f-44ea-bb09-e5ec6f03353a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"string\",\n  \"document_type_id\": 1,\n  \"owner_type\": \"string\",\n  \"owner_id\": 1,\n  \"admin_only\": false,\n  \"expiry_date\": \"string\",\n  \"attachments_attributes\": [\n    {\n      \"attachment\": \"string\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"{{baseUrl}}/api/v3/branches/:branch_id/documents/:document_id","urlObject":{"path":["api","v3","branches",":branch_id","documents",":document_id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"441ff5ac-7e97-40b4-bbd8-4fb10fcb75f1","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"},{"id":"efd03055-0d26-4fb1-a383-7b4e2cdc5af7","description":{"content":"<p>ID of the Document</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"document_id"}]}},"response":[{"id":"3dd8ba54-d723-4c51-9653-a797c50d78b3","name":"Edit Document","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"string\",\n  \"document_type_id\": 1,\n  \"owner_type\": \"string\",\n  \"owner_id\": 1,\n  \"admin_only\": false,\n  \"expiry_date\": \"string\",\n  \"attachments_attributes\": [\n    {\n      \"attachment\": \"string\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/documents/:document_id","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","documents",":document_id"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"},{"key":"document_id","value":"4886","description":"ID of the Document"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 6417,\n  \"name\": \"string\",\n  \"created_at\": \"1970-02-03T07:22:27.270Z\",\n  \"expiry_date\": \"2014-04-21\",\n  \"created_by\": \"string\",\n  \"admin_only\": false,\n  \"allowed_actions\": [],\n  \"document_type\": {\n    \"id\": 4771,\n    \"name\": \"string\"\n  },\n  \"owner\": {\n    \"id\": 9097,\n    \"name\": \"string\",\n    \"type\": \"string\"\n  },\n  \"attachments\": [\n    {\n      \"id\": 813,\n      \"attachment_expiring_url\": \"string\",\n      \"attachment_file_name\": null,\n      \"attachment_content_type\": \"string\",\n      \"attachment_file_size\": 8982\n    },\n    {\n      \"id\": 6966,\n      \"attachment_expiring_url\": \"string\",\n      \"attachment_file_name\": \"string\",\n      \"attachment_content_type\": \"string\",\n      \"attachment_file_size\": null\n    }\n  ]\n}"}],"_postman_id":"4d978e6e-9b0f-44ea-bb09-e5ec6f03353a"},{"name":"Delete Document","id":"cf17fa8c-552c-4260-8f4e-98fa40fa3b71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"scope","value":"<scope>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{baseUrl}}/api/v3/branches/:branch_id/documents/:document_id","urlObject":{"path":["api","v3","branches",":branch_id","documents",":document_id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"2ff3786f-afeb-45ee-816b-c0cc647169c0","description":{"content":"<p>ID of the Branch</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"branch_id"},{"id":"ba338922-e00d-4a8d-8bb4-394d7223ca88","description":{"content":"<p>ID of the Document</p>\n","type":"text/plain"},"type":"any","value":"4886","key":"document_id"}]}},"response":[{"id":"914c34b6-f3c9-4821-a40e-7ef877660684","name":"successful","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: oauth2","key":"Authorization","value":"<token>"}],"url":{"raw":"{{baseUrl}}/api/v3/branches/:branch_id/documents/:document_id","host":["{{baseUrl}}"],"path":["api","v3","branches",":branch_id","documents",":document_id"],"variable":[{"key":"branch_id","value":"4886","description":"ID of the Branch"},{"key":"document_id","value":"4886","description":"ID of the Document"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"cf17fa8c-552c-4260-8f4e-98fa40fa3b71"}],"id":"2f3901b1-f29e-457b-b978-69c6478f63f1","_postman_id":"2f3901b1-f29e-457b-b978-69c6478f63f1","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]},"isInherited":true,"source":{"_postman_id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","id":"c5dd8d61-f2e1-4920-9a3a-85d3905ff7e5","name":"ZenHR APIs Documentation","type":"collection"}}}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"grant_type","value":"<grant_type>"},{"key":"password","value":"{{password}}"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"scope","value":"<scope>"},{"key":"tokenName","value":"<token-name>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"state","value":"<state>"},{"key":"authUrl","value":"<auth-url>"},{"key":"refreshTokenUrl","value":"<refresh-token-url>"},{"key":"username","value":"{{username}}"},{"key":"tokenType","value":"<token-type>"},{"key":"accessTokenUrl","value":"<access-token-url>"}]}},"event":[{"listen":"prerequest","script":{"id":"873899a7-bf4e-4734-ba80-d68ce7bfc9dc","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"423c6dce-fd0e-4040-90d7-ca4bf0ad34a0","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"protocol","value":"http","disabled":true},{"key":"baseURL","value":"zenhr.local:3000","disabled":true},{"key":"branch_id","value":""},{"key":"protocol","value":"https"},{"key":"baseURL","value":"app.zenhr.com"},{"key":"callback_url","value":""},{"key":"client_id","value":""},{"key":"client_secret","value":""},{"key":"main_project_id","value":""},{"key":"hierarchy_group_id","value":""},{"key":"department_id","value":""},{"key":"business_unit_id","value":""}]}