Vai al contenuto
Riferimento API

Verbindungen

8 endpoint

Le descrizioni degli endpoint provengono direttamente dall'API e sono in tedesco.

Verbindungen auflisten

get/v1/integrations

Verbundene Hersteller (Easee) und Zahlungskonten (zahls.ch, Freika). Zugangsdaten werden nie ausgegeben.

Risposta 200IntegrationList

NomeTipoDescrizione
objectobbligatorio"list"
dataobbligatorioIntegration[]
has_moreobbligatorioboolean

Errori possibili

  • 400 Anfrage ungültig
  • 401 Nicht angemeldet
  • 403 Berechtigung fehlt
  • 404 Nicht gefunden
  • 409 Zustand passt nicht
  • 429 Zu viele Anfragen
Esempio
curl -X GET https://api.ladehase.com/v1/integrations \n  -H "Authorization: Bearer lh_test_…"
Risposta 200
{
  "object": "list",
  "data": [
    {
      "id": "int_4a7c2b9d0e1f3a5c",
      "object": "integration",
      "kind": "easee",
      "livemode": true,
      "name": "string",
      "status": "pending",
      "public_info": {},
      "webhook_url": "string",
      "last_error": "string",
      "last_checked_at": "2026-10-25T08:30:00.000Z",
      "last_synced_at": "2026-10-25T08:30:00.000Z",
      "created_at": "string"
    }
  ],
  "has_more": true
}

Easee verbinden

post/v1/integrations/easee

Meldet sich einmal mit dem Easee-Login an. Ladehase speichert nur die Tokens (verschlüsselt), nie das Passwort, und importiert sofort alle Charger. Neue Charger sind zuerst deaktiviert.

Parametri

NomePosizioneTipo
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden)Intestazionestring

Richiesta

NomeTipoDescrizione
userNameobbligatoriostring
passwordobbligatoriostring

Risposta 201Integration

NomeTipoDescrizione
idobbligatoriostringID mit Präfix «int_»
objectobbligatorio"integration"
kindobbligatorio"easee" | "zaptec" | "ocpp" | "goe" | "shelly" | "mock" | "zahls" | "freika"Hersteller oder Zahlungspartner. «mock» = Testmodus.
livemodeobbligatorioboolean
nameobbligatoriostring
statusobbligatorio"pending" | "active" | "needs_attention" | "disconnected"
public_infoobbligatorioobjectÖffentliche Angaben ohne Geheimnisse
webhook_urlobbligatoriostring | nullBei zahls.ch einzutragende Webhook-URL
last_errorobbligatoriostring | null
last_checked_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
last_synced_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
created_atobbligatoriostring

Errori possibili

  • 400 Anfrage ungültig
  • 401 Nicht angemeldet
  • 403 Berechtigung fehlt
  • 404 Nicht gefunden
  • 409 Zustand passt nicht
  • 429 Zu viele Anfragen
Esempio
curl -X POST https://api.ladehase.com/v1/integrations/easee \n  -H "Authorization: Bearer lh_test_…" \n  -H "Content-Type: application/json" \n  -d '{"userName":"string","password":"string"}'
Risposta 201
{
  "id": "int_4a7c2b9d0e1f3a5c",
  "object": "integration",
  "kind": "easee",
  "livemode": true,
  "name": "string",
  "status": "pending",
  "public_info": {},
  "webhook_url": "string",
  "last_error": "string",
  "last_checked_at": "2026-10-25T08:30:00.000Z",
  "last_synced_at": "2026-10-25T08:30:00.000Z",
  "created_at": "string"
}

zahls.ch-Konto verbinden

post/v1/integrations/zahls

Verbindet das eigene zahls.ch-Konto mit Instanzname und API-Schlüssel. Das Geld fliesst direkt auf dieses Konto.

Parametri

NomePosizioneTipo
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden)Intestazionestring

Richiesta

NomeTipoDescrizione
instanceobbligatoriostring
apiKeyobbligatoriostring

Risposta 201Integration

NomeTipoDescrizione
idobbligatoriostringID mit Präfix «int_»
objectobbligatorio"integration"
kindobbligatorio"easee" | "zaptec" | "ocpp" | "goe" | "shelly" | "mock" | "zahls" | "freika"Hersteller oder Zahlungspartner. «mock» = Testmodus.
livemodeobbligatorioboolean
nameobbligatoriostring
statusobbligatorio"pending" | "active" | "needs_attention" | "disconnected"
public_infoobbligatorioobjectÖffentliche Angaben ohne Geheimnisse
webhook_urlobbligatoriostring | nullBei zahls.ch einzutragende Webhook-URL
last_errorobbligatoriostring | null
last_checked_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
last_synced_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
created_atobbligatoriostring

