Référence API
Exemple Réponse 200
Exemple Réponse 201 Exemple Réponse 200
Exemple Réponse 200
Exemple Réponse 200
Exemple Réponse 201
Terminals
6 endpoints
Les descriptions des endpoints proviennent directement de l'API et sont en allemand.
Terminals auflisten
get/v1/terminals
Gekoppelte PAX IM30.
Réponse 200TerminalList
| Nom | Type | Description |
|---|---|---|
objectobligatoire | "list" | |
dataobligatoire | Terminal[] | |
has_moreobligatoire | boolean |
Erreurs possibles
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X GET https://api.ladehase.com/v1/terminals \n -H "Authorization: Bearer lh_test_…"{
"object": "list",
"data": [
{
"id": "trm_6b0c2d8e1f3a5b7c",
"object": "terminal",
"name": "string",
"model": "string",
"location_id": "string",
"integration_id": "string",
"external_terminal_id": "string",
"paired": true,
"online": true,
"app_version": "string",
"last_seen_at": "2026-10-25T08:30:00.000Z",
"created_at": "string"
}
],
"has_more": true
}Terminal anlegen
post/v1/terminals
Neues PAX IM30 für einen Standort. Antwort enthält den Wartungs-PIN (nur einmal sichtbar).
Paramètres
| Nom | Emplacement | Type |
|---|---|---|
idempotency-keyfacultatifWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | En-tête | string |
Requête
| Nom | Type | Description |
|---|---|---|
namefacultatif | string | |
location_idobligatoire | string | |
integration_idfacultatif | string | null | |
external_terminal_idfacultatif | string | null | |
maintenance_pinfacultatif | string |
Réponse 201Terminal
| Nom | Type | Description |
|---|---|---|
idobligatoire | string | ID mit Präfix «trm_» |
objectobligatoire | "terminal" | |
nameobligatoire | string | |
modelobligatoire | string | |
location_idobligatoire | string | |
integration_idobligatoire | string | null | |
external_terminal_idobligatoire | string | null | Terminal-ID bei Freika |
pairedobligatoire | boolean | |
onlineobligatoire | boolean | |
app_versionobligatoire | string | null | |
last_seen_atobligatoire | string | null | Zeitpunkt (ISO 8601, UTC) |
created_atobligatoire | string |
Erreurs possibles
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X POST https://api.ladehase.com/v1/terminals \n -H "Authorization: Bearer lh_test_…" \n -H "Content-Type: application/json" \n -d '{"name":"PAX IM30","location_id":"string","integration_id":"string","external_terminal_id":"string","maintenance_pin":"string"}'{
"id": "trm_6b0c2d8e1f3a5b7c",
"object": "terminal",
"name": "string",
"model": "string",
"location_id": "string",
"integration_id": "string",
"external_terminal_id": "string",
"paired": true,
"online": true,
"app_version": "string",
"last_seen_at": "2026-10-25T08:30:00.000Z",
"created_at": "string"
}Freika-Terminals
get/v1/terminals/available
Terminals im verbundenen Freika-Konto zur Auswahl beim Koppeln.
Réponse 200Object
Erreurs possibles
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X GET https://api.ladehase.com/v1/terminals/available \n -H "Authorization: Bearer lh_test_…"{}Terminal ändern
patch/v1/terminals/{id}
Name, Standort, Freika-Terminal, Wartungs-PIN.
Paramètres
| Nom | Emplacement | Type |
|---|---|---|
idobligatoire | Chemin | string |
Requête
| Nom | Type | Description |
|---|---|---|
namefacultatif | string | |
location_idfacultatif | string | |
integration_idfacultatif | string | null | |
external_terminal_idfacultatif | string | null | |
maintenance_pinfacultatif | string |
Réponse 200Terminal
| Nom | Type | Description |
|---|---|---|
idobligatoire | string | ID mit Präfix «trm_» |
objectobligatoire | "terminal" | |
nameobligatoire | string | |
modelobligatoire | string | |
location_idobligatoire | string | |
integration_idobligatoire | string | null | |
external_terminal_idobligatoire | string | null | Terminal-ID bei Freika |
pairedobligatoire | boolean | |
onlineobligatoire | boolean | |
app_versionobligatoire | string | null | |
last_seen_atobligatoire | string | null | Zeitpunkt (ISO 8601, UTC) |
created_atobligatoire | string |
Erreurs possibles
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X PATCH https://api.ladehase.com/v1/terminals/{id} \n -H "Authorization: Bearer lh_test_…" \n -H "Content-Type: application/json" \n -d '{"name":"PAX IM30","location_id":"string","integration_id":"string","external_terminal_id":"string","maintenance_pin":"string"}'{
"id": "trm_6b0c2d8e1f3a5b7c",
"object": "terminal",
"name": "string",
"model": "string",
"location_id": "string",
"integration_id": "string",
"external_terminal_id": "string",
"paired": true,
"online": true,
"app_version": "string",
"last_seen_at": "2026-10-25T08:30:00.000Z",
"created_at": "string"
}Terminal entfernen
delete/v1/terminals/{id}
Die App muss danach neu gekoppelt werden.
Paramètres
| Nom | Emplacement | Type |
|---|---|---|
idobligatoire | Chemin | string |
Réponse 200Deleted
| Nom | Type | Description |
|---|---|---|
idobligatoire | string | |
objectobligatoire | string | |
deletedobligatoire | true |
Erreurs possibles
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X DELETE https://api.ladehase.com/v1/terminals/{id} \n -H "Authorization: Bearer lh_test_…"{
"id": "string",
"object": "string",
"deleted": true
}Kopplungscode
post/v1/terminals/{id}/pairing_codes
Code und QR-Inhalt zum Koppeln der Terminal-App (15 Minuten gültig).
Paramètres
| Nom | Emplacement | Type |
|---|---|---|
idobligatoire | Chemin | string |
idempotency-keyfacultatifWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | En-tête | string |
Réponse 201Object
Erreurs possibles
- 400 Anfrage ungültig
- 401 Nicht angemeldet
- 403 Berechtigung fehlt
- 404 Nicht gefunden
- 409 Zustand passt nicht
- 429 Zu viele Anfragen
curl -X POST https://api.ladehase.com/v1/terminals/{id}/pairing_codes \n -H "Authorization: Bearer lh_test_…"{}