Developer Dokumentation
Integriere Sendatip in deine eigenen Systeme. Rufe Pools, Transaktionen und Analytics direkt über unsere REST API ab.
https:/.sendatip.de/api/api/v1Authentifizierung
Alle Anfragen an die API müssen mit einem gültigen API Key authentifiziert werden. Sende den Key im HTTP-Header X-API-Key mit.
curl https://api.sendatip.de/api/v1/pools \
-H "X-API-Key: sk_live_your_key_here"/v1/poolsPools abrufen
Gibt alle Pools deiner Organisation zurück – inklusive direktem Tip-Link pro Pool.
Keine Query-Parameter
Beispiel-Request
curl https://api.sendatip.de/api/v1/pools \
-H "X-API-Key: sk_live_your_key_here"Beispiel-Antwort
{
"success": true,
"pools": [
{
"id": "uuid",
"code": "HOTEL-BAR",
"name": "Hotel Bar",
"description": "Trinkgeld für die Hotelbar",
"is_active": true,
"created_at": "2026-01-15T10:00:00Z",
"tip_url": "https://sendatip.de/tip/HOTEL-BAR"
}
]
}/v1/pools/:code/qrQR-Code generieren
Gibt den QR-Code für einen Pool als PNG-Bild oder SVG zurück. Ideal für Bondrucker, POS-Displays oder Print-Layouts.
| Parameter | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| code | string | ✓ | Pool-Code (z.B. HOTEL-BAR) |
| format | png|svg | – | Ausgabeformat: png (Standard) oder svg |
| size | number | – | Breite in Pixeln (100–1000, Standard: 300) |
Beispiel-Request
# PNG herunterladen
curl "https://api.sendatip.de/api/v1/pools/HOTEL-BAR/qr?format=png&size=400" \
-H "X-API-Key: sk_live_your_key_here" \
--output qr-hotel-bar.png
# SVG als String
curl "https://api.sendatip.de/api/v1/pools/HOTEL-BAR/qr?format=svg" \
-H "X-API-Key: sk_live_your_key_here"/v1/transactionsTransaktionen
Gibt abgeschlossene Transaktionen deiner Organisation zurück. Filterbar nach Datum und Pool – ideal für Buchhaltung oder DATEV-Export.
| Parameter | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| from | date | – | Startdatum (YYYY-MM-DD) |
| to | date | – | Enddatum (YYYY-MM-DD) |
| pool_code | string | – | Nur Transaktionen eines bestimmten Pools |
| limit | number | – | Anzahl Ergebnisse (max. 500, Standard: 50) |
| offset | number | – | Offset für Paginierung (Standard: 0) |
Beispiel-Request
curl "https://api.sendatip.de/api/v1/transactions?from=2026-01-01&to=2026-06-30&limit=100" \
-H "X-API-Key: sk_live_your_key_here"Beispiel-Antwort
{
"success": true,
"transactions": [
{
"id": "uuid",
"amount": 500,
"currency": "eur",
"status": "completed",
"created_at": "2026-06-15T14:23:00Z",
"pool": { "code": "HOTEL-BAR", "name": "Hotel Bar" },
"recipient": { "display_name": "Maria M.", "email": "maria@example.com" }
}
],
"meta": { "limit": 100, "offset": 0 }
}/v1/analytics/summaryAnalytics Summary
Gibt eine Zusammenfassung für den gewählten Zeitraum zurück: Gesamtumsatz, Anzahl Transaktionen, Durchschnitt und umsatzstärkster Pool.
| Parameter | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| from | date | – | Startdatum (YYYY-MM-DD) |
| to | date | – | Enddatum (YYYY-MM-DD) |
Beispiel-Request
curl "https://api.sendatip.de/api/v1/analytics/summary?from=2026-01-01&to=2026-06-30" \
-H "X-API-Key: sk_live_your_key_here"Beispiel-Antwort
{
"success": true,
"summary": {
"total_amount": 125400,
"transaction_count": 312,
"average_amount": 402,
"currency": "eur",
"top_pool": {
"code": "HOTEL-BAR",
"name": "Hotel Bar",
"amount": 48200
}
}
}Fehlercodes
Alle Fehler werden als JSON mit den Feldern error.code und error.message zurückgegeben.
| HTTP | Code | Bedeutung |
|---|---|---|
| 401 | INVALID_API_KEY | API Key fehlt, ungültig oder falsches Format |
| 401 | API_KEY_REVOKED | API Key wurde widerrufen |
| 404 | POOL_NOT_FOUND | Pool mit diesem Code existiert nicht oder gehört nicht zu deiner Organisation |
| 429 | RATE_LIMITED | Zu viele Anfragen – bitte Rate Limiting beachten |
| 500 | FETCH_ERROR | Interner Serverfehler |