User-Item Interactions

List User Cart Additions

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

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

Request

  • Base URL
    http://Based on the region of your database (see https://docs.recombee.com/regions).
  • Auth
    none declared

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

Additional data associated with the interaction. The expected structure is defined for specific use cases and will be provided by the Recombee Support team when applicable.

Changes

No recorded changes to this operation across all 3 revisions of this API.