{ "info": { "_postman_id": "63e9431c-ab7f-4c62-82e7-12dab9698b90", "name": "Remote Address Details Time & Attendance API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T02:47:58.000Z", "updatedAt": "2026-07-28T02:47:58.000Z", "lastUpdatedBy": "35240", "uid": "35240-63e9431c-ab7f-4c62-82e7-12dab9698b90" }, "item": [ { "name": "v1", "item": [ { "name": "timesheets", "item": [ { "name": "{id}", "item": [ { "name": "Show timesheet", "id": "b8a69df0-7b6f-4554-b71c-ee79fedf31dc", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":id" ], "variable": [ { "id": "11c0bfa7-e60a-441b-aece-1acdbbb5ac2e", "key": "id", "value": "", "description": "(Required) Timesheet ID" } ] }, "description": "Shows a timesheet by its ID.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timesheets (`timesheet:read`) | Manage timesheets (`timesheet:write`) |\n" }, "response": [ { "id": "75b11af8-f2bb-473a-a691-0c9aff6fa36e", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timesheet\": {\n \"id\": \"\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"status\": \"open\",\n \"country_code\": \"\",\n \"employment_id\": \"\",\n \"submitted_at\": \"\",\n \"approval_required\": \"\",\n \"notes\": \"\",\n \"regular_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"break_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"unpaid_break_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"overtime_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"on_call_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"time_trackings\": [\n {\n \"type\": \"overtime\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"has_night_hours\": \"\",\n \"has_weekend_hours\": \"\",\n \"has_holiday_hours\": \"\",\n \"time_breakdown\": {\n \"day\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n \"night\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n }\n },\n {\n \"type\": \"unpaid_break\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"has_night_hours\": \"\",\n \"has_weekend_hours\": \"\",\n \"has_holiday_hours\": \"\",\n \"time_breakdown\": {\n \"day\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n \"night\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n }\n }\n ],\n \"timeoff_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-75b11af8-f2bb-473a-a691-0c9aff6fa36e" }, { "id": "bf41ca83-830e-4cbb-b01f-4c857e8cb162", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-bf41ca83-830e-4cbb-b01f-4c857e8cb162" }, { "id": "80192543-c669-4343-96f5-214510767736", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-80192543-c669-4343-96f5-214510767736" }, { "id": "2e60ae88-0bb2-45c2-aee4-87c4306b64b9", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-2e60ae88-0bb2-45c2-aee4-87c4306b64b9" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b8a69df0-7b6f-4554-b71c-ee79fedf31dc" } ], "id": "4deac4b2-72c9-4b18-975d-a8d3f0f13f26", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-4deac4b2-72c9-4b18-975d-a8d3f0f13f26" }, { "name": "{timesheet_id}", "item": [ { "name": "approve", "item": [ { "name": "Approve timesheet", "id": "6d0179ce-be4e-40fc-a92d-2f84752ad90d", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "approve" ], "variable": [ { "id": "a736c1f2-aac9-49e3-a630-ff02f652ee4d", "key": "timesheet_id", "value": "", "description": "(Required) Timesheet ID" } ] }, "description": "Approves the given timesheet.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timesheets (`timesheet:write`) |\n" }, "response": [ { "id": "289c7cff-99e5-4e39-ac44-9dd33013580e", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "approve" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timesheet\": {\n \"id\": \"\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"status\": \"submitted\",\n \"country_code\": \"\",\n \"employment_id\": \"\",\n \"submitted_at\": \"\",\n \"approval_required\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-289c7cff-99e5-4e39-ac44-9dd33013580e" }, { "id": "126b3d80-73a3-462d-a4f0-c9ab1b74a3f1", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "approve" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-126b3d80-73a3-462d-a4f0-c9ab1b74a3f1" }, { "id": "136980d3-23a6-4d25-9bc9-86cae04eadd5", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "approve" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-136980d3-23a6-4d25-9bc9-86cae04eadd5" }, { "id": "de5220ed-6ad9-4cb0-9868-9ebac23ca608", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "approve" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-de5220ed-6ad9-4cb0-9868-9ebac23ca608" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-6d0179ce-be4e-40fc-a92d-2f84752ad90d" } ], "id": "c9f3eeb5-7db4-44db-b8d9-8a6dc15d7177", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-c9f3eeb5-7db4-44db-b8d9-8a6dc15d7177" }, { "name": "send-back", "item": [ { "name": "Send back a timesheet for review or modification", "id": "0d5cd6a5-5e82-4222-9fa5-2973ced05229", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sent_back_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/send-back", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "send-back" ], "variable": [ { "id": "29990f11-d810-4fdb-9e5b-92a92345af62", "key": "timesheet_id", "value": "", "description": "(Required) Timesheet ID" } ] }, "description": "Sends the given timesheet back to the employee for review or modification.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timesheets (`timesheet:write`) |\n" }, "response": [ { "id": "b49e9956-233b-400b-b6e8-cd28853d4f75", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"sent_back_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/send-back", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "send-back" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timesheet\": {\n \"id\": \"\",\n \"status\": \"in_calibration\",\n \"sent_back\": \"\",\n \"sent_back_reason\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b49e9956-233b-400b-b6e8-cd28853d4f75" }, { "id": "3959891a-a37e-45ac-83a9-394e78192412", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"sent_back_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/send-back", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "send-back" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3959891a-a37e-45ac-83a9-394e78192412" }, { "id": "5368425a-934e-4602-ae5a-3eb1dece47ac", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"sent_back_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/send-back", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "send-back" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-5368425a-934e-4602-ae5a-3eb1dece47ac" }, { "id": "5be60061-527a-4b46-a073-21e3213df214", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"sent_back_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timesheets/:timesheet_id/send-back", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets", ":timesheet_id", "send-back" ], "variable": [ { "key": "timesheet_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-5be60061-527a-4b46-a073-21e3213df214" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-0d5cd6a5-5e82-4222-9fa5-2973ced05229" } ], "id": "96282f9e-65aa-4f54-b03c-e28473c051e6", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-96282f9e-65aa-4f54-b03c-e28473c051e6" } ], "id": "b5702e98-8e7d-496b-b12a-31667858f71f", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b5702e98-8e7d-496b-b12a-31667858f71f" }, { "name": "List timesheets", "id": "15a3b36e-7c9d-4a6d-8403-5f5659a65233", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timesheets?status=submitted&order=desc&sort_by=submitted_at&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets" ], "query": [ { "description": "Filter timesheets by their status", "key": "status", "value": "submitted" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "submitted_at" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] }, "description": "Lists all timesheets.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timesheets (`timesheet:read`) | Manage timesheets (`timesheet:write`) |\n" }, "response": [ { "id": "f70a42f9-8966-412c-a9a8-5a39a8e2212b", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets?status=submitted&order=desc&sort_by=submitted_at&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets" ], "query": [ { "description": "Filter timesheets by their status", "key": "status", "value": "submitted" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "submitted_at" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"current_page\": \"\",\n \"timesheets\": [\n {\n \"id\": \"\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"status\": \"approved\",\n \"country_code\": \"\",\n \"employment_id\": \"\",\n \"submitted_at\": \"\",\n \"approval_required\": \"\",\n \"notes\": \"\",\n \"regular_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"break_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"unpaid_break_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"overtime_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"on_call_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"time_trackings\": [\n {\n \"type\": \"break\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"has_night_hours\": \"\",\n \"has_weekend_hours\": \"\",\n \"has_holiday_hours\": \"\",\n \"time_breakdown\": {\n \"day\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n \"night\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n }\n },\n {\n \"type\": \"time_off\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"has_night_hours\": \"\",\n \"has_weekend_hours\": \"\",\n \"has_holiday_hours\": \"\",\n \"time_breakdown\": {\n \"day\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n \"night\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n }\n }\n ],\n \"timeoff_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n {\n \"id\": \"\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"status\": \"submitted\",\n \"country_code\": \"\",\n \"employment_id\": \"\",\n \"submitted_at\": \"\",\n \"approval_required\": \"\",\n \"notes\": \"\",\n \"regular_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"break_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"unpaid_break_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"overtime_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"on_call_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"time_trackings\": [\n {\n \"type\": \"time_off\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"has_night_hours\": \"\",\n \"has_weekend_hours\": \"\",\n \"has_holiday_hours\": \"\",\n \"time_breakdown\": {\n \"day\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n \"night\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n }\n },\n {\n \"type\": \"unpaid_break\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"night_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"has_night_hours\": \"\",\n \"has_weekend_hours\": \"\",\n \"has_holiday_hours\": \"\",\n \"time_breakdown\": {\n \"day\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n \"night\": {\n \"regular\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"weekend\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"holiday\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n }\n }\n ],\n \"timeoff_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n ],\n \"total_count\": \"\",\n \"total_pages\": \"\"\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-f70a42f9-8966-412c-a9a8-5a39a8e2212b" }, { "id": "88529781-4237-430f-a80d-c25f732eb9c1", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets?status=submitted&order=desc&sort_by=submitted_at&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets" ], "query": [ { "description": "Filter timesheets by their status", "key": "status", "value": "submitted" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "submitted_at" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-88529781-4237-430f-a80d-c25f732eb9c1" }, { "id": "6590a8d2-10a8-447e-abf8-beccc239f42d", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets?status=submitted&order=desc&sort_by=submitted_at&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets" ], "query": [ { "description": "Filter timesheets by their status", "key": "status", "value": "submitted" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "submitted_at" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-6590a8d2-10a8-447e-abf8-beccc239f42d" }, { "id": "cb0712b0-7d01-4739-b38c-383e2ee17112", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timesheets?status=submitted&order=desc&sort_by=submitted_at&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timesheets" ], "query": [ { "description": "Filter timesheets by their status", "key": "status", "value": "submitted" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "submitted_at" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-cb0712b0-7d01-4739-b38c-383e2ee17112" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-15a3b36e-7c9d-4a6d-8403-5f5659a65233" } ], "id": "018617f6-786c-4d83-a0ef-30fa5c9eebe2", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-018617f6-786c-4d83-a0ef-30fa5c9eebe2" }, { "name": "timeoff", "item": [ { "name": "{timeoff_id}", "item": [ { "name": "cancel", "item": [ { "name": "Cancel Time Off", "id": "1ff7705f-dfc0-43a6-b8e2-52e0dae297d5", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel" ], "variable": [ { "id": "aefb893d-fd95-402b-83c4-2a17e6caa76f", "key": "timeoff_id", "value": "", "description": "(Required) Time Off ID" } ] }, "description": "Cancel a time off request that was already approved.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "a128a716-a8b3-41d0-bc97-07266ae90175", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a128a716-a8b3-41d0-bc97-07266ae90175" }, { "id": "63418f14-c685-400c-931a-4274de0d06b9", "name": "Bad Request", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-63418f14-c685-400c-931a-4274de0d06b9" }, { "id": "eb65f148-00f4-4f0a-9cae-08f71bafb059", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-eb65f148-00f4-4f0a-9cae-08f71bafb059" }, { "id": "8eabb805-5a23-477d-a285-88297ac58deb", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8eabb805-5a23-477d-a285-88297ac58deb" }, { "id": "6bf8fc9a-8fc0-4bf8-858a-48ee63b6662c", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-6bf8fc9a-8fc0-4bf8-858a-48ee63b6662c" }, { "id": "d4c26ac9-cbec-427b-987f-ffbb12aed4a5", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d4c26ac9-cbec-427b-987f-ffbb12aed4a5" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-1ff7705f-dfc0-43a6-b8e2-52e0dae297d5" } ], "id": "813da0e9-ca43-40ba-9918-4fd430ebf9a2", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-813da0e9-ca43-40ba-9918-4fd430ebf9a2" }, { "name": "cancel-request", "item": [ { "name": "decline", "item": [ { "name": "Decline a time off cancellation request", "id": "be979352-83a2-4369-9b66-1550aa0bc5c2", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "decline" ], "variable": [ { "id": "1962471c-80e9-4829-8f62-ce27bf5e5922", "key": "timeoff_id", "value": "", "description": "(Required) Time Off ID" } ] }, "description": "Decline a time off cancellation request.\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "d38f235d-ba3f-40f5-a0a8-3bb8e7f98f02", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"status\": \"\"\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d38f235d-ba3f-40f5-a0a8-3bb8e7f98f02" }, { "id": "d441f01e-cb28-44d7-bfe0-da40a012adc0", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d441f01e-cb28-44d7-bfe0-da40a012adc0" }, { "id": "ae70a5a4-914f-4c61-9557-ed0698f35b18", "name": "Conflict", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Conflict", "code": 409, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-ae70a5a4-914f-4c61-9557-ed0698f35b18" }, { "id": "111c3163-0117-483a-95f0-152cb148581a", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-111c3163-0117-483a-95f0-152cb148581a" }, { "id": "1117505f-f2de-477c-b261-7f0f040b426b", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-1117505f-f2de-477c-b261-7f0f040b426b" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-be979352-83a2-4369-9b66-1550aa0bc5c2" } ], "id": "a0994729-9000-485d-ac0b-7dd9f120d301", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a0994729-9000-485d-ac0b-7dd9f120d301" }, { "name": "approve", "item": [ { "name": "Approve a time off cancellation request", "id": "8bedb168-39ba-40bb-a2b5-1953a1d63c8c", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "approve" ], "variable": [ { "id": "30aa0c2c-6c04-4256-b372-618e0efa1d77", "key": "timeoff_id", "value": "", "description": "(Required) Time Off ID" } ] }, "description": "Approve a time off cancellation request.\nIn order to approve a time off cancellation request, the timeoff status must be `cancel_requested`.\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "225032dc-b652-4b5f-a09c-e8ac2400d34b", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"status\": \"\"\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-225032dc-b652-4b5f-a09c-e8ac2400d34b" }, { "id": "df7070da-fe52-4bb8-80ce-ad33d2c3bdc8", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-df7070da-fe52-4bb8-80ce-ad33d2c3bdc8" }, { "id": "12eab399-0de9-4341-872c-9d93481e77b2", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-12eab399-0de9-4341-872c-9d93481e77b2" }, { "id": "977054ac-c4b5-40cd-bf4c-f774a4626783", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/cancel-request/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "cancel-request", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-977054ac-c4b5-40cd-bf4c-f774a4626783" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8bedb168-39ba-40bb-a2b5-1953a1d63c8c" } ], "id": "28d76bf9-9b40-42d9-895f-ee1287ea1a91", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-28d76bf9-9b40-42d9-895f-ee1287ea1a91" } ], "id": "4370ad27-b4d1-4e34-83e5-286eae1e0a21", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-4370ad27-b4d1-4e34-83e5-286eae1e0a21" }, { "name": "decline", "item": [ { "name": "Decline Time Off", "id": "70f7388e-9fea-4526-bc85-d1854390ead4", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "decline" ], "variable": [ { "id": "a2fbec8d-ad0a-4b86-bada-20cc2ebb5913", "key": "timeoff_id", "value": "", "description": "(Required) Time Off ID" } ] }, "description": "Decline a time off request. Please note that only time off requests on the `requested` status can be declined.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "96e38c87-a3bd-4ac4-8324-7c2c6b667c6c", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-96e38c87-a3bd-4ac4-8324-7c2c6b667c6c" }, { "id": "29ebffa6-89ef-4409-8b7b-20aba4376bae", "name": "Bad Request", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-29ebffa6-89ef-4409-8b7b-20aba4376bae" }, { "id": "300ebd7e-83ca-4070-94b5-6e398b36d44b", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-300ebd7e-83ca-4070-94b5-6e398b36d44b" }, { "id": "9d7bc082-d8df-45d1-8954-31403790f49c", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9d7bc082-d8df-45d1-8954-31403790f49c" }, { "id": "d585b441-b10e-44e3-9446-134f70f47415", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d585b441-b10e-44e3-9446-134f70f47415" }, { "id": "bc3e1516-dacc-4bfc-86fc-bfbed5a7734b", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"decline_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/decline", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "decline" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-bc3e1516-dacc-4bfc-86fc-bfbed5a7734b" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-70f7388e-9fea-4526-bc85-d1854390ead4" } ], "id": "8013d406-2b58-45e3-9037-23b19f198575", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8013d406-2b58-45e3-9037-23b19f198575" }, { "name": "approve", "item": [ { "name": "Approve Time Off", "id": "1904bd7a-40ba-424d-a16c-d16ae571e120", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"approver_id\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "approve" ], "variable": [ { "id": "bcb698f2-5ab4-4dfd-bb35-50fb6d6e0383", "key": "timeoff_id", "value": "", "description": "(Required) Time Off ID" } ] }, "description": "Approve a time off request.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "965ad0eb-c947-4a0c-a3c6-d0306fcd2db3", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approver_id\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-965ad0eb-c947-4a0c-a3c6-d0306fcd2db3" }, { "id": "d85402e4-44e0-4f0f-a185-e7e290c63998", "name": "Bad Request", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approver_id\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d85402e4-44e0-4f0f-a185-e7e290c63998" }, { "id": "c6834b0d-23fd-439e-a9c0-879d3c1c36ae", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approver_id\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-c6834b0d-23fd-439e-a9c0-879d3c1c36ae" }, { "id": "eb79e7e8-15cc-4e49-b6a7-35f494d531de", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approver_id\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-eb79e7e8-15cc-4e49-b6a7-35f494d531de" }, { "id": "9bccd3bd-ef2c-40e8-bf3c-5e30c87ae8c8", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approver_id\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9bccd3bd-ef2c-40e8-bf3c-5e30c87ae8c8" }, { "id": "c3fc5756-a13c-46cc-a587-446b1609ab7b", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approver_id\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:timeoff_id/approve", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":timeoff_id", "approve" ], "variable": [ { "key": "timeoff_id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-c3fc5756-a13c-46cc-a587-446b1609ab7b" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-1904bd7a-40ba-424d-a16c-d16ae571e120" } ], "id": "f0d8408c-b669-4120-81f4-79cf1c02e7c2", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-f0d8408c-b669-4120-81f4-79cf1c02e7c2" } ], "id": "84e56822-e03d-4da0-a105-1a18f004bae3", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-84e56822-e03d-4da0-a105-1a18f004bae3" }, { "name": "types", "item": [ { "name": "List Time Off Types", "id": "5edd6d8c-99f3-4c20-bfdc-aa0364e5221f", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/types?type=full_time", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", "types" ], "query": [ { "description": "Optional. Employment type to list time off types for: `contractor` or `full_time`. Omit for backward-compatible behavior (full-time types).", "key": "type", "value": "full_time" } ] }, "description": "Lists all time off types that can be used for the `timeoff_type` parameter.\n\n**Backward compatibility:** Calling this endpoint without the `type` query parameter returns the same response as before (time off types for full-time employments). Existing integrations do not need to change.\n\nOptionally, pass `type=contractor` to get time off types for contractor employments, or `type=full_time` for full-time employments (same as omitting the parameter).\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "a10eaa18-63f5-4194-af23-e86b9644efd3", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/types?type=full_time", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", "types" ], "query": [ { "description": "Optional. Employment type to list time off types for: `contractor` or `full_time`. Omit for backward-compatible behavior (full-time types).", "key": "type", "value": "full_time" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff_types\": [\n {\n \"name\": \"public_holiday\",\n \"description\": \"\"\n },\n {\n \"name\": \"casual_leave\",\n \"description\": \"\"\n }\n ]\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a10eaa18-63f5-4194-af23-e86b9644efd3" }, { "id": "cce8d461-226f-471f-8781-8472366eb385", "name": "Bad Request", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/types?type=full_time", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", "types" ], "query": [ { "description": "Optional. Employment type to list time off types for: `contractor` or `full_time`. Omit for backward-compatible behavior (full-time types).", "key": "type", "value": "full_time" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-cce8d461-226f-471f-8781-8472366eb385" }, { "id": "56b04fa6-78b2-4598-8e32-e88038478a0b", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/types?type=full_time", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", "types" ], "query": [ { "description": "Optional. Employment type to list time off types for: `contractor` or `full_time`. Omit for backward-compatible behavior (full-time types).", "key": "type", "value": "full_time" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-56b04fa6-78b2-4598-8e32-e88038478a0b" }, { "id": "97c4cbf3-66cb-4b4e-a2bd-0fa96af97e72", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/types?type=full_time", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", "types" ], "query": [ { "description": "Optional. Employment type to list time off types for: `contractor` or `full_time`. Omit for backward-compatible behavior (full-time types).", "key": "type", "value": "full_time" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-97c4cbf3-66cb-4b4e-a2bd-0fa96af97e72" }, { "id": "5e1ddb62-be07-4fd6-9be8-5e7e4c9932dc", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/types?type=full_time", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", "types" ], "query": [ { "description": "Optional. Employment type to list time off types for: `contractor` or `full_time`. Omit for backward-compatible behavior (full-time types).", "key": "type", "value": "full_time" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-5e1ddb62-be07-4fd6-9be8-5e7e4c9932dc" }, { "id": "a0a35b2f-b82c-4399-9d50-e15601f6ddae", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/types?type=full_time", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", "types" ], "query": [ { "description": "Optional. Employment type to list time off types for: `contractor` or `full_time`. Omit for backward-compatible behavior (full-time types).", "key": "type", "value": "full_time" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a0a35b2f-b82c-4399-9d50-e15601f6ddae" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-5edd6d8c-99f3-4c20-bfdc-aa0364e5221f" } ], "id": "c61cc35b-b8cf-4507-9c27-40b43703a30f", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-c61cc35b-b8cf-4507-9c27-40b43703a30f" }, { "name": "{id}", "item": [ { "name": "Show Time Off", "id": "4a6156cf-d28b-4866-959d-ee64b08717a3", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "id": "eaa5ddb1-5f8f-452d-8f80-28698fdadc7a", "key": "id", "value": "", "description": "(Required) Timeoff ID" } ] }, "description": "Shows a single Time Off record\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "21d0b845-2502-4db6-b86f-21fb29744c4e", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-21d0b845-2502-4db6-b86f-21fb29744c4e" }, { "id": "18d60d68-3de0-441c-b4d9-f5f1d727cbf0", "name": "Bad Request", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-18d60d68-3de0-441c-b4d9-f5f1d727cbf0" }, { "id": "cee3ae68-bb68-4017-8d2c-e6a9e9435d83", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-cee3ae68-bb68-4017-8d2c-e6a9e9435d83" }, { "id": "9ed6b68f-874e-48ac-aa52-bacd8135a8e3", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9ed6b68f-874e-48ac-aa52-bacd8135a8e3" }, { "id": "ba97730c-3a5e-4c09-ad34-e7dcadcd7196", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-ba97730c-3a5e-4c09-ad34-e7dcadcd7196" }, { "id": "e0b49be0-f3b0-4414-b8ec-5d3e16f2bae1", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-e0b49be0-f3b0-4414-b8ec-5d3e16f2bae1" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-4a6156cf-d28b-4866-959d-ee64b08717a3" }, { "name": "Update Time Off", "id": "afebbd11-55de-4626-89c1-55488b45e969", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "id": "b606a2b7-0b85-4b91-bb6a-0eed88fac98d", "key": "id", "value": "", "description": "(Required) Timeoff ID" } ] }, "description": "Updates a Time Off record.\nWarning: Updating the status of a time off through this endpoint is deprecated and will be removed on January 13, 2025.\nTo approve or cancel an approved time off, use the `/approve` and `/cancel` endpoints instead.\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "3be30a3d-9108-40eb-bbb6-8bd1e633fbce", "name": "Success", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3be30a3d-9108-40eb-bbb6-8bd1e633fbce" }, { "id": "7faf62a9-bb29-4e34-9e15-3e99b6f4cb57", "name": "Bad Request", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-7faf62a9-bb29-4e34-9e15-3e99b6f4cb57" }, { "id": "e4dbf78e-8699-43ae-9b1c-e5dcfe9d569a", "name": "Unauthorized", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-e4dbf78e-8699-43ae-9b1c-e5dcfe9d569a" }, { "id": "967cf8bd-641f-42a4-9f05-e419fdc1ba92", "name": "Not Found", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-967cf8bd-641f-42a4-9f05-e419fdc1ba92" }, { "id": "2fc72166-b953-4457-9aa4-fdc46dd9f200", "name": "Unprocessable Entity", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-2fc72166-b953-4457-9aa4-fdc46dd9f200" }, { "id": "d2887875-9921-4c48-961f-892333cd4c30", "name": "Unprocessable Entity", "originalRequest": { "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d2887875-9921-4c48-961f-892333cd4c30" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-afebbd11-55de-4626-89c1-55488b45e969" }, { "name": "Update Time Off", "id": "a992960a-f7ee-4580-8cf2-0be471f211b5", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "id": "2c0b5d35-c268-4497-b4a7-268119e3a103", "key": "id", "value": "", "description": "(Required) Timeoff ID" } ] }, "description": "Updates a Time Off record.\nWarning: Updating the status of a time off through this endpoint is deprecated and will be removed on January 13, 2025.\nTo approve or cancel an approved time off, use the `/approve` and `/cancel` endpoints instead.\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "8d17e07d-e6c8-45fb-bfe7-c270711cf2ef", "name": "Success", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8d17e07d-e6c8-45fb-bfe7-c270711cf2ef" }, { "id": "c92b7bd6-a0cc-4750-9239-754d598eae8c", "name": "Bad Request", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-c92b7bd6-a0cc-4750-9239-754d598eae8c" }, { "id": "9d27c68a-b34f-432b-9a1d-cf25118ad826", "name": "Unauthorized", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9d27c68a-b34f-432b-9a1d-cf25118ad826" }, { "id": "dcfc05ed-8df1-4d4c-b919-002437409267", "name": "Not Found", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-dcfc05ed-8df1-4d4c-b919-002437409267" }, { "id": "183f1328-78b3-4d95-8341-2862df201845", "name": "Unprocessable Entity", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-183f1328-78b3-4d95-8341-2862df201845" }, { "id": "56151641-156f-4ece-aef2-61d5225207f0", "name": "Unprocessable Entity", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"cancel_reason\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"status\": \"cancelled\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paternity_leave\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-56151641-156f-4ece-aef2-61d5225207f0" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a992960a-f7ee-4580-8cf2-0be471f211b5" } ], "id": "1aded6f8-16f3-499e-aef0-7542d0cf34fd", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-1aded6f8-16f3-499e-aef0-7542d0cf34fd" }, { "name": "List Time Off", "id": "510a750b-b4d8-42b9-acf4-fcdd70992c5c", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timeoff?employment_id=&timeoff_type=ex_festivita&status=cancelled&start_date=&end_date=&order=desc&sort_by=timeoff_type&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ], "query": [ { "description": "Only show time off for a specific employment", "key": "employment_id", "value": "" }, { "description": "Filter time off by its type", "key": "timeoff_type", "value": "ex_festivita" }, { "description": "Filter time off by its status", "key": "status", "value": "cancelled" }, { "description": "ISO 8601 date. When combined with `end_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `start_date` is on or after this date.\n", "key": "start_date", "value": "" }, { "description": "ISO 8601 date. When combined with `start_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `end_date` is on or before this date.\n", "key": "end_date", "value": "" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "timeoff_type" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] }, "description": "Lists all Time Off records.\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "b828b093-868d-4b66-a5e5-1ef0abed5a83", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff?employment_id=&timeoff_type=ex_festivita&status=cancelled&start_date=&end_date=&order=desc&sort_by=timeoff_type&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ], "query": [ { "description": "Only show time off for a specific employment", "key": "employment_id", "value": "" }, { "description": "Filter time off by its type", "key": "timeoff_type", "value": "ex_festivita" }, { "description": "Filter time off by its status", "key": "status", "value": "cancelled" }, { "description": "ISO 8601 date. When combined with `end_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `start_date` is on or after this date.\n", "key": "start_date", "value": "" }, { "description": "ISO 8601 date. When combined with `start_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `end_date` is on or before this date.\n", "key": "end_date", "value": "" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "timeoff_type" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"current_page\": \"\",\n \"timeoffs\": [\n {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"cancelled\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"bereavement\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"paid_time_off\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n },\n {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"taken\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"ex_festivita\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rol\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n ],\n \"total_count\": \"\",\n \"total_pages\": \"\"\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b828b093-868d-4b66-a5e5-1ef0abed5a83" }, { "id": "27ab0d6d-76a6-4ae3-b382-1942ac0a4104", "name": "Bad Request", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff?employment_id=&timeoff_type=ex_festivita&status=cancelled&start_date=&end_date=&order=desc&sort_by=timeoff_type&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ], "query": [ { "description": "Only show time off for a specific employment", "key": "employment_id", "value": "" }, { "description": "Filter time off by its type", "key": "timeoff_type", "value": "ex_festivita" }, { "description": "Filter time off by its status", "key": "status", "value": "cancelled" }, { "description": "ISO 8601 date. When combined with `end_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `start_date` is on or after this date.\n", "key": "start_date", "value": "" }, { "description": "ISO 8601 date. When combined with `start_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `end_date` is on or before this date.\n", "key": "end_date", "value": "" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "timeoff_type" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-27ab0d6d-76a6-4ae3-b382-1942ac0a4104" }, { "id": "3d2333b5-cdfd-4bb7-85ad-d2cf3f028021", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff?employment_id=&timeoff_type=ex_festivita&status=cancelled&start_date=&end_date=&order=desc&sort_by=timeoff_type&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ], "query": [ { "description": "Only show time off for a specific employment", "key": "employment_id", "value": "" }, { "description": "Filter time off by its type", "key": "timeoff_type", "value": "ex_festivita" }, { "description": "Filter time off by its status", "key": "status", "value": "cancelled" }, { "description": "ISO 8601 date. When combined with `end_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `start_date` is on or after this date.\n", "key": "start_date", "value": "" }, { "description": "ISO 8601 date. When combined with `start_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `end_date` is on or before this date.\n", "key": "end_date", "value": "" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "timeoff_type" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3d2333b5-cdfd-4bb7-85ad-d2cf3f028021" }, { "id": "3c860f17-ef05-4718-810b-def3a6507f78", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff?employment_id=&timeoff_type=ex_festivita&status=cancelled&start_date=&end_date=&order=desc&sort_by=timeoff_type&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ], "query": [ { "description": "Only show time off for a specific employment", "key": "employment_id", "value": "" }, { "description": "Filter time off by its type", "key": "timeoff_type", "value": "ex_festivita" }, { "description": "Filter time off by its status", "key": "status", "value": "cancelled" }, { "description": "ISO 8601 date. When combined with `end_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `start_date` is on or after this date.\n", "key": "start_date", "value": "" }, { "description": "ISO 8601 date. When combined with `start_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `end_date` is on or before this date.\n", "key": "end_date", "value": "" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "timeoff_type" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3c860f17-ef05-4718-810b-def3a6507f78" }, { "id": "bd655581-cb3c-46ae-996e-580e555d5dee", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff?employment_id=&timeoff_type=ex_festivita&status=cancelled&start_date=&end_date=&order=desc&sort_by=timeoff_type&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ], "query": [ { "description": "Only show time off for a specific employment", "key": "employment_id", "value": "" }, { "description": "Filter time off by its type", "key": "timeoff_type", "value": "ex_festivita" }, { "description": "Filter time off by its status", "key": "status", "value": "cancelled" }, { "description": "ISO 8601 date. When combined with `end_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `start_date` is on or after this date.\n", "key": "start_date", "value": "" }, { "description": "ISO 8601 date. When combined with `start_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `end_date` is on or before this date.\n", "key": "end_date", "value": "" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "timeoff_type" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-bd655581-cb3c-46ae-996e-580e555d5dee" }, { "id": "0eae5c4e-1bfd-4df4-b8c6-f08bcfecbd9d", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff?employment_id=&timeoff_type=ex_festivita&status=cancelled&start_date=&end_date=&order=desc&sort_by=timeoff_type&page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ], "query": [ { "description": "Only show time off for a specific employment", "key": "employment_id", "value": "" }, { "description": "Filter time off by its type", "key": "timeoff_type", "value": "ex_festivita" }, { "description": "Filter time off by its status", "key": "status", "value": "cancelled" }, { "description": "ISO 8601 date. When combined with `end_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `start_date` is on or after this date.\n", "key": "start_date", "value": "" }, { "description": "ISO 8601 date. When combined with `start_date`, returns all time off records that overlap the `[start_date, end_date]` window \u2014 including records that only partially overlap at either boundary. When used alone, returns records whose `end_date` is on or before this date.\n", "key": "end_date", "value": "" }, { "description": "Sort order", "key": "order", "value": "desc" }, { "description": "Field to sort by", "key": "sort_by", "value": "timeoff_type" }, { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-0eae5c4e-1bfd-4df4-b8c6-f08bcfecbd9d" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-510a750b-b4d8-42b9-acf4-fcdd70992c5c" }, { "name": "Create Time Off", "id": "141720d7-a8de-46b3-8325-76a1f89de6dd", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"employment_id\": \"\",\n \"end_date\": \"\",\n \"start_date\": \"\",\n \"status\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"timeoff_type\": \"paternity_leave\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ] }, "description": "Creates a Time Off record\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "1e04709b-47d7-42c0-9ec5-6ed0d776f1fc", "name": "Created", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"employment_id\": \"\",\n \"end_date\": \"\",\n \"start_date\": \"\",\n \"status\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"timeoff_type\": \"paternity_leave\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-1e04709b-47d7-42c0-9ec5-6ed0d776f1fc" }, { "id": "dbf27720-6cc1-428f-b651-48612947761f", "name": "Bad Request", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"employment_id\": \"\",\n \"end_date\": \"\",\n \"start_date\": \"\",\n \"status\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"timeoff_type\": \"paternity_leave\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-dbf27720-6cc1-428f-b651-48612947761f" }, { "id": "5353a9ee-0dab-4740-8142-6eea18981e58", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"employment_id\": \"\",\n \"end_date\": \"\",\n \"start_date\": \"\",\n \"status\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"timeoff_type\": \"paternity_leave\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-5353a9ee-0dab-4740-8142-6eea18981e58" }, { "id": "a517e870-8394-47bf-8b2a-ce78817492dc", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"employment_id\": \"\",\n \"end_date\": \"\",\n \"start_date\": \"\",\n \"status\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"timeoff_type\": \"paternity_leave\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a517e870-8394-47bf-8b2a-ce78817492dc" }, { "id": "4430f9c9-27fb-4816-8ee0-50d680356efb", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"employment_id\": \"\",\n \"end_date\": \"\",\n \"start_date\": \"\",\n \"status\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"timeoff_type\": \"paternity_leave\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-4430f9c9-27fb-4816-8ee0-50d680356efb" }, { "id": "58e0845d-8e4b-4dc0-87d6-3368a9bc2b4c", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"employment_id\": \"\",\n \"end_date\": \"\",\n \"start_date\": \"\",\n \"status\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"timeoff_type\": \"paternity_leave\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff" ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-58e0845d-8e4b-4dc0-87d6-3368a9bc2b4c" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-141720d7-a8de-46b3-8325-76a1f89de6dd" } ], "id": "14850c1f-e2e2-4b69-85d7-a7ece7a14a67", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-14850c1f-e2e2-4b69-85d7-a7ece7a14a67" }, { "name": "employee", "item": [ { "name": "timeoff", "item": [ { "name": "{id}", "item": [ { "name": "cancel", "item": [ { "name": "Cancel Time Off as Employee", "id": "43796e56-bb21-48c3-9e08-316ad4d52378", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "address:read address:write bank_account:read bank_account:write document:read document:write emergency_contact:read emergency_contact:write employment_documents employment_payments employments expense:read incentive:read payroll payslip:read personal_detail:read personal_detail:write time_and_attendance timeoff:read timeoff:write timesheet:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "grant_type", "value": "client_credentials", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id", "cancel" ], "variable": [ { "id": "6cff3946-045a-4607-92bf-b061acf62937", "key": "id", "value": "", "description": "(Required) Timeoff ID" } ] }, "description": "Cancels a Time Off record as Employee\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "92fa4a6d-0f56-4660-8c6e-dffa04c81839", "name": "Success", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id", "cancel" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-92fa4a6d-0f56-4660-8c6e-dffa04c81839" }, { "id": "ccea4663-5264-445d-a6c5-1bcf05f1d2ee", "name": "Bad Request", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id", "cancel" ], "variable": [ { "key": "id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-ccea4663-5264-445d-a6c5-1bcf05f1d2ee" }, { "id": "a2274c21-6e36-48dc-929f-69928ccb132f", "name": "Unauthorized", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id", "cancel" ], "variable": [ { "key": "id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a2274c21-6e36-48dc-929f-69928ccb132f" }, { "id": "70acb8c3-9494-4081-aa16-1bdcd0b79c26", "name": "Not Found", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id", "cancel" ], "variable": [ { "key": "id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-70acb8c3-9494-4081-aa16-1bdcd0b79c26" }, { "id": "b67e52dd-e829-4606-a69a-e2756d19e1d9", "name": "Unprocessable Entity", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id", "cancel" ], "variable": [ { "key": "id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b67e52dd-e829-4606-a69a-e2756d19e1d9" }, { "id": "570e8243-2b2f-45f5-a214-336f6ea976ac", "name": "Unprocessable Entity", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"cancel_reason\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id/cancel", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id", "cancel" ], "variable": [ { "key": "id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-570e8243-2b2f-45f5-a214-336f6ea976ac" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-43796e56-bb21-48c3-9e08-316ad4d52378" } ], "id": "cbbc1cc3-a100-4c46-a4fb-a9b335c725b8", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-cbbc1cc3-a100-4c46-a4fb-a9b335c725b8" }, { "name": "Update Time Off as Employee", "id": "89a41b16-be29-4b39-a14a-048a450176ff", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "address:read address:write bank_account:read bank_account:write document:read document:write emergency_contact:read emergency_contact:write employment_documents employment_payments employments expense:read incentive:read payroll payslip:read personal_detail:read personal_detail:write time_and_attendance timeoff:read timeoff:write timesheet:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "grant_type", "value": "client_credentials", "type": "string" } ] }, "method": "PATCH", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "id": "1d0c6fd0-f04e-464c-8830-67c5b4c56157", "key": "id", "value": "", "description": "(Required) Timeoff ID" } ] }, "description": "Updates a Time Off record as Employee\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "df1ec302-caba-4c53-930e-9f01e18d0a23", "name": "Success", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-df1ec302-caba-4c53-930e-9f01e18d0a23" }, { "id": "f288f018-73f9-44e6-8df2-43c00151790d", "name": "Bad Request", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-f288f018-73f9-44e6-8df2-43c00151790d" }, { "id": "83c798c9-6687-4a1b-a314-a154add9c71a", "name": "Unauthorized", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-83c798c9-6687-4a1b-a314-a154add9c71a" }, { "id": "7cd50184-dd52-464b-9eee-68d0d608aed4", "name": "Not Found", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-7cd50184-dd52-464b-9eee-68d0d608aed4" }, { "id": "6ccaf4cf-c1cb-4c46-ac92-9829c3a86718", "name": "Unprocessable Entity", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-6ccaf4cf-c1cb-4c46-ac92-9829c3a86718" }, { "id": "fa59e15a-bf0f-4a51-8dea-c6f7d353c5d1", "name": "Unprocessable Entity", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-fa59e15a-bf0f-4a51-8dea-c6f7d353c5d1" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-89a41b16-be29-4b39-a14a-048a450176ff" }, { "name": "Update Time Off as Employee", "id": "348cce88-7c3d-4acb-a2ac-20a7f873fb89", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "address:read address:write bank_account:read bank_account:write document:read document:write emergency_contact:read emergency_contact:write employment_documents employment_payments employments expense:read incentive:read payroll payslip:read personal_detail:read personal_detail:write time_and_attendance timeoff:read timeoff:write timesheet:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "grant_type", "value": "client_credentials", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "id": "d33d66f5-9e15-4033-bbeb-7ca30483f521", "key": "id", "value": "", "description": "(Required) Timeoff ID" } ] }, "description": "Updates a Time Off record as Employee\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "83cd3d0a-6f6c-4567-9cfa-802d55ef1d98", "name": "Success", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-83cd3d0a-6f6c-4567-9cfa-802d55ef1d98" }, { "id": "8758de37-b813-4db8-8dcb-c094169cb5e9", "name": "Bad Request", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8758de37-b813-4db8-8dcb-c094169cb5e9" }, { "id": "283b1085-9b70-4c84-9470-e316c1cc7613", "name": "Unauthorized", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-283b1085-9b70-4c84-9470-e316c1cc7613" }, { "id": "bb49c0dc-5731-4407-886e-c5dd371518cf", "name": "Not Found", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-bb49c0dc-5731-4407-886e-c5dd371518cf" }, { "id": "5c2b5fde-6f91-4e8f-8a6e-6d406abf2240", "name": "Unprocessable Entity", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-5c2b5fde-6f91-4e8f-8a6e-6d406abf2240" }, { "id": "9b8fde72-f59e-4ad9-9e12-9f774ec3af5b", "name": "Unprocessable Entity", "originalRequest": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "body": { "mode": "raw", "raw": "{\n \"edit_reason\": \"\",\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\",\n \"start_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff", ":id" ], "variable": [ { "key": "id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9b8fde72-f59e-4ad9-9e12-9f774ec3af5b" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-348cce88-7c3d-4acb-a2ac-20a7f873fb89" } ], "id": "91f15fea-6972-45f0-ac23-cda89d8f1f91", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-91f15fea-6972-45f0-ac23-cda89d8f1f91" }, { "name": "List employee time offs", "id": "5ed709cb-4d0c-4685-957a-edc1164a053d", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "address:read address:write bank_account:read bank_account:write document:read document:write emergency_contact:read emergency_contact:write employment_documents employment_payments employments expense:read incentive:read payroll payslip:read personal_detail:read personal_detail:write time_and_attendance timeoff:read timeoff:write timesheet:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "grant_type", "value": "client_credentials", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/employee/timeoff?page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ], "query": [ { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] }, "description": "Lists the current employee's time off records\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "4f6de9e8-08c8-4ea7-aa37-a517a50d49ff", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/timeoff?page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ], "query": [ { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"current_page\": \"\",\n \"timeoffs\": [\n {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"cancelled\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"bereavement\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"paid_time_off\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n },\n {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"taken\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"ex_festivita\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rol\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n ],\n \"total_count\": \"\",\n \"total_pages\": \"\"\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-4f6de9e8-08c8-4ea7-aa37-a517a50d49ff" }, { "id": "07a14579-b87b-4cbb-b0dc-257ebf76ff76", "name": "Bad Request", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/timeoff?page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ], "query": [ { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-07a14579-b87b-4cbb-b0dc-257ebf76ff76" }, { "id": "6b24db73-a886-47c7-b1f4-376e9a056519", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/timeoff?page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ], "query": [ { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-6b24db73-a886-47c7-b1f4-376e9a056519" }, { "id": "4a4918f8-c83a-4d47-a865-e34fdbae0604", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/timeoff?page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ], "query": [ { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-4a4918f8-c83a-4d47-a865-e34fdbae0604" }, { "id": "d98f2ce6-1ea4-404a-b905-e4b4ac2d9042", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/timeoff?page=1&page_size=20", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ], "query": [ { "description": "Starts fetching records after the given page", "key": "page", "value": "1" }, { "description": "Number of items per page", "key": "page_size", "value": "20" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d98f2ce6-1ea4-404a-b905-e4b4ac2d9042" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-5ed709cb-4d0c-4685-957a-edc1164a053d" }, { "name": "Create a Pending Time Off", "id": "3ba35db5-90fa-42c2-82d7-43ff16272fa7", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "address:read address:write bank_account:read bank_account:write document:read document:write emergency_contact:read emergency_contact:write employment_documents employment_payments employments expense:read incentive:read payroll payslip:read personal_detail:read personal_detail:write time_and_attendance timeoff:read timeoff:write timesheet:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "grant_type", "value": "client_credentials", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"timezone\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"notes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ] }, "description": "Creates a pending Time Off record\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "2034a588-e421-4496-8b3e-11051da5ba06", "name": "Created", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"timezone\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"notes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"status\": \"requested\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n ],\n \"total_minutes\": \"\",\n \"timeoff_type\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"ex_festivita\",\n \"leave_policy_variant_slug\": \"\"\n },\n \"timezone\": \"\",\n \"approved_at\": \"\",\n \"approver_id\": \"\",\n \"automatic\": \"\",\n \"cancel_reason\": \"\",\n \"cancelled_at\": \"\",\n \"document\": {\n \"id\": \"\",\n \"inserted_at\": \"\",\n \"name\": \"\",\n \"type\": \"\",\n \"sub_type\": \"\"\n },\n \"leave_policy_variant_id\": \"\",\n \"notes\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-2034a588-e421-4496-8b3e-11051da5ba06" }, { "id": "e0aab348-7f10-4a17-ab22-ae3e1a44c490", "name": "Bad Request", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"timezone\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"notes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-e0aab348-7f10-4a17-ab22-ae3e1a44c490" }, { "id": "e7086766-c226-4d86-9cf1-430c2f78f5b0", "name": "Unauthorized", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"timezone\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"notes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-e7086766-c226-4d86-9cf1-430c2f78f5b0" }, { "id": "669e044d-3e5b-4999-a68b-8c13e38f2488", "name": "Not Found", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"timezone\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"notes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-669e044d-3e5b-4999-a68b-8c13e38f2488" }, { "id": "9db953a1-3a03-4d4b-99bb-5e10ac26c689", "name": "Unprocessable Entity", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"timezone\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"notes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9db953a1-3a03-4d4b-99bb-5e10ac26c689" }, { "id": "437764b2-f074-4530-b9fd-949f06a6acf5", "name": "Unprocessable Entity", "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": "" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"leave_policy_variant_id\": \"\",\n \"timezone\": \"\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"document\": {\n \"content\": \"\",\n \"name\": \"\"\n },\n \"notes\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/employee/timeoff", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "timeoff" ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-437764b2-f074-4530-b9fd-949f06a6acf5" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3ba35db5-90fa-42c2-82d7-43ff16272fa7" } ], "id": "071a31c0-64f6-4bc7-8169-428b3590382d", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-071a31c0-64f6-4bc7-8169-428b3590382d" }, { "name": "leave-policies", "item": [ { "name": "summary", "item": [ { "name": "List Employee Leave Policies Summary", "id": "8b33df2d-c6a4-401e-9245-3a111de38b1a", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "address:read address:write bank_account:read bank_account:write document:read document:write emergency_contact:read emergency_contact:write employment_documents employment_payments employments expense:read incentive:read payroll payslip:read personal_detail:read personal_detail:write time_and_attendance timeoff:read timeoff:write timesheet:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "grant_type", "value": "client_credentials", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies/summary", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies", "summary" ] }, "description": "List the leave policies summary (balances and entitlements) for the current employee\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "b38b9c80-032b-4fb1-8136-698f8ab1c52c", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies/summary", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies", "summary" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": [\n {\n \"leave_policy\": {\n \"name\": \"\",\n \"description\": \"\",\n \"unit\": \"unlimited\",\n \"leave_type\": \"maternity_leave\"\n },\n \"annual_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"annual_balance\": {\n \"type\": \"unlimited\"\n },\n \"current_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"balance\": {\n \"type\": \"unlimited\"\n },\n \"upcoming_approved\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"upcoming_requested\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"pending_approval\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"taken\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"used\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"booked\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"working_hours_per_day\": \"\"\n },\n {\n \"leave_policy\": {\n \"name\": \"\",\n \"description\": \"\",\n \"unit\": \"hours\",\n \"leave_type\": \"other\"\n },\n \"annual_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"annual_balance\": {\n \"type\": \"unlimited\"\n },\n \"current_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"balance\": {\n \"type\": \"unlimited\"\n },\n \"upcoming_approved\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"upcoming_requested\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"pending_approval\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"taken\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"used\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"booked\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"working_hours_per_day\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b38b9c80-032b-4fb1-8136-698f8ab1c52c" }, { "id": "1353914c-e8e2-4abc-b1b5-71d80d10f5c3", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies/summary", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies", "summary" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-1353914c-e8e2-4abc-b1b5-71d80d10f5c3" }, { "id": "b4a8099d-766b-4293-9c4c-1b11e37a5e3f", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies/summary", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies", "summary" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b4a8099d-766b-4293-9c4c-1b11e37a5e3f" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8b33df2d-c6a4-401e-9245-3a111de38b1a" } ], "id": "2fc0736b-ecc4-44e1-b9f5-b00625c70fa0", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-2fc0736b-ecc4-44e1-b9f5-b00625c70fa0" }, { "name": "List Employee Leave Policies", "id": "92457e2c-3d1d-4d7a-9647-667f5c0c2e0f", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "address:read address:write bank_account:read bank_account:write document:read document:write emergency_contact:read emergency_contact:write employment_documents employment_payments employments expense:read incentive:read payroll payslip:read personal_detail:read personal_detail:write time_and_attendance timeoff:read timeoff:write timesheet:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "grant_type", "value": "client_credentials", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies" ] }, "description": "List the leave policies for the current employee\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "9504402e-1c03-4b11-ae69-19cda52b3d96", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": [\n {\n \"leave_policy_variant_id\": \"\",\n \"custom\": \"\",\n \"name\": \"\",\n \"uses_accrual_as_balance\": \"\"\n },\n {\n \"leave_policy_variant_id\": \"\",\n \"custom\": \"\",\n \"name\": \"\",\n \"uses_accrual_as_balance\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9504402e-1c03-4b11-ae69-19cda52b3d96" }, { "id": "701ea185-61a8-4183-8223-341c6a0cd8cc", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-701ea185-61a8-4183-8223-341c6a0cd8cc" }, { "id": "4ff14eca-2405-46f2-a114-86a145ebeab4", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: oauth2", "key": "Authorization", "value": "" } ], "url": { "raw": "{{baseUrl}}/v1/employee/leave-policies", "host": [ "{{baseUrl}}" ], "path": [ "v1", "employee", "leave-policies" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-4ff14eca-2405-46f2-a114-86a145ebeab4" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-92457e2c-3d1d-4d7a-9647-667f5c0c2e0f" } ], "id": "f7f290e7-47fb-4f89-9b4c-dbb3783e443c", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-f7f290e7-47fb-4f89-9b4c-dbb3783e443c" } ], "id": "3bf6c534-cf99-4799-a173-d6ad76bb6b3c", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3bf6c534-cf99-4799-a173-d6ad76bb6b3c" }, { "name": "contractors", "item": [ { "name": "employments", "item": [ { "name": "{employment_id}", "item": [ { "name": "timesheets", "item": [ { "name": "Create a contractor timesheet", "id": "c7472a13-ee15-4c58-bbab-947e4a89b363", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"time_trackings\": [\n {\n \"type\": \"on_call\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"notes\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/contractors/employments/:employment_id/timesheets", "host": [ "{{baseUrl}}" ], "path": [ "v1", "contractors", "employments", ":employment_id", "timesheets" ], "variable": [ { "id": "dc1fe32d-0fbe-4bdb-8edd-9e37fa9fe21e", "key": "employment_id", "value": "", "description": "(Required) Contractor employment ID" } ] }, "description": "Creates a timesheet on behalf of a contractor employment.\n\nThe submitted hours are immediately available to the contractor in the Remote UI for\nself-serve invoice creation (Invoices \u2192 Create invoice \u2192 \"Use Time Tracking\").\n\nThis endpoint is restricted to contractor employments. Calls against EOR or Global Payroll\nemployments are rejected with `422`.\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | - | Manage timesheets (`timesheet:write`) |\n" }, "response": [ { "id": "a4b55597-13dc-49ed-93e6-5f7696c69e47", "name": "Success", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"time_trackings\": [\n {\n \"type\": \"on_call\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"notes\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/contractors/employments/:employment_id/timesheets", "host": [ "{{baseUrl}}" ], "path": [ "v1", "contractors", "employments", ":employment_id", "timesheets" ], "variable": [ { "key": "employment_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timesheet\": {\n \"id\": \"\",\n \"employment_id\": \"\",\n \"country_code\": \"\",\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"submitted_at\": \"\",\n \"notes\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"regular_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"on_call_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"break_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n },\n \"time_trackings\": [\n {\n \"type\": \"regular_hours\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n },\n {\n \"type\": \"on_call\",\n \"notes\": \"\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"total_hours\": {\n \"hours\": \"\",\n \"minutes\": \"\"\n }\n }\n ]\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a4b55597-13dc-49ed-93e6-5f7696c69e47" }, { "id": "3f66dd09-4e01-40fb-a4d1-7ce4708b1d9a", "name": "Bad Request", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"time_trackings\": [\n {\n \"type\": \"on_call\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"notes\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/contractors/employments/:employment_id/timesheets", "host": [ "{{baseUrl}}" ], "path": [ "v1", "contractors", "employments", ":employment_id", "timesheets" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3f66dd09-4e01-40fb-a4d1-7ce4708b1d9a" }, { "id": "54e51354-3808-4d94-ac49-3882ee4453a3", "name": "Unauthorized", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"time_trackings\": [\n {\n \"type\": \"on_call\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"notes\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/contractors/employments/:employment_id/timesheets", "host": [ "{{baseUrl}}" ], "path": [ "v1", "contractors", "employments", ":employment_id", "timesheets" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-54e51354-3808-4d94-ac49-3882ee4453a3" }, { "id": "21fe750d-8636-4e6c-88de-02847fd9f608", "name": "Forbidden", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"time_trackings\": [\n {\n \"type\": \"on_call\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"notes\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/contractors/employments/:employment_id/timesheets", "host": [ "{{baseUrl}}" ], "path": [ "v1", "contractors", "employments", ":employment_id", "timesheets" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Forbidden", "code": 403, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Forbidden\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-21fe750d-8636-4e6c-88de-02847fd9f608" }, { "id": "d1b5413f-6a2d-4b13-bca3-4af5e0fe312c", "name": "Not Found", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"time_trackings\": [\n {\n \"type\": \"on_call\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"notes\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/contractors/employments/:employment_id/timesheets", "host": [ "{{baseUrl}}" ], "path": [ "v1", "contractors", "employments", ":employment_id", "timesheets" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d1b5413f-6a2d-4b13-bca3-4af5e0fe312c" }, { "id": "937bded1-aef5-4fdb-82f6-44f02b02ef61", "name": "Unprocessable Entity", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"start_date\": \"\",\n \"end_date\": \"\",\n \"time_trackings\": [\n {\n \"type\": \"on_call\",\n \"timezone\": \"\",\n \"clock_in\": \"\",\n \"clock_out\": \"\",\n \"notes\": \"\"\n }\n ]\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/contractors/employments/:employment_id/timesheets", "host": [ "{{baseUrl}}" ], "path": [ "v1", "contractors", "employments", ":employment_id", "timesheets" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-937bded1-aef5-4fdb-82f6-44f02b02ef61" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-c7472a13-ee15-4c58-bbab-947e4a89b363" } ], "id": "aa0f7a59-43b1-43f5-88b4-07b640c2fe31", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-aa0f7a59-43b1-43f5-88b4-07b640c2fe31" } ], "id": "14fd0871-d83c-4464-9c97-3277d8f76844", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-14fd0871-d83c-4464-9c97-3277d8f76844" } ], "id": "8a5a9e8a-9b57-4497-9d41-4ea76ba05922", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8a5a9e8a-9b57-4497-9d41-4ea76ba05922" } ], "id": "34d30e60-0fa1-4b07-b523-d1ed562c9e5e", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-34d30e60-0fa1-4b07-b523-d1ed562c9e5e" }, { "name": "timeoff-balances", "item": [ { "name": "{employment_id}", "item": [ { "name": "Show Time Off Balance", "id": "c037c191-6769-42f3-b1f7-61b995cb5a34", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/timeoff-balances/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff-balances", ":employment_id" ], "variable": [ { "id": "c0485416-d31e-45d2-bb36-fd42d14704f3", "key": "employment_id", "value": "", "description": "(Required) Employment ID for which to show the time off balance" } ] }, "description": "Shows the time off balance for the given employment_id.\n\nDeprecated since February 2025 in favour of **[List Leave Policies Summary](#tag/Leave-Policies/operation/get_index_leave_policies_summary)** endpoint.\n\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "91ce73a9-c1bf-4340-8b8c-2261a376a4e1", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff-balances/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff-balances", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": {\n \"timeoff_balance\": {\n \"timeoff_entitlements\": [\n {\n \"name\": \"\",\n \"expiry_date\": \"\",\n \"can_expire\": \"\",\n \"entitled\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"taken\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"remaining\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"type\": \"carryover_pto\"\n },\n {\n \"name\": \"\",\n \"expiry_date\": \"\",\n \"can_expire\": \"\",\n \"entitled\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"taken\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"remaining\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"type\": \"additional_pto\"\n }\n ],\n \"taken\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"upcoming_approved\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"upcoming_requested\": {\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"working_hours_per_day\": \"\",\n \"contractual_leave_entitlement_type\": \"\",\n \"contractual_entitled\": \"\",\n \"total_entitled_days\": \"\"\n }\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-91ce73a9-c1bf-4340-8b8c-2261a376a4e1" }, { "id": "0547b20c-89eb-4104-bd19-69e475a72fb3", "name": "Bad Request", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff-balances/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff-balances", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-0547b20c-89eb-4104-bd19-69e475a72fb3" }, { "id": "9949d683-2895-460a-bb8d-88dba5508131", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff-balances/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff-balances", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9949d683-2895-460a-bb8d-88dba5508131" }, { "id": "38d4c058-da39-4b55-b425-2c6418b4a676", "name": "TimeoffBalanceNotFoundResponse", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff-balances/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff-balances", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": {\n \"code\": \"parameter_one_of_required_missing\",\n \"message\": \"\",\n \"resource_id\": \"\",\n \"resource_type\": \"\"\n }\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-38d4c058-da39-4b55-b425-2c6418b4a676" }, { "id": "9b0170f7-b391-4107-8a46-15dc2e5619a2", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff-balances/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff-balances", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9b0170f7-b391-4107-8a46-15dc2e5619a2" }, { "id": "cbecfc0e-5904-4728-acef-68b55a78ed1d", "name": "Too many requests", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/timeoff-balances/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff-balances", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Too Many Requests", "code": 429, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Too many requests\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-cbecfc0e-5904-4728-acef-68b55a78ed1d" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-c037c191-6769-42f3-b1f7-61b995cb5a34" } ], "id": "bdb0c8f9-edbb-4411-a548-8bbf830722f0", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-bdb0c8f9-edbb-4411-a548-8bbf830722f0" } ], "id": "1506fc7e-08d0-4650-8af5-483d03052a48", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-1506fc7e-08d0-4650-8af5-483d03052a48" }, { "name": "leave-policies", "item": [ { "name": "summary", "item": [ { "name": "{employment_id}", "item": [ { "name": "List Leave Policies Summary", "id": "9049d8fc-a648-46f5-a8c8-cd7a44d00e8d", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/summary/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "summary", ":employment_id" ], "variable": [ { "id": "7c19b4d0-1422-4dcf-8041-873027c978d9", "key": "employment_id", "value": "", "description": "(Required) Employment ID" } ] }, "description": "List all the data related to time off for a given employment\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "a7683ce0-236f-4b63-8125-e20910f03677", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/summary/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "summary", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": [\n {\n \"leave_policy\": {\n \"name\": \"\",\n \"description\": \"\",\n \"unit\": \"unlimited\",\n \"leave_type\": \"maternity_leave\"\n },\n \"annual_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"annual_balance\": {\n \"type\": \"unlimited\"\n },\n \"current_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"balance\": {\n \"type\": \"unlimited\"\n },\n \"upcoming_approved\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"upcoming_requested\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"pending_approval\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"taken\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"used\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"booked\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"working_hours_per_day\": \"\"\n },\n {\n \"leave_policy\": {\n \"name\": \"\",\n \"description\": \"\",\n \"unit\": \"hours\",\n \"leave_type\": \"other\"\n },\n \"annual_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"annual_balance\": {\n \"type\": \"unlimited\"\n },\n \"current_entitlement\": {\n \"type\": \"unlimited\"\n },\n \"balance\": {\n \"type\": \"unlimited\"\n },\n \"upcoming_approved\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"upcoming_requested\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"pending_approval\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"taken\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"used\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"booked\": {\n \"type\": \"limited\",\n \"days\": \"\",\n \"hours\": \"\"\n },\n \"working_hours_per_day\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a7683ce0-236f-4b63-8125-e20910f03677" }, { "id": "cc542400-cdf4-4635-9a10-5a1cfa477c99", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/summary/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "summary", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-cc542400-cdf4-4635-9a10-5a1cfa477c99" }, { "id": "d91b75ab-d15a-482d-bb69-a90bd60b841e", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/summary/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "summary", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-d91b75ab-d15a-482d-bb69-a90bd60b841e" }, { "id": "63af40cb-5d69-4ea1-a8fd-b8ee05534862", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/summary/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "summary", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-63af40cb-5d69-4ea1-a8fd-b8ee05534862" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-9049d8fc-a648-46f5-a8c8-cd7a44d00e8d" } ], "id": "a58d164b-be0b-43f5-9a1c-bdebfb4928a7", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-a58d164b-be0b-43f5-9a1c-bdebfb4928a7" } ], "id": "dce5bff1-6838-40ef-8ea3-8cf78f6d2f3c", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-dce5bff1-6838-40ef-8ea3-8cf78f6d2f3c" }, { "name": "details", "item": [ { "name": "{employment_id}", "item": [ { "name": "List Leave Policies Details", "id": "3cc89c0d-de75-43e0-9eed-b1c2b246c761", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/details/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "details", ":employment_id" ], "variable": [ { "id": "4bdfcb6a-250c-4cdd-a7d3-ee9467281fd8", "key": "employment_id", "value": "", "description": "(Required) Employment ID" } ] }, "description": "Describe the leave policies (custom or not) for a given employment\n\n## Scopes\n\n| Category | Read only Scope | Write only Scope (read access implicit) |\n|---|---|---|\n| Manage timeoffs (`time_and_attendance`) | View timeoffs (`timeoff:read`) | Manage timeoffs (`timeoff:write`) |\n" }, "response": [ { "id": "587329e4-b530-48f6-bf40-7f5180a7a49b", "name": "Success", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/details/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "details", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"data\": [\n {\n \"leave_policy_variant_id\": \"\",\n \"custom\": \"\",\n \"name\": \"\",\n \"uses_accrual_as_balance\": \"\"\n },\n {\n \"leave_policy_variant_id\": \"\",\n \"custom\": \"\",\n \"name\": \"\",\n \"uses_accrual_as_balance\": \"\"\n }\n ]\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-587329e4-b530-48f6-bf40-7f5180a7a49b" }, { "id": "45c3b471-f858-4930-b172-de5c8fc1be7c", "name": "Unauthorized", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/details/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "details", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Unauthorized\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-45c3b471-f858-4930-b172-de5c8fc1be7c" }, { "id": "11bf3593-ba4f-46b6-8cef-8b1ec9197224", "name": "Not Found", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/details/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "details", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"message\": \"Not Found\"\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-11bf3593-ba4f-46b6-8cef-8b1ec9197224" }, { "id": "8a728594-b04f-443c-b67d-78bee4100366", "name": "Unprocessable Entity", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "url": { "raw": "{{baseUrl}}/v1/leave-policies/details/:employment_id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "leave-policies", "details", ":employment_id" ], "variable": [ { "key": "employment_id" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"errors\": {}\n}", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-8a728594-b04f-443c-b67d-78bee4100366" } ], "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-3cc89c0d-de75-43e0-9eed-b1c2b246c761" } ], "id": "b5093b6d-dad2-4c3b-95a2-e009605bb17f", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-b5093b6d-dad2-4c3b-95a2-e009605bb17f" } ], "id": "85bd8485-1952-4e1d-b461-f9b068dbc065", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-85bd8485-1952-4e1d-b461-f9b068dbc065" } ], "id": "0f337bdb-f784-4016-a28a-f2faddc57066", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-0f337bdb-f784-4016-a28a-f2faddc57066" } ], "id": "bf88b515-56ba-4ac3-9896-d1d6138abede", "createdAt": "2026-07-28T02:47:59.000Z", "updatedAt": "2026-07-28T02:47:59.000Z", "uid": "35240-bf88b515-56ba-4ac3-9896-d1d6138abede" } ], "auth": { "type": "oauth2", "oauth2": [ { "key": "scope", "value": "company_department:read webhook:write magic_link:write offboarding:write custom_field:write address:write expense:read employment:write identity_verification:write timesheet:write travel_letter:write incentive:read personal_detail:read invoices:write work_authorization:write timeoff:write company_structure:read benefit_renewal:write benefit_offer:read employment_documents onboarding:write payroll_run:read risk_reserve:write invoices resignation_letter:read resignation:read convert_currency:read employments probation_document:read company_admin payroll help_center_article:read timesheet:read custom_field_value:write company_currencies:read payslip:read pay_item:write resignation:write custom_field:read payroll_calendar:read contract_amendment:write offboarding:read timeoff:read probation_document:write country:read webhook:read company_department:write company_manager:read pay_item:read contract_amendment:read company:read sso_configuration:write benefit_offer:write contract_eligibility:write benefit_renewal:read background_check:read custom_field_value:read expense:write identity_verification:read address:read document:write time_and_attendance employment_payments form:read work_authorization:read invoices:read incentive:write employment:read contract:read company_manager:write travel_letter:read document:read sso_configuration:read", "type": "string" }, { "key": "accessTokenUrl", "value": "/auth/oauth2/token", "type": "string" }, { "key": "authUrl", "value": "/auth/oauth2/authorize", "type": "string" }, { "key": "grant_type", "value": "authorization_code", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://gateway.remote.com/" } ] }