Skip to content

Service Details

Returns the details of a single service.

Request

GET /api/oauth/v2/resource/services/{uuid}

HeaderValue
AuthorizationBearer {access_token}

URL parameters

ParameterTypeRequiredDescription
uuidstring (UUID)YesUnique service ID

Required scope: services

Response

Success (200 OK)

json
{
  "data": {
    "id": "c3d4e5f6-a7b8-9012-cdef-234567890123",
    "name": "Erstgespräch",
    "description": "Erstkonsultation für Neupatienten",
    "duration": 30,
    "durationBefore": 0,
    "durationAfter": 5,
    "directBooking": true,
    "isOnlineBookable": true,
    "showDuration": true,
    "price": 80.00,
    "priceVisible": true,
    "color": "#df3a7f",
    "icon": "stethoscope",
    "sort": 0,
    "type": null,
    "category": {
      "id": "d4e5f6a7-b8c9-0123-defa-123456789012",
      "name": "Allgemein",
      "description": "Allgemeine Leistungen für Neupatienten",
      "color": "#74AFAD",
      "sort": 0,
      "tenancies": [
        {
          "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
          "name": "Ordination Muster",
          "abbreviation": "OM",
          "color": "#00adba"
        }
      ]
    },
    "tenancies": [
      {
        "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
        "name": "Ordination Muster",
        "abbreviation": "OM",
        "color": "#00adba"
      }
    ]
  }
}

Response fields

FieldTypeDescription
data.idstring (UUID)Unique service ID
data.namestringName of the service
data.descriptionstring | nullDescription text
data.durationintegerDuration of the service in minutes
data.durationBeforeintegerPreparation time in minutes
data.durationAfterintegerFollow-up time in minutes
data.directBookingbooleanWhether direct booking is possible
data.isOnlineBookablebooleanWhether the service is bookable online
data.showDurationbooleanWhether the duration is shown in the booking calendar
data.pricenumber | nullPrice in euros
data.priceVisiblebooleanWhether the price is publicly visible
data.colorstring | nullColor as hex code (e.g. #df3a7f)
data.iconstring | nullIcon name
data.sortintegerSort order
data.typestring | nullnull = regular service. Possible values: service_pause (break), service_pause_custom (custom break), official_holiday (public holiday), vacation (vacation), illness (sick leave)
data.categoryobject | nullAssigned category
data.category.idstring (UUID)Unique category ID
data.category.namestringName of the category
data.category.descriptionstring | nullDescription text of the category
data.category.colorstringColor of the category as hex code
data.category.sortintegerSort order of the category
data.category.tenanciesArrayAssigned tenants of the category
data.category.tenancies[].idstring (UUID)Tenant ID
data.category.tenancies[].namestringName of the tenant
data.category.tenancies[].abbreviationstringAbbreviation
data.category.tenancies[].colorstringColor as hex code
data.tenanciesArrayAssigned tenants
data.tenancies[].idstring (UUID)Tenant ID
data.tenancies[].namestringName of the tenant
data.tenancies[].abbreviationstringAbbreviation
data.tenancies[].colorstringColor as hex code

Note: The API returns additional internal fields not documented here. Only use the fields described here — all others may change without notice.

Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/services/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

StatusCodeDescription
401invalid_clientInvalid or missing access token
403insufficient_scopeScope services not present
404not_foundService not found

Offisy GmbH