User-Item Interactions

Add Cart Addition

Adds a cart addition of the given item made by the given user.

post/{databaseId}/cartadditions/

Path parameters

databaseIdstring required

ID of your database.

Request body

userIdstring required

User who added the item to the cart

itemIdstring required

Item added to the cart

cascadeCreateboolean

Sets whether the given user/item should be created if not present in the database.

amountnumber double

Amount (number) added to cart. The default is 1. For example, if user-x adds two item-y during a single order (session...), the amount should equal 2.

pricenumber double

Price of the added item. If amount is greater than 1, the sum of prices of all the items should be given.

recommIdstring

If this cart addition is based on a recommendation request, recommId is the id of the clicked recommendation.

additionalDataobject

A dictionary of additional data for the interaction.

Response

Successful operation.

Changes