---
title: "List User Cart Additions"
method: GET
path: "/{databaseId}/users/{userId}/cartadditions/"
tags: ["User-Item Interactions"]
---

# List User Cart Additions

`GET /{databaseId}/users/{userId}/cartadditions/`

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

## Path parameters

- `databaseId` string, required
- `userId` string, required

## Response `200`

Successful operation.

- CartAddition[]
  - `userId` string, required — User who added the item to the cart
  - `itemId` string, required — Item added to the cart
  - `timestamp` union — UTC timestamp of the cart addition as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
    - string, double
    - number, double
  - `cascadeCreate` boolean — Sets whether the given user/item should be created if not present in the database.
  - `amount` number, 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.
  - `price` number, double — Price of the added item. If `amount` is greater than 1, the sum of prices of all the items should be given.
  - `recommId` string — If this cart addition is based on a recommendation request, `recommId` is the id of the clicked recommendation.
  - `additionalData` object — A dictionary of additional data for the interaction.

## Other responses

- `400` — The `userId` does not match ^[a-zA-Z0-9_\-:@\.]+$.
- `404` — Given `userId` not found in the database. If there is no additional info in the JSON response, you probably have an error in your URL.

---

[API](https://skmtc.dev/recombee/apis/recombee-api.md) · [All operations](https://skmtc.dev/recombee/apis/recombee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/recombee/recombee-api/revisions/a9c9c33eb2e8/schema)