Errori possibili

  • 400 Anfrage ungültig
  • 401 Nicht angemeldet
  • 403 Berechtigung fehlt
  • 404 Nicht gefunden
  • 409 Zustand passt nicht
  • 429 Zu viele Anfragen
Esempio
curl -X POST https://api.ladehase.com/v1/integrations/zahls \n  -H "Authorization: Bearer lh_test_…" \n  -H "Content-Type: application/json" \n  -d '{"instance":"string","apiKey":"string"}'
Risposta 201
{
  "id": "int_4a7c2b9d0e1f3a5c",
  "object": "integration",
  "kind": "easee",
  "livemode": true,
  "name": "string",
  "status": "pending",
  "public_info": {},
  "webhook_url": "string",
  "last_error": "string",
  "last_checked_at": "2026-10-25T08:30:00.000Z",
  "last_synced_at": "2026-10-25T08:30:00.000Z",
  "created_at": "string"
}

Freika-Konto verbinden

post/v1/integrations/freika

Verbindet das eigene Freika-Konto mit einem API-Schlüssel (Rechte «schreiben» und «Terminals»). Nötig für das PAX IM30.

Parametri

NomePosizioneTipo
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden)Intestazionestring

Richiesta

NomeTipoDescrizione
apiKeyobbligatoriostring

Risposta 201Integration

NomeTipoDescrizione
idobbligatoriostringID mit Präfix «int_»
objectobbligatorio"integration"
kindobbligatorio"easee" | "zaptec" | "ocpp" | "goe" | "shelly" | "mock" | "zahls" | "freika"Hersteller oder Zahlungspartner. «mock» = Testmodus.
livemodeobbligatorioboolean
nameobbligatoriostring
statusobbligatorio"pending" | "active" | "needs_attention" | "disconnected"
public_infoobbligatorioobjectÖffentliche Angaben ohne Geheimnisse
webhook_urlobbligatoriostring | nullBei zahls.ch einzutragende Webhook-URL
last_errorobbligatoriostring | null
last_checked_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
last_synced_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
created_atobbligatoriostring

Errori possibili

  • 400 Anfrage ungültig
  • 401 Nicht angemeldet
  • 403 Berechtigung fehlt
  • 404 Nicht gefunden
  • 409 Zustand passt nicht
  • 429 Zu viele Anfragen
Esempio
curl -X POST https://api.ladehase.com/v1/integrations/freika \n  -H "Authorization: Bearer lh_test_…" \n  -H "Content-Type: application/json" \n  -d '{"apiKey":"string"}'
Risposta 201
{
  "id": "int_4a7c2b9d0e1f3a5c",
  "object": "integration",
  "kind": "easee",
  "livemode": true,
  "name": "string",
  "status": "pending",
  "public_info": {},
  "webhook_url": "string",
  "last_error": "string",
  "last_checked_at": "2026-10-25T08:30:00.000Z",
  "last_synced_at": "2026-10-25T08:30:00.000Z",
  "created_at": "string"
}

Testgeräte anlegen

post/v1/integrations/test

Legt simulierte Ladepunkte und Testzahlungen an. Ideal zum Ausprobieren ohne Hardware und für automatisierte Tests (Schlüssel lh_test_).

Parametri

NomePosizioneTipo
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden)Intestazionestring

Risposta 201Integration

NomeTipoDescrizione
idobbligatoriostringID mit Präfix «int_»
objectobbligatorio"integration"
kindobbligatorio"easee" | "zaptec" | "ocpp" | "goe" | "shelly" | "mock" | "zahls" | "freika"Hersteller oder Zahlungspartner. «mock» = Testmodus.
livemodeobbligatorioboolean
nameobbligatoriostring
statusobbligatorio"pending" | "active" | "needs_attention" | "disconnected"
public_infoobbligatorioobjectÖffentliche Angaben ohne Geheimnisse
webhook_urlobbligatoriostring | nullBei zahls.ch einzutragende Webhook-URL
last_errorobbligatoriostring | null
last_checked_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
last_synced_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
created_atobbligatoriostring

Errori possibili

  • 400 Anfrage ungültig
  • 401 Nicht angemeldet
  • 403 Berechtigung fehlt
  • 404 Nicht gefunden
  • 409 Zustand passt nicht
  • 429 Zu viele Anfragen
