8.SET Custom

Typical request/response flow for custom sets.

GraphQL API Query

Get matching product clusters for product with identifier 8S-DEMO-Polohemd-1. We request 4 clusters with 2 products each, i.e. a total of 8 products.

GraphQL API response

The API returns the first 4 clusters with the first 2 products as requested.

View event

User scrolls to the displayed cross-selling items and items are about 50% inside the viewport.

A view event with type customSet must contain a customSet property containing the identifier of the custom set. Here it is e3bcaf66-5037-4d7b-be4a-8c571a6fb299.

Also a user context need to be attached.

Interact event

click

User clicks on one of the shown cross-selling products. Let's say 8S-DEMO-Gürtel-1 and no specific size is selected.

An interact event with type product must contain a product property containing the sku of the respective product and can contain an action.

Also a content and user context need to be attached. The content context basically resembles the data from the view event.

add to cart

User adds one of the shown cross-selling products to the cart. Let's say 8S-DEMO-Gürtel-3 in size 120 - e.g. the variant SKU is 8S-DEMO-Gürtel-3-120.

An interact event with type product must contain a product property containing the sku of the respective product and must contain an action.

Also a content and user context need to be attached. The content context basically resembles the data from the view event.

Last updated