Geräte
9 endpoint
Le descrizioni degli endpoint provengono direttamente dall'API e sono in tedesco.
Geräte auflisten
get/v1/devices
Ladepunkte mit aktuellem Zustand, Tarif, Abrechnungsmodell und QR-Code-URL.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
location_idfacoltativo | Query | string |
kindfacoltativo | Query | string |
Risposta 200DeviceList
| Nome | Tipo | Descrizione |
|---|---|---|
objectobbligatorio | "list" | |
dataobbligatorio | Device[] | |
has_moreobbligatorio | boolean |
Errori possibili
- 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/devices \n -H "Authorization: Bearer lh_test_…"{
"object": "list",
"data": [
{
"id": "dev_7d3a9c1b0e2f4a6b",
"object": "device",
"kind": "string",
"livemode": true,
"name": "Ladepunkt Scheune",
"location_id": "string",
"integration_id": "string",
"manufacturer": "string",
"model": "string",
"serial_number": "string",
"max_power_w": 0,
"tariff_id": "string",
"billing": {},
"enabled": true,
"locked": true,
"prepared": true,
"status": "string",
"state": {
"online": true,
"status": "string",
"cable_plugged": true,
"power_w": 0,
"meter_wh": 0,
"authorization_required": true,
"last_seen_at": "2026-10-25T08:30:00.000Z",
"error": "string"
},
"active_session_id": "string",
"connectors": [
{
"id": "string",
"code": "string",
"url": "string"
}
],
"created_at": "string"
}
],
"has_more": true
}Gerät abrufen
get/v1/devices/{id}
Ein Gerät mit Zustand.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
Risposta 200Device
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «dev_» |
objectobbligatorio | "device" | |
kindobbligatorio | string | Geräteart, vorerst «ev_charger» |
livemodeobbligatorio | boolean | |
nameobbligatorio | string | |
location_idobbligatorio | string | |
integration_idobbligatorio | string | null | |
manufacturerobbligatorio | string | null | |
modelobbligatorio | string | null | |
serial_numberobbligatorio | string | null | |
max_power_wobbligatorio | integer | null | |
tariff_idobbligatorio | string | null | |
billingobbligatorio | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledobbligatorio | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedobbligatorio | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedobbligatorio | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusobbligatorio | string | Zusammengefasster Status für Anzeigen |
stateobbligatorio | DeviceState | |
active_session_idobbligatorio | string | null | |
connectorsobbligatorio | object[] | |
created_atobbligatorio | string |
Errori possibili
- 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/devices/{id} \n -H "Authorization: Bearer lh_test_…"{
"id": "dev_7d3a9c1b0e2f4a6b",
"object": "device",
"kind": "string",
"livemode": true,
"name": "Ladepunkt Scheune",
"location_id": "string",
"integration_id": "string",
"manufacturer": "string",
"model": "string",
"serial_number": "string",
"max_power_w": 0,
"tariff_id": "string",
"billing": {},
"enabled": true,
"locked": true,
"prepared": true,
"status": "string",
"state": {
"online": true,
"status": "string",
"cable_plugged": true,
"power_w": 0,
"meter_wh": 0,
"authorization_required": true,
"last_seen_at": "2026-10-25T08:30:00.000Z",
"error": "string"
},
"active_session_id": "string",
"connectors": [
{
"id": "string",
"code": "string",
"url": "string"
}
],
"created_at": "string"
}Gerät ändern
patch/v1/devices/{id}
Name, Standort, Tarif, Abrechnungsmodell (reservation, prepaid, both), Reservationsgrenzen, Pakete. `enabled: true` aktiviert das Gerät und setzt beim Hersteller «Autorisierung erforderlich».
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
Richiesta
| Nome | Tipo | Descrizione |
|---|---|---|
namefacoltativo | string | |
location_idfacoltativo | string | |
tariff_idfacoltativo | string | null | |
billingfacoltativo | object | |
enabledfacoltativo | boolean |
Risposta 200Device
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «dev_» |
objectobbligatorio | "device" | |
kindobbligatorio | string | Geräteart, vorerst «ev_charger» |
livemodeobbligatorio | boolean | |
nameobbligatorio | string | |
location_idobbligatorio | string | |
integration_idobbligatorio | string | null | |
manufacturerobbligatorio | string | null | |
modelobbligatorio | string | null | |
serial_numberobbligatorio | string | null | |
max_power_wobbligatorio | integer | null | |
tariff_idobbligatorio | string | null | |
billingobbligatorio | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledobbligatorio | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedobbligatorio | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedobbligatorio | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusobbligatorio | string | Zusammengefasster Status für Anzeigen |
stateobbligatorio | DeviceState | |
active_session_idobbligatorio | string | null | |
connectorsobbligatorio | object[] | |
created_atobbligatorio | string |
Errori possibili
- 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/devices/{id} \n -H "Authorization: Bearer lh_test_…" \n -H "Content-Type: application/json" \n -d '{"name":"string","location_id":"string","tariff_id":"string","billing":{"model":"reservation","reservationDefault":3000,"reservationMin":1000,"reservationMax":10000,"safetyMarginBps":300,"packages":[],"prepaidRemainder":"refund","plugTimeoutMinutes":10,"maxDurationMinutes":1440},"enabled":true}'{
"id": "dev_7d3a9c1b0e2f4a6b",
"object": "device",
"kind": "string",
"livemode": true,
"name": "Ladepunkt Scheune",
"location_id": "string",
"integration_id": "string",
"manufacturer": "string",
"model": "string",
"serial_number": "string",
"max_power_w": 0,
"tariff_id": "string",
"billing": {},
"enabled": true,
"locked": true,
"prepared": true,
"status": "string",
"state": {
"online": true,
"status": "string",
"cable_plugged": true,
"power_w": 0,
"meter_wh": 0,
"authorization_required": true,
"last_seen_at": "2026-10-25T08:30:00.000Z",
"error": "string"
},
"active_session_id": "string",
"connectors": [
{
"id": "string",
"code": "string",
"url": "string"
}
],
"created_at": "string"
}Zustand abfragen
get/v1/devices/{id}/state
Aktueller Zustand. Mit `refresh=true` wird beim Hersteller nachgefragt.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
refreshfacoltativo | Query | boolean | null |
Risposta 200DeviceState
| Nome | Tipo | Descrizione |
|---|---|---|
onlinefacoltativo | boolean | |
statusfacoltativo | string | offline, available, vehicle_connected, awaiting_authorization, charging, suspended, finished, error |
cable_pluggedfacoltativo | boolean | |
power_wfacoltativo | integer | Aktuelle Leistung in Watt |
meter_whfacoltativo | integer | null | Zählerstand in Wh |
authorization_requiredfacoltativo | boolean | null | |
last_seen_atfacoltativo | string | null | Zeitpunkt (ISO 8601, UTC) |
errorfacoltativo | string | null |
Errori possibili
- 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/devices/{id}/state \n -H "Authorization: Bearer lh_test_…"{
"online": true,
"status": "string",
"cable_plugged": true,
"power_w": 0,
"meter_wh": 0,
"authorization_required": true,
"last_seen_at": "2026-10-25T08:30:00.000Z",
"error": "string"
}Ladung ohne Zahlung starten
post/v1/devices/{id}/start
Gibt den Ladepunkt ohne Zahlung frei (z. B. eigenes Auto). Ladehase legt dafür eine Gratis-Sitzung an, damit die Energie erfasst wird.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Intestazione | string |
Risposta 201Session
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «ses_» |
objectobbligatorio | "session" | |
livemodeobbligatorio | boolean | |
stateobbligatorio | string | Zustand gemäss Zustandsautomat (created … settled) |
modeobbligatorio | "reservation" | "prepaid" | "access" | |
channelobbligatorio | "qr" | "terminal" | "api" | "rfid" | "access_link" | |
location_idobbligatorio | string | |
device_idobbligatorio | string | |
connector_idobbligatorio | string | |
currencyobbligatorio | string | |
authorized_amountobbligatorio | integer | Reservierter beziehungsweise bezahlter Betrag in Rappen |
amountobbligatorio | integer | Hochgerechneter Betrag (laufend) oder Endbetrag in Rappen |
captured_amountobbligatorio | integer | Belasteter Betrag in Rappen |
refunded_amountobbligatorio | integer | Zurückerstatteter Betrag in Rappen |
vat_amountobbligatorio | integer | MWST-Anteil in Rappen |
energy_whobbligatorio | integer | Geladene Energie in Wh |
idle_minutesobbligatorio | integer | |
stop_reasonobbligatorio | string | null | |
receipt_numberobbligatorio | string | null | |
started_atobbligatorio | string | null | Zeitpunkt (ISO 8601, UTC) |
ended_atobbligatorio | string | null | Zeitpunkt (ISO 8601, UTC) |
settled_atobbligatorio | string | null | Zeitpunkt (ISO 8601, UTC) |
created_atobbligatorio | string |
Errori possibili
- 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/devices/{id}/start \n -H "Authorization: Bearer lh_test_…"{
"id": "ses_1a2b3c4d5e6f7a8b9c0d",
"object": "session",
"livemode": true,
"state": "string",
"mode": "reservation",
"channel": "qr",
"location_id": "string",
"device_id": "string",
"connector_id": "string",
"currency": "string",
"authorized_amount": 1235,
"amount": 1235,
"captured_amount": 1235,
"refunded_amount": 1235,
"vat_amount": 1235,
"energy_wh": 0,
"idle_minutes": 0,
"stop_reason": "string",
"receipt_number": "string",
"started_at": "2026-10-25T08:30:00.000Z",
"ended_at": "2026-10-25T08:30:00.000Z",
"settled_at": "2026-10-25T08:30:00.000Z",
"created_at": "string"
}Ladung am Gerät stoppen
post/v1/devices/{id}/stop
Stoppt die laufende Sitzung des Geräts und rechnet ab. Ohne Sitzung wird nur der Stoppbefehl gesendet.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Intestazione | string |
Risposta 200Object
Errori possibili
- 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/devices/{id}/stop \n -H "Authorization: Bearer lh_test_…"{}Gerät sperren
post/v1/devices/{id}/lock
Keine neuen Ladungen, laufende Ladung läuft weiter.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Intestazione | string |
Risposta 200Device
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «dev_» |
objectobbligatorio | "device" | |
kindobbligatorio | string | Geräteart, vorerst «ev_charger» |
livemodeobbligatorio | boolean | |
nameobbligatorio | string | |
location_idobbligatorio | string | |
integration_idobbligatorio | string | null | |
manufacturerobbligatorio | string | null | |
modelobbligatorio | string | null | |
serial_numberobbligatorio | string | null | |
max_power_wobbligatorio | integer | null | |
tariff_idobbligatorio | string | null | |
billingobbligatorio | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledobbligatorio | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedobbligatorio | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedobbligatorio | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusobbligatorio | string | Zusammengefasster Status für Anzeigen |
stateobbligatorio | DeviceState | |
active_session_idobbligatorio | string | null | |
connectorsobbligatorio | object[] | |
created_atobbligatorio | string |
Errori possibili
- 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/devices/{id}/lock \n -H "Authorization: Bearer lh_test_…"{
"id": "dev_7d3a9c1b0e2f4a6b",
"object": "device",
"kind": "string",
"livemode": true,
"name": "Ladepunkt Scheune",
"location_id": "string",
"integration_id": "string",
"manufacturer": "string",
"model": "string",
"serial_number": "string",
"max_power_w": 0,
"tariff_id": "string",
"billing": {},
"enabled": true,
"locked": true,
"prepared": true,
"status": "string",
"state": {
"online": true,
"status": "string",
"cable_plugged": true,
"power_w": 0,
"meter_wh": 0,
"authorization_required": true,
"last_seen_at": "2026-10-25T08:30:00.000Z",
"error": "string"
},
"active_session_id": "string",
"connectors": [
{
"id": "string",
"code": "string",
"url": "string"
}
],
"created_at": "string"
}Gerät entsperren
post/v1/devices/{id}/unlock
Hebt die Sperre auf.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Intestazione | string |
Risposta 200Device
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «dev_» |
objectobbligatorio | "device" | |
kindobbligatorio | string | Geräteart, vorerst «ev_charger» |
livemodeobbligatorio | boolean | |
nameobbligatorio | string | |
location_idobbligatorio | string | |
integration_idobbligatorio | string | null | |
manufacturerobbligatorio | string | null | |
modelobbligatorio | string | null | |
serial_numberobbligatorio | string | null | |
max_power_wobbligatorio | integer | null | |
tariff_idobbligatorio | string | null | |
billingobbligatorio | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledobbligatorio | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedobbligatorio | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedobbligatorio | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusobbligatorio | string | Zusammengefasster Status für Anzeigen |
stateobbligatorio | DeviceState | |
active_session_idobbligatorio | string | null | |
connectorsobbligatorio | object[] | |
created_atobbligatorio | string |
Errori possibili
- 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/devices/{id}/unlock \n -H "Authorization: Bearer lh_test_…"{
"id": "dev_7d3a9c1b0e2f4a6b",
"object": "device",
"kind": "string",
"livemode": true,
"name": "Ladepunkt Scheune",
"location_id": "string",
"integration_id": "string",
"manufacturer": "string",
"model": "string",
"serial_number": "string",
"max_power_w": 0,
"tariff_id": "string",
"billing": {},
"enabled": true,
"locked": true,
"prepared": true,
"status": "string",
"state": {
"online": true,
"status": "string",
"cable_plugged": true,
"power_w": 0,
"meter_wh": 0,
"authorization_required": true,
"last_seen_at": "2026-10-25T08:30:00.000Z",
"error": "string"
},
"active_session_id": "string",
"connectors": [
{
"id": "string",
"code": "string",
"url": "string"
}
],
"created_at": "string"
}Testgerät steuern
post/v1/devices/{id}/simulate
Nur Testmodus: simuliertes Auto anstecken (`plug`), abziehen (`unplug`), offline, Störung, Leistung ändern.
Parametri
| Nome | Posizione | Tipo |
|---|---|---|
idobbligatorio | Percorso | string |
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Intestazione | string |
Richiesta
| Nome | Tipo | Descrizione |
|---|---|---|
actionobbligatorio | "plug" | "unplug" | "offline" | "online" | "error" | "clear_error" | "set_power" | |
vehicle_need_whfacoltativo | integer | |
power_wfacoltativo | integer |
Risposta 200DeviceState
| Nome | Tipo | Descrizione |
|---|---|---|
onlinefacoltativo | boolean | |
statusfacoltativo | string | offline, available, vehicle_connected, awaiting_authorization, charging, suspended, finished, error |
cable_pluggedfacoltativo | boolean | |
power_wfacoltativo | integer | Aktuelle Leistung in Watt |
meter_whfacoltativo | integer | null | Zählerstand in Wh |
authorization_requiredfacoltativo | boolean | null | |
last_seen_atfacoltativo | string | null | Zeitpunkt (ISO 8601, UTC) |
errorfacoltativo | string | null |
Errori possibili
- 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/devices/{id}/simulate \n -H "Authorization: Bearer lh_test_…" \n -H "Content-Type: application/json" \n -d '{"action":"plug","vehicle_need_wh":0,"power_w":0}'{
"online": true,
"status": "string",
"cable_plugged": true,
"power_w": 0,
"meter_wh": 0,
"authorization_required": true,
"last_seen_at": "2026-10-25T08:30:00.000Z",
"error": "string"
}