{
  "info": {
    "name": "Employee Exit API",
    "description": "Employee exit and resignation management endpoints",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "List Employee Exits",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": {
          "raw": "{{base_url}}/exits?per_page=15&page=1&status=on_notice",
          "host": ["{{base_url}}"],
          "path": ["exits"],
          "query": [
            {
              "key": "per_page",
              "value": "15"
            },
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "status",
              "value": "on_notice"
            }
          ]
        }
      }
    },
    {
      "name": "Create Employee Exit",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"user_id\": 1,\n  \"employee_id\": \"EMP001\",\n  \"exit_date\": \"2026-02-28\",\n  \"notice_date\": \"2026-01-30\",\n  \"notice_period_days\": 29,\n  \"exit_reason\": \"resignation\",\n  \"exit_reason_details\": \"Accepted offer from another company\",\n  \"department_id\": 1,\n  \"job_title\": \"Software Engineer\",\n  \"manager_id\": 2,\n  \"final_salary_date\": \"2026-02-28\",\n  \"status\": \"on_notice\",\n  \"internal_notes\": \"Employee gave formal notice\"\n}"
        },
        "url": {
          "raw": "{{base_url}}/exits",
          "host": ["{{base_url}}"],
          "path": ["exits"]
        }
      }
    },
    {
      "name": "Get Employees On Notice",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": {
          "raw": "{{base_url}}/exits/on-notice?per_page=20&page=1",
          "host": ["{{base_url}}"],
          "path": ["exits", "on-notice"],
          "query": [
            {
              "key": "per_page",
              "value": "20"
            },
            {
              "key": "page",
              "value": "1"
            }
          ]
        }
      }
    },
    {
      "name": "Get Employee Exit",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": {
          "raw": "{{base_url}}/exits/1",
          "host": ["{{base_url}}"],
          "path": ["exits", "1"]
        }
      }
    },
    {
      "name": "Delete Employee Exit",
      "request": {
        "method": "DELETE",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": {
          "raw": "{{base_url}}/exits/1",
          "host": ["{{base_url}}"],
          "path": ["exits", "1"]
        }
      }
    },
    {
      "name": "Complete Clearance",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"clearance_items\": [\n    {\n      \"department\": \"IT\",\n      \"cleared\": true,\n      \"cleared_by\": \"John Doe\",\n      \"notes\": \"All IT equipment returned and accounts deactivated\"\n    },\n    {\n      \"department\": \"Finance\",\n      \"cleared\": true,\n      \"cleared_by\": \"Jane Smith\",\n      \"notes\": \"All financial records settled\"\n    },\n    {\n      \"department\": \"HR\",\n      \"cleared\": true,\n      \"cleared_by\": \"Mike Johnson\",\n      \"notes\": \"Final paperwork completed\"\n    }\n  ],\n  \"completed_date\": \"2026-02-27\"\n}"
        },
        "url": {
          "raw": "{{base_url}}/exits/1/complete-clearance",
          "host": ["{{base_url}}"],
          "path": ["exits", "1", "complete-clearance"]
        }
      }
    },
    {
      "name": "Mark as Final Processing",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"processing_notes\": \"Final salary processed and benefits terminated\",\n  \"marked_date\": \"2026-02-28\"\n}"
        },
        "url": {
          "raw": "{{base_url}}/exits/1/final-processing",
          "host": ["{{base_url}}"],
          "path": ["exits", "1", "final-processing"]
        }
      }
    },
    {
      "name": "Complete Exit",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"completion_notes\": \"Employee exit process completed successfully\",\n  \"completed_at\": \"2026-02-28T17:00:00Z\"\n}"
        },
        "url": {
          "raw": "{{base_url}}/exits/1/complete",
          "host": ["{{base_url}}"],
          "path": ["exits", "1", "complete"]
        }
      }
    },
    {
      "name": "Get Exit Clearances",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": {
          "raw": "{{base_url}}/exits/1/clearances",
          "host": ["{{base_url}}"],
          "path": ["exits", "1", "clearances"]
        }
      }
    },
    {
      "name": "Get Remaining Notice Days",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{token}}"
          }
        ],
        "url": {
          "raw": "{{base_url}}/exits/1/remaining-days",
          "host": ["{{base_url}}"],
          "path": ["exits", "1", "remaining-days"]
        }
      }
    }
  ]
}
