User-Item Interactions

List User Cart Additions

Lists all the cart additions ever made by the given user.

get/{databaseId}/users/{userId}/cartadditions/

Path parameters

databaseIdstring required

ID of your database.

userIdstring required

ID of the user whose cart additions are to be listed.

Response

Successful operation.

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.

Changes