# API-Referenz: Organisation

## Organisation abrufen

`GET /v1/organization`

Einstellungen der Organisation dieses API-Schlüssels: Name, Subdomain der Instanz, MWST, Branding, Testmodus.

Antwort 200:

```json
{
  "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.

Anfrage:

```json
{
  "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
}
```

Antwort 200:

```json
{
  "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"
}
```
