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

# POST /api/purchase

`POST /api/purchase`

## Request

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

## Query parameters

- `instanceKey` string, required

## Request body

- PurchaseEventModel
  - `ProfileKey` string, nullable: The profile key identifying the visitor associated with this event. Must not include personally identifiable information (PII) to comply with GDPR guidelines.
  - `ProductKeys` string[]: The article numbers of the products the customer purchased.
  - `Revenue` union: The total revenue from the purchase. Can be empty, or must contain a value greater than or equal to 0.
    - number, double
    - string, double
  - `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.

## 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)
