PlanDocket

Dienstleistungskategorien

Business+

Die Kategorien Ihres Dienstleistungskatalogs abrufen (Technik, Mobiliar usw.).

Nur Lesen Dieser Endpunkt unterstützt nur GET-Anfragen.
Erforderliche Bereiche: services
Zugriffsstufe: GET services:read Mehr zu Zugriffsstufen
Feature-Flag: services

Endpunkte

GET /api/v1/service-categories

Dienstleistungskategorien auflisten (standardmäßig aktive; is_active=all für alle)

GET /api/v1/service-categories/{id}

Einzelne Dienstleistungskategorie abrufen

Abfrageparameter

Parameter Beschreibung
is_active Standard: nur aktive Einträge; 0 = nur inaktive, all = alle
page Seitennummer (Standard: 1)
per_page Ergebnisse pro Seite (Standard: 25, max. 100)

Response-Schema

Feld Typ
id integer
category_key string
category_name string
description string|null
color string|null
is_active boolean
sort_order integer
service_count integer
created_at string
updated_at string

Codebeispiele

curl -X GET "https://ihr-mandant.plandocket.com/api/v1/service-categories" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$apiKey = 'YOUR_API_KEY';
$baseUrl = 'https://ihr-mandant.plandocket.com';

$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $baseUrl . '/api/v1/service-categories',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . $apiKey,
    ],
]);

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
print_r($data);
const apiKey = 'YOUR_API_KEY';
const baseUrl = 'https://ihr-mandant.plandocket.com';

const response = await fetch(`${baseUrl}/api/v1/service-categories`, {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${apiKey}`,
  },
});

const data = await response.json();
console.log(data);
import requests

api_key = 'YOUR_API_KEY'
base_url = 'https://ihr-mandant.plandocket.com'

headers = {
    'Authorization': f'Bearer {api_key}',
}

response = requests.get(f'{base_url}/api/v1/service-categories', headers=headers)
data = response.json()
print(data)

Beispiel-Antwort

200 OK
{
    "data": [
        {
            "id": 1,
            "category_key": "string",
            "category_name": "string",
            "description": "string",
            "color": "string",
            "is_active": true,
            "sort_order": 1,
            "service_count": 1,
            "created_at": "2026-01-15T10:00:00+01:00",
            "updated_at": "2026-01-15T10:00:00+01:00"
        }
    ],
    "meta": {
        "current_page": 1,
        "per_page": 25,
        "total": 1,
        "total_pages": 1
    }
}
API Version v1.0