Riferimento API
Esempio Risposta 200
Esempio Risposta 200
Organisation
2 endpoint
Le descrizioni degli endpoint provengono direttamente dall'API e sono in tedesco.
Organisation abrufen
get/v1/organization
Einstellungen der Organisation dieses API-Schlüssels: Name, Subdomain der Instanz, MWST, Branding, Testmodus.
Risposta 200Organization
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «org_» |
objectobbligatorio | "organization" | |
nameobbligatorio | string | |
slugobbligatorio | string | Subdomain der Instanz |
instance_urlobbligatorio | string | |
test_modeobbligatorio | boolean | Testmodus mit simulierten Ladepunkten und Testzahlungen |
vat_registeredobbligatorio | boolean | |
vat_numberobbligatorio | string | null | |
vat_rate_bpsobbligatorio | integer | MWST-Satz in Basispunkten (810 = 8.1 %) |
accent_colorobbligatorio | 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/organization \n -H "Authorization: Bearer lh_test_…"{
"id": "org_9c1f0b7a2e3d4c5b",
"object": "organization",
"name": "Hof Meier",
"slug": "hof-meier",
"instance_url": "https://hof-meier.ladehase.com",
"test_mode": true,
"vat_registered": true,
"vat_number": "string",
"vat_rate_bps": 0,
"accent_color": "string"
}Organisation ändern
patch/v1/organization
Ändert Name, Subdomain (alte Subdomain bleibt als Weiterleitung), Adresse, MWST, Akzentfarbe, Bedingungen für Fahrende oder Sichtbarkeit der Instanzseite.
Richiesta
| Nome | Tipo | Descrizione |
|---|---|---|
namefacoltativo | string | |
slugfacoltativo | string | |
legal_namefacoltativo | string | null | |
streetfacoltativo | string | null | |
postal_codefacoltativo | string | null | |
cityfacoltativo | string | null | |
countryfacoltativo | string | |
contact_emailfacoltativo | string | null | |
contact_phonefacoltativo | string | null | |
websitefacoltativo | string | null | |
vat_registeredfacoltativo | boolean | |
vat_numberfacoltativo | string | null | |
vat_rate_bpsfacoltativo | integer | |
accent_colorfacoltativo | string | null | |
logo_urlfacoltativo | string | null | |
welcome_textfacoltativo | object | null | |
driver_termsfacoltativo | object | null | |
public_pagefacoltativo | object | |
test_modefacoltativo | boolean |
Risposta 200Organization
| Nome | Tipo | Descrizione |
|---|---|---|
idobbligatorio | string | ID mit Präfix «org_» |
objectobbligatorio | "organization" | |
nameobbligatorio | string | |
slugobbligatorio | string | Subdomain der Instanz |
instance_urlobbligatorio | string | |
test_modeobbligatorio | boolean | Testmodus mit simulierten Ladepunkten und Testzahlungen |
vat_registeredobbligatorio | boolean | |
vat_numberobbligatorio | string | null | |
vat_rate_bpsobbligatorio | integer | MWST-Satz in Basispunkten (810 = 8.1 %) |
accent_colorobbligatorio | 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 PATCH https://api.ladehase.com/v1/organization \n -H "Authorization: Bearer lh_test_…" \n -H "Content-Type: application/json" \n -d '{"name":"string","slug":"string","legal_name":"string","street":"string","postal_code":"string","city":"string","country":"string","contact_email":"person@example.ch","contact_phone":"string","website":"https://example.ch/webhooks/ladehase","vat_registered":true,"vat_number":"string","vat_rate_bps":0,"accent_color":"string","logo_url":"https://example.ch/webhooks/ladehase","welcome_text":{"de":"string","fr":"string","it":"string","en":"string"},"driver_terms":{"de":"string","fr":"string","it":"string","en":"string"},"public_page":{"showLocations":true,"showTariffs":true,"showMap":true,"showContact":true,"showOpeningHours":true},"test_mode":true}'{
"id": "org_9c1f0b7a2e3d4c5b",
"object": "organization",
"name": "Hof Meier",
"slug": "hof-meier",
"instance_url": "https://hof-meier.ladehase.com",
"test_mode": true,
"vat_registered": true,
"vat_number": "string",
"vat_rate_bps": 0,
"accent_color": "string"
}