Skip to main content
GET
Retrieve collection
Le service fournit l’accès à l’endpoint de collection de produits.
Vous pouvez trouver le collection_id du produit dans la section Product Collections du dashboard. Vos collections configurées y sont listées avec leurs numéros d’ID.

Paramètres de requête

Réponse

Liste des champs pour le tableau d’objets products

Liste des propriétés pour le tableau categories

Paramètres de chemin

collection_id
string
requis

The ID of the product collection to retrieve.

Paramètres de requête

shop_id
string
requis

Store Key. Find this in Recommendations > Settings > Store settings in the Kameleoon app. Contact your Customer Success Manager for the key if necessary.

did
string

Device ID. You can find this ID in the cookie KameleoonProducts_device_id, retrieved from the back end before calling this endpoint.

sid
string

Temporary user session ID. Get this ID from the KameleoonProducts_session_code cookie. Retrieve it from the backend before calling this endpoint. Not independently verified live for this endpoint; added for consistency with the documented query-parameter table.

location
string

User's location.

external_id
string

Unique identifier associated with a user in your system or CRM. To ensure accurate matching with the Kameleoon VisitorCode, store this ID as Kameleoon Custom Data with "Use this custom data as a unique identifier for cross-device matching" enabled.

Réponse

200 - application/json

The collection's products and HTML template.

products
object[]

Information about the products in the collection.

html
string

The HTML template selected when the collection was created.