List Service Categories
Returns a paginated list of all service categories.
Request
GET /api/oauth/v2/resource/service/categories
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | No | Start position (default: 0) |
limit | integer | No | Number 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
| Field | Type | Description |
|---|---|---|
data | Array | List of categories |
data[].id | string (UUID) | Unique category ID |
data[].name | string | Name of the category |
data[].description | string | null | Description text |
data[].color | string | Color as hex code (e.g. #74AFAD) |
data[].sort | integer | Sort order |
data[].tenancies | Array | Assigned tenants |
data[].tenancies[].id | string (UUID) | Tenant ID |
data[].tenancies[].name | string | Name of the tenant |
data[].tenancies[].abbreviation | string | Abbreviation |
data[].tenancies[].color | string | Color as hex code |
meta.total | integer | Total number of categories |
meta.offset | integer | Current start position |
meta.limit | integer | Number of returned entries |
Note: The
idof a category can be used as thecategoryIdparameter 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
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope services not present |