API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · monthly_closings

Monthly Closing Schema

Schema ID
monthly_closing
Collection
monthly_closings
Permissions
  • Readmonthly_closing_view
  • Createtime_account_close
  • Edittime_account_close
  • Deletetime_account_close

Fields

Monthly Closing Schema

monthly_closings4 permissions

Periodenabschluss eines Zeitkontos mit Lock-Level

userIduuidrequired
accountIduuidrequired

Referenz auf time_account._id

yearintegerrequired
2020 – 2100
monthintegerrequired
1 – 12
lockLevelstringrequired
OPENCLOSEDEXPORTEDHARD_LOCKED
Default: "OPEN"read-only
closedAtdatetimeoptional
read-onlynullable
closedBystringoptional
max 64 charactersread-onlynullable
payrollExportedAtdatetimeoptional
read-onlynullable
payrollExportRefstringoptional

Batch-ID / Referenz der Payroll-Schnittstelle (z.B. DATEV-Batch-Nr.)

max 200 charactersread-onlynullable
summaryobjectoptional

Aggregat des Monats. Wird beim CLOSED-Übergang geschrieben und bei Ripple-Recalc aktualisiert.

read-onlynullable
sollMinutesintegeroptional
≥ 0Default: 0
actualMinutesintegeroptional
≥ 0Default: 0
deltaMinutesintegeroptional

Kombinierter Tagesdelta-Saldo (actual − soll) — Backwards-Compat. Ab ADR 0050a zerlegt in flexDeltaMinutes − shortfallMinutes + overtimeDeltaMinutes.

Default: 0
flexDeltaMinutesintegeroptional

Σ Mehrstunden innerhalb des Gleitzeitrahmens. Bestandteil der FLEX-Konto-Buchung. Siehe ADR 0050a.

≥ 0Default: 0
overtimeDeltaMinutesintegeroptional

Σ Stunden außerhalb des Gleitzeitrahmens (vor Multiplikator). Quelle für die OVERTIME-Konto-Buchung. Siehe ADR 0050a.

≥ 0Default: 0
overtimeCreditedMinutesintegeroptional

Tatsächlich auf das OVERTIME-Konto gebuchte Minuten (saldo-wirksam) = overtimeDeltaMinutes × outsideFlexMultiplier. Bei Approval-Mode (Phase 2): 0 wenn die Buchung PENDING ist; wird beim Approve auf den korrekten Wert gesetzt. Siehe ADR 0050a.

≥ 0Default: 0
overtimePendingMinutesintegeroptional

Auf Genehmigung wartende Minuten (Phase 2 ADR 0050a). Sind in `overtimeDeltaMinutes` enthalten, aber noch NICHT in `overtimeCreditedMinutes`. Werden beim Approve in overtimeCreditedMinutes überführt.

≥ 0Default: 0
shortfallMinutesintegeroptional

Σ Minus-Stunden des Monats. Wird vom flexDeltaMinutes abgezogen, bevor auf das FLEX-Konto gebucht wird. Siehe ADR 0050a.

≥ 0Default: 0
vacationDaysnumberoptional
≥ 0Default: 0
sickDaysnumberoptional
≥ 0Default: 0
holidayDaysnumberoptional
≥ 0Default: 0
balanceBeforeCloseintegeroptional
Default: 0
balanceAfterCloseintegeroptional
Default: 0
surchargeBreakdownobjectoptional
nullable
baseMinutesintegeroptional
≥ 0Default: 0
nightMinutesintegeroptional
≥ 0Default: 0
weekendMinutesintegeroptional
≥ 0Default: 0
holidayMinutesintegeroptional
≥ 0Default: 0
overtimeMinutesintegeroptional
≥ 0Default: 0
insideFlexWindowMinutesintegeroptional

Summe der Ist-Minuten innerhalb des Gleitzeitrahmens im Monat (nur bei FLEXTIME mit gesetztem flexWindow).

≥ 0Default: 0
outsideFlexWindowMinutesintegeroptional

Summe der Ist-Minuten außerhalb des Gleitzeitrahmens im Monat. Quelle für `summary.overtimeDeltaMinutes` — fließt ab ADR 0050a in das OVERTIME-Konto.

≥ 0Default: 0
appliedPercentsobjectoptional
nightnumberoptional
≥ 0
weekendnumberoptional
≥ 0
holidaynumberoptional
≥ 0
overtimenumberoptional
≥ 0
surchargeAmountCentsintegeroptional
≥ 0Default: 0
recalculationPendingbooleanoptional

Wird auf true gesetzt, wenn eine rückwirkende Änderung erkannt wurde. Der Retro-Worker arbeitet die Neuberechnung ab.

Default: false
recalculationReasonstringoptional

Freitext zur Ursache (z.B. "Krankmeldung 12.03. nachgereicht")

max 1000 charactersnullable
notesstringoptional
max 4000 charactersnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/monthly_closings — List, paginated + filterable
  • GET /api/v1/monthly_closings/<id> — Single entity
  • POST /api/v1/monthly_closings — Create
  • PATCH /api/v1/monthly_closings/<id> — Partial update
  • DELETE /api/v1/monthly_closings/<id> — Soft delete
  • GET /api/v1/monthly_closings/<id>/timeline — Audit + activities

Search