> 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/ja/data-api/catalog-products-2/syncing-catalog-via-api.md).

# API経由でのカタログ同期

商品を同期するには、プッシュ先となる `catalogId` が必要です。ほとんどの連携において、これはテクニカルアカウントマネージャーがお客様に代わって作成します。カタログが作成されたら、テクニカルアカウントマネージャーはそれを Epsilon Retail Media ポータル内で表示可能にする必要があります。

## カタログ作成コンテキスト

以下はカタログ作成のコンテキストの例です:

```http
POST $BASE_URL/v1/catalogs HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic <API_KEY>
{
    "catalogs": [
        {
            "name": "Retailer A"
        }
    ]
}
```

成功した場合、次のオブジェクトが返されます:

```json
{
    "catalogs": [
        {
            "teamId": "9f48572c-0a5b-4997-9a0e-ed74f4d32dc6",
            "name": "Retailer A",
            "id": "216af452-d219-4807-b8ca-578bba446541"
        }
    ]
}
```

{% hint style="danger" %}
️

オブジェクトが正常に返されると、以下を受け取ります `id` 新しいカタログ用。同じリクエストを再度送信すると、新しい `id`、2つのカタログを作成します。
{% endhint %}

{% hint style="info" %}
これが必要になります `id` 商品同期用。
{% endhint %}

## 複数のカタログの作成

複数のカタログを作成する場合、1つのリクエストで最大100個まで順次処理できます。以下は2つのカタログを作成するコンテキストの例です：

```http
POST $BASE_URL/v1/catalogs HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic <API_KEY>
{
    "catalogs": [
        {
            "name": "Retailer A"
        },
        {
            "name": "Retailer B"
        }
    ]
}
```

成功した場合、以下のオブジェクトが返されます（各カタログには個別の `id`):

```json
{
    "catalogs": [
        {
            "teamId": "9f48572c-0a5b-4997-9a0e-ed74f4d32dc6",
            "name": "Retailer A",
            "id": "216af452-d219-4807-b8ca-578bba446541"
        },
        {
            "teamId": "9f48572c-0a5b-4997-9a0e-ed74f4d32dc6",
            "name": "Retailer B",
            "id": "75047339-65f5-41b8-8f2c-e76b04716cd4"
        }
    ]
}
```

{% hint style="warning" %}
カタログは作成後、既定で非表示になります。ネームスペース上でカタログを表示できるようにするには、テクニカルアカウントマネージャーにお問い合わせください。
{% endhint %}


---

# 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/ja/data-api/catalog-products-2/syncing-catalog-via-api.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.
