# Kontoobjekt

Das Kontoobjekt steht für einen Verkäufer, ein Geschäft, einen Händler, einen Kampagneninhaber oder eine andere Geschäftseinheit, die Angebote auf Ihrem Marktplatz veröffentlichen kann. Kontodaten erscheinen in Antworten mit Kontodetails und Kontolisten sowie in Antworten zu Angeboten.

**Beispiel für ein Kontoobjekt**

```json
{
  "id": 26,
  "name": "Urth Cafe",
  "description": "Organic cafe and marketplace account",
  "active": true,
  "status": 2,
  "type": "seller",
  "images": [
    "https://storage.googleapis.com/tradlyapp/images/example.jpeg"
  ],
  "location": {
    "city": "San Francisco",
    "state": "California",
    "country": "United States",
    "locality": "",
    "postcode": "94118",
    "country_code": "us",
    "formatted_address": "50 Hagiwara Tea Garden Dr, San Francisco, CA 94118, United States"
  },
  "coordinates": {
    "latitude": 37.7646541,
    "longitude": -122.4590515
  },
  "total_followers": 3,
  "total_listings": 1,
  "following": false,
  "user": {
    "id": "692ee113-310b-4e66-b5b5-33796f9616e3",
    "first_name": "Charles",
    "last_name": "Pearson",
    "email": "your_name@example.com"
  }
}
```

## Kontoobjekt

| **Attribut** | **Typ** | **Beschreibung** |
| --- | --- | --- |
| `id` | `integer` | Eindeutige ID des Kontos. |
| `name` | `string` | Anzeigename des Kontos. |
| `description` | `string` | Kontobeschreibung oder Zusammenfassung des Unternehmens. |
| `active` | `boolean` | Gibt an, ob das Konto aktiv und sichtbar ist. |
| `status` | `integer` | Moderationsstatus des Kontos. Übliche Werte: `1` Genehmigung ausstehend, `2` genehmigt, `3` abgelehnt. |
| `type` | `string` | Kontotyp, z. B. `seller`, `merchant` oder eine andere tenantspezifische Rolle. |
| `images` | `array<string>` | Bild-URLs, die dem Konto zugeordnet sind. |
| `location` | `object` | Lesbare Adresse und Standortangaben des Kontos. |
| `coordinates` | `object` | Breiten- und Längengrad des Kontostandorts. |
| `total_followers` | `integer` | Gesamtzahl der Follower des Kontos. |
| `total_listings` | `integer` | Gesamtzahl der unter dem Konto veröffentlichten Angebote. |
| `following` | `boolean` | Gibt an, ob der aktuelle authentifizierte Nutzer diesem Konto folgt. |
| `user` | `object` | Inhaber oder primärer Nutzer des Kontos. |

## Standortobjekt des Kontos

| **Attribut** | **Typ** | **Beschreibung** |
| --- | --- | --- |
| `city` | `string` | Name der Stadt. |
| `state` | `string` | Bundesstaat oder Provinz. |
| `country` | `string` | Name des Landes. |
| `locality` | `string` | Zusätzliche Angaben zum Ort oder Stadtteil. |
| `postcode` | `string` | Postleitzahl. |
| `country_code` | `string` | ISO-artiger Ländercode. |
| `formatted_address` | `string` | Vollständig formatierte Adresse. |

## Koordinatenobjekt des Kontos

| **Attribut** | **Typ** | **Beschreibung** |
| --- | --- | --- |
| `latitude` | `number` | Breitengrad des Kontostandorts. |
| `longitude` | `number` | Längengrad des Kontostandorts. |
