{ "info": { "_postman_id": "9ca91303-0318-4466-946e-959060c53dd2", "name": "Remote Address Details Time Off API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "lastUpdatedBy": "35240", "uid": "35240-9ca91303-0318-4466-946e-959060c53dd2" }, "item": [ { "name": "v1", "item": [ { "name": "timeoff", "item": [ { "name": "{timeoff_id}", "item": [ { "name": "cancel", "item": [ { "name": "Cancel Time Off", "id": "340bb32a-3ae4-4024-8328-2f2604820a0a", "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": "7232c405-d60a-4567-958b-3a32a223ddbc", "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": "1e4fea59-45b3-43b6-b90a-c53c550c9c68", "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\": \"cancel_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\": \"in_lieu_time\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rtt\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-1e4fea59-45b3-43b6-b90a-c53c550c9c68" }, { "id": "ae9876a5-7278-4a08-8118-f6f2c10a2f19", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-ae9876a5-7278-4a08-8118-f6f2c10a2f19" }, { "id": "9cb01173-dd16-4931-a17f-b89bb62cd754", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-9cb01173-dd16-4931-a17f-b89bb62cd754" }, { "id": "946bd6a1-2109-41f7-b247-25b60b7ebbec", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-946bd6a1-2109-41f7-b247-25b60b7ebbec" }, { "id": "65d68929-8d27-4bad-ad00-3a2383151aa2", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-65d68929-8d27-4bad-ad00-3a2383151aa2" }, { "id": "66063939-a8d1-4c51-8ace-a4aa6d331f3d", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-66063939-a8d1-4c51-8ace-a4aa6d331f3d" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-340bb32a-3ae4-4024-8328-2f2604820a0a" } ], "id": "48dfa1c3-f7b4-4291-b564-381e6b4c3feb", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-48dfa1c3-f7b4-4291-b564-381e6b4c3feb" }, { "name": "cancel-request", "item": [ { "name": "decline", "item": [ { "name": "Decline a time off cancellation request", "id": "02e2de21-1f10-4b0f-a7d9-5197df9cbfdd", "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": "8150eae0-5b82-42e7-8ae5-70b342ecf5ed", "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": "35bfc65e-e57b-469b-b58a-e780b133e082", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-35bfc65e-e57b-469b-b58a-e780b133e082" }, { "id": "62b77a2e-6551-4228-afd7-481118e993b7", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-62b77a2e-6551-4228-afd7-481118e993b7" }, { "id": "a6b44f68-03e5-44db-8117-2f24f18cf292", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-a6b44f68-03e5-44db-8117-2f24f18cf292" }, { "id": "2abfc3a8-80ef-4c3c-b0a9-e6b9b8e0d44d", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-2abfc3a8-80ef-4c3c-b0a9-e6b9b8e0d44d" }, { "id": "9ae68dd6-8ece-4ef9-8843-a8f6086d5ab8", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-9ae68dd6-8ece-4ef9-8843-a8f6086d5ab8" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-02e2de21-1f10-4b0f-a7d9-5197df9cbfdd" } ], "id": "8738f78b-9a18-452d-ab4d-1c5f993e0e43", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-8738f78b-9a18-452d-ab4d-1c5f993e0e43" }, { "name": "approve", "item": [ { "name": "Approve a time off cancellation request", "id": "56bd18b3-31cf-4858-82b4-d7075bdee7a2", "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": "45e2889f-36ff-40d4-a728-34e8a02574cc", "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": "9e99f2a3-dcc7-466a-89b0-cc54b4b6fcb6", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-9e99f2a3-dcc7-466a-89b0-cc54b4b6fcb6" }, { "id": "9fa482bb-9eff-438d-af75-2f8e6da4a69b", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-9fa482bb-9eff-438d-af75-2f8e6da4a69b" }, { "id": "d25968c0-2866-49bb-9880-475b154acaaf", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-d25968c0-2866-49bb-9880-475b154acaaf" }, { "id": "505181a5-15e5-41ca-9eb2-8c9f817c391a", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-505181a5-15e5-41ca-9eb2-8c9f817c391a" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-56bd18b3-31cf-4858-82b4-d7075bdee7a2" } ], "id": "afb68d16-ed99-469d-a38e-0d92ef346e79", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-afb68d16-ed99-469d-a38e-0d92ef346e79" } ], "id": "d192cbef-6745-4f38-ae5b-80cd988b0c0d", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-d192cbef-6745-4f38-ae5b-80cd988b0c0d" }, { "name": "decline", "item": [ { "name": "Decline Time Off", "id": "fd4ae483-e9d4-4017-8b47-342a9b8a4484", "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": "7140ffad-6c70-4073-b77f-5a93f52c87e2", "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": "fdbeeb6c-12d7-40c9-bf0f-7c57a2935185", "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\": \"cancel_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\": \"in_lieu_time\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rtt\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-fdbeeb6c-12d7-40c9-bf0f-7c57a2935185" }, { "id": "64e45a8b-3d04-4016-8bdc-f71b70b4bde2", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-64e45a8b-3d04-4016-8bdc-f71b70b4bde2" }, { "id": "58d4846b-bfba-4cbf-b1ba-50f82dd53473", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-58d4846b-bfba-4cbf-b1ba-50f82dd53473" }, { "id": "75ae8222-557e-4fda-a955-f317d7cd8e6d", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-75ae8222-557e-4fda-a955-f317d7cd8e6d" }, { "id": "30cfb347-8969-4881-9133-5661d6c4fed2", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-30cfb347-8969-4881-9133-5661d6c4fed2" }, { "id": "a27bf4b2-c8b3-4523-b1b7-ff9b21507026", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-a27bf4b2-c8b3-4523-b1b7-ff9b21507026" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-fd4ae483-e9d4-4017-8b47-342a9b8a4484" } ], "id": "35c6266a-281d-4ddd-9d03-b521078e67e9", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-35c6266a-281d-4ddd-9d03-b521078e67e9" }, { "name": "approve", "item": [ { "name": "Approve Time Off", "id": "1a2d2ccd-e4c7-4c11-bf7d-6782014dab86", "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": "57710588-5df2-42cc-87ec-e1ccae01143e", "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": "7a46cd0a-2ec9-4181-b69a-519184347560", "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\": \"cancel_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\": \"in_lieu_time\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rtt\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-7a46cd0a-2ec9-4181-b69a-519184347560" }, { "id": "b6443808-7586-495b-a7d1-3609cdb1f51b", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-b6443808-7586-495b-a7d1-3609cdb1f51b" }, { "id": "d0cbc726-c5fc-48d8-a67d-089455f6fdeb", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-d0cbc726-c5fc-48d8-a67d-089455f6fdeb" }, { "id": "329ce9d9-c500-4707-a4f5-3619e5e51492", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-329ce9d9-c500-4707-a4f5-3619e5e51492" }, { "id": "39b90858-22e4-45d4-ba01-dd40eb379db0", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-39b90858-22e4-45d4-ba01-dd40eb379db0" }, { "id": "bce02bea-085c-4aec-83dc-a402a0ae4fcd", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-bce02bea-085c-4aec-83dc-a402a0ae4fcd" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-1a2d2ccd-e4c7-4c11-bf7d-6782014dab86" } ], "id": "936cfcfb-bf0e-4b4f-9a7c-9515bbca795a", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-936cfcfb-bf0e-4b4f-9a7c-9515bbca795a" } ], "id": "21a5d7c3-737a-4a42-b1cf-18e0e43ca4bf", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-21a5d7c3-737a-4a42-b1cf-18e0e43ca4bf" }, { "name": "types", "item": [ { "name": "List Time Off Types", "id": "09f9bd07-0d86-4e8a-b0d6-29e3d35fdfe9", "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=contractor", "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": "contractor" } ] }, "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": "70a51e21-2621-4fe3-a327-e6ad722d7c67", "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=contractor", "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": "contractor" } ] } }, "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\": \"paid_time_off\",\n \"description\": \"\"\n },\n {\n \"name\": \"in_lieu_time\",\n \"description\": \"\"\n }\n ]\n }\n}", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-70a51e21-2621-4fe3-a327-e6ad722d7c67" }, { "id": "48dce4da-c98b-490f-8567-72e8a2095aa6", "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=contractor", "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": "contractor" } ] } }, "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-48dce4da-c98b-490f-8567-72e8a2095aa6" }, { "id": "04e46051-c66e-43d9-ba2e-adfc3293449a", "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=contractor", "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": "contractor" } ] } }, "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-04e46051-c66e-43d9-ba2e-adfc3293449a" }, { "id": "9b9e45b0-25e5-4a42-b777-4c0c07ab4ad1", "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=contractor", "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": "contractor" } ] } }, "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-9b9e45b0-25e5-4a42-b777-4c0c07ab4ad1" }, { "id": "de6943f6-5015-40ad-a66f-7c6f415a7d5f", "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=contractor", "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": "contractor" } ] } }, "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-de6943f6-5015-40ad-a66f-7c6f415a7d5f" }, { "id": "e5576b55-2c05-48e8-8cbc-a9482c76971b", "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=contractor", "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": "contractor" } ] } }, "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-e5576b55-2c05-48e8-8cbc-a9482c76971b" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-09f9bd07-0d86-4e8a-b0d6-29e3d35fdfe9" } ], "id": "68a5783d-b11d-4249-ba8f-371e819fdfe0", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-68a5783d-b11d-4249-ba8f-371e819fdfe0" }, { "name": "{id}", "item": [ { "name": "Show Time Off", "id": "7e5c7845-8544-4fd6-b74d-3bd85a55f7af", "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": "05579f71-4453-4503-9b0e-c32fd40536ef", "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": "b3c27fea-a8f7-48fa-83c2-ddae38e14cf5", "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\": \"cancel_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\": \"in_lieu_time\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rtt\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-b3c27fea-a8f7-48fa-83c2-ddae38e14cf5" }, { "id": "d94497f9-2da8-4ec8-968f-203dcde6da6d", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-d94497f9-2da8-4ec8-968f-203dcde6da6d" }, { "id": "7552d8e0-9064-4372-992a-c1ec7157a79f", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-7552d8e0-9064-4372-992a-c1ec7157a79f" }, { "id": "f62c0d63-ed4e-487d-aa9a-78a32ebaaa35", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-f62c0d63-ed4e-487d-aa9a-78a32ebaaa35" }, { "id": "117ba466-5dc0-48e7-a71f-d81f84d979ae", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-117ba466-5dc0-48e7-a71f-d81f84d979ae" }, { "id": "08bffe31-5573-4fc7-9ce5-dceb532e040b", "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-08bffe31-5573-4fc7-9ce5-dceb532e040b" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-7e5c7845-8544-4fd6-b74d-3bd85a55f7af" }, { "name": "Update Time Off", "id": "2d8197d4-f1ca-46df-ad10-e88cdefba923", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "id": "001b8dd5-3101-4f85-bcde-9d0eb4d8c45d", "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": "e8638aff-3b60-4980-82cb-311c932f6a44", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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\": \"cancel_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\": \"in_lieu_time\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rtt\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-e8638aff-3b60-4980-82cb-311c932f6a44" }, { "id": "a30f775c-811f-4429-bb23-f155d8acc53d", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-a30f775c-811f-4429-bb23-f155d8acc53d" }, { "id": "67068cd8-1ac1-40d9-bb55-ef11e003aa64", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-67068cd8-1ac1-40d9-bb55-ef11e003aa64" }, { "id": "241a5eed-2ce2-414f-b3ef-21bf80df15d7", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-241a5eed-2ce2-414f-b3ef-21bf80df15d7" }, { "id": "5ff8a3d8-2718-4775-b2fb-f018d00239c6", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-5ff8a3d8-2718-4775-b2fb-f018d00239c6" }, { "id": "83a77169-9aa8-406f-9354-b2122e84d3f5", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-83a77169-9aa8-406f-9354-b2122e84d3f5" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-2d8197d4-f1ca-46df-ad10-e88cdefba923" }, { "name": "Update Time Off", "id": "b8944270-1d03-4186-a08a-bbda36f790c5", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\n \"timezone\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/v1/timeoff/:id", "host": [ "{{baseUrl}}" ], "path": [ "v1", "timeoff", ":id" ], "variable": [ { "id": "a106ba63-fd2a-4b88-a499-7ba93b8d1112", "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": "aa73b0ff-be0d-4f2b-bf66-a705e21b894a", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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\": \"cancel_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\": \"in_lieu_time\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rtt\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-aa73b0ff-be0d-4f2b-bf66-a705e21b894a" }, { "id": "f33d2a95-6d3e-4357-bf52-d5fba3104050", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-f33d2a95-6d3e-4357-bf52-d5fba3104050" }, { "id": "87fc04ae-1d16-4349-81a8-0573d748fe0e", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-87fc04ae-1d16-4349-81a8-0573d748fe0e" }, { "id": "e3501faa-3e75-4564-a946-176f0cd6a85b", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-e3501faa-3e75-4564-a946-176f0cd6a85b" }, { "id": "d0c7e99e-ebe3-4f25-ba68-9d1e3b734cc6", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-d0c7e99e-ebe3-4f25-ba68-9d1e3b734cc6" }, { "id": "eb5385c0-0faf-42a5-8073-55d5578df3f5", "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\": \"approved\",\n \"timeoff_days\": [\n {\n \"day\": \"\",\n \"hours\": \"\"\n },\n {\n \"day\": \"\",\n \"hours\": \"\"\n }\n ],\n \"timeoff_type\": \"paid_time_off\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-eb5385c0-0faf-42a5-8073-55d5578df3f5" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-b8944270-1d03-4186-a08a-bbda36f790c5" } ], "id": "80c13fab-38c2-4f8f-b1e8-82604eb30169", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-80c13fab-38c2-4f8f-b1e8-82604eb30169" }, { "name": "List Time Off", "id": "d33352b9-1cfb-4823-a006-98d9abb1ec77", "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=time_off&status=approved&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": "time_off" }, { "description": "Filter time off by its status", "key": "status", "value": "approved" }, { "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": "d0a39442-bfc8-4693-9a1f-d4b70a9f8dfb", "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=time_off&status=approved&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": "time_off" }, { "description": "Filter time off by its status", "key": "status", "value": "approved" }, { "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\": \"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\": \"in_lieu_time\",\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\": \"unpaid_leave\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"parental_leave\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-d0a39442-bfc8-4693-9a1f-d4b70a9f8dfb" }, { "id": "b9465c25-d7c9-464c-a310-e749b3733561", "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=time_off&status=approved&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": "time_off" }, { "description": "Filter time off by its status", "key": "status", "value": "approved" }, { "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-b9465c25-d7c9-464c-a310-e749b3733561" }, { "id": "77cc7d55-3f4c-42da-8bdc-74cb93f89479", "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=time_off&status=approved&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": "time_off" }, { "description": "Filter time off by its status", "key": "status", "value": "approved" }, { "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-77cc7d55-3f4c-42da-8bdc-74cb93f89479" }, { "id": "8255e554-8a1b-430f-a0e4-a8f2f3e428f1", "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=time_off&status=approved&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": "time_off" }, { "description": "Filter time off by its status", "key": "status", "value": "approved" }, { "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-8255e554-8a1b-430f-a0e4-a8f2f3e428f1" }, { "id": "9da66434-cca4-4464-bbf0-b1b3b7e9944b", "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=time_off&status=approved&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": "time_off" }, { "description": "Filter time off by its status", "key": "status", "value": "approved" }, { "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-9da66434-cca4-4464-bbf0-b1b3b7e9944b" }, { "id": "6527ff8a-21dd-498a-b5b0-60e34fffe557", "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=time_off&status=approved&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": "time_off" }, { "description": "Filter time off by its status", "key": "status", "value": "approved" }, { "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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-6527ff8a-21dd-498a-b5b0-60e34fffe557" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-d33352b9-1cfb-4823-a006-98d9abb1ec77" }, { "name": "Create Time Off", "id": "70440c96-5bd6-46c8-bad0-7a040d55ccaa", "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\": \"rol\"\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": "3e2fb80b-c77d-4b86-8d7d-c21a70977a68", "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\": \"rol\"\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\": \"cancel_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\": \"in_lieu_time\",\n \"leave_policy\": {\n \"name\": \"\",\n \"leave_type\": \"rtt\",\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-3e2fb80b-c77d-4b86-8d7d-c21a70977a68" }, { "id": "23f36ce5-cefb-4726-b07b-8a6f74dbe87f", "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\": \"rol\"\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-23f36ce5-cefb-4726-b07b-8a6f74dbe87f" }, { "id": "325736c3-10ef-44be-bc0d-aa69fb77652d", "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\": \"rol\"\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-325736c3-10ef-44be-bc0d-aa69fb77652d" }, { "id": "12c6237b-2076-49bd-bf63-8a9d3e254688", "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\": \"rol\"\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-12c6237b-2076-49bd-bf63-8a9d3e254688" }, { "id": "9165ba19-85b1-4f1c-93a7-9864e687ad2b", "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\": \"rol\"\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-9165ba19-85b1-4f1c-93a7-9864e687ad2b" }, { "id": "ee89304b-e865-4427-b127-32146fa267db", "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\": \"rol\"\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:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-ee89304b-e865-4427-b127-32146fa267db" } ], "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-70440c96-5bd6-46c8-bad0-7a040d55ccaa" } ], "id": "f9d8fff1-63ac-4730-9f0d-9696a9fc0b78", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-f9d8fff1-63ac-4730-9f0d-9696a9fc0b78" } ], "id": "b42f6c0f-b70f-4d0a-a270-6a4b5589c8c3", "createdAt": "2026-07-28T02:48:00.000Z", "updatedAt": "2026-07-28T02:48:00.000Z", "uid": "35240-b42f6c0f-b70f-4d0a-a270-6a4b5589c8c3" } ], "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/" } ] }