Berichte
Business+Generieren Sie Berichte und Analysen.
Nur Lesen
Dieser Endpunkt unterstützt nur GET-Anfragen.
Erforderliche Bereiche:
reports
Endpunkte
GET
/api/v1/reports/revenue
Umsatzbericht abrufen
GET
/api/v1/reports/participants
Teilnehmerbericht abrufen
GET
/api/v1/reports/applications
Bewerbungsbericht abrufen
GET
/api/v1/reports/payments
Zahlungsbericht abrufen
GET
/api/v1/reports/overview
Übersichtsbericht abrufen
Abfrageparameter
| Parameter | Beschreibung |
|---|---|
event_key
|
Nach Event-Schlüssel filtern |
date_from
|
Startdatum des Berichts (ISO 8601) |
date_to
|
Enddatum des Berichts (ISO 8601) |
Response-Schema
| Feld | Typ |
|---|---|
report_type
|
string |
filters
|
object |
data
|
object |
generated_at
|
string |
Codebeispiele
curl -X GET "https://your-tenant.plandocket.com/api/v1/reports" \
-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/reports',
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/reports`, {
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/reports', headers=headers)
data = response.json()
print(data)
Beispiel-Antwort
200 OK
{
"data": {
"report_id": 1,
"created_at": 1704067200,
"updated_at": 1704067200
},
"meta": {
"request_id": "req_abc123"
}
}