Skip to content

List Services

Returns a paginated list of all services.

Request

GET /api/oauth/v2/resource/services

HeaderValue
AuthorizationBearer {access_token}

Query parameters

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)
categoryIdstring (UUID)NoReturn only services of a specific category
includeTypesstringNoComma-separated list of types to return in addition to regular services. Possible values: service_pause, service_pause_custom, official_holiday, vacation, illness, or all for all types.

Required scope: services

Response

Success (200 OK)

json
{
  "data": [
    {
      "id": "c3d4e5f6-a7b8-9012-cdef-012345678901",
      "name": "Erstordination",
      "description": "Erstmaliger Besuch inklusive Anamnese",
      "duration": 60,
      "durationBefore": 5,
      "durationAfter": 10,
      "directBooking": false,
      "isOnlineBookable": true,
      "showDuration": true,
      "price": 120.00,
      "priceVisible": true,
      "color": "#74AFAD",
      "icon": "stethoscope",
      "sort": 0,
      "type": null,
      "category": {
        "id": "d4e5f6a7-b8c9-0123-defa-123456789012",
        "name": "Allgemein",
        "description": null,
        "color": "#00adba",
        "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"
        }
      ]
    }
  ],
  "meta": {
    "total": 25,
    "offset": 0,
    "limit": 50
  }
}

Response fields

FieldTypeDescription
dataArrayList of services
data[].idstring (UUID)Unique service ID
data[].namestringName of the service
data[].descriptionstring | nullDescription text
data[].durationintegerAppointment duration for the customer in minutes
data[].durationBeforeintegerPreparation time in minutes
data[].durationAfterintegerFollow-up time in minutes
data[].directBookingbooleanWhether the service can be booked directly (without confirmation)
data[].isOnlineBookablebooleanWhether the service is bookable online
data[].showDurationbooleanWhether the duration is displayed
data[].pricenumber | nullPrice (gross)
data[].priceVisiblebooleanWhether the price is displayed
data[].colorstringColor as hex code (e.g. #74AFAD)
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
meta.totalintegerTotal number of services
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned results
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/services?offset=0&limit=50&categoryId=b2c3d4e5-f6a7-8901-bcde-f01234567890&includeTypes=beispiel" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

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

Offisy GmbH