{
  "info": {
    "name": "Matendes HRM API",
    "description": "Complete API collection for Matendes HRM system",
    "version": "1.0.0",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost:8000/api/v1",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string"
    },
    {
      "key": "company_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "department_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "branch_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "job_position_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "employee_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "user_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "document_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "history_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "notification_id",
      "value": "",
      "type": "string"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Authentication",
      "item": [
        {
          "name": "Login",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"admin@example.com\",\n    \"password\": \"password123\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/login",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "login"]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status code is 200', function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "if (pm.response.code === 200) {",
                  "    const response = pm.response.json();",
                  "    pm.collectionVariables.set('token', response.data.token);",
                  "    if (response.data.user && response.data.user.id) {",
                  "        pm.collectionVariables.set('user_id', response.data.user.id);",
                  "    }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Register",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"name\": \"John Doe\",\n    \"email\": \"johndoe@example.com\",\n    \"password\": \"password123\",\n    \"password_confirmation\": \"password123\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/register",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "register"]
            }
          }
        },
        {
          "name": "Get Profile (Me)",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/auth/me",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "me"]
            }
          }
        },
        {
          "name": "Update Profile",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"name\": \"John Smith\",\n    \"phone\": \"+1-555-1234\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/me",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "me"]
            }
          }
        },
        {
          "name": "Change Password",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"current_password\": \"password123\",\n    \"new_password\": \"newpassword123\",\n    \"new_password_confirmation\": \"newpassword123\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/change-password",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "change-password"]
            }
          }
        },
        {
          "name": "Refresh Token",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{baseUrl}}/auth/refresh",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "refresh"]
            }
          }
        },
        {
          "name": "Logout All Devices",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{baseUrl}}/auth/logout-all-devices",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "logout-all-devices"]
            }
          }
        },
        {
          "name": "Logout",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{baseUrl}}/auth/logout",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "logout"]
            }
          }
        }
      ]
    },
    {
      "name": "Two-Factor Authentication",
      "item": [
        {
          "name": "Enable 2FA",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{baseUrl}}/auth/2fa/enable",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "2fa", "enable"]
            }
          }
        },
        {
          "name": "Disable 2FA",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"code\": \"123456\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/2fa/disable",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "2fa", "disable"]
            }
          }
        },
        {
          "name": "Verify 2FA",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"code\": \"123456\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/auth/2fa/verify",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "2fa", "verify"]
            }
          }
        },
        {
          "name": "Get QR Code",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/auth/2fa/qr-code",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "2fa", "qr-code"]
            }
          }
        },
        {
          "name": "Get Recovery Codes",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/auth/2fa/recovery-codes",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "2fa", "recovery-codes"]
            }
          }
        },
        {
          "name": "Regenerate Recovery Codes",
          "request": {
            "method": "POST",
            "url": {
              "raw": "{{baseUrl}}/auth/2fa/recovery-codes/regenerate",
              "host": ["{{baseUrl}}"],
              "path": ["auth", "2fa", "recovery-codes", "regenerate"]
            }
          }
        }
      ]
    },
    {
      "name": "Employee Management",
      "item": [
        {
          "name": "List Employees",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees?page=1&per_page=15",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees"],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "per_page",
                  "value": "15"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status code is 200', function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "pm.test('Response has employees data', function () {",
                  "    var jsonData = pm.response.json();",
                  "    pm.expect(jsonData).to.have.property('data');",
                  "    if (jsonData.data && jsonData.data.length > 0) {",
                  "        pm.collectionVariables.set('employee_id', jsonData.data[0].id);",
                  "    }",
                  "});"
                ]
              }
            }
          ]
        },
        {
          "name": "Create Employee",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"email\": \"john.doe@company.com\",\n    \"phone\": \"+1234567890\",\n    \"department_id\": \"{{department_id}}\",\n    \"job_position_id\": \"{{job_position_id}}\",\n    \"hire_date\": \"2024-08-16\",\n    \"salary\": 75000,\n    \"employment_type\": \"full_time\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees"]
            }
          }
        },
        {
          "name": "Get Employee",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}"]
            }
          }
        },
        {
          "name": "Update Employee",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Smith Updated\",\n    \"phone\": \"+1234567891\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}"]
            }
          }
        },
        {
          "name": "Delete Employee",
          "request": {
            "method": "DELETE",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}"]
            }
          }
        },
        {
          "name": "Search Employees",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/search?query=john&department_id={{department_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "search"],
              "query": [
                {
                  "key": "query",
                  "value": "john"
                },
                {
                  "key": "department_id",
                  "value": "{{department_id}}"
                }
              ]
            }
          }
        },
        {
          "name": "Filter Employees",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"department_id\": \"{{department_id}}\",\n    \"employment_type\": \"full_time\",\n    \"status\": \"active\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/filter",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "filter"]
            }
          }
        },
        {
          "name": "Employee Statistics",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/statistics",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "statistics"]
            }
          }
        },
        {
          "name": "Organization Chart",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/org-chart",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "org-chart"]
            }
          }
        },
        {
          "name": "Promote Employee",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"new_position_id\": \"{{job_position_id}}\",\n    \"new_salary\": 85000,\n    \"effective_date\": \"2024-09-01\",\n    \"reason\": \"Performance excellence\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/promote",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "promote"]
            }
          }
        },
        {
          "name": "Transfer Employee",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"new_department_id\": \"{{department_id}}\",\n    \"new_branch_id\": \"{{branch_id}}\",\n    \"effective_date\": \"2024-09-01\",\n    \"reason\": \"Department restructuring\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/transfer",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "transfer"]
            }
          }
        },
        {
          "name": "Update Salary",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"new_salary\": 80000,\n    \"effective_date\": \"2024-09-01\",\n    \"reason\": \"Annual review\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/salary",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "salary"]
            }
          }
        },
        {
          "name": "Terminate Employee",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"termination_date\": \"2024-09-01\",\n    \"reason\": \"Resignation\",\n    \"is_voluntary\": true\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/terminate",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "terminate"]
            }
          }
        },
        {
          "name": "Bulk Import Employees",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "multipart/form-data"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                }
              ]
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/bulk-import",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "bulk-import"]
            }
          }
        }
      ]
    },
    {
      "name": "Employee Documents",
      "item": [
        {
          "name": "List Employee Documents",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents"]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status code is 200', function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "if (pm.response.code === 200) {",
                  "    const response = pm.response.json();",
                  "    if (response.data && response.data.length > 0) {",
                  "        pm.collectionVariables.set('document_id', response.data[0].id);",
                  "    }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Upload Employee Document",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "multipart/form-data"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "document_type",
                  "value": "contract",
                  "type": "text"
                },
                {
                  "key": "title",
                  "value": "Employment Contract",
                  "type": "text"
                },
                {
                  "key": "description",
                  "value": "Official employment contract document",
                  "type": "text"
                }
              ]
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents"]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 200 || pm.response.code === 201) {",
                  "    const response = pm.response.json();",
                  "    pm.collectionVariables.set('document_id', response.data.id);",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Get Employee Document",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents/{{document_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents", "{{document_id}}"]
            }
          }
        },
        {
          "name": "Update Employee Document",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"title\": \"Updated Employment Contract\",\n    \"description\": \"Updated contract document\",\n    \"document_type\": \"contract\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents/{{document_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents", "{{document_id}}"]
            }
          }
        },
        {
          "name": "Delete Employee Document",
          "request": {
            "method": "DELETE",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents/{{document_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents", "{{document_id}}"]
            }
          }
        },
        {
          "name": "Download Employee Document",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents/{{document_id}}/download",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents", "{{document_id}}", "download"]
            }
          }
        },
        {
          "name": "Get Document Types",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/document-types",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "document-types"]
            }
          }
        },
        {
          "name": "Filter Documents by Type",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents?type=contract&status=active",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents"],
              "query": [
                {
                  "key": "type",
                  "value": "contract"
                },
                {
                  "key": "status",
                  "value": "active"
                }
              ]
            }
          }
        },
        {
          "name": "Bulk Download Documents",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"document_ids\": [\"{{document_id}}\"],\n    \"format\": \"zip\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/documents/bulk-download",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "documents", "bulk-download"]
            }
          }
        }
      ]
    },
    {
      "name": "Employee Onboarding",
      "item": [
        {
          "name": "List Onboarding Tasks",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding"]
            }
          }
        },
        {
          "name": "Create Onboarding Task",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"title\": \"Complete IT Setup\",\n    \"description\": \"Set up laptop and access credentials\",\n    \"category\": \"it_setup\",\n    \"priority\": \"high\",\n    \"due_date\": \"2024-08-20\",\n    \"assigned_to\": \"{{user_id}}\",\n    \"is_mandatory\": true\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding"]
            }
          }
        },
        {
          "name": "Get Onboarding Task",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding/task-id",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding", "task-id"]
            }
          }
        },
        {
          "name": "Update Onboarding Task",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"status\": \"completed\",\n    \"completion_notes\": \"Successfully completed IT setup\",\n    \"completed_at\": \"2024-08-18T10:30:00Z\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding/task-id",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding", "task-id"]
            }
          }
        },
        {
          "name": "Mark Task as Complete",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"completion_notes\": \"Task completed successfully\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding/task-id/complete",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding", "task-id", "complete"]
            }
          }
        },
        {
          "name": "Get Onboarding Progress",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding/progress",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding", "progress"]
            }
          }
        },
        {
          "name": "Get Onboarding Template",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/onboarding/templates",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "onboarding", "templates"]
            }
          }
        },
        {
          "name": "Apply Onboarding Template",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"template_id\": \"template-uuid\",\n    \"start_date\": \"2024-08-20\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding/apply-template",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding", "apply-template"]
            }
          }
        },
        {
          "name": "Send Welcome Email",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"template\": \"welcome_new_employee\",\n    \"custom_message\": \"Welcome to the team! We're excited to have you.\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding/welcome-email",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding", "welcome-email"]
            }
          }
        },
        {
          "name": "Generate Onboarding Report",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/onboarding/report?format=pdf",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "onboarding", "report"],
              "query": [
                {
                  "key": "format",
                  "value": "pdf"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Employment History",
      "item": [
        {
          "name": "List Employment History",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history"]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status code is 200', function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "if (pm.response.code === 200) {",
                  "    const response = pm.response.json();",
                  "    if (response.data && response.data.length > 0) {",
                  "        pm.collectionVariables.set('history_id', response.data[0].id);",
                  "    }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Create Employment History Record",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"change_type\": \"promotion\",\n    \"previous_position_id\": \"{{job_position_id}}\",\n    \"new_position_id\": \"{{job_position_id}}\",\n    \"previous_department_id\": \"{{department_id}}\",\n    \"new_department_id\": \"{{department_id}}\",\n    \"previous_salary\": 70000,\n    \"new_salary\": 85000,\n    \"effective_date\": \"2024-09-01\",\n    \"reason\": \"Outstanding performance and leadership qualities\",\n    \"notes\": \"Well-deserved promotion after excellent quarterly results\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history"]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 200 || pm.response.code === 201) {",
                  "    const response = pm.response.json();",
                  "    pm.collectionVariables.set('history_id', response.data.id);",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Get Employment History Record",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history/{{history_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history", "{{history_id}}"]
            }
          }
        },
        {
          "name": "Update Employment History Record",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"reason\": \"Updated: Exceptional performance and leadership development\",\n    \"notes\": \"Updated notes: Promotion includes additional responsibilities\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history/{{history_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history", "{{history_id}}"]
            }
          }
        },
        {
          "name": "Delete Employment History Record",
          "request": {
            "method": "DELETE",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history/{{history_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history", "{{history_id}}"]
            }
          }
        },
        {
          "name": "Filter Employment History by Type",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history?change_type=promotion&from_date=2024-01-01",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history"],
              "query": [
                {
                  "key": "change_type",
                  "value": "promotion"
                },
                {
                  "key": "from_date",
                  "value": "2024-01-01"
                }
              ]
            }
          }
        },
        {
          "name": "Get Employment Timeline",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history/timeline",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history", "timeline"]
            }
          }
        },
        {
          "name": "Generate Employment History Report",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history/report?format=pdf&include_salary=true",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history", "report"],
              "query": [
                {
                  "key": "format",
                  "value": "pdf"
                },
                {
                  "key": "include_salary",
                  "value": "true"
                }
              ]
            }
          }
        },
        {
          "name": "Compare Employment Changes",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/hrm/employees/{{employee_id}}/employment-history/compare?from_date=2024-01-01&to_date=2024-12-31",
              "host": ["{{baseUrl}}"],
              "path": ["hrm", "employees", "{{employee_id}}", "employment-history", "compare"],
              "query": [
                {
                  "key": "from_date",
                  "value": "2024-01-01"
                },
                {
                  "key": "to_date",
                  "value": "2024-12-31"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Organization",
      "item": [
        {
          "name": "Companies",
          "item": [
            {
              "name": "List Companies",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/companies",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies"]
                }
              }
            },
            {
              "name": "Create Company",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"name\": \"Tech Corp\",\n    \"email\": \"info@techcorp.com\",\n    \"phone\": \"+1234567890\",\n    \"address_line_1\": \"123 Business St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"postal_code\": \"10001\",\n    \"country\": \"USA\",\n    \"industry\": \"Technology\",\n    \"business_type\": \"corporation\"\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/companies",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies"]
                }
              },
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code === 200 || pm.response.code === 201) {",
                      "    const response = pm.response.json();",
                      "    pm.collectionVariables.set('company_id', response.data.id);",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get Company",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/companies/{{company_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies", "{{company_id}}"]
                }
              }
            },
            {
              "name": "Update Company",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"name\": \"Tech Corp Updated\",\n    \"phone\": \"+1234567891\"\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/companies/{{company_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies", "{{company_id}}"]
                }
              }
            },
            {
              "name": "Delete Company",
              "request": {
                "method": "DELETE",
                "url": {
                  "raw": "{{baseUrl}}/organization/companies/{{company_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies", "{{company_id}}"]
                }
              }
            },
            {
              "name": "Company Statistics",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/companies/{{company_id}}/statistics",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies", "{{company_id}}", "statistics"]
                }
              }
            },
            {
              "name": "Company Dashboard",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/companies/{{company_id}}/dashboard",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies", "{{company_id}}", "dashboard"]
                }
              }
            },
            {
              "name": "Toggle Company Status",
              "request": {
                "method": "PATCH",
                "url": {
                  "raw": "{{baseUrl}}/organization/companies/{{company_id}}/toggle",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "companies", "{{company_id}}", "toggle"]
                }
              }
            }
          ]
        },
        {
          "name": "Departments",
          "item": [
            {
              "name": "List Departments",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments"]
                }
              }
            },
            {
              "name": "Create Department",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"name\": \"Engineering\",\n    \"description\": \"Software development team\",\n    \"company_id\": \"{{company_id}}\",\n    \"code\": \"ENG-001\",\n    \"department_type\": \"technical\"\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/departments",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments"]
                }
              },
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code === 200 || pm.response.code === 201) {",
                      "    const response = pm.response.json();",
                      "    pm.collectionVariables.set('department_id', response.data.id);",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get Department",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/{{department_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "{{department_id}}"]
                }
              }
            },
            {
              "name": "Update Department",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"name\": \"Engineering Updated\",\n    \"description\": \"Updated software development team\"\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/{{department_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "{{department_id}}"]
                }
              }
            },
            {
              "name": "Delete Department",
              "request": {
                "method": "DELETE",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/{{department_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "{{department_id}}"]
                }
              }
            },
            {
              "name": "Department Hierarchy",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/hierarchy",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "hierarchy"]
                }
              }
            },
            {
              "name": "Departments by Company",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/by-company/{{company_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "by-company", "{{company_id}}"]
                }
              }
            },
            {
              "name": "Department Statistics",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/{{department_id}}/statistics",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "{{department_id}}", "statistics"]
                }
              }
            },
            {
              "name": "Department Employees",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/{{department_id}}/employees",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "{{department_id}}", "employees"]
                }
              }
            },
            {
              "name": "Department Job Positions",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/departments/{{department_id}}/job-positions",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "departments", "{{department_id}}", "job-positions"]
                }
              }
            }
          ]
        },
        {
          "name": "Branches",
          "item": [
            {
              "name": "List Branches",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/branches",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches"]
                }
              }
            },
            {
              "name": "Create Branch",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"name\": \"Downtown Office\",\n    \"company_id\": \"{{company_id}}\",\n    \"code\": \"NYC-001\",\n    \"address_line_1\": \"456 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"postal_code\": \"10002\",\n    \"branch_type\": \"main_office\"\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/branches",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches"]
                }
              },
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code === 200 || pm.response.code === 201) {",
                      "    const response = pm.response.json();",
                      "    pm.collectionVariables.set('branch_id', response.data.id);",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get Branch",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/branches/{{branch_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches", "{{branch_id}}"]
                }
              }
            },
            {
              "name": "Update Branch",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"name\": \"Downtown Office Updated\",\n    \"phone\": \"+1234567891\"\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/branches/{{branch_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches", "{{branch_id}}"]
                }
              }
            },
            {
              "name": "Delete Branch",
              "request": {
                "method": "DELETE",
                "url": {
                  "raw": "{{baseUrl}}/organization/branches/{{branch_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches", "{{branch_id}}"]
                }
              }
            },
            {
              "name": "Branch Hierarchy",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/branches/hierarchy",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches", "hierarchy"]
                }
              }
            },
            {
              "name": "Branches by Company",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/branches/by-company/{{company_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches", "by-company", "{{company_id}}"]
                }
              }
            },
            {
              "name": "Branch Statistics",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/branches/{{branch_id}}/statistics",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches", "{{branch_id}}", "statistics"]
                }
              }
            },
            {
              "name": "Branch Employees",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/branches/{{branch_id}}/employees",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "branches", "{{branch_id}}", "employees"]
                }
              }
            }
          ]
        },
        {
          "name": "Job Positions",
          "item": [
            {
              "name": "List Job Positions",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions"]
                }
              }
            },
            {
              "name": "Create Job Position",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"title\": \"Senior Software Engineer\",\n    \"company_id\": \"{{company_id}}\",\n    \"department_id\": \"{{department_id}}\",\n    \"code\": \"SSE-001\",\n    \"description\": \"Senior software engineer role\",\n    \"employment_type\": \"full_time\",\n    \"job_category\": \"engineering\",\n    \"min_salary\": 80000,\n    \"max_salary\": 120000\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions"]
                }
              },
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "exec": [
                      "if (pm.response.code === 200 || pm.response.code === 201) {",
                      "    const response = pm.response.json();",
                      "    pm.collectionVariables.set('job_position_id', response.data.id);",
                      "}"
                    ]
                  }
                }
              ]
            },
            {
              "name": "Get Job Position",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/{{job_position_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "{{job_position_id}}"]
                }
              }
            },
            {
              "name": "Update Job Position",
              "request": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"title\": \"Senior Software Engineer Updated\",\n    \"max_salary\": 130000\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/{{job_position_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "{{job_position_id}}"]
                }
              }
            },
            {
              "name": "Delete Job Position",
              "request": {
                "method": "DELETE",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/{{job_position_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "{{job_position_id}}"]
                }
              }
            },
            {
              "name": "Job Position Hierarchy",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/hierarchy",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "hierarchy"]
                }
              }
            },
            {
              "name": "Job Positions by Company",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/by-company/{{company_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "by-company", "{{company_id}}"]
                }
              }
            },
            {
              "name": "Job Positions by Department",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/by-department/{{department_id}}",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "by-department", "{{department_id}}"]
                }
              }
            },
            {
              "name": "Job Position Vacancies",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/vacancies",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "vacancies"]
                }
              }
            },
            {
              "name": "Job Position Statistics",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/{{job_position_id}}/statistics",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "{{job_position_id}}", "statistics"]
                }
              }
            },
            {
              "name": "Job Position Employees",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/organization/job-positions/{{job_position_id}}/employees",
                  "host": ["{{baseUrl}}"],
                  "path": ["organization", "job-positions", "{{job_position_id}}", "employees"]
                }
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Settings",
      "item": [
        {
          "name": "List Settings",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/settings",
              "host": ["{{baseUrl}}"],
              "path": ["settings"]
            }
          }
        },
        {
          "name": "Get Setting",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/settings/app_name",
              "host": ["{{baseUrl}}"],
              "path": ["settings", "app_name"]
            }
          }
        },
        {
          "name": "Update Setting",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"value\": \"Matendes HRM System\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/settings/app_name",
              "host": ["{{baseUrl}}"],
              "path": ["settings", "app_name"]
            }
          }
        },
        {
          "name": "Features",
          "item": [
            {
              "name": "List Features",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/settings/features",
                  "host": ["{{baseUrl}}"],
                  "path": ["settings", "features"]
                }
              }
            },
            {
              "name": "Check Feature",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/settings/features/employee_management/check",
                  "host": ["{{baseUrl}}"],
                  "path": ["settings", "features", "employee_management", "check"]
                }
              }
            },
            {
              "name": "Toggle Feature",
              "request": {
                "method": "PATCH",
                "url": {
                  "raw": "{{baseUrl}}/settings/features/employee_management/toggle",
                  "host": ["{{baseUrl}}"],
                  "path": ["settings", "features", "employee_management", "toggle"]
                }
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Notifications",
      "item": [
        {
          "name": "List Notifications",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/notifications?page=1&per_page=15&status=unread",
              "host": ["{{baseUrl}}"],
              "path": ["notifications"],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "per_page",
                  "value": "15"
                },
                {
                  "key": "status",
                  "value": "unread"
                }
              ]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Status code is 200', function () {",
                  "    pm.response.to.have.status(200);",
                  "});",
                  "",
                  "if (pm.response.code === 200) {",
                  "    const response = pm.response.json();",
                  "    if (response.data && response.data.length > 0) {",
                  "        pm.collectionVariables.set('notification_id', response.data[0].id);",
                  "    }",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Create Notification",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"type\": \"App\\\\Notifications\\\\EmployeeWelcomeNotification\",\n    \"title\": \"Welcome to the Team\",\n    \"message\": \"Welcome to Matendes HRM! We're excited to have you on board.\",\n    \"data\": {\n        \"employee_id\": \"{{employee_id}}\",\n        \"action_url\": \"/employees/{{employee_id}}/profile\"\n    },\n    \"channels\": [\"database\", \"mail\"],\n    \"recipients\": [\"{{user_id}}\"],\n    \"priority\": \"normal\",\n    \"scheduled_at\": null\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/notifications",
              "host": ["{{baseUrl}}"],
              "path": ["notifications"]
            }
          },
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 200 || pm.response.code === 201) {",
                  "    const response = pm.response.json();",
                  "    pm.collectionVariables.set('notification_id', response.data.id);",
                  "}"
                ]
              }
            }
          ]
        },
        {
          "name": "Get Notification",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/notifications/{{notification_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "{{notification_id}}"]
            }
          }
        },
        {
          "name": "Mark as Read",
          "request": {
            "method": "PUT",
            "url": {
              "raw": "{{baseUrl}}/notifications/{{notification_id}}/read",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "{{notification_id}}", "read"]
            }
          }
        },
        {
          "name": "Mark as Unread",
          "request": {
            "method": "PUT",
            "url": {
              "raw": "{{baseUrl}}/notifications/{{notification_id}}/unread",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "{{notification_id}}", "unread"]
            }
          }
        },
        {
          "name": "Delete Notification",
          "request": {
            "method": "DELETE",
            "url": {
              "raw": "{{baseUrl}}/notifications/{{notification_id}}",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "{{notification_id}}"]
            }
          }
        },
        {
          "name": "Mark All as Read",
          "request": {
            "method": "PUT",
            "url": {
              "raw": "{{baseUrl}}/notifications/mark-all-read",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "mark-all-read"]
            }
          }
        },
        {
          "name": "Get Notification Count",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/notifications/count?status=unread",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "count"],
              "query": [
                {
                  "key": "status",
                  "value": "unread"
                }
              ]
            }
          }
        },
        {
          "name": "Get Notification Types",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/notifications/types",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "types"]
            }
          }
        },
        {
          "name": "Update Notification Preferences",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email_notifications\": true,\n    \"push_notifications\": true,\n    \"sms_notifications\": false,\n    \"notification_types\": {\n        \"employee_updates\": true,\n        \"system_alerts\": true,\n        \"announcements\": false\n    }\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/notifications/preferences",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "preferences"]
            }
          }
        },
        {
          "name": "Get Notification Preferences",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/notifications/preferences",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "preferences"]
            }
          }
        },
        {
          "name": "Bulk Mark as Read",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"notification_ids\": [\"{{notification_id}}\"]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/notifications/bulk-read",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "bulk-read"]
            }
          }
        },
        {
          "name": "Bulk Delete Notifications",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"notification_ids\": [\"{{notification_id}}\"]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/notifications/bulk-delete",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "bulk-delete"]
            }
          }
        },
        {
          "name": "Send Test Notification",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"type\": \"test\",\n    \"title\": \"Test Notification\",\n    \"message\": \"This is a test notification\",\n    \"channels\": [\"database\"]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/notifications/test",
              "host": ["{{baseUrl}}"],
              "path": ["notifications", "test"]
            }
          }
        }
      ]
    },
    {
      "name": "Feature Management",
      "item": [
        {
          "name": "List All Features",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/features",
              "host": ["{{baseUrl}}"],
              "path": ["features"]
            }
          }
        },
        {
          "name": "Check Feature Status",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/features/employee_management/check",
              "host": ["{{baseUrl}}"],
              "path": ["features", "employee_management", "check"]
            }
          }
        },
        {
          "name": "Get Feature Configuration",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/features/employee_management/config",
              "host": ["{{baseUrl}}"],
              "path": ["features", "employee_management", "config"]
            }
          }
        },
        {
          "name": "Enable Feature",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"feature_key\": \"employee_management\",\n    \"company_id\": \"{{company_id}}\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/features/enable",
              "host": ["{{baseUrl}}"],
              "path": ["features", "enable"]
            }
          }
        },
        {
          "name": "Disable Feature",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"feature_key\": \"employee_management\",\n    \"company_id\": \"{{company_id}}\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/features/disable",
              "host": ["{{baseUrl}}"],
              "path": ["features", "disable"]
            }
          }
        },
        {
          "name": "Regional Features",
          "item": [
            {
              "name": "Company Feature Map",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/features/regional/company/{{company_id}}/map",
                  "host": ["{{baseUrl}}"],
                  "path": ["features", "regional", "company", "{{company_id}}", "map"]
                }
              }
            },
            {
              "name": "Regional Overrides",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/features/regional/employee_management/overrides",
                  "host": ["{{baseUrl}}"],
                  "path": ["features", "regional", "employee_management", "overrides"]
                }
              }
            },
            {
              "name": "Regional Usage Stats",
              "request": {
                "method": "GET",
                "url": {
                  "raw": "{{baseUrl}}/features/regional/employee_management/usage-stats",
                  "host": ["{{baseUrl}}"],
                  "path": ["features", "regional", "employee_management", "usage-stats"]
                }
              }
            }
          ]
        }
      ]
    },
    {
      "name": "System Health",
      "item": [
        {
          "name": "Health Check",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/../health",
              "host": ["{{baseUrl}}"],
              "path": ["..", "health"]
            }
          }
        }
      ]
    }
  ]
}