---
title: "POST /api/addtocart"
method: POST
path: "/api/addtocart"
tags: ["Events"]
---

# POST /api/addtocart

`POST /api/addtocart`

## Request

- Base URL: `https://navigator-analytics.tweakwise.com`
- URL: `https://navigator-analytics.tweakwise.com/api/addtocart`
- Auth: none declared

## Query parameters

- `instanceKey` string, required

## Request body

- AddToCartEventModel
  - `ProfileKey` string: The profile key identifying the visitor associated with this event. Must not include personally identifiable information (PII) to comply with GDPR guidelines.
  - `SessionKey` string, nullable: The key of the session. This key is used to group events that belong to the same session. Allowed characters are alphanumeric characters and hyphens.
  - `ProductKey` string: The article number of the product the visitor added to their cart.
  - `Quantity` union: How many of this product the visitor added to their cart.
    - integer
    - string, int32
  - `TotalAmount` union: The total (sum) price of the products added to the cart.
    - number, double
    - string, double

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/tweakwise/apis/tweakwise-analytics-api.md) - [All operations](https://skmtc.dev/tweakwise/apis/tweakwise-analytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tweakwise/apis/tweakwise-analytics-api/revisions/39aa38af4005?raw)
