Neue API-Version v7.4.2 wurde veröffentlicht! 🎉
REST Dokumentation
GET Abwesenheiten

Alle Abwesenheiten abrufen

Mit diesem Endpunkt können Sie eine paginierte Liste aller Abwesenheiten abrufen.

Request

GET /api/v1/absences
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/absences' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Response

{
	"data": [
		{
			"id": 1,
			"employee_id": "max.mustermann",
			"type": 0,
			"start_date": "2024-01-15T00:00:00.000000Z",
			"end_date": "2024-01-16T00:00:00.000000Z",
			"hours": "0.0000000000",
			"from": null,
			"to": null,
			"note": null,
			"approved": true,
			"timezone": null,
			"created": null,
			"modified": null,
			"absence_reason_id": "FA",
			"absenceReason": {
				"name": "FA",
				"comment": "Freizeitausgleich|en:Compensation",
				"approve": 1,
				"allow_self_entry": 1,
				"allow_half_day_holiday": 1,
				"allow_hours_of_vacation": 1,
				"anyone_can_see_name": 0,
				"color": "#1f8a70",
				"type": {
					"id": 3,
					"name": "flexitime"
				},
				"client_calendar_category": null,
				"inform_employee_upon_approval_or_revocation": 1,
				"created": null,
				"modified": null
			},
			"leaveApprovalApplication": null
		},
		{
			"id": 2,
			"employee_id": "erika.musterfrau",
			"type": 0,
			"start_date": "2024-02-20T00:00:00.000000Z",
			"end_date": "2024-02-20T00:00:00.000000Z",
			"hours": "0.0000000000",
			"from": null,
			"to": null,
			"note": null,
			"approved": true,
			"timezone": null,
			"created": null,
			"modified": null,
			"absence_reason_id": "UB",
			"absenceReason": {
				"name": "UB",
				"comment": "Urlaub|en:Holiday",
				"approve": 1,
				"allow_self_entry": 1,
				"allow_half_day_holiday": 1,
				"allow_hours_of_vacation": 1,
				"anyone_can_see_name": 1,
				"color": "#f39c12",
				"type": {
					"id": 0,
					"name": "annual holiday"
				},
				"client_calendar_category": null,
				"inform_employee_upon_approval_or_revocation": 1,
				"created": null,
				"modified": null
			},
			"leaveApprovalApplication": null
		}
	]
}

Optionale Parameter

  • Name
    start_date
    Type
    date | Y-m-d
    Description

    Erster Tag des abzufragenden Zeitraums. Die Angabe ist inklusiv, d.h. der als start_date angegebene Tag wird auch in den Ergebnissen berücksichtigt.

  • Name
    end_date
    Type
    date | Y-m-d
    Description

    Letzter Tag des abzufragenden Zeitraums. Er ist inklusiv, d. h. der als end_date angegebene Tag wird in den Ergebnissen ebenfalls berücksichtigt.

  • Name
    employee_id
    Type
    string
    Description

    Der Username des Mitarbeiters, dessen Abwesenheiten abgefragt werden sollen.

  • Name
    limit
    Type
    integer
    Description

    Attribut zur Begrenzung der Einträge pro Seite