Esempio
curl -X POST https://api.ladehase.com/v1/integrations/test \n  -H "Authorization: Bearer lh_test_…"
Risposta 201
{
  "id": "int_4a7c2b9d0e1f3a5c",
  "object": "integration",
  "kind": "easee",
  "livemode": true,
  "name": "string",
  "status": "pending",
  "public_info": {},
  "webhook_url": "string",
  "last_error": "string",
  "last_checked_at": "2026-10-25T08:30:00.000Z",
  "last_synced_at": "2026-10-25T08:30:00.000Z",
  "created_at": "string"
}

Verbindung prüfen

post/v1/integrations/{id}/test

Prüft die Zugangsdaten beim Hersteller oder Zahlungspartner und aktualisiert den Status.

Parametri

NomePosizioneTipo
idobbligatorioPercorsostring
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden)Intestazionestring

Risposta 200Integration

NomeTipoDescrizione
idobbligatoriostringID mit Präfix «int_»
objectobbligatorio"integration"
kindobbligatorio"easee" | "zaptec" | "ocpp" | "goe" | "shelly" | "mock" | "zahls" | "freika"Hersteller oder Zahlungspartner. «mock» = Testmodus.
livemodeobbligatorioboolean
nameobbligatoriostring
statusobbligatorio"pending" | "active" | "needs_attention" | "disconnected"
public_infoobbligatorioobjectÖffentliche Angaben ohne Geheimnisse
webhook_urlobbligatoriostring | nullBei zahls.ch einzutragende Webhook-URL
last_errorobbligatoriostring | null
last_checked_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
last_synced_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
created_atobbligatoriostring

Errori possibili

  • 400 Anfrage ungültig
  • 401 Nicht angemeldet
  • 403 Berechtigung fehlt
  • 404 Nicht gefunden
  • 409 Zustand passt nicht
  • 429 Zu viele Anfragen
Esempio
curl -X POST https://api.ladehase.com/v1/integrations/{id}/test \n  -H "Authorization: Bearer lh_test_…"
Risposta 200
{
  "id": "int_4a7c2b9d0e1f3a5c",
  "object": "integration",
  "kind": "easee",
  "livemode": true,
  "name": "string",
  "status": "pending",
  "public_info": {},
  "webhook_url": "string",
  "last_error": "string",
  "last_checked_at": "2026-10-25T08:30:00.000Z",
  "last_synced_at": "2026-10-25T08:30:00.000Z",
  "created_at": "string"
}

Geräte importieren

post/v1/integrations/{id}/sync

Liest alle Geräte beim Hersteller und legt neue Standorte, Geräte, Ladepunkte und QR-Codes an.

Parametri

NomePosizioneTipo
idobbligatorioPercorsostring
idempotency-keyfacoltativoWiederholbare Anfragen ohne doppelte Wirkung (24 Stunden)Intestazionestring

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
Esempio
curl -X POST https://api.ladehase.com/v1/integrations/{id}/sync \n  -H "Authorization: Bearer lh_test_…"
Risposta 200
{}

Verbindung trennen

delete/v1/integrations/{id}

Löscht die Zugangsdaten. Geräte dieses Herstellers werden deaktiviert.

Parametri

NomePosizioneTipo
idobbligatorioPercorsostring

Risposta 200Integration

NomeTipoDescrizione
idobbligatoriostringID mit Präfix «int_»
objectobbligatorio"integration"
kindobbligatorio"easee" | "zaptec" | "ocpp" | "goe" | "shelly" | "mock" | "zahls" | "freika"Hersteller oder Zahlungspartner. «mock» = Testmodus.
livemodeobbligatorioboolean
nameobbligatoriostring
statusobbligatorio"pending" | "active" | "needs_attention" | "disconnected"
public_infoobbligatorioobjectÖffentliche Angaben ohne Geheimnisse
webhook_urlobbligatoriostring | nullBei zahls.ch einzutragende Webhook-URL
last_errorobbligatoriostring | null
last_checked_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
last_synced_atobbligatoriostring | nullZeitpunkt (ISO 8601, UTC)
created_atobbligatoriostring

Errori possibili

  • 400 Anfrage ungültig
  • 401 Nicht angemeldet
  • 403 Berechtigung fehlt
  • 404 Nicht gefunden
  • 409 Zustand passt nicht
  • 429 Zu viele Anfragen
Esempio
curl -X DELETE https://api.ladehase.com/v1/integrations/{id} \n  -H "Authorization: Bearer lh_test_…"
Risposta 200
{
  "id": "int_4a7c2b9d0e1f3a5c",
  "object": "integration",
  "kind": "easee",
  "livemode": true,
  "name": "string",
  "status": "pending",
  "public_info": {},
  "webhook_url": "string",
  "last_error": "string",
  "last_checked_at": "2026-10-25T08:30:00.000Z",
  "last_synced_at": "2026-10-25T08:30:00.000Z",
  "created_at": "string"
}