# Basket API – Documentation
The Basket API is used to export and analyse basket data recorded through the affiliate program system. It allows detailed information about individual basket items to be retrieved in a structured CSV file and processed further.
The API can be accessed in the user interface under the Data API menu item.
| Value | Description |
|---|---|
| www.domain.de | System affiliate program |
| ACCESS-TOKEN | User access token |
| ID | User ID |
| .csv | Download format |
Various parameters can be used to filter the Basket API results.
Below is an overview of all available parameters:
| Parameter | Value / Example | Description |
|---|---|---|
condition[period][from] |
01.01.2025 |
Defines the start date of the period |
condition[period][to] |
31.01.2025 |
Defines the end date of the period |
condition[l:campaigns] |
1 |
Filters all baskets assigned to a specific campaign. This parameter can be specified multiple times. |
condition[datemode] |
processingpayoutincoming |
Specifies the type of period: • processing: Baskets that were validated during the period• payout: Baskets that were paid out during the period• incoming: Baskets that were recorded during the period (transaction date) |
Example:
The downloaded transactions (e.g. as a .csv file) contain the following columns:
| Field name | Description |
|---|---|
id |
Unique ID of the basket item |
orderid |
Internal ID of the associated transaction |
timestamp |
Transaction timestamp |
ordertoken |
Transaction order number |
trigger_id |
ID of the trigger assigned to the transaction |
is_basket |
Indicates whether this is a basket item (true / false) |
basket_item_id |
Unique ID of the basket item |
category |
Category provided by the shop |
productid |
Product ID in the shop |
productname |
Product name in the shop |
amount |
Quantity of products purchased |
price |
Unit price of the product |
original_price |
Original unit price before changes |
status |
Status of the basket item |
total |
Total price (quantity × price) |
commission |
Commission the publisher receives for the basket item |
currency_rate |
Conversion rate for a foreign currency |
currency |
Transaction currency |
is_attributed |
Indicates whether attribution is available (true / false) |
attribution |
Attribution type for each basket item |
attributed_price |
Attributed price per basket item |
attributed_total |
Attributed price × quantity |
trigger_value |
Commission amount per basket item |
original_turnover |
Tracked revenue |
price_brutto |
Gross price of the basket item |