Skip to content

Create illness notification

Creates a new illness notification.

Note: This endpoint requires a user-scoped OAuth token. A pure client_credentials token without user context will be rejected. The issuing user is automatically derived from the token and cannot be set manually.

Request

POST /api/oauth/v2/resource/illness-notifications

HeaderValue
AuthorizationBearer {access_token}
Content-Typeapplication/json

Body parameters

FieldTypeRequiredDescription
customerUuidstringYesUUID of the assigned customer
datestringNoIssue date (YYYY-MM-DD, default: today)
customStartDatestringNoStart of incapacity (YYYY-MM-DD)
customEndDatestringNoExpected end of incapacity (YYYY-MM-DD)
diagnosestringNoDiagnosis code or text
reasonstringNoReason for incapacity
bedrestbooleanNoBed rest required
curfew1StartTimestringNoCurfew period 1 – start time (HH:MM)
curfew1EndTimestringNoCurfew period 1 – end time (HH:MM)
curfew2StartTimestringNoCurfew period 2 – start time (HH:MM)
curfew2EndTimestringNoCurfew period 2 – end time (HH:MM)
hospitalCareStartTimestringNoHospital admission – start time (HH:MM)
hospitalCareEndTimestringNoHospital discharge – end time (HH:MM)
hospitalCareStartDatestringNoHospital admission – date (YYYY-MM-DD)
hospitalCareEndDatestringNoHospital discharge – date (YYYY-MM-DD)
occupationalDiseaseintegerNoOccupational disease (key number)
electricalAccidentbooleanNoElectrical accident
reorderDate1stringNoFollow-up appointment date 1 (YYYY-MM-DD)
reorderDate2stringNoFollow-up appointment date 2 (YYYY-MM-DD)
reorderDate3stringNoFollow-up appointment date 3 (YYYY-MM-DD)
reasonForBackdatingstringNoReason for backdating
specialIllnessReasonstringNoReason for special illness classification
noticeForInsurancestringNoNotice to the insurance carrier
printedbooleanNoMark as already printed

Response

Success (201 Created)

json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "date": "2026-06-09",
    "customStartDate": "2026-06-09",
    "customEndDate": "2026-06-16",
    "diagnose": "J06.9",
    "reason": null,
    "bedrest": false,
    "curfew1StartTime": null,
    "curfew1EndTime": null,
    "curfew2StartTime": null,
    "curfew2EndTime": null,
    "hospitalCareStartTime": null,
    "hospitalCareEndTime": null,
    "hospitalCareStartDate": null,
    "hospitalCareEndDate": null,
    "occupationalDisease": null,
    "electricalAccident": false,
    "reorderDate1": null,
    "reorderDate2": null,
    "reorderDate3": null,
    "reasonForBackdating": null,
    "specialIllnessReason": null,
    "noticeForInsurance": null,
    "printed": false,
    "customer": {
      "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
      "firstName": "Anna",
      "lastName": "Muster"
    }
  }
}

Response fields

See Get illness notification for the full field description.

Beispiele
bash
curl -X POST "https://my.offisy.at/api/oauth/v2/resource/illness-notifications" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "customerUuid": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
    "date": "2026-04-15T10:00:00",
    "customStartDate": "2026-04-15T10:00:00",
    "customEndDate": "2026-04-15T10:00:00",
    "diagnose": "beispiel",
    "reason": "beispiel",
    "bedrest": "beispiel",
    "curfew1StartTime": "beispiel",
    "curfew1EndTime": "beispiel",
    "curfew2StartTime": "beispiel",
    "curfew2EndTime": "beispiel",
    "hospitalCareStartTime": "beispiel",
    "hospitalCareEndTime": "beispiel",
    "hospitalCareStartDate": "2026-04-15T10:00:00",
    "hospitalCareEndDate": "2026-04-15T10:00:00",
    "occupationalDisease": "1",
    "electricalAccident": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
    "reorderDate1": "2026-04-15T10:00:00",
    "reorderDate2": "2026-04-15T10:00:00",
    "reorderDate3": "2026-04-15T10:00:00",
    "reasonForBackdating": "beispiel",
    "specialIllnessReason": "beispiel",
    "noticeForInsurance": "beispiel",
    "printed": "beispiel"
  }'
Parameter
Zuerst Token anfordern

Possible errors

StatusCodeDescription
400invalid_requestNo user-scoped token provided
400validation_errorcustomerUuid missing or invalid
401invalid_clientInvalid or missing access token
403insufficient_scopeScope medicals not present
404not_foundCustomer not found

Offisy GmbH