PlanDocket

Dienstleistungsbestellungen

Business+

Bestellungen für Zusatzleistungen anzeigen.

Nur Lesen Dieser Endpunkt unterstützt nur GET-Anfragen.
Erforderliche Bereiche: service_orders
Feature-Flag: service_orders

Endpunkte

GET /api/v1/service-orders

Alle Bestellungen auflisten

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

Einzelne Bestellung abrufen

Abfrageparameter

Parameter Beschreibung
event_key Nach Event-Schlüssel filtern
status Nach Bestellungsstatus filtern
participant_id Nach Teilnehmer-ID filtern
order_number Nach Bestellnummer filtern
sort Sortierfeld (order_number, total, status, submitted_at, created_at)
order Sortierrichtung (ASC oder DESC, Standard: DESC)
include Verknüpfte Daten einschließen (items, participant)

Response-Schema

Feld Typ
id integer
order_number string|null
event_participant_id integer|null
status string
subtotal float
tax_total float
total float
currency string
notes string|null
submitted_at string|null
confirmed_at string|null
cancelled_at string|null
cancellation_reason string|null
created_at string
updated_at string

Codebeispiele

curl -X GET "https://your-tenant.plandocket.com/api/v1/service-orders" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
<?php
$apiKey = 'YOUR_API_KEY';
$baseUrl = 'https://your-tenant.plandocket.com';

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

$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);

print_r($data);
const apiKey = 'YOUR_API_KEY';
const baseUrl = 'https://your-tenant.plandocket.com';

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

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

api_key = 'YOUR_API_KEY'
base_url = 'https://your-tenant.plandocket.com'

headers = {
    'Authorization': f'Bearer {api_key}',
    'Content-Type': 'application/json',
}

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

Beispiel-Antwort

200 OK
{
  "data": {
    "service-order_id": 1,
    "created_at": 1704067200,
    "updated_at": 1704067200
  },
  "meta": {
    "request_id": "req_abc123"
  }
}
API Version v1.0
Esc zum Schließen