Geräte
9 Endpunkte
Geräte auflisten
get/v1/devices
Ladepunkte mit aktuellem Zustand, Tarif, Abrechnungsmodell und QR-Code-URL.
Parameter
| Name | Ort | Typ |
|---|---|---|
location_idoptional | Abfrage | string |
kindoptional | Abfrage | string |
Antwort 200DeviceList
| Name | Typ | Beschreibung |
|---|---|---|
objectPflicht | "list" | |
dataPflicht | Device[] | |
has_morePflicht | boolean |
Mögliche Fehler
- 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.
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
Antwort 200Device
| Name | Typ | Beschreibung |
|---|---|---|
idPflicht | string | ID mit Präfix «dev_» |
objectPflicht | "device" | |
kindPflicht | string | Geräteart, vorerst «ev_charger» |
livemodePflicht | boolean | |
namePflicht | string | |
location_idPflicht | string | |
integration_idPflicht | string | null | |
manufacturerPflicht | string | null | |
modelPflicht | string | null | |
serial_numberPflicht | string | null | |
max_power_wPflicht | integer | null | |
tariff_idPflicht | string | null | |
billingPflicht | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledPflicht | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedPflicht | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedPflicht | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusPflicht | string | Zusammengefasster Status für Anzeigen |
statePflicht | DeviceState | |
active_session_idPflicht | string | null | |
connectorsPflicht | object[] | |
created_atPflicht | string |
Mögliche Fehler
- 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».
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
Anfrage
| Name | Typ | Beschreibung |
|---|---|---|
nameoptional | string | |
location_idoptional | string | |
tariff_idoptional | string | null | |
billingoptional | object | |
enabledoptional | boolean |
Antwort 200Device
| Name | Typ | Beschreibung |
|---|---|---|
idPflicht | string | ID mit Präfix «dev_» |
objectPflicht | "device" | |
kindPflicht | string | Geräteart, vorerst «ev_charger» |
livemodePflicht | boolean | |
namePflicht | string | |
location_idPflicht | string | |
integration_idPflicht | string | null | |
manufacturerPflicht | string | null | |
modelPflicht | string | null | |
serial_numberPflicht | string | null | |
max_power_wPflicht | integer | null | |
tariff_idPflicht | string | null | |
billingPflicht | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledPflicht | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedPflicht | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedPflicht | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusPflicht | string | Zusammengefasster Status für Anzeigen |
statePflicht | DeviceState | |
active_session_idPflicht | string | null | |
connectorsPflicht | object[] | |
created_atPflicht | string |
Mögliche Fehler
- 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.
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
refreshoptional | Abfrage | boolean | null |
Antwort 200DeviceState
| Name | Typ | Beschreibung |
|---|---|---|
onlineoptional | boolean | |
statusoptional | string | offline, available, vehicle_connected, awaiting_authorization, charging, suspended, finished, error |
cable_pluggedoptional | boolean | |
power_woptional | integer | Aktuelle Leistung in Watt |
meter_whoptional | integer | null | Zählerstand in Wh |
authorization_requiredoptional | boolean | null | |
last_seen_atoptional | string | null | Zeitpunkt (ISO 8601, UTC) |
erroroptional | string | null |
Mögliche Fehler
- 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.
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
idempotency-keyoptionalWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Kopfzeile | string |
Antwort 201Session
| Name | Typ | Beschreibung |
|---|---|---|
idPflicht | string | ID mit Präfix «ses_» |
objectPflicht | "session" | |
livemodePflicht | boolean | |
statePflicht | string | Zustand gemäss Zustandsautomat (created … settled) |
modePflicht | "reservation" | "prepaid" | "access" | |
channelPflicht | "qr" | "terminal" | "api" | "rfid" | "access_link" | |
location_idPflicht | string | |
device_idPflicht | string | |
connector_idPflicht | string | |
currencyPflicht | string | |
authorized_amountPflicht | integer | Reservierter beziehungsweise bezahlter Betrag in Rappen |
amountPflicht | integer | Hochgerechneter Betrag (laufend) oder Endbetrag in Rappen |
captured_amountPflicht | integer | Belasteter Betrag in Rappen |
refunded_amountPflicht | integer | Zurückerstatteter Betrag in Rappen |
vat_amountPflicht | integer | MWST-Anteil in Rappen |
energy_whPflicht | integer | Geladene Energie in Wh |
idle_minutesPflicht | integer | |
stop_reasonPflicht | string | null | |
receipt_numberPflicht | string | null | |
started_atPflicht | string | null | Zeitpunkt (ISO 8601, UTC) |
ended_atPflicht | string | null | Zeitpunkt (ISO 8601, UTC) |
settled_atPflicht | string | null | Zeitpunkt (ISO 8601, UTC) |
created_atPflicht | string |
Mögliche Fehler
- 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.
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
idempotency-keyoptionalWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Kopfzeile | string |
Antwort 200Object
Mögliche Fehler
- 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.
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
idempotency-keyoptionalWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Kopfzeile | string |
Antwort 200Device
| Name | Typ | Beschreibung |
|---|---|---|
idPflicht | string | ID mit Präfix «dev_» |
objectPflicht | "device" | |
kindPflicht | string | Geräteart, vorerst «ev_charger» |
livemodePflicht | boolean | |
namePflicht | string | |
location_idPflicht | string | |
integration_idPflicht | string | null | |
manufacturerPflicht | string | null | |
modelPflicht | string | null | |
serial_numberPflicht | string | null | |
max_power_wPflicht | integer | null | |
tariff_idPflicht | string | null | |
billingPflicht | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledPflicht | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedPflicht | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedPflicht | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusPflicht | string | Zusammengefasster Status für Anzeigen |
statePflicht | DeviceState | |
active_session_idPflicht | string | null | |
connectorsPflicht | object[] | |
created_atPflicht | string |
Mögliche Fehler
- 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.
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
idempotency-keyoptionalWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Kopfzeile | string |
Antwort 200Device
| Name | Typ | Beschreibung |
|---|---|---|
idPflicht | string | ID mit Präfix «dev_» |
objectPflicht | "device" | |
kindPflicht | string | Geräteart, vorerst «ev_charger» |
livemodePflicht | boolean | |
namePflicht | string | |
location_idPflicht | string | |
integration_idPflicht | string | null | |
manufacturerPflicht | string | null | |
modelPflicht | string | null | |
serial_numberPflicht | string | null | |
max_power_wPflicht | integer | null | |
tariff_idPflicht | string | null | |
billingPflicht | object | Abrechnungsmodell, Reservationsgrenzen, Pakete |
enabledPflicht | boolean | Von Ladehase verwaltet und für Fahrende freigegeben |
lockedPflicht | boolean | Vorübergehend gesperrt (keine neuen Ladungen) |
preparedPflicht | boolean | «Autorisierung erforderlich» beim Hersteller gesetzt |
statusPflicht | string | Zusammengefasster Status für Anzeigen |
statePflicht | DeviceState | |
active_session_idPflicht | string | null | |
connectorsPflicht | object[] | |
created_atPflicht | string |
Mögliche Fehler
- 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.
Parameter
| Name | Ort | Typ |
|---|---|---|
idPflicht | Pfad | string |
idempotency-keyoptionalWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden) | Kopfzeile | string |
Anfrage
| Name | Typ | Beschreibung |
|---|---|---|
actionPflicht | "plug" | "unplug" | "offline" | "online" | "error" | "clear_error" | "set_power" | |
vehicle_need_whoptional | integer | |
power_woptional | integer |
Antwort 200DeviceState
| Name | Typ | Beschreibung |
|---|---|---|
onlineoptional | boolean | |
statusoptional | string | offline, available, vehicle_connected, awaiting_authorization, charging, suspended, finished, error |
cable_pluggedoptional | boolean | |
power_woptional | integer | Aktuelle Leistung in Watt |
meter_whoptional | integer | null | Zählerstand in Wh |
authorization_requiredoptional | boolean | null | |
last_seen_atoptional | string | null | Zeitpunkt (ISO 8601, UTC) |
erroroptional | string | null |
Mögliche Fehler
- 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"
}