Skip to content

Absence Registrations

Export absence registrations — sick leave, vacation, and other time-off records — for BI tools, payroll integrators, and HR systems.

GET /v1/absence-registrations
  • Test: https://core-api.ditio.dev/reporting/v1/absence-registrations
  • Production: https://core-api.ditio.app/reporting/v1/absence-registrations
  • Scope: reportingapiv1 — see Authentication

In addition to the shared extraction filter (Pagination), the absence endpoint supports approval-state filters:

ParameterTypeDescription
FromDateTimedatetimeEarliest absence date to return (filters by absence date)
ToDateTimedatetimeLatest absence date to return
ModifiedSincedatetimeIncremental sync — only records modified at or after this instant
ModifiedBeforedatetimeUpper bound on modification date; requires ModifiedSince
ApprovedboolFilter by regular approval state
ApprovedPayrollboolFilter by payroll approval state
LockedboolFilter by lock state
CompanyIdstringRestrict to a specific company
ProjectIdstringRestrict to absences linked to a specific project
IncludeSensitiveDataboolWhether to include sick-leave reason, child name/birthdate, etc.
ChunkLimitintPage size — default 2500, max 10000
ContinuationTokenstringPagination cursor from the previous response
ModeTriggered bySort orderIncludes deletions?
FullNo ModifiedSince providedBy absence dateNo
IncrementalModifiedSince providedBy modification dateYes — tombstones with isDeleted: true plus deletion metadata

For an integrator pulling absences into a downstream system: run a full sync once to backfill, then switch to incremental sync passing ModifiedSince = <last successful sync timestamp> on subsequent runs.

FieldDescription
idTransaction id
date / qtyThe absence day and hours on that day
absenceTypeIdId of the absence type
absenceTypeCodeExternal code (the value mapped to payroll systems)
absenceTypeNameDisplay name
userIdEmployee identity id
employeeNumberEmployee’s payroll number
projectIdLinked project (if any)
pdfUrlLink to the generated absence PDF, null until generated — see PDF Extraction
Terminal window
export DITIO_REPORTING_BASE="https://core-api.ditio.dev/reporting" # test
curl -H "Authorization: Bearer $TOKEN" \
"$DITIO_REPORTING_BASE/v1/absence-registrations?FromDateTime=2026-01-01&ToDateTime=2026-01-31"

Results are paginated using ContinuationToken. See Pagination.