App-Einrichtung
Einrichtungscode einlösen
Returns the same payload as `POST /rest/login`. Every failure mode (unknown, expired, revoked, already redeemed, blocked account, issuer no longer entitled to issue it for this account) answers with the identical 422 so token state cannot be probed.
AuthentifizierungBearer <token>
Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).
Ort: header
Request-Body
application/json
TypeScript-Definitionen
TypeScript-Typ für request body.
Response-Body
application/json
application/json
application/json
curl -X POST "https://example.com/enroll" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'{ "token": "string", "user": { "id": "string", "code": "string", "name": "string", "surname": "string", "email": "string", "locale": "string", "type": "string", "role": "string", "role_display_name": "string", "permissions": [ null ], "employee": { "id": "string", "code": "string", "name": "string", "surname": "string", "gender": "male", "birthday": "string", "working_hours": "string", "vacation_days": 0, "employed_start": "string", "employed_end": "string", "employment_status": "employed", "unit": { "id": "string", "name": "string", "parent_id": "string", "permissions": { "property1": true, "property2": true }, "children": [ {} ], "created_at": "string", "updated_at": "string" }, "location": { "id": "string", "name": "string", "phone": "string", "address": "string", "address_additional": "string", "city": "string", "postal_code": "string", "state_region": "string", "country": "string", "timezone": "string", "establishment_id": "string", "establishment": { "id": "string", "name": "string", "bbnr": "string" }, "holidays": [ { "id": "string", "name": "string", "is_system": "string", "source_key": "string", "entries": [ { "id": "string", "date": "string", "name": "string", "half_day": "string" } ], "created_at": "string", "updated_at": "string" } ], "employees_count": 0, "created_at": "string", "updated_at": "string" }, "department": { "id": "string", "name": "string", "description": "string", "created_at": "string", "updated_at": "string" }, "cost_center": { "id": "string", "code": "string", "name": "string", "description": "string", "created_at": "string", "updated_at": "string" }, "position": "string", "avatar_url": "string", "email": "string", "locale": "de", "private_email": "string", "phone": "string", "emergency_contact_name": "string", "emergency_contact_relation": "string", "emergency_contact_phone": "string", "role": "string", "role_display_name": "string", "active": true, "uses_projects": true, "reference_no": "string", "salary_type_work": "string", "salary_type_overtime": "string", "include_in_export": true, "time_account_enabled": true, "weekly_hours_limit": "string", "holiday_auto_compensation": true, "latest_overtime_account": { "year_month": "string", "balance_ms": "string", "earned_ms": "string" }, "work_area_ids": [ "string" ], "onboarding_pending": true, "onboarding": { "has_reference_no": true, "has_email": true, "has_schedule_model": true, "has_holiday_calendar": true, "has_payroll_data": true, "personnel_questionnaire": { "id": "string", "status": "invited", "link_expired": true } }, "has_exports": true, "employment_periods": [ { "id": "string", "started_on": "string", "ended_on": "string", "end_reason": "resignation", "note": "string" } ], "reference_no_history": [ { "id": "string", "reference_no": "string", "valid_from": "string", "valid_until": "string", "reason": "string", "changed_by_name": "string" } ], "created_at": "string", "updated_at": "string" }, "created_at": "string", "updated_at": "string" }, "timezone": "string", "modules": "string", "app_config": { "mobile": { "location": "off", "clock_comment": "off" } }}