Skip to content

Create medical fee service

Creates a new medical fee service.

Note: This endpoint requires a user-scoped OAuth token. A pure client_credentials token without user context will be rejected.

Request

POST /api/oauth/v2/resource/medicals

HeaderValue
AuthorizationBearer {access_token}
Content-Typeapplication/json

Body parameters

FieldTypeRequiredDescription
customerUuidstringYesUUID of the assigned customer
namestringYesName of the service
quantityfloatNoNumber of units (default: 1)
grossfloatNoGross amount (default: 0)
datestringNoService date (YYYY-MM-DD, default: today)
internalNumberstringNoInternal service number
diagnosestringNoDiagnosis (e.g. ICD code)
unitstringNoUnit (e.g. "unit", "hour")

Response

Success (201 Created)

json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Blutabnahme",
    "internalNumber": "02",
    "description": null,
    "diagnose": null,
    "date": "2026-06-08",
    "quantity": 1.0,
    "gross": 25.00,
    "net": 20.83,
    "netPerUnit": 20.83,
    "unit": null,
    "billStatus": 0,
    "customer": {
      "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
      "firstName": "Anna",
      "lastName": "Muster"
    }
  }
}

Response fields

See Get medical fee service for the full field description.

Beispiele
bash
curl -X POST "https://my.offisy.at/api/oauth/v2/resource/medicals" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "customerUuid": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
    "name": "Muster GmbH",
    "quantity": "beispiel",
    "gross": "beispiel",
    "date": "2026-04-15T10:00:00",
    "internalNumber": "beispiel",
    "diagnose": "beispiel",
    "unit": "beispiel"
  }'
Parameter
Zuerst Token anfordern

Possible errors

StatusCodeDescription
400validation_errorInvalid request data (e.g. customerUuid or name missing)
401invalid_clientInvalid or missing access token
403insufficient_scopeScope medicals not present
404not_foundCustomer not found

Offisy GmbH