> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Produkte importieren und aktualisieren

> Importieren oder aktualisieren Sie Ihren Produktkatalog in Kameleoon mit dem bevorzugten Endpoint für Kataloge mit mehr als 50K Produkten.

Dieser Endpoint importiert Ihre Produkte in Ihr Kameleoon-Konto. Es ist die bevorzugte Methode zum Importieren Ihres Katalogs, wenn Sie mehr als 50K Produkte haben.

Kameleoon empfiehlt dringend, diesen Endpoint auch zum Aktualisieren der Produktliste und ihrer Eigenschaften zu verwenden, anstatt Ihren Katalog täglich vollständig neu zu importieren.

> [!WARNING]
>
> Wenn Sie sich vollständig auf diesen Endpoint zum Importieren Ihres Katalogs verlassen, stellen Sie sicher, dass alle Kategorien zuerst über den [Endpoint zum Importieren von Kategorien](https://docs.kameleoon.com/de/developer-docs/apis/product-recommendation-api-rest/all-endpoints/Import/import-categories.md) importiert wurden. Alle Produkte ohne bekannte Kategorie werden während des Importvorgangs ignoriert.

Die Daten werden als [JSON-Zeichenfolge](#beispiel-json-anfrage) im Anfragetext gesendet.

## Ratenbegrenzung

* Die Begrenzung für API-Anfragen (Rate Limit) ist auf 40 Anfragen pro Minute festgelegt, mit maximal 1 Anfrage alle 1,5 Sekunden.
* Die Gewichtsbegrenzung für API-Anfragen (Weight Limit) ist auf 35 Megabyte pro Anfrage begrenzt.

## Liste der Abfrageparameter

| Parameter | Typ | Erforderlich | Beschreibung |
| - | - | - | - |
| `shop_id` | String | Ja | Store Key. Sie finden ihn in **Recommendations** > **Settings** > **Store settings** in der Kameleoon App. Kontaktieren Sie Ihren Customer Success Manager, falls erforderlich, um den Schlüssel zu erhalten. |
| `shop_secret` | String | Ja | Secret Key. Sie finden ihn in **Recommendations** > **Settings** > **Store settings** in der Kameleoon App. Kontaktieren Sie Ihren Customer Success Manager, falls erforderlich, um den Schlüssel zu erhalten. |
| `items` | List | Ja | Eine Liste von Produktartikeln. In [dieser Tabelle](#liste-der-parameter-für-das-items-objekt) finden Sie die für `items` erforderlichen Parameter |
| `webhook` | String | Nein | Die Webhook-URL. Kameleoon sendet nach Abschluss des Imports eine POST-Anfrage an diese URL. |

> [!NOTE]
>
> Der Zweck des `webhook` besteht darin, den Entwickler zu benachrichtigen, sobald eine Anfrage abgeschlossen wurde. Sobald alle Produkte im API-Aufruf importiert und vollständig verfügbar sind, sendet Kameleoon eine POST-Anfrage an den festgelegten Webhook.
>
> Beispiel für eine erfolgreiche Anfrage:
>
> ```json theme={null}
> {
> 	"status": "success"
> }
> ```
>
> Beispiel für eine erfolglose Anfrage:
>
> ```json theme={null}
> {
> 	"status": "error", 
> 	"message": "MESSAGE"
> }
> ```

## Liste der Parameter für das `items`-Objekt

> [!WARNING]
>
> Um nur bestimmte Produkte zu aktualisieren, geben Sie alle obligatorischen Parameterwerte für jedes Produkt in der Anfrage an. Wenn eine obligatorische Eigenschaft eines Produkts fehlt, ignoriert Kameleoon dieses Produkt während des Imports und nimmt keine Änderungen an der Datenbank vor. Um beispielsweise nur den Preis eines Produkts zu aktualisieren, geben Sie alle seine obligatorischen Parameter an, wie categories, name, picture und available.
>
> Bei nicht obligatorischen Eigenschaften entfernt Kameleoon weggelassene Werte aus der Datenbank.

| Parameter | Typ | Erforderlich | Beschreibung |
| - | - | - | - |
| `id` | String (max. Länge 64) | Ja | Eine eindeutige ID, die dem Artikel zugewiesen wird |
| `group_id` | String (max. Länge 64) | Optional | Die der Artikelgruppe zugeordnete ID |
| `name` | String (max. Länge 255) | Ja | Der Name des Artikels |
| `price` | Float (muss positiv sein) | Ja | Der Preis des Artikels. Um Preise an mehreren Standorten anzugeben, verwenden Sie stattdessen das [locations](#liste-der-parameter-für-das-locations-objekt)-Objekt. |
| `oldprice` | Float (muss positiv sein) | Optional | Der vorherige Preis des Artikels |
| `currency` | String | Ja | Die Währung, in der das Preisfeld angegeben wurde |
| `url` | String | Ja | Eine URL, die dem Artikel zugeordnet werden soll |
| `picture` | String | Ja | Eine URL, die ein Bild des Artikels enthält |
| `available` | Boolean | Ja | Gibt an, ob der Artikel zum Kauf verfügbar ist. Verwenden Sie den Endpoint update products, um dies später zu aktualisieren |
| `categories` | Array of strings | Ja | Jede Zeichenfolge stellt eine [Kategorie](https://docs.kameleoon.com/de/developer-docs/apis/product-recommendation-api-rest/all-endpoints/Import/import-categories.md)-ID dar, zu der dieses Produkt gehört. |
| `locations` | Array | Optional | Array von Artikelpreisen an verschiedenen Standorten. In [dieser Tabelle](#liste-der-parameter-für-das-locations-objekt) finden Sie die für `locations` erforderlichen Parameter |
| `accessories` | Array of strings | Optional | Enthält die Produkt-IDs der zugehörigen Zubehörteile für den Artikel |
| `seasonality` | Array of integers | Optional | Stellt die Monate des Jahres dar (Januar=1, Dezember=12), in denen Sie diesen Artikel bewerben möchten |
| `brand` | String | Optional | Der Markenname des Artikels |
| `barcode` | Integer | Optional | Ein Barcode-Wert für den Artikel |
| `price_margin` | Integer | Optional | Die Preismarge für den Artikel |
| `tags` | Array of strings | Optional | Eine Liste von Schlüsselwörtern, die Sie dem Artikel zuordnen möchten |
| `is_child` | Boolean | Optional | Gibt an, ob dieser Artikel ein Kind eines anderen Artikels ist |
| `is_fashion` | Boolean | Optional | Gibt an, ob dieser Artikel ein Modeartikel ist |
| `is_new` | Boolean | Optional | Gibt an, ob dieser Artikel ein neuer Artikel ist |
| `fashion` | Object | Optional | Definiert mehrere zusätzliche Parameter für Modeartikel. In [dieser Tabelle](#liste-der-parameter-für-das-fashion-objekt) finden Sie die für `fashion` erforderlichen Parameter |
| `stock_quantity` | Integer | Optional | Die Lagermenge des Artikels |
| `type_prefix` | String | Optional | Ein Präfix zur Unterscheidung des Artikeltyps |
| `model` | String | Optional | Der Modellname des Artikels |
| `params` | Object | Optional | Fügen Sie benutzerdefinierte Parameter hinzu. In [dieser Tabelle](#liste-der-parameter-für-das-params-objekt) finden Sie die für `params` erforderlichen Parameter |
| `merchant` | String | Optional | Der Händler, den Sie dem Artikel zuordnen möchten |
| `rating` | Integer | Optional | Ein Wert zwischen 1 und 5. Die Benutzerbewertung, die Sie dem Artikel zuweisen möchten |
| `leftovers` | String | Optional | Eine Beschreibung des verbleibenden Bestands. Beispielsweise stellt "one" ein Produkt dar, das als einzelne Einheit verfügbar ist, "few" steht für Produkte in begrenzten Mengen (bis zu 10 Einheiten) und "lot" für ein Produkt, das in Mengen von 10 oder mehr Einheiten verfügbar ist |
| `creation_date` | String | Optional | Muss im Format `yyyy-mm-dd` sein. Dies ist das Erstellungsdatum des Artikels |

## Liste der Parameter für das `locations`-Objekt

Verwenden Sie das `locations`-Objekt, um Preis-, Bestands- und andere standortspezifische Informationen bereitzustellen, wenn Sie mehrere Standorte haben. Übergeben Sie das locations-Objekt innerhalb des Produkt-items-Objekts.

| Parameter | Typ | Erforderlich | Beschreibung |
| - | - | - | - |
| `location` | String | Ja | Der Standort, für den Sie einen Preis angeben möchten. Dieses Feld ist erforderlich, wenn das Feld locations angegeben wird. |
| `price` | Float (muss positiv sein) | Optional | Der Preis an diesem Standort. |
| `oldprice` | Float (muss positiv sein) | Optional | Der vorherige Preis des Artikels (zum Beispiel der reguläre Preis eines Sonderangebots). |
| `stock_quantity` | Int (muss positiv sein) | Optional | Die Lagermenge des Artikels. |
| `sizes` | Array of Strings | Optional | Eine Liste von Größenoptionen für den Artikel. |
| `weight` | Int (muss positiv sein) | Optional | Das Gewicht des Artikels. |
| `delivery_types` | Object | Optional | Gibt die Verfügbarkeit des Artikels an. In [dieser Tabelle](#liste-der-parameter-für-das-delivery_types-objekt) finden Sie die für `delivery_types` erforderlichen Parameter |

## Liste der Parameter für das `delivery_types`-Objekt

| Parameter | Typ | Erforderlich | Beschreibung |
| - | - | - | - |
| `store` | Int (muss positiv sein) | Ja | Anzahl der im Geschäft verfügbaren Artikel |
| `delivery` | Int (muss positiv sein) | Ja | Anzahl der zur Lieferung oder im Lager verfügbaren Artikel |

## Liste der Parameter für das `Params`-Objekt

Mit dem params-Objekt können Sie benutzerdefinierte Parameterwerte für den Artikel angeben. Übergeben Sie das `params`-Objekt innerhalb des Produkt-`items`-Objekts.

| Parameter | Typ | Erforderlich | Beschreibung |
| - | - | - | - |
| `name` | String | Ja | Der Name des Parameters |
| `value` | Array of Strings | Ja | Array von Werten für den Parameter |
| `unit` | String | Optional | Maßeinheit für die Werte. |

## Liste der Parameter für das `Fashion`-Objekt

Mit dem fashion-Objekt können Sie zusätzliche Informationen zu Modeartikeln angeben. Übergeben Sie das fashion-Objekt innerhalb des Produkt-items-Objekts.

| Parameter | Typ | Erforderlich | Beschreibung |
| - | - | - | - |
| `gender` | String | Optional | Ein Geschlecht, das dem Artikel zugeordnet wird. Zum Beispiel "m", "f" oder "female". |
| `sizes` | Array of Strings | Optional | Liste der Größen für den Artikel. |
| `type` | String | Ja | Der Typ des Modeartikels. Zum Beispiel "jacket". |

## Beispiel-JSON-Anfrage

```json theme={null}
{
    "id": "myID",
    "group_id": "myGroup",
    "name": "myItem",
    "price": 1,
    "oldprice": 2,
    "currency": "USD",
    "url": "https://example.com/product",
    "picture": "https://example.com/product/image.png",
    "available": true,
    "categories": ["ID1", "ID2"],
    "locations": [
        {
            "location": "USA",
            "delivery_types": {
                "store": 10,
                "delivery": 50
            }
        },
        {
            "location": "CAN",
            "price": 60
        }
    ],
    "accessories": ["ID1", "ID2"],
    "seasonality": [1, 2, 3],
    "brand": "Acme",
    "barcode": 123456789,
    "price_margin": 10,
    "tags": ["TAG1", "TAG2"],
    "is_child": false,
    "is_fashion": true,
    "is_new": false,
    "fashion": {
        "gender": "m",
        "sizes": ["48", "50", "52"],
        "type": "jacket"
    },
    "stock_quantity": 60,
    "type_prefix": "prefix",
    "model": "Widget 3000",
    "params": [
        {
            "name": "Param 1",
            "value": ["bluetooth", "wi-fi"]
        },
        {
            "name": "Param 2",
            "value": [23]
        }
    ],
    "merchant": "MerchantName",
    "rating": 4,
    "leftovers": "one",
    "creation_date": "2021-12-21"
}
```


## OpenAPI

````yaml product-recommendation.api.json PUT /import/products
openapi: 3.1.0
info:
  title: Kameleoon Product Recommendation API
  version: 1.0.0
  description: >-
    REST API for importing product, category, and order data into Kameleoon,
    initializing recommendation sessions, and retrieving product
    recommendations, collections, and search results.
servers:
  - url: https://api.products.kameleoon.com
security: []
paths:
  /import/products:
    put:
      tags:
        - Import
      summary: Import and update products
      description: >-
        Import your products into your Kameleoon account. This is the preferred
        endpoint for catalogs with more than 50K products, and is recommended
        for updating products and their properties rather than fully
        re-importing your catalog daily. All categories must be imported first
        using the import categories endpoint, or products without a known
        category are ignored. Rate limit: 40 requests per minute (max 1 request
        every 1.5 seconds), capped at 35 MB per request.
      operationId: importProducts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - shop_id
                - shop_secret
                - items
              properties:
                shop_id:
                  type: string
                  description: >-
                    Store Key. Find this in **Recommendations** > **Settings** >
                    **Store settings** in the Kameleoon app. Contact your
                    Customer Success Manager for the key if necessary.
                shop_secret:
                  type: string
                  description: >-
                    Secret Key. Find this in **Recommendations** > **Settings**
                    > **Store settings** in the Kameleoon app. Contact your
                    Customer Success Manager for the key if necessary.
                items:
                  type: array
                  items:
                    type: object
                    required:
                      - id
                      - name
                      - price
                      - currency
                      - url
                      - picture
                      - available
                      - categories
                    properties:
                      id:
                        type: string
                        maxLength: 64
                        description: A unique ID assigned to the item.
                      group_id:
                        type: string
                        maxLength: 64
                        description: The ID associated with the item group.
                      name:
                        type: string
                        maxLength: 255
                        description: The name of the item.
                      price:
                        type: number
                        minimum: 0
                        description: >-
                          The price of the item. To provide prices in multiple
                          locations, use `locations` instead.
                      oldprice:
                        type: number
                        minimum: 0
                        description: The previous price of the item.
                      currency:
                        type: string
                        description: The currency in which `price` was specified.
                      url:
                        type: string
                        description: A URL to associate with the item.
                      picture:
                        type: string
                        description: A URL containing an image of the item.
                      available:
                        type: boolean
                        description: >-
                          Indicates whether the item is available for purchase.
                          Use the update products endpoint to update this later.
                      categories:
                        type: array
                        items:
                          type: string
                        description: >-
                          Category IDs this product belongs to. See the import
                          categories endpoint.
                      locations:
                        type: array
                        items:
                          type: object
                          required:
                            - location
                          properties:
                            location:
                              type: string
                              description: >-
                                The location this price applies to. Required if
                                the `locations` field is provided.
                            price:
                              type: number
                              description: The price at this location.
                            oldprice:
                              type: number
                              description: >-
                                The previous price of the item at this location
                                (for example, the regular price of a sale item).
                            stock_quantity:
                              type: integer
                              description: >-
                                The quantity of the item in stock at this
                                location.
                            sizes:
                              type: array
                              items:
                                type: string
                              description: >-
                                A list of size options for the item at this
                                location.
                            weight:
                              type: integer
                              description: The weight of the item.
                            delivery_types:
                              type: object
                              required:
                                - store
                                - delivery
                              properties:
                                store:
                                  type: integer
                                  description: Number of items available in-store.
                                delivery:
                                  type: integer
                                  description: >-
                                    Number of items available for delivery, or
                                    in the warehouse.
                          description: >-
                            Provides price, inventory, and other
                            location-specific information when you have multiple
                            locations.
                        description: Prices of the item in different locations.
                      accessories:
                        type: array
                        items:
                          type: string
                        description: Product IDs of related accessories for the item.
                      seasonality:
                        type: array
                        items:
                          type: integer
                          minimum: 1
                          maximum: 12
                        description: >-
                          Months of the year (January=1, December=12) to promote
                          this item.
                      brand:
                        type: string
                        description: The brand name of the item.
                      barcode:
                        type: integer
                        description: A barcode value for the item.
                      price_margin:
                        type: integer
                        description: The price margin for the item.
                      tags:
                        type: array
                        items:
                          type: string
                        description: Keywords to associate with the item.
                      is_child:
                        type: boolean
                        description: >-
                          Indicates whether this item is a child of another
                          item.
                      is_fashion:
                        type: boolean
                        description: Indicates whether this item is a fashion item.
                      is_new:
                        type: boolean
                        description: Indicates whether this item is a new item.
                      fashion:
                        type: object
                        required:
                          - type
                        properties:
                          gender:
                            type: string
                            description: >-
                              A gender to associate with the item. For example,
                              "m", "f", or "female".
                          sizes:
                            type: array
                            items:
                              type: string
                            description: List of sizes for the item.
                          type:
                            type: string
                            description: The type of fashion item. For example, "jacket".
                        description: Additional information about fashion items.
                      stock_quantity:
                        type: integer
                        description: The quantity of the item in stock.
                      type_prefix:
                        type: string
                        description: A prefix to distinguish the type of item.
                      model:
                        type: string
                        description: The model name of the item.
                      params:
                        type: array
                        items:
                          type: object
                          required:
                            - name
                            - value
                          properties:
                            name:
                              type: string
                              description: The name of the parameter.
                            value:
                              type: array
                              items:
                                type: string
                              description: Array of values for the parameter.
                            unit:
                              type: string
                              description: Unit of measurement for the values.
                          description: Custom parameter values for the item.
                        description: Custom parameters for the item.
                      merchant:
                        type: string
                        description: The merchant to associate with the item.
                      rating:
                        type: integer
                        minimum: 1
                        maximum: 5
                        description: The user rating to assign to the item.
                      leftovers:
                        type: string
                        description: >-
                          A description of the remaining stock: "one" (single
                          unit), "few" (up to 10 units), or "lot" (10 or more
                          units).
                      creation_date:
                        type: string
                        description: 'The date the item was created. Format: yyyy-mm-dd.'
                  description: >-
                    A list of product items. To update only some properties of a
                    product, you must still include all of that product's
                    mandatory parameters, or the product is ignored during
                    import.
                webhook:
                  type: string
                  description: >-
                    The webhook URL where a POST request is sent upon completion
                    of the import.
            example:
              shop_id: eehj3eu84299kg5ghw5a6743r8
              shop_secret: pmd5362597thrgq8k256ep01t0
              items:
                - id: myID
                  name: myItem
                  price: 1
                  currency: USD
                  url: https://example.com/product
                  picture: https://example.com/product/image.png
                  available: true
                  categories:
                    - ID1
                    - ID2
      responses:
        '204':
          description: >-
            Import accepted. Verified against a live response on 2026-09-24:
            this endpoint returns an empty 204 response on success, not a JSON
            body — the `{"status": "success"}` shape only applies to the
            asynchronous `webhook` callback payload, if a `webhook` was
            provided.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                    description: Request outcome.
              example:
                status: success
        '400':
          description: >-
            The request was rejected, most commonly for invalid
            `shop_id`/`shop_secret` credentials. Verified against a live
            response on 2026-09-24.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Request outcome.
                  message:
                    type: string
                    description: Error details (for example, "Incorrect shop credentials").
              example:
                status: error
                message: Incorrect shop credentials

````