Apply recommendations

POST{{API_BASE_URL}}/shop/v1/cart/:cart/recommendations

This endpoint is used to add recommendations to a specific cart.

Request

Request body

  • upsellings: An array of objects containing the article and items for upselling.

    • article: The unique identifier for the upselling article.

    • items: An array of item identifiers for upselling.

  • crossSellings: An array of objects containing the article and items for cross-selling.

    • article: The unique identifier for the cross-selling article.

    • items: An array of item identifiers for cross-selling.

Response

The response body will include the following fields:

  • recommendationsApplied (object): Details of the recommendations applied to the cart, including added articles, removed items, and problems.

  • cart (object): Details of the cart, including ID, expiry time, user, event, promotion codes, items, totals, and buyer person.

Authentication#auth

This endpoint does not require authentication.

Query parameters#query

$expandAlloptional

Responses#responses

200OKApply recommendations