Stand-Reservierungen
Business+Verwalten Sie Stand-Reservierungen.
Erforderliche Bereiche:
booths
Feature-Flag:
booths
Endpunkte
GET
/api/v1/booth-reservations
Alle Reservierungen auflisten
GET
/api/v1/booth-reservations/{id}
Einzelne Reservierung abrufen
POST
/api/v1/booth-reservations
Neue Reservierung erstellen
PUT/PATCH
/api/v1/booth-reservations/{id}
Reservierung aktualisieren
DELETE
/api/v1/booth-reservations/{id}
Reservierung stornieren
Abfrageparameter
| Parameter | Beschreibung |
|---|---|
event_key
|
Nach Event-Schlüssel filtern |
booth_id
|
Nach Stand-ID filtern |
participant_id
|
Nach Teilnehmer-ID filtern |
status
|
Nach Reservierungsstatus filtern (pending, confirmed, cancelled) |
sort
|
Sortierfeld (booth_number, status, created_at, reserved_at, final_price) |
order
|
Sortierrichtung (ASC oder DESC, Standard: DESC) |
include
|
Verknüpfte Daten einschließen (booth, participant) |
Request-Schema
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
booth_id
|
integer | Ja | Stand-ID zur Reservierung (erforderlich) |
event_participant_id
|
integer | Ja | Teilnehmer-ID für die Reservierung (erforderlich) |
status
|
string | Nein | Reservierungsstatus (pending, confirmed, cancelled) |
notes
|
string | Nein | Interne Notizen |
final_price
|
float | Nein | Endgültiger verhandelter Preis |
cancellation_reason
|
string | Nein | Grund für die Stornierung (beim Aktualisieren des Status auf cancelled) |
Response-Schema
| Feld | Typ |
|---|---|
id
|
integer |
booth_id
|
integer |
event_participant_id
|
integer |
status
|
string |
reserved_at
|
string|null |
confirmed_at
|
string|null |
cancelled_at
|
string|null |
cancellation_reason
|
string|null |
final_price
|
float|null |
price_breakdown
|
object|null |
notes
|
string|null |
created_by
|
integer|null |
created_at
|
string |
updated_at
|
string |
Codebeispiele
curl -X GET "https://your-tenant.plandocket.com/api/v1/booth-reservations" \
-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/booth-reservations',
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/booth-reservations`, {
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/booth-reservations', headers=headers)
data = response.json()
print(data)
Beispiel-Antwort
200 OK
{
"data": {
"booth-reservation_id": 1,
"created_at": 1704067200,
"updated_at": 1704067200
},
"meta": {
"request_id": "req_abc123"
}
}