> For the complete documentation index, see [llms.txt](https://help.citrusad.com/retail-media-interface/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.citrusad.com/retail-media-interface/integration/de/data-api/customer-data/syncing-customer-data-via-api-1.md).

# Kundendaten über API synchronisieren

## Senden von Kundendaten an Epsilon Retail Media

Um Kundendaten an Epsilon Retail Mediazu senden, verwenden Sie einen Befehl wie den folgenden. Beachten Sie, dass die Daten im `customers` -Feld Testdaten sind und hier nur als Beispiel bereitgestellt werden.

{% hint style="info" %}
Alle `customer` -Objektfelder sind optional. Wenn Sie ein `customer` -Objekt ohne Feldwerte übertragen, wird ein neues `id` erstellt. Geben Sie daher keine `id` an, wenn Sie `customer` -Objekte erstellen.

Alle Werte im `targetingData` -Feld sind beliebig und vom Händler konfigurierbar. Weitere Informationen finden Sie auf der Referenzseite.
{% endhint %}

```http
POST $BASE_URL/v1/customers HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic <API_KEY>
{
    "customers": [
        {
            "id": "i4358f9b-bbb9-49fb-93fe-3ad481ce564",
            "targetingData": {
            "customer_type": "Corporate"
            }
        }
    ]
}
```

Bei Erfolg wird das folgende Objekt zurückgegeben:

```json
{
    "customers": [
        {
            "targetingData": {
                "customer_type": "Corporate"
            },
            "gender": "Other",
            "teamId": "9be784a8-22fc-4315-a335-b7d2c2494f0a",
            "postcode": "",
            "suburb": "",
            "id": "i4358f9b-bbb9-49fb-93fe-3ad481ce564",
            "yearOfBirth": 0
        }
    ]
}
```

## Synchronisieren mehrerer Kunden

Wenn Sie mehrere Kunden synchronisieren, können Sie mit jeder Anfrage bis zu 100 Elemente als Batch senden. Die Anzahl der Anfragen, die Sie stellen können, ist unbegrenzt.

Die Reihenfolge der übertragenen Kunden-Payloads entspricht der Reihenfolge der zurückgegebenen Ergebnisse. Dadurch wird sichergestellt, dass die Daten mit der Kundendarstellung übereinstimmen, die der Integrator in seinem Backend verwaltet.

```http
POST $BASE_URL/v1/customers HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic <API_KEY>
{
    "customers": [
        {
            "id": "i4358f9b-bbb9-49fb-93fe-3ad481ce564",
            "targetingData": {
            "customer_type": "Corporate"
            }
        },
        {
            "id": "c7792468-07ea-4cc3-9b1a-975bb43dfa02",
            "targetingData": {
            "customer_type": "Retail"
            }
        }
    ]
}
```

Bei Erfolg wird das folgende Objekt zurückgegeben:

```json
{
    "customers": [
        {
            "targetingData": {
                "customer_type": "Corporate"
            },
            "gender": "Other",
            "teamId": "9be784a8-22fc-4315-a335-b7d2c2494f0a",
            "postcode": "",
            "suburb": "",
            "id": "i4358f9b-bbb9-49fb-93fe-3ad481ce564",
            "yearOfBirth": 0
        },
        {
            "targetingData": {
                "customer_type": "Retail"
            },
            "gender": "Other",
            "teamId": "9be784a8-22fc-4315-a335-b7d2c2494f0a",
            "postcode": "",
            "suburb": "",
            "id": "c7792468-07ea-4cc3-9b1a-975bb43dfa02",
            "yearOfBirth": 0
        }
    ]
}
```

{% hint style="warning" %}
`gender`,`postcode`,`suburb`,`yearOfBirth` Felder

Bitte beachten Sie, dass diese Felder nicht mehr verwendet werden und nur für historische Integrationen verbleiben.
{% endhint %}

### Einspielen von Kunden-Massendaten

Bei der Integration empfehlen wir, dass Sie Ihre erste Tranche von Kundendaten als Datei zum Einspielen senden, da die API Batches von jeweils 100 akzeptiert.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.citrusad.com/retail-media-interface/integration/de/data-api/customer-data/syncing-customer-data-via-api-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
