Skip to content

List Service Categories

Returns a paginated list of all service categories.

Request

GET /api/oauth/v2/resource/service/categories

HeaderValue
AuthorizationBearer {access_token}

Query parameters

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)

Required scope: services

Response

Success (200 OK)

json
{
  "data": [
    {
      "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"
        }
      ]
    }
  ],
  "meta": {
    "total": 4,
    "offset": 0,
    "limit": 50
  }
}

Response fields

FieldTypeDescription
dataArrayList of categories
data[].idstring (UUID)Unique category ID
data[].namestringName of the category
data[].descriptionstring | nullDescription text
data[].colorstringColor as hex code (e.g. #74AFAD)
data[].sortintegerSort order
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 categories
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries

Note: The id of a category can be used as the categoryId parameter when listing services to return only services in that category.

Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/service/categories?offset=0&limit=50" \
  -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