# Abwesenheitsvorschau berechnen

`GET https://{tenant}.stamp.eu/rest/employees/{employee}/leave_preview/{start}/{end}`

## Pfadparameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `employee` | string | ja | The employee ID |
| `start` | string | ja |  |
| `end` | string | ja |  |

## Query-Parameter

| Name | Typ | Pflicht |
| --- | --- | --- |
| `type` | string \| null | nein |
| `is_half_day` | boolean | nein |
| `first_day_half` | boolean | nein |
| `last_day_half` | boolean | nein |

## Antworten

### 200: `LeavePreviewResource`

| Feld | Typ | Pflicht |
| --- | --- | --- |
| `data` | object | ja |
| `data.start_date` | string | ja |
| `data.end_date` | string | ja |
| `data.type` | string | ja |
| `data.is_half_day` | boolean | ja |
| `data.first_day_half` | boolean | ja |
| `data.last_day_half` | boolean | ja |
| `data.working_days` | number | ja |
| `data.days` | object[] | ja |
| `data.days[].date` | string | ja |
| `data.days[].fraction` | number | ja |
| `data.affects_vacation` | boolean | ja |
| `data.vacation` | object \| null | ja |
| `data.vacation.year` | integer | ja |
| `data.vacation.remaining_before` | number | ja |
| `data.vacation.remaining_after` | number | ja |

### 401: Unauthenticated

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 404: Not found

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Error overview. |

### 422: Validation error

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `message` | string | ja | Errors overview. |
| `errors` | object | ja | A detailed description of each field that failed validation. |
