{"info":{"_postman_id":"7d6536a4-8e99-475d-b840-9e67ede8d1ac","name":"Overtime Public API","description":"<html><head></head><body><p>External APIs for Base Overtime</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25866349","collectionId":"7d6536a4-8e99-475d-b840-9e67ede8d1ac","publishedId":"2sA3XTfft2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-20T03:03:44.000Z"},"item":[{"name":"Overtime Policy list","id":"59f89dc1-0379-4684-9364-7bd69d10c4d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token_v2","value":"{{overtime_access_token_v2}}","type":"text"},{"key":"page","value":"0","description":"<p>Page number start from 0</p>\n","type":"text"}]},"url":"https://overtime.base.beta/extapi/v1/policy/list","description":"<p>Get list of overtime policy</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","policy","list"],"host":["overtime","base.beta"],"query":[],"variable":[]}},"response":[{"id":"b5300007-b90b-425d-81e0-335c5982440c","name":"Overtime list","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{overtime_access_token}}","type":"text"},{"key":"page","value":"0","description":"Page number start from 0","type":"text"}]},"url":"https://overtime.base.beta/extapi/v1/policy/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Jun 2024 09:21:05 GMT"},{"key":"Server","value":"Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.33"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Strict-Transport-Security","value":"max-age=2592000"},{"key":"Content-Security-Policy","value":"script-src 'self' 'unsafe-inline' 'unsafe-eval' *.basecdn.net *.google.com www.gstatic.com *.googleapis.com *.google-analytics.com *.googletagmanager.com *.segment.com *.segment.io *.satismeter.com *.freshchat.com *.freshworksapi.com *.cloudflare.com *.twiliocdn.com *.twilio.com *.live.net *.live.com *.onedrive.com *.microsoft.com *.microsoftonline.com; object-src 'none'; frame-ancestors 'self' xspace.base.beta"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 1,\n    \"message\": \"\",\n    \"data\": null,\n    \"page\": 0,\n    \"items_per_page\": 20,\n    \"total_items\": \"11\",\n    \"policies\": [\n        {\n            \"id\": \"14\",\n            \"user_id\": \"36\",\n            \"username\": \"test\",\n            \"name\": \"Chính sách ngày lễ\",\n            \"description\": \"policy description\",\n            \"metatype\": \"weekdays\",\n            \"workflow\": \"one\",\n            \"day_type\": \"holiday\",\n            \"frames\": [],\n            \"timekeeping_type\": \"\",\n            \"group_id\": \"1\",\n            \"code\": \"normal_chinh_sach_ngay_le\",\n            \"overnight_code\": \"overnight_chinh_sach_ngay_le\",\n            \"owners\": [\n                \"test\"\n            ],\n            \"followers\": [],\n            \"teams\": [],\n            \"reviewers\": [\n                \"test\"\n            ],\n            \"dm\": 0,\n            \"status\": \"1\",\n            \"form\": [],\n            \"since\": \"1704786898\",\n            \"last_update\": \"1707229783\",\n            \"system_id\": \"1\",\n            \"sla\": \"0\",\n            \"authorizations\": [],\n            \"confirm_authorizations\": [],\n            \"approvers\": [\n                {\n                    \"id\": \"fixed_approver_test\",\n                    \"type\": \"fixed_approver\",\n                    \"data\": {\n                        \"username\": \"test\"\n                    }\n                }\n            ],\n            \"setup_direct_managers_approve\": 0,\n            \"setup_direct_managers_confirm\": 0,\n            \"approval_flow_priority_order\": \"last\",\n            \"dm_confirm\": 0,\n            \"receive_type\": 0,\n            \"files\": [],\n            \"data\": {\n                \"dm_confirm\": 0,\n                \"require_frames\": 0,\n                \"require_not_conflict\": 0,\n                \"confirm_after_ot\": 0,\n                \"limit_distance\": \"-100\",\n                \"normal_coefficient\": null,\n                \"overnight_coefficient\": null,\n                \"receive_type\": 0,\n                \"allow_compute_pto\": 0,\n                \"sla_confirm\": 0,\n                \"deadline_confirm_since\": \"approved\",\n                \"limit_hours\": 0,\n                \"day_limit_hours\": 0,\n                \"cycle_start_date\": 0,\n                \"convert_pto_enabled\": 1,\n                \"apply_stage\": \"approve\",\n                \"formula\": \"MQ\",\n                \"enable_warning\": 0,\n                \"warning_message\": \"\",\n                \"warning_formula\": \"\",\n                \"approval_flow_priority_order\": \"last\",\n                \"approve_batch_process\": 1,\n                \"confirm_batch_process\": 1,\n                \"pto_convert_batch_process\": 1\n            },\n            \"convert_pto_enabled\": 1,\n            \"enable_warning\": 0,\n            \"approve_batch_process\": 1,\n            \"confirm_batch_process\": 1,\n            \"pto_convert_batch_process\": 1,\n            \"auto_sync_checkins\": 0,\n            \"limit_request_staff\": 0,\n            \"day_limit_hours\": 0,\n            \"deadline_confirm_since\": \"approved\",\n            \"apply_stage\": \"approve\",\n            \"allow_compute_pto\": 0,\n            \"formula\": \"1\",\n            \"warning_formula\": \"\",\n            \"token\": \"\",\n            \"hid\": \"\",\n            \"acl\": {\n                \"owner\": 0,\n                \"admin\": 0,\n                \"follow\": 1,\n                \"manage\": 0\n            },\n            \"email_enabled\": 0,\n            \"options\": {\n                \"notis_sequential\": \"no\"\n            }\n        }\n    ]\n}"}],"_postman_id":"59f89dc1-0379-4684-9364-7bd69d10c4d3"},{"name":"Overtime list","id":"41202ff2-18ef-48b1-bf33-523b88597527","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token_v2","value":"{{overtime_access_token_v2}}","type":"text"},{"key":"page","value":"0","description":"<p>Page number start from 0</p>\n","type":"text"},{"key":"status","value":"{{overtime_status}}","description":"<p>confirmed/pending/unconfirmed/rejected/canceled/approved/warning/confirmed_unconverted/pto/turn</p>\n","type":"text"},{"key":"users","value":"@admin","description":"<p>Username of overtime creator</p>\n","type":"text"},{"key":"policy_ids","value":"1,2,3","description":"<p>List of policy ids</p>\n","type":"text"},{"key":"start_date_from","value":"1704970785","description":"<p>Overtime start date from in epoch timestamp</p>\n","type":"text"},{"key":"start_date_to","value":"1704970785","description":"<p>Overtime start date to in epoch timestamp</p>\n","type":"text"},{"key":"end_date_from","value":"1704970785","description":"<p>Overtime end date from in epoch timestamp</p>\n","type":"text"},{"key":"end_date_to","value":"1704970785","description":"<p>Overtime end date to in epoch timestamp</p>\n","type":"text"},{"key":"created_from","value":"1704970785","description":"<p>Overtime create date from in epoch timestamp</p>\n","type":"text"},{"key":"created_to","value":"1704970785","description":"<p>Overtime create date to in epoch timestamp</p>\n","type":"text"},{"key":"q","value":"Overtime title","description":"<p>Title of overtime request</p>\n","type":"text"},{"key":"role","value":"receiving","description":"<p>Role of user to overtime request: receiving/reviewing/following/sending/creating</p>\n","type":"text"}]},"url":"https://overtime.base.beta/extapi/v1/overtime/list","description":"<p>Get list of overtime policy</p>\n","urlObject":{"protocol":"https","path":["extapi","v1","overtime","list"],"host":["overtime","base.beta"],"query":[],"variable":[]}},"response":[{"id":"041a9833-cdc4-4f38-a0d5-fad1ebf16e6c","name":"Overtime list","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"access_token","value":"{{overtime_access_token}}","type":"text"},{"key":"page","value":"0","description":"Page number start from 0","type":"text"},{"key":"status","value":"{{overtime_status}}","description":"confirmed/pending/unconfirmed/rejected/canceled/approved/warning/confirmed_unconverted/pto/turn","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://overtime.base.beta/extapi/v1/overtime/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Jun 2024 09:29:03 GMT"},{"key":"Server","value":"Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.33"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Strict-Transport-Security","value":"max-age=2592000"},{"key":"Content-Security-Policy","value":"script-src 'self' 'unsafe-inline' 'unsafe-eval' *.basecdn.net *.google.com www.gstatic.com *.googleapis.com *.google-analytics.com *.googletagmanager.com *.segment.com *.segment.io *.satismeter.com *.freshchat.com *.freshworksapi.com *.cloudflare.com *.twiliocdn.com *.twilio.com *.live.net *.live.com *.onedrive.com *.microsoft.com *.microsoftonline.com; object-src 'none'; frame-ancestors 'self' xspace.base.beta"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Set-Cookie","value":"basessid=cr5c5i3rmtugsbq4g7tq6gdmu6; path=/; domain=.base.beta; secure; HttpOnly"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 1,\n    \"message\": \"\",\n    \"data\": null,\n    \"page\": 0,\n    \"items_per_page\": 20,\n    \"total_items\": \"201\",\n    \"overtimes\": [\n        {\n            \"id\": \"269\",\n            \"user_id\": \"21\",\n            \"username\": \"hamvuong\",\n            \"ot_user_id\": \"21\",\n            \"ot_username\": \"hamvuong\",\n            \"creator_id\": \"36\",\n            \"creator_username\": \"test\",\n            \"employee_id\": \"72\",\n            \"name\": \"dfgfsd\",\n            \"description\": \"\",\n            \"group_id\": \"1\",\n            \"metatype\": \"\",\n            \"workflow\": \"one\",\n            \"day_type\": \"holiday\",\n            \"policy_id\": \"14\",\n            \"owners\": [\n                {\n                    \"username\": \"test\",\n                    \"gavatar\": \"https://data.base.beta/avatar/\",\n                    \"approved\": 1\n                }\n            ],\n            \"followers\": [],\n            \"approvals\": [\n                \"test\"\n            ],\n            \"rejections\": [],\n            \"reviewers\": [\n                \"test\"\n            ],\n            \"start_date\": \"1701450000\",\n            \"end_date\": \"1701450000\",\n            \"shifts\": [\n                {\n                    \"key\": \"2\",\n                    \"ot_stime\": \"12:00\",\n                    \"ot_etime\": \"13:00\",\n                    \"ot_value\": \"12:00-13:00\",\n                    \"type\": \"normal\",\n                    \"date\": 1701450000,\n                    \"mode\": \"\"\n                }\n            ],\n            \"frames\": [],\n            \"status\": \"2\",\n            \"warning\": \"0\",\n            \"locked\": \"0\",\n            \"confirm\": \"0\",\n            \"is_convert_pto\": \"0\",\n            \"results\": [\n                {\n                    \"id\": \"\",\n                    \"name\": \"Đã tạo đề xuất\",\n                    \"file\": null,\n                    \"since\": 1705027310,\n                    \"data\": {},\n                    \"username\": \"test\",\n                    \"note\": \"<b>test</b> đã tạo đề xuất tăng ca cho <b>Vương Xuân Hàm</b>\",\n                    \"time\": 0,\n                    \"action\": \"overtime:created\",\n                    \"warning\": \"\"\n                },\n                {\n                    \"id\": \"\",\n                    \"name\": \"Đã duyệt đề xuất tăng ca\",\n                    \"file\": null,\n                    \"since\": 1705027587,\n                    \"data\": {},\n                    \"username\": \"test\",\n                    \"note\": \"<b>test</b> đã duyệt đề xuất tăng ca và nó đã được chấp nhận toàn bộ\",\n                    \"time\": 0,\n                    \"action\": \"approved\",\n                    \"warning\": \"\"\n                }\n            ],\n            \"form\": [],\n            \"data\": {\n                \"approver_fixed_approver_test\": [\n                    \"test\"\n                ],\n                \"origin_approver_fixed_approver_test\": [\n                    \"test\"\n                ],\n                \"posts\": 2\n            },\n            \"token\": \"\",\n            \"since\": \"1705027310\",\n            \"last_update\": \"1705027587\",\n            \"deadline\": \"0\",\n            \"overtime_hour\": {\n                \"normal\": 1,\n                \"overnight\": 0\n            },\n            \"hid\": \"\",\n            \"stats\": {\n                \"posts\": 2,\n                \"likes\": 0,\n                \"comments\": 0,\n                \"files\": 0\n            },\n            \"reactions\": [],\n            \"acl\": {\n                \"manage\": 0,\n                \"edit\": 0,\n                \"remove\": 0,\n                \"approve\": 0,\n                \"forward\": 0,\n                \"reject\": 0,\n                \"cancel\": 0,\n                \"unconfirm\": 0,\n                \"confirm\": 0,\n                \"duplicate\": 0\n            }\n        }\n    ]\n}"}],"_postman_id":"41202ff2-18ef-48b1-bf33-523b88597527"}],"variable":[{"key":"domain","value":"base.beta"}]